/*
	Copyright (c) 2004-2012, 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=[],_64=function(_65,_66,_67){for(var p in _65){if(p=="waitSeconds"){req.waitms=(_65[p]||0)*1000;}if(p=="cacheBust"){_51=_65[p]?(_7(_65[p])?_65[p]:(new Date()).getTime()+""):"";}if(p=="baseUrl"||p=="combo"){req[p]=_65[p];}if(1&&p=="async"){var _68=_65[p];req.legacyMode=_25=(_7(_68)&&/sync|legacyAsync/.test(_68)?_68:(!_68?_26:false));req.async=!_25;}if(_65[p]!==_1a){req.rawConfig[p]=_65[p];p!="has"&&has.add("config-"+p,_65[p],0,_66);}}if(!req.baseUrl){req.baseUrl="./";}if(!/\/$/.test(req.baseUrl)){req.baseUrl+="/";}for(p in _65.has){has.add(p,_65.has[p],0,_66);}_9(_65.packages,_60);for(_1e in _65.packagePaths){_9(_65.packagePaths[_1e],function(_69){var _6a=_1e+"/"+_69;if(_7(_69)){_69={name:_69};}_69.location=_6a;_60(_69);});}_5e(_c(map,_65.map),_50);_9(_50,function(_6b){_6b[1]=_5e(_6b[1],[]);if(_6b[0]=="*"){_50.star=_6b;}});_5e(_c(_4d,_65.paths),_4e);_9(_65.aliases,function(_6c){if(_7(_6c[0])){_6c[0]=new RegExp("^"+_5d(_6c[0])+"$");}_4c.push(_6c);});if(_66){_63.push({config:_65.config});}else{for(p in _65.config){var _6d=_31(p,_67);_6d.config=_c(_6d.config||{},_65.config[p]);}}if(_65.cache){_56();_54=_65.cache;if(_65.cache["*noref"]){_56();}}_34("config",[_65,req.rawConfig]);};if(has("dojo-cdn")||1){var _6e=doc.getElementsByTagName("script"),i=0,_6f,_70,src,_71;while(i<_6e.length){_6f=_6e[i++];if((src=_6f.getAttribute("src"))&&(_71=src.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){_70=_71[3]||"";_2.baseUrl=_2.baseUrl||_70;src=(_6f.getAttribute("data-dojo-config")||_6f.getAttribute("djConfig"));if(src){_55=req.eval("({ "+src+" })","data-dojo-config");}if(0){var _72=_6f.getAttribute("data-main");if(_72){_55.deps=_55.deps||[_72];}}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={};_64(_2,1);if(has("dojo-cdn")){_4f.dojo.location=_70;if(_70){_70+="/";}_4f.dijit.location=_70+"../dijit/";_4f.dojox.location=_70+"../dojox/";}_64(_1,1);_64(_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 _73=0,_74=[],_75=null;}var _76=function(_77){_37(function(){_9(_77.deps,_32);if(0&&_73&&!_75){_75=setTimeout(function(){_73=0;_75=null;req.combo.done(function(_78,url){var _79=function(){_7a(0,_78);_7b();};_74.push(_78);_7c=_78;req.injectUrl(url,_79,_78);_7c=0;},req);},0);}});},_16=function(a1,a2,a3,_7d,_7e){var _7f,_80;if(_7(a1)){_7f=_31(a1,_7d,true);if(_7f&&_7f.executed){return _7f.result;}throw _f("undefinedModule",a1);}if(!_8(a1)){_64(a1,0,_7d);a1=a2;a2=a3;}if(_8(a1)){if(!a1.length){a2&&a2();}else{_80="require*"+uid();for(var mid,_81=[],i=0;i<a1.length;){mid=a1[i++];_81.push(_31(mid,_7d));}_7f=_c(_82("",_80,0,""),{injected:_21,deps:_81,def:a2||_3,require:_7d?_7d.require:req,gc:1});_2f[_7f.mid]=_7f;_76(_7f);var _83=_84&&_25!=_26;_37(function(){_36(_7f,_83);});if(!_7f.executed){_30.push(_7f);}_7b();}}return _7e;},_5c=function(_85){if(!_85){return req;}var _86=_85.require;if(!_86){_86=function(a1,a2,a3){return _16(a1,a2,a3,_85,_86);};_85.require=_c(_86,req);_86.module=_85;_86.toUrl=function(_87){return _5a(_87,_85);};_86.toAbsMid=function(mid){return _b4(mid,_85);};if(0){_86.undef=function(mid){req.undef(mid,_85);};}if(1){_86.syncLoadNls=function(mid){var _88=_5b(mid,_85),_89=_2f[_88.mid];if(!_89||!_89.executed){_8a=_52[_88.mid]||_52[_53+_88.url];if(_8a){_8b(_8a);_89=_2f[_88.mid];}}return _89&&_89.executed&&_89.result;};}}return _86;},_30=[],_8c=[],_8d={},_8e=function(_8f){_8f.injected=_20;_8d[_8f.mid]=1;if(_8f.url){_8d[_8f.url]=_8f.pack||1;}_90();},_33=function(_91){_91.injected=_21;delete _8d[_91.mid];if(_91.url){delete _8d[_91.url];}if(_4(_8d)){_92();1&&_25==xd&&(_25=_26);}},_93=req.idle=function(){return !_8c.length&&_4(_8d)&&!_30.length&&!_84;},_94=function(_95,map){if(map){for(var i=0;i<map.length;i++){if(map[i][2].test(_95)){return map[i];}}}return 0;},_96=function(_97){var _98=[],_99,_9a;_97=_97.replace(/\\/g,"/").split("/");while(_97.length){_99=_97.shift();if(_99==".."&&_98.length&&_9a!=".."){_98.pop();_9a=_98[_98.length-1];}else{if(_99!="."){_98.push(_9a=_99);}}}return _98.join("/");},_82=function(pid,mid,_9b,url){if(1){var xd=req.isXdUrl(url);return {pid:pid,mid:mid,pack:_9b,url:url,executed:0,def:0,isXd:xd,isAmd:!!(xd||(_4f[pid]&&_4f[pid].isAmd))};}else{return {pid:pid,mid:mid,pack:_9b,url:url,executed:0,def:0};}},_9c=function(mid,_9d,_9e,_9f,_a0,_a1,_a2,_a3){var pid,_a4,_a5,_a6,_a7,url,_a8,_a9,_aa;_aa=mid;_a9=/^\./.test(mid);if(/(^\/)|(\:)|(\.js$)/.test(mid)||(_a9&&!_9d)){return _82(0,mid,0,mid);}else{mid=_96(_a9?(_9d.mid+"/../"+mid):mid);if(/^\./.test(mid)){throw _f("irrationalPath",mid);}if(_9d){_a7=_94(_9d.mid,_a1);}_a7=_a7||_a1.star;_a7=_a7&&_94(mid,_a7[1]);if(_a7){mid=_a7[1]+mid.substring(_a7[3]);}_71=mid.match(/^([^\/]+)(\/(.+))?$/);pid=_71?_71[1]:"";if((_a4=_9e[pid])){mid=pid+"/"+(_a5=(_71[3]||_a4.main));}else{pid="";}var _ab=0,_ac=0;_9(_4c,function(_ad){var _ae=mid.match(_ad[0]);if(_ae&&_ae.length>_ab){_ac=_6(_ad[1])?mid.replace(_ad[0],_ad[1]):_ad[1];}});if(_ac){return _9c(_ac,0,_9e,_9f,_a0,_a1,_a2,_a3);}_a8=_9f[mid];if(_a8){return _a3?_82(_a8.pid,_a8.mid,_a8.pack,_a8.url):_9f[mid];}}_a7=_94(mid,_a2);if(_a7){url=_a7[1]+mid.substring(_a7[3]);}else{if(pid){url=_a4.location+"/"+_a5;}else{if(has("config-tlmSiblingOfDojo")){url="../"+mid;}else{url=mid;}}}if(!(/(^\/)|(\:)/.test(url))){url=_a0+url;}url+=".js";return _82(pid,mid,_a4,_96(url));},_5b=function(mid,_af){return _9c(mid,_af,_4f,_2f,req.baseUrl,_50,_4e);},_b0=function(_b1,_b2,_b3){return _b1.normalize?_b1.normalize(_b2,function(mid){return _b4(mid,_b3);}):_b4(_b2,_b3);},_b5=0,_31=function(mid,_b6,_b7){var _b8,_b9,_ba,_bb;_b8=mid.match(/^(.+?)\!(.*)$/);if(_b8){_b9=_31(_b8[1],_b6,_b7);if(1&&_25==_26&&!_b9.executed){_32(_b9);if(_b9.injected===_21&&!_b9.executed){_37(function(){_36(_b9);});}if(_b9.executed){_bc(_b9);}else{_30.unshift(_b9);}}if(_b9.executed===_24&&!_b9.load){_bc(_b9);}if(_b9.load){_ba=_b0(_b9,_b8[2],_b6);mid=(_b9.mid+"!"+(_b9.dynamic?++_b5+"!":"")+_ba);}else{_ba=_b8[2];mid=_b9.mid+"!"+(++_b5)+"!waitingForPlugin";}_bb={plugin:_b9,mid:mid,req:_5c(_b6),prid:_ba};}else{_bb=_5b(mid,_b6);}return _2f[_bb.mid]||(!_b7&&(_2f[_bb.mid]=_bb));},_b4=req.toAbsMid=function(mid,_bd){return _5b(mid,_bd).mid;},_5a=req.toUrl=function(_be,_bf){var _c0=_5b(_be+"/x",_bf),url=_c0.url;return _3f(_c0.pid===0?_be:url.substring(0,url.length-5));},_c1={injected:_21,executed:_24,def:_22,result:_22},_c2=function(mid){return _2f[mid]=_c({mid:mid},_c1);},_c3=_c2("require"),_c4=_c2("exports"),_c5=_c2("module"),_c6=function(_c7,_c8){req.trace("loader-run-factory",[_c7.mid]);var _c9=_c7.def,_ca;1&&_27.unshift(_c7);if(has("config-dojo-loader-catches")){try{_ca=_6(_c9)?_c9.apply(null,_c8):_c9;}catch(e){_34(_44,_c7.result=_f("factoryThrew",[_c7,e]));}}else{_ca=_6(_c9)?_c9.apply(null,_c8):_c9;}_c7.result=_ca===undefined&&_c7.cjs?_c7.cjs.exports:_ca;1&&_27.shift(_c7);},_cb={},_cc=0,_bc=function(_cd){var _ce=_cd.result;_cd.dynamic=_ce.dynamic;_cd.normalize=_ce.normalize;_cd.load=_ce.load;return _cd;},_cf=function(_d0){var map={};_9(_d0.loadQ,function(_d1){var _d2=_b0(_d0,_d1.prid,_d1.req.module),mid=_d0.dynamic?_d1.mid.replace(/waitingForPlugin$/,_d2):(_d0.mid+"!"+_d2),_d3=_c(_c({},_d1),{mid:mid,prid:_d2,injected:0});if(!_2f[mid]){_e5(_2f[mid]=_d3);}map[_d1.mid]=_2f[mid];_33(_d1);delete _2f[_d1.mid];});_d0.loadQ=0;var _d4=function(_d5){for(var _d6,_d7=_d5.deps||[],i=0;i<_d7.length;i++){_d6=map[_d7[i].mid];if(_d6){_d7[i]=_d6;}}};for(var p in _2f){_d4(_2f[p]);}_9(_30,_d4);},_35=function(_d8){req.trace("loader-finish-exec",[_d8.mid]);_d8.executed=_24;_d8.defOrder=_cc++;1&&_9(_d8.provides,function(cb){cb();});if(_d8.loadQ){_bc(_d8);_cf(_d8);}for(i=0;i<_30.length;){if(_30[i]===_d8){_30.splice(i,1);}else{i++;}}if(/^require\*/.test(_d8.mid)){delete _2f[_d8.mid];}},_d9=[],_36=function(_da,_db){if(_da.executed===_23){req.trace("loader-circular-dependency",[_d9.concat(_da.mid).join("->")]);return (!_da.def||_db)?_cb:(_da.cjs&&_da.cjs.exports);}if(!_da.executed){if(!_da.def){return _cb;}var mid=_da.mid,_dc=_da.deps||[],arg,_dd,_de=[],i=0;if(0){_d9.push(mid);req.trace("loader-exec-module",["exec",_d9.length,mid]);}_da.executed=_23;while(i<_dc.length){arg=_dc[i++];_dd=((arg===_c3)?_5c(_da):((arg===_c4)?_da.cjs.exports:((arg===_c5)?_da.cjs:_36(arg,_db))));if(_dd===_cb){_da.executed=0;req.trace("loader-exec-module",["abort",mid]);0&&_d9.pop();return _cb;}_de.push(_dd);}_c6(_da,_de);_35(_da);0&&_d9.pop();}return _da.result;},_84=0,_37=function(_df){try{_84++;_df();}finally{_84--;}if(_93()){_34("idle",[]);}},_7b=function(){if(_84){return;}_37(function(){_29();for(var _e0,_e1,i=0;i<_30.length;){_e0=_cc;_e1=_30[i];_36(_e1);if(_e0!=_cc){_29();i=0;}else{i++;}}});};if(0){req.undef=function(_e2,_e3){var _e4=_31(_e2,_e3);_33(_e4);delete _2f[_e4.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):"");},_e5=function(_e6){var _e7=_e6.plugin;if(_e7.executed===_24&&!_e7.load){_bc(_e7);}var _e8=function(def){_e6.result=def;_33(_e6);_35(_e6);_7b();};if(_e7.load){_e7.load(_e6.prid,_e6.req,_e8);}else{if(_e7.loadQ){_e7.loadQ.push(_e6);}else{_e7.loadQ=[_e6];_30.unshift(_e7);_32(_e7);}}},_8a=0,_7c=0,_e9=0,_8b=function(_ea,_eb){if(has("config-stripStrict")){_ea=_ea.replace(/"use strict"/g,"");}_e9=1;if(has("config-dojo-loader-catches")){try{if(_ea===_8a){_8a.call(null);}else{req.eval(_ea,has("dojo-loader-eval-hint-url")?_eb.url:_eb.mid);}}catch(e){_34(_44,_f("evalModuleThrew",_eb));}}else{if(_ea===_8a){_8a.call(null);}else{req.eval(_ea,has("dojo-loader-eval-hint-url")?_eb.url:_eb.mid);}}_e9=0;},_32=function(_ec){var mid=_ec.mid,url=_ec.url;if(_ec.executed||_ec.injected||_8d[mid]||(_ec.url&&((_ec.pack&&_8d[_ec.url]===_ec.pack)||_8d[_ec.url]==1))){return;}_8e(_ec);if(0){var _ed=0;if(_ec.plugin&&_ec.plugin.isCombo){req.combo.add(_ec.plugin.mid,_ec.prid,0,req);_ed=1;}else{if(!_ec.plugin){_ed=req.combo.add(0,_ec.mid,_ec.url,req);}}if(_ed){_73=1;return;}}if(_ec.plugin){_e5(_ec);return;}var _ee=function(){_7a(_ec);if(_ec.injected!==_21){_33(_ec);_c(_ec,_c1);req.trace("loader-define-nonmodule",[_ec.url]);}if(1&&_25){!_27.length&&_7b();}else{_7b();}};_8a=_52[mid]||_52[_53+_ec.url];if(_8a){req.trace("loader-inject",["cache",_ec.mid,url]);_8b(_8a,_ec);_ee();return;}if(1&&_25){if(_ec.isXd){_25==_26&&(_25=xd);}else{if(_ec.isAmd&&_25!=_26){}else{var _ef=function(_f0){if(_25==_26){_27.unshift(_ec);_8b(_f0,_ec);_27.shift();_7a(_ec);if(!_ec.cjs){_33(_ec);_35(_ec);}if(_ec.finish){var _f1=mid+"*finish",_f2=_ec.finish;delete _ec.finish;def(_f1,["dojo",("dojo/require!"+_f2.join(",")).replace(/\./g,"/")],function(_f3){_9(_f2,function(mid){_f3.require(mid);});});_30.unshift(_31(_f1));}_ee();}else{_f0=_2a(_ec,_f0);if(_f0){_8b(_f0,_ec);_ee();}else{_7c=_ec;req.injectUrl(_3f(url),_ee,_ec);_7c=0;}}};req.trace("loader-inject",["xhr",_ec.mid,url,_25!=_26]);if(has("config-dojo-loader-catches")){try{req.getText(url,_25!=_26,_ef);}catch(e){_34(_44,_f("xhrInjectFailed",[_ec,e]));}}else{req.getText(url,_25!=_26,_ef);}return;}}}req.trace("loader-inject",["script",_ec.mid,url]);_7c=_ec;req.injectUrl(_3f(url),_ee,_ec);_7c=0;},_f4=function(_f5,_f6,def){req.trace("loader-define-module",[_f5.mid,_f6]);if(0&&_f5.plugin&&_f5.plugin.isCombo){_f5.result=_6(def)?def():def;_33(_f5);_35(_f5);return _f5;}var mid=_f5.mid;if(_f5.injected===_21){_34(_44,_f("multipleDefine",_f5));return _f5;}_c(_f5,{deps:_f6,def:def,cjs:{id:_f5.mid,uri:_f5.url,exports:(_f5.result={}),setExports:function(_f7){_f5.cjs.exports=_f7;},config:function(){return _f5.config;}}});for(var i=0;i<_f6.length;i++){_f6[i]=_31(_f6[i],_f5);}if(1&&_25&&!_8d[mid]){_76(_f5);_30.push(_f5);_7b();}_33(_f5);if(!_6(def)&&!_f6.length){_f5.result=def;_35(_f5);}return _f5;},_7a=function(_f8,_f9){var _fa=[],_fb,_fc;while(_8c.length){_fc=_8c.shift();_f9&&(_fc[0]=_f9.shift());_fb=(_fc[0]&&_31(_fc[0]))||_f8;_fa.push([_fb,_fc[1],_fc[2]]);}_56(_f8);_9(_fa,function(_fd){_76(_f4.apply(null,_fd));});};}var _fe=0,_92=_3,_90=_3;if(1){_92=function(){_fe&&clearTimeout(_fe);_fe=0;},_90=function(){_92();if(req.waitms){_fe=window.setTimeout(function(){_92();_34(_44,_f("timeout",_8d));},req.waitms);}};}if(1){has.add("ie-event-behavior",!!doc.attachEvent&&(typeof opera==="undefined"||opera.toString()!="[object Opera]"));}if(1&&(1||1)){var _ff=function(node,_100,_101,_102){if(!has("ie-event-behavior")){node.addEventListener(_100,_102,false);return function(){node.removeEventListener(_100,_102,false);};}else{node.attachEvent(_101,_102);return function(){node.detachEvent(_101,_102);};}},_103=_ff(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=_ff(node,"load","onreadystatechange",_108),_10a=_ff(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&&!_8d[_115.mid]){_76(_f4(_115,args[1],args[2]));}else{if(!has("ie-event-behavior")||!1||_e9){_8c.push(args);}else{_115=_115||_7c;if(!_115){for(mid in _8d){_116=_2f[mid];if(_116&&_116.node&&_116.node.readyState==="interactive"){_115=_116;break;}}if(0&&!_115){for(var i=0;i<_74.length;i++){_115=_74[i];if(_115.node&&_115.node.readyState==="interactive"){break;}_115=0;}}}if(0&&_8(_115)){_76(_f4(_31(_115.shift()),args[1],args[2]));if(!_115.length){_74.splice(i,1);}}else{if(_115){_56(_115);_76(_f4(_115,args[1],args[2]));}else{_34(_44,_f("ieDefineFailed",args[0]));}}_7b();}}};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:_8c,waiting:_8d,packs:_4f,mapProgs:_50,pathsMapProg:_4e,listenerQueues:_43,computeMapProg:_5e,runMapProg:_94,compactPath:_96,getModuleInfo:_9c});}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){_9(_63,function(c){_64(c);});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:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:"../doh",name:"doh"},{location:"../todo",name:"todo"},{location:".",name:"dojo"}]});require({cache:{"dojo/domReady":function(){define("dojo/domReady",["./has"],function(has){var _11b=this,doc=document,_11c={"loaded":1,"complete":1},_11d=typeof doc.readyState!="string",_11e=!!_11c[doc.readyState];if(_11d){doc.readyState="loading";}if(!_11e){var _11f=[],_120=[],_121=function(evt){evt=evt||_11b.event;if(_11e||(evt.type=="readystatechange"&&!_11c[doc.readyState])){return;}_11e=1;if(_11d){doc.readyState="complete";}while(_11f.length){(_11f.shift())(doc);}},on=function(node,_122){node.addEventListener(_122,_121,false);_11f.push(function(){node.removeEventListener(_122,_121,false);});};if(!has("dom-addeventlistener")){on=function(node,_123){_123="on"+_123;node.attachEvent(_123,_121);_11f.push(function(){node.detachEvent(_123,_121);});};var div=doc.createElement("div");try{if(div.doScroll&&_11b.frameElement===null){_120.push(function(){try{div.doScroll("left");return 1;}catch(e){}});}}catch(e){}}on(doc,"DOMContentLoaded");on(_11b,"load");if("onreadystatechange" in doc){on(doc,"readystatechange");}else{if(!_11d){_120.push(function(){return _11c[doc.readyState];});}}if(_120.length){var _124=function(){if(_11e){return;}var i=_120.length;while(i--){if(_120[i]()){_121("poller");return;}}setTimeout(_124,30);};_124();}}function _125(_126){if(_11e){_126(doc);}else{_11f.push(_126);}};_125.load=function(id,req,load){_125(load);};return _125;});},"dojo/has":function(){define("dojo/has",["require","module"],function(_127,_128){var has=_127.has||function(){};if(!1){var _129=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,_12a=this,doc=_129&&document,_12b=doc&&doc.createElement("DiV"),_12c=(_128.config&&_128.config())||{};has=function(name){return typeof _12c[name]=="function"?(_12c[name]=_12c[name](_12a,doc,_12b)):_12c[name];};has.cache=_12c;has.add=function(name,test,now,_12d){(typeof _12c[name]=="undefined"||_12d)&&(_12c[name]=test);return now&&has(name);};1||has.add("host-browser",_129);1||has.add("dom",_129);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(_12e){_12e.innerHTML="";return _12e;};has.normalize=function(id,_12f){var _130=id.match(/[\?:]|[^:\?]*/g),i=0,get=function(skip){var term=_130[i++];if(term==":"){return 0;}else{if(_130[i++]=="?"){if(!skip&&has(term)){return get();}else{get(true);return get(skip);}}return term||0;}};id=get();return id&&_12f(id);};has.load=function(id,_131,_132){if(id){_131([id],_132);}else{_132();}};return has;});},"dojo/parser":function(){define("dojo/parser",["require","./_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(_133,dojo,_134,_135,_136,_137,_138,_139,_13a,_13b,_13c,_13d,has,_13e,don,_13f){new Date("X");var _140=0;_13b.after(_134,"extend",function(){_140++;},true);function _141(ctor){var map=ctor._nameCaseMap,_142=ctor.prototype;if(!map||map._extendCnt<_140){map=ctor._nameCaseMap={};for(var name in _142){if(name.charAt(0)==="_"){continue;}map[name.toLowerCase()]=name;}map._extendCnt=_140;}return map;};var _143={};function _144(_145){var ts=_145.join();if(!_143[ts]){var _146=[];for(var i=0,l=_145.length;i<l;i++){var t=_145[i];_146[_146.length]=(_143[t]=_143[t]||(_134.getObject(t)||(~t.indexOf("/")&&_133(t))));}var ctor=_146.shift();_143[ts]=_146.length?(ctor.createSubclass?ctor.createSubclass(_146):ctor.extend.apply(ctor,_146)):ctor;}return _143[ts];};var _147={_clearCache:function(){_140++;_143={};},_functionFromScript:function(_148,_149){var _14a="",_14b="",_14c=(_148.getAttribute(_149+"args")||_148.getAttribute("args")),_14d=_148.getAttribute("with");var _14e=(_14c||"").split(/\s*,\s*/);if(_14d&&_14d.length){_135.forEach(_14d.split(/\s*,\s*/),function(part){_14a+="with("+part+"){";_14b+="}";});}return new Function(_14e,_14a+_148.innerHTML+_14b);},instantiate:function(_14f,_150,_151){_150=_150||{};_151=_151||{};var _152=(_151.scope||dojo._scopeName)+"Type",_153="data-"+(_151.scope||dojo._scopeName)+"-",_154=_153+"type",_155=_153+"mixins";var list=[];_135.forEach(_14f,function(node){var type=_152 in _150?_150[_152]:node.getAttribute(_154)||node.getAttribute(_152);if(type){var _156=node.getAttribute(_155),_157=_156?[type].concat(_156.split(/\s*,\s*/)):[type];list.push({node:node,types:_157});}});return this._instantiate(list,_150,_151);},_instantiate:function(_158,_159,_15a){var _15b=_135.map(_158,function(obj){var ctor=obj.ctor||_144(obj.types);if(!ctor){throw new Error("Unable to resolve constructor for: '"+obj.types.join()+"'");}return this.construct(ctor,obj.node,_159,_15a,obj.scripts,obj.inherited);},this);if(!_159._started&&!_15a.noStart){_135.forEach(_15b,function(_15c){if(typeof _15c.startup==="function"&&!_15c._started){_15c.startup();}});}return _15b;},construct:function(ctor,node,_15d,_15e,_15f,_160){var _161=ctor&&ctor.prototype;_15e=_15e||{};var _162={};if(_15e.defaults){_134.mixin(_162,_15e.defaults);}if(_160){_134.mixin(_162,_160);}var _163;if(has("dom-attributes-explicit")){_163=node.attributes;}else{if(has("dom-attributes-specified-flag")){_163=_135.filter(node.attributes,function(a){return a.specified;});}else{var _164=/^input$|^img$/i.test(node.nodeName)?node:node.cloneNode(false),_165=_164.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*\s*/,"").replace(/\s*>.*$/,"");_163=_135.map(_165.split(/\s+/),function(name){var _166=name.toLowerCase();return {name:name,value:(node.nodeName=="LI"&&name=="value")||_166=="enctype"?node.getAttribute(_166):node.getAttributeNode(_166).value};});}}var _167=_15e.scope||dojo._scopeName,_168="data-"+_167+"-",hash={};if(_167!=="dojo"){hash[_168+"props"]="data-dojo-props";hash[_168+"type"]="data-dojo-type";hash[_168+"mixins"]="data-dojo-mixins";hash[_167+"type"]="dojoType";hash[_168+"id"]="data-dojo-id";}var i=0,item,_169=[],_16a,_16b;while(item=_163[i++]){var name=item.name,_16c=name.toLowerCase(),_16d=item.value;switch(hash[_16c]||_16c){case "data-dojo-type":case "dojotype":case "data-dojo-mixins":break;case "data-dojo-props":_16b=_16d;break;case "data-dojo-id":case "jsid":_16a=_16d;break;case "data-dojo-attach-point":case "dojoattachpoint":_162.dojoAttachPoint=_16d;break;case "data-dojo-attach-event":case "dojoattachevent":_162.dojoAttachEvent=_16d;break;case "class":_162["class"]=node.className;break;case "style":_162["style"]=node.style&&node.style.cssText;break;default:if(!(name in _161)){var map=_141(ctor);name=map[_16c]||name;}if(name in _161){switch(typeof _161[name]){case "string":_162[name]=_16d;break;case "number":_162[name]=_16d.length?Number(_16d):NaN;break;case "boolean":_162[name]=_16d.toLowerCase()!="false";break;case "function":if(_16d===""||_16d.search(/[^\w\.]+/i)!=-1){_162[name]=new Function(_16d);}else{_162[name]=_134.getObject(_16d,false)||new Function(_16d);}_169.push(name);break;default:var pVal=_161[name];_162[name]=(pVal&&"length" in pVal)?(_16d?_16d.split(/\s*,\s*/):[]):(pVal instanceof Date)?(_16d==""?new Date(""):_16d=="now"?new Date():_13c.fromISOString(_16d)):(pVal instanceof _139)?(dojo.baseUrl+_16d):_13a.fromJson(_16d);}}else{_162[name]=_16d;}}}for(var j=0;j<_169.length;j++){var _16e=_169[j].toLowerCase();node.removeAttribute(_16e);node[_16e]=null;}if(_16b){try{_16b=_13a.fromJson.call(_15e.propsThis,"{"+_16b+"}");_134.mixin(_162,_16b);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_16b+"'");}}_134.mixin(_162,_15d);if(!_15f){_15f=(ctor&&(ctor._noScript||_161._noScript)?[]:_13e("> script[type^='dojo/']",node));}var _16f=[],_170=[],_171=[],ons=[];if(_15f){for(i=0;i<_15f.length;i++){var _172=_15f[i];node.removeChild(_172);var _173=(_172.getAttribute(_168+"event")||_172.getAttribute("event")),prop=_172.getAttribute(_168+"prop"),_174=_172.getAttribute(_168+"method"),_175=_172.getAttribute(_168+"advice"),_176=_172.getAttribute("type"),nf=this._functionFromScript(_172,_168);if(_173){if(_176=="dojo/connect"){_16f.push({method:_173,func:nf});}else{if(_176=="dojo/on"){ons.push({event:_173,func:nf});}else{_162[_173]=nf;}}}else{if(_176=="dojo/aspect"){_16f.push({method:_174,advice:_175,func:nf});}else{if(_176=="dojo/watch"){_171.push({prop:prop,func:nf});}else{_170.push(nf);}}}}}var _177=ctor.markupFactory||_161.markupFactory;var _178=_177?_177(_162,node,ctor):new ctor(_162,node);if(_16a){_134.setObject(_16a,_178);}for(i=0;i<_16f.length;i++){_13b[_16f[i].advice||"after"](_178,_16f[i].method,_134.hitch(_178,_16f[i].func),true);}for(i=0;i<_170.length;i++){_170[i].call(_178);}for(i=0;i<_171.length;i++){_178.watch(_171[i].prop,_171[i].func);}for(i=0;i<ons.length;i++){don(_178,ons[i].event,ons[i].func);}return _178;},scan:function(root,_179){var list=[],mids=[],_17a={};var _17b=(_179.scope||dojo._scopeName)+"Type",_17c="data-"+(_179.scope||dojo._scopeName)+"-",_17d=_17c+"type",_17e=_17c+"textdir",_17f=_17c+"mixins";var node=root.firstChild;var _180=_179.inherited;if(!_180){function _181(node,attr){return (node.getAttribute&&node.getAttribute(attr))||(node.parentNode&&_181(node.parentNode,attr));};_180={dir:_181(root,"dir"),lang:_181(root,"lang"),textDir:_181(root,_17e)};for(var key in _180){if(!_180[key]){delete _180[key];}}}var _182={inherited:_180};var _183;var _184;function _185(_186){if(!_186.inherited){_186.inherited={};var node=_186.node,_187=_185(_186.parent);var _188={dir:node.getAttribute("dir")||_187.dir,lang:node.getAttribute("lang")||_187.lang,textDir:node.getAttribute(_17e)||_187.textDir};for(var key in _188){if(_188[key]){_186.inherited[key]=_188[key];}}}return _186.inherited;};while(true){if(!node){if(!_182||!_182.node){break;}node=_182.node.nextSibling;_184=false;_182=_182.parent;_183=_182.scripts;continue;}if(node.nodeType!=1){node=node.nextSibling;continue;}if(_183&&node.nodeName.toLowerCase()=="script"){type=node.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_183.push(node);}node=node.nextSibling;continue;}if(_184){node=node.nextSibling;continue;}var type=node.getAttribute(_17d)||node.getAttribute(_17b);var _189=node.firstChild;if(!type&&(!_189||(_189.nodeType==3&&!_189.nextSibling))){node=node.nextSibling;continue;}var _18a;var ctor=null;if(type){var _18b=node.getAttribute(_17f),_18c=_18b?[type].concat(_18b.split(/\s*,\s*/)):[type];try{ctor=_144(_18c);}catch(e){}if(!ctor){_135.forEach(_18c,function(t){if(~t.indexOf("/")&&!_17a[t]){_17a[t]=true;mids[mids.length]=t;}});}var _18d=ctor&&!ctor.prototype._noScript?[]:null;_18a={types:_18c,ctor:ctor,parent:_182,node:node,scripts:_18d};_18a.inherited=_185(_18a);list.push(_18a);}else{_18a={node:node,scripts:_183,parent:_182};}node=_189;_183=_18d;_184=ctor&&ctor.prototype.stopParser&&!(_179.template);_182=_18a;}var d=new _13d();if(mids.length){if(has("dojo-debug-messages")){console.warn("WARNING: Modules being Auto-Required: "+mids.join(", "));}_133(mids,function(){d.resolve(_135.filter(list,function(_18e){if(!_18e.ctor){try{_18e.ctor=_144(_18e.types);}catch(e){}}var _18f=_18e.parent;while(_18f&&!_18f.types){_18f=_18f.parent;}var _190=_18e.ctor&&_18e.ctor.prototype;_18e.instantiateChildren=!(_190&&_190.stopParser&&!(_179.template));_18e.instantiate=!_18f||(_18f.instantiate&&_18f.instantiateChildren);return _18e.instantiate;}));});}else{d.resolve(list);}return d.promise;},_require:function(_191){var hash=_13a.fromJson("{"+_191.innerHTML+"}"),vars=[],mids=[],d=new _13d();for(var name in hash){vars.push(name);mids.push(hash[name]);}_133(mids,function(){for(var i=0;i<vars.length;i++){_134.setObject(vars[i],arguments[i]);}d.resolve(arguments);});return d.promise;},_scanAmd:function(root){var _192=new _13d(),_193=_192.promise;_192.resolve(true);var self=this;_13e("script[type='dojo/require']",root).forEach(function(node){_193=_193.then(function(){return self._require(node);});node.parentNode.removeChild(node);});return _193;},parse:function(_194,_195){var root;if(!_195&&_194&&_194.rootNode){_195=_194;root=_195.rootNode;}else{if(_194&&_134.isObject(_194)&&!("nodeType" in _194)){_195=_194;}else{root=_194;}}root=root?_137.byId(root):_138.body();_195=_195||{};var _196=_195.template?{template:true}:{},_197=[],self=this;var p=this._scanAmd(root,_195).then(function(){return self.scan(root,_195);}).then(function(_198){return _197=_197.concat(self._instantiate(_198,_196,_195));}).otherwise(function(e){console.error("dojo/parser::parse() error",e);throw e;});_134.mixin(_197,p);return _197;}};if(1){dojo.parser=_147;}if(_136.parseOnLoad){_13f(100,_147,"parse");}return _147;});},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(has,_199,_19a,_19b){var i,p,_19c={},_19d={},dojo={config:_199,global:this,dijit:_19c,dojox:_19d};var _19e={dojo:["dojo",dojo],dijit:["dijit",_19c],dojox:["dojox",_19d]},_19f=(_19a.map&&_19a.map[_19b.id.match(/[^\/]+/)[0]]),item;for(p in _19f){if(_19e[p]){_19e[p][0]=_19f[p];}else{_19e[p]=[_19f[p],{}];}}for(p in _19e){item=_19e[p];item[1]._scopeName=item[0];if(!_199.noGlobals){this[item[0]]=item[1];}}dojo.scopeMap=_19e;dojo.baseUrl=dojo.config.baseUrl=_19a.baseUrl;dojo.isAsync=!1||_19a.async;dojo.locale=_199.locale;var rev="$Rev: 30226 $".match(/\d+/);dojo.version={major:1,minor:8,patch:3,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(_1a0){quit(_1a0);};}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",!!_199.isDebug);dojo.deprecated=dojo.experimental=function(){};if(has("dojo-debug-messages")){dojo.deprecated=function(_1a1,_1a2,_1a3){var _1a4="DEPRECATED: "+_1a1;if(_1a2){_1a4+=" "+_1a2;}if(_1a3){_1a4+=" -- will be removed in version: "+_1a3;}console.warn(_1a4);};dojo.experimental=function(_1a5,_1a6){var _1a7="EXPERIMENTAL: "+_1a5+" -- APIs subject to change without notice.";if(_1a6){_1a7+=" "+_1a6;}console.warn(_1a7);};}1||has.add("dojo-modulePaths",1);if(1){if(_199.modulePaths){dojo.deprecated("dojo.modulePaths","use paths configuration");var _1a8={};for(p in _199.modulePaths){_1a8[p.replace(/\./g,"/")]=_199.modulePaths[p];}_19a({paths:_1a8});}}1||has.add("dojo-moduleUrl",1);if(1){dojo.moduleUrl=function(_1a9,url){dojo.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var _1aa=null;if(_1a9){_1aa=_19a.toUrl(_1a9.replace(/\./g,"/")+(url?("/"+url):"")+"/*.*").replace(/\/\*\.\*/,"")+(url?"":"/");}return _1aa;};}dojo._hasResource={};return dojo;});},"dojo/_base/config":function(){define(["../has","require"],function(has,_1ab){var _1ac={};if(1){var src=_1ab.rawConfig,p;for(p in src){_1ac[p]=src[p];}}else{var _1ad=function(_1ae,_1af,_1b0){for(p in _1ae){p!="has"&&has.add(_1af+p,_1ae[p],0,_1b0);}};_1ac=1?_1ab.rawConfig:this.dojoConfig||this.djConfig||{};_1ad(_1ac,"config",1);_1ad(_1ac.has,"",1);}return _1ac;});},"dojo/_base/lang":function(){define(["./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 _1b1=has("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],_1b2=_1b1.length,_1b3=function(_1b4,_1b5,_1b6){var p,i=0,_1b7=dojo.global;if(!_1b6){if(!_1b4.length){return _1b7;}else{p=_1b4[i++];try{_1b6=dojo.scopeMap[p]&&dojo.scopeMap[p][1];}catch(e){}_1b6=_1b6||(p in _1b7?_1b7[p]:(_1b5?_1b7[p]={}:undefined));}}while(_1b6&&(p=_1b4[i++])){_1b6=(p in _1b6?_1b6[p]:(_1b5?_1b6[p]={}:undefined));}return _1b6;},opts=Object.prototype.toString,_1b8=function(obj,_1b9,_1ba){return (_1ba||[]).concat(Array.prototype.slice.call(obj,_1b9||0));},_1bb=/\{([^\}]+)\}/g;var lang={_extraNames:_1b1,_mixin:function(dest,_1bc,_1bd){var name,s,i,_1be={};for(name in _1bc){s=_1bc[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _1be)||_1be[name]!==s))){dest[name]=_1bd?_1bd(s):s;}}if(has("bug-for-in-skips-shadowed")){if(_1bc){for(i=0;i<_1b2;++i){name=_1b1[i];s=_1bc[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _1be)||_1be[name]!==s))){dest[name]=_1bd?_1bd(s):s;}}}}return dest;},mixin:function(dest,_1bf){if(!dest){dest={};}for(var i=1,l=arguments.length;i<l;i++){lang._mixin(dest,arguments[i]);}return dest;},setObject:function(name,_1c0,_1c1){var _1c2=name.split("."),p=_1c2.pop(),obj=_1b3(_1c2,true,_1c1);return obj&&p?(obj[p]=_1c0):undefined;},getObject:function(name,_1c3,_1c4){return _1b3(name.split("."),_1c3,_1c4);},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,_1c5){for(var i=1,l=arguments.length;i<l;i++){lang._mixin(ctor.prototype,arguments[i]);}return ctor;},_hitchArgs:function(_1c6,_1c7){var pre=lang._toArray(arguments,2);var _1c8=lang.isString(_1c7);return function(){var args=lang._toArray(arguments);var f=_1c8?(_1c6||dojo.global)[_1c7]:_1c7;return f&&f.apply(_1c6||this,pre.concat(args));};},hitch:function(_1c9,_1ca){if(arguments.length>2){return lang._hitchArgs.apply(dojo,arguments);}if(!_1ca){_1ca=_1c9;_1c9=null;}if(lang.isString(_1ca)){_1c9=_1c9||dojo.global;if(!_1c9[_1ca]){throw (["lang.hitch: scope[\"",_1ca,"\"] is null (scope=\"",_1c9,"\")"].join(""));}return function(){return _1c9[_1ca].apply(_1c9,arguments||[]);};}return !_1c9?_1ca:function(){return _1ca.apply(_1c9,arguments||[]);};},delegate:(function(){function TMP(){};return function(obj,_1cb){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_1cb){lang._mixin(tmp,_1cb);}return tmp;};})(),_toArray:has("ie")?(function(){function slow(obj,_1cc,_1cd){var arr=_1cd||[];for(var x=_1cc||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};return function(obj){return ((obj.item)?slow:_1b8).apply(this,arguments);};})():_1b8,partial:function(_1ce){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,_1cf){return tmpl.replace(_1cf||_1bb,lang.isFunction(map)?map:function(_1d0,k){return lang.getObject(k,false,map);});}};1&&lang.mixin(dojo,lang);return lang;});},"dojo/sniff":function(){define("dojo/sniff",["./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/array":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var _1d1={},u;function _1d2(fn){return _1d1[fn]=new Function("item","index","array",fn);};function _1d3(some){var _1d4=!some;return function(a,fn,o){var i=0,l=a&&a.length||0,_1d5;if(l&&typeof a=="string"){a=a.split("");}if(typeof fn=="string"){fn=_1d1[fn]||_1d2(fn);}if(o){for(;i<l;++i){_1d5=!fn.call(o,a[i],i,a);if(some^_1d5){return !_1d5;}}}else{for(;i<l;++i){_1d5=!fn(a[i],i,a);if(some^_1d5){return !_1d5;}}}return _1d4;};};function _1d6(up){var _1d7=1,_1d8=0,_1d9=0;if(!up){_1d7=_1d8=_1d9=-1;}return function(a,x,from,last){if(last&&_1d7>0){return _1da.lastIndexOf(a,x,from);}var l=a&&a.length||0,end=up?l+_1d9:_1d8,i;if(from===u){i=up?_1d8:l+_1d9;}else{if(from<0){i=l+from;if(i<0){i=_1d8;}}else{i=from>=l?l+_1d9:from;}}if(l&&typeof a=="string"){a=a.split("");}for(;i!=end;i+=_1d7){if(a[i]==x){return i;}}return -1;};};var _1da={every:_1d3(false),some:_1d3(true),indexOf:_1d6(true),lastIndexOf:_1d6(false),forEach:function(arr,_1db,_1dc){var i=0,l=arr&&arr.length||0;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _1db=="string"){_1db=_1d1[_1db]||_1d2(_1db);}if(_1dc){for(;i<l;++i){_1db.call(_1dc,arr[i],i,arr);}}else{for(;i<l;++i){_1db(arr[i],i,arr);}}},map:function(arr,_1dd,_1de,Ctr){var i=0,l=arr&&arr.length||0,out=new (Ctr||Array)(l);if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _1dd=="string"){_1dd=_1d1[_1dd]||_1d2(_1dd);}if(_1de){for(;i<l;++i){out[i]=_1dd.call(_1de,arr[i],i,arr);}}else{for(;i<l;++i){out[i]=_1dd(arr[i],i,arr);}}return out;},filter:function(arr,_1df,_1e0){var i=0,l=arr&&arr.length||0,out=[],_1e1;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _1df=="string"){_1df=_1d1[_1df]||_1d2(_1df);}if(_1e0){for(;i<l;++i){_1e1=arr[i];if(_1df.call(_1e0,_1e1,i,arr)){out.push(_1e1);}}}else{for(;i<l;++i){_1e1=arr[i];if(_1df(_1e1,i,arr)){out.push(_1e1);}}}return out;},clearCache:function(){_1d1={};}};1&&lang.mixin(dojo,_1da);return _1da;});},"dojo/_base/html":function(){define(["./kernel","../dom","../dom-style","../dom-attr","../dom-prop","../dom-class","../dom-construct","../dom-geometry"],function(dojo,dom,_1e2,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,_1e3){if(arguments.length==2){return attr[typeof name=="string"?"get":"set"](node,name);}return attr.set(node,name,_1e3);};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,_1e4){dojo.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");node=dom.byId(node);var s=_1e2.getComputedStyle(node),mb=geom.getMarginBox(node,s);var abs=geom.position(node,_1e4);mb.x=abs.x;mb.y=abs.y;return mb;};dojo.getProp=prop.get;dojo.setProp=prop.set;dojo.prop=function(node,name,_1e5){if(arguments.length==2){return prop[typeof name=="string"?"get":"set"](node,name);}return prop.set(node,name,_1e5);};dojo.getStyle=_1e2.get;dojo.setStyle=_1e2.set;dojo.getComputedStyle=_1e2.getComputedStyle;dojo.__toPixelValue=dojo.toPixelValue=_1e2.toPixelValue;dojo.style=function(node,name,_1e6){switch(arguments.length){case 1:return _1e2.get(node);case 2:return _1e2[typeof name=="string"?"get":"set"](node,name);}return _1e2.set(node,name,_1e6);};return dojo;});},"dojo/dom":function(){define("dojo/dom",["./sniff","./_base/window"],function(has,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 _1e7=doc||win.doc,te=id&&_1e7.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_1e7.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,_1e8){try{node=dom.byId(node);_1e8=dom.byId(_1e8);while(node){if(node==_1e8){return true;}node=node.parentNode;}}catch(e){}return false;};has.add("css-user-select",function(_1e9,doc,_1ea){if(!_1ea){return false;}var _1eb=_1ea.style;var _1ec=["Khtml","O","ms","Moz","Webkit"],i=_1ec.length,name="userSelect",_1ed;do{if(typeof _1eb[name]!=="undefined"){return name;}}while(i--&&(name=_1ec[i]+"UserSelect"));return false;});var _1ee=has("css-user-select");dom.setSelectable=_1ee?function(node,_1ef){dom.byId(node).style[_1ee]=_1ef?"":"none";}:function(node,_1f0){node=dom.byId(node);var _1f1=node.getElementsByTagName("*"),i=_1f1.length;if(_1f0){node.removeAttribute("unselectable");while(i--){_1f1[i].removeAttribute("unselectable");}}else{node.setAttribute("unselectable","on");while(i--){_1f1[i].setAttribute("unselectable","on");}}};return dom;});},"dojo/_base/window":function(){define(["./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(_1f2,_1f3){dojo.global=ret.global=_1f2;dojo.doc=ret.doc=_1f3;},withGlobal:function(_1f4,_1f5,_1f6,_1f7){var _1f8=dojo.global;try{dojo.global=ret.global=_1f4;return ret.withDoc.call(null,_1f4.document,_1f5,_1f6,_1f7);}finally{dojo.global=ret.global=_1f8;}},withDoc:function(_1f9,_1fa,_1fb,_1fc){var _1fd=ret.doc,oldQ=has("quirks"),_1fe=has("ie"),isIE,mode,pwin;try{dojo.doc=ret.doc=_1f9;dojo.isQuirks=has.add("quirks",dojo.doc.compatMode=="BackCompat",true,true);if(has("ie")){if((pwin=_1f9.parentWindow)&&pwin.navigator){isIE=parseFloat(pwin.navigator.appVersion.split("MSIE ")[1])||undefined;mode=_1f9.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}dojo.isIE=has.add("ie",isIE,true,true);}}if(_1fb&&typeof _1fa=="string"){_1fa=_1fb[_1fa];}return _1fa.apply(_1fb,_1fc||[]);}finally{dojo.doc=ret.doc=_1fd;dojo.isQuirks=has.add("quirks",oldQ,true,true);dojo.isIE=has.add("ie",_1fe,true,true);}}};1&&lang.mixin(dojo,ret);return ret;});},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(has,dom){var _1ff,_200={};if(has("webkit")){_1ff=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"))){_1ff=function(node){return node.nodeType==1&&node.currentStyle?node.currentStyle:{};};}else{_1ff=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}_200.getComputedStyle=_1ff;var _201;if(!has("ie")){_201=function(_202,_203){return parseFloat(_203)||0;};}else{_201=function(_204,_205){if(!_205){return 0;}if(_205=="medium"){return 4;}if(_205.slice&&_205.slice(-2)=="px"){return parseFloat(_205);}var s=_204.style,rs=_204.runtimeStyle,cs=_204.currentStyle,_206=s.left,_207=rs.left;rs.left=cs.left;try{s.left=_205;_205=s.pixelLeft;}catch(e){_205=0;}s.left=_206;rs.left=_207;return _205;};}_200.toPixelValue=_201;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};var _208=has("ie")<9||(has("ie")<10&&has("quirks"))?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return _1ff(node).opacity;};var _209=has("ie")<9||(has("ie")<10&&has("quirks"))?function(node,_20a){var ov=_20a*100,_20b=_20a==1;node.style.zoom=_20b?"":1;if(!af(node)){if(_20b){return _20a;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_20b;if(node.tagName.toLowerCase()=="tr"){for(var td=node.firstChild;td;td=td.nextSibling){if(td.tagName.toLowerCase()=="td"){_209(td,_20a);}}}return _20a;}:function(node,_20c){return node.style.opacity=_20c;};var _20d={left:true,top:true};var _20e=/margin|padding|width|height|max|min|offset/;function _20f(node,type,_210){type=type.toLowerCase();if(has("ie")){if(_210=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_210){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _20d)){_20d[type]=_20e.test(type);}return _20d[type]?_201(node,_210):_210;};var _211=has("ie")?"styleFloat":"cssFloat",_212={"cssFloat":_211,"styleFloat":_211,"float":_211};_200.get=function getStyle(node,name){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");if(l==2&&op){return _208(n);}name=_212[name]||name;var s=_200.getComputedStyle(n);return (l==1)?s:_20f(n,name,s[name]||n.style[name]);};_200.set=function setStyle(node,name,_213){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");name=_212[name]||name;if(l==3){return op?_209(n,_213):n.style[name]=_213;}for(var x in name){_200.set(node,x,name[x]);}return _200.getComputedStyle(n);};return _200;});},"dojo/dom-attr":function(){define("dojo/dom-attr",["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],function(_214,has,lang,dom,_215,prop){var _216={innerHTML:1,className:1,htmlFor:has("ie"),value:1},_217={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function _218(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};_214.has=function hasAttr(node,name){var lc=name.toLowerCase();return _216[prop.names[lc]||name]||_218(dom.byId(node),_217[lc]||name);};_214.get=function getAttr(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_219=prop.names[lc]||name,_21a=_216[_219],_21b=node[_219];if(_21a&&typeof _21b!="undefined"){return _21b;}if(_219!="href"&&(typeof _21b=="boolean"||lang.isFunction(_21b))){return _21b;}var _21c=_217[lc]||name;return _218(node,_21c)?node.getAttribute(_21c):null;};_214.set=function setAttr(node,name,_21d){node=dom.byId(node);if(arguments.length==2){for(var x in name){_214.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_21e=prop.names[lc]||name,_21f=_216[_21e];if(_21e=="style"&&typeof _21d!="string"){_215.set(node,_21d);return node;}if(_21f||typeof _21d=="boolean"||lang.isFunction(_21d)){return prop.set(node,name,_21d);}node.setAttribute(_217[lc]||name,_21d);return node;};_214.remove=function removeAttr(node,name){dom.byId(node).removeAttribute(_217[name.toLowerCase()]||name);};_214.getNodeProp=function getNodeProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_220=prop.names[lc]||name;if((_220 in node)&&_220!="href"){return node[_220];}var _221=_217[lc]||name;return _218(node,_221)?node.getAttribute(_221):null;};});},"dojo/dom-prop":function(){define("dojo/dom-prop",["exports","./_base/kernel","./sniff","./_base/lang","./dom","./dom-style","./dom-construct","./_base/connect"],function(_222,dojo,has,lang,dom,_223,ctr,conn){var _224={},_225=0,_226=dojo._scopeName+"attrid";_222.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};_222.get=function getProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_227=_222.names[lc]||name;return node[_227];};_222.set=function setProp(node,name,_228){node=dom.byId(node);var l=arguments.length;if(l==2&&typeof name!="string"){for(var x in name){_222.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_229=_222.names[lc]||name;if(_229=="style"&&typeof _228!="string"){_223.set(node,_228);return node;}if(_229=="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(_228,node.ownerDocument));}else{node[_229]=_228;}return node;}if(lang.isFunction(_228)){var _22a=node[_226];if(!_22a){_22a=_225++;node[_226]=_22a;}if(!_224[_22a]){_224[_22a]={};}var h=_224[_22a][_229];if(h){conn.disconnect(h);}else{try{delete node[_229];}catch(e){}}if(_228){_224[_22a][_229]=conn.connect(node,_229,_228);}else{node[_229]=null;}return node;}node[_229]=_228;return node;};});},"dojo/dom-construct":function(){define("dojo/dom-construct",["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr","./on"],function(_22b,dojo,has,win,dom,attr,on){var _22c={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"]},_22d=/<\s*([\w\:]+)/,_22e={},_22f=0,_230="__"+dojo._scopeName+"ToDomId";for(var _231 in _22c){if(_22c.hasOwnProperty(_231)){var tw=_22c[_231];tw.pre=_231=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}function _232(node,ref){var _233=ref.parentNode;if(_233){_233.insertBefore(node,ref);}};function _234(node,ref){var _235=ref.parentNode;if(_235){if(_235.lastChild==ref){_235.appendChild(node);}else{_235.insertBefore(node,ref.nextSibling);}}};_22b.toDom=function toDom(frag,doc){doc=doc||win.doc;var _236=doc[_230];if(!_236){doc[_230]=_236=++_22f+"";_22e[_236]=doc.createElement("div");}frag+="";var _237=frag.match(_22d),tag=_237?_237[1].toLowerCase():"",_238=_22e[_236],wrap,i,fc,df;if(_237&&_22c[tag]){wrap=_22c[tag];_238.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_238=_238.firstChild;}}else{_238.innerHTML=frag;}if(_238.childNodes.length==1){return _238.removeChild(_238.firstChild);}df=doc.createDocumentFragment();while((fc=_238.firstChild)){df.appendChild(fc);}return df;};_22b.place=function place(node,_239,_23a){_239=dom.byId(_239);if(typeof node=="string"){node=/^\s*</.test(node)?_22b.toDom(node,_239.ownerDocument):dom.byId(node);}if(typeof _23a=="number"){var cn=_239.childNodes;if(!cn.length||cn.length<=_23a){_239.appendChild(node);}else{_232(node,cn[_23a<0?0:_23a]);}}else{switch(_23a){case "before":_232(node,_239);break;case "after":_234(node,_239);break;case "replace":_239.parentNode.replaceChild(node,_239);break;case "only":_22b.empty(_239);_239.appendChild(node);break;case "first":if(_239.firstChild){_232(node,_239.firstChild);break;}default:_239.appendChild(node);}}return node;};_22b.create=function create(tag,_23b,_23c,pos){var doc=win.doc;if(_23c){_23c=dom.byId(_23c);doc=_23c.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_23b){attr.set(tag,_23b);}if(_23c){_22b.place(tag,_23c,pos);}return tag;};var _23d=has("ie")?function(node){try{node.innerHTML="";}catch(e){for(var c;c=node.lastChild;){_23e(c,node);}}}:function(node){node.innerHTML="";};_22b.empty=function empty(node){_23d(dom.byId(node));};function _23e(node,_23f){if(node.firstChild){_23d(node);}if(_23f){_23f.removeChild(node);}};_22b.destroy=function destroy(node){node=dom.byId(node);if(!node){return;}_23e(node,node.parentNode);};});},"dojo/on":function(){define("dojo/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(_240,dojo,has){"use strict";if(1){var _241=window.ScriptEngineMajorVersion;has.add("jscript",_241&&(_241()+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(_242,type,_243,_244){if(typeof _242.on=="function"&&typeof type!="function"){return _242.on(type,_243);}return on.parse(_242,type,_243,_245,_244,this);};on.pausable=function(_246,type,_247,_248){var _249;var _24a=on(_246,type,function(){if(!_249){return _247.apply(this,arguments);}},_248);_24a.pause=function(){_249=true;};_24a.resume=function(){_249=false;};return _24a;};on.once=function(_24b,type,_24c,_24d){var _24e=on(_24b,type,function(){_24e.remove();return _24c.apply(this,arguments);});return _24e;};on.parse=function(_24f,type,_250,_251,_252,_253){if(type.call){return type.call(_253,_24f,_250);}if(type.indexOf(",")>-1){var _254=type.split(/\s*,\s*/);var _255=[];var i=0;var _256;while(_256=_254[i++]){_255.push(_251(_24f,_256,_250,_252,_253));}_255.remove=function(){for(var i=0;i<_255.length;i++){_255[i].remove();}};return _255;}return _251(_24f,type,_250,_252,_253);};var _257=/^touch/;function _245(_258,type,_259,_25a,_25b){var _25c=type.match(/(.*):(.*)/);if(_25c){type=_25c[2];_25c=_25c[1];return on.selector(_25c,type).call(_25b,_258,_259);}if(has("touch")){if(_257.test(type)){_259=_25d(_259);}if(!has("event-orientationchange")&&(type=="orientationchange")){type="resize";_258=window;_259=_25d(_259);}}if(_25e){_259=_25e(_259);}if(_258.addEventListener){var _25f=type in _260,_261=_25f?_260[type]:type;_258.addEventListener(_261,_259,_25f);return {remove:function(){_258.removeEventListener(_261,_259,_25f);}};}type="on"+type;if(_262&&_258.attachEvent){return _262(_258,type,_259);}throw new Error("Target must be an event emitter");};on.selector=function(_263,_264,_265){return function(_266,_267){var _268=typeof _263=="function"?{matches:_263}:this,_269=_264.bubble;function _26a(_26b){_268=_268&&_268.matches?_268:dojo.query;while(!_268.matches(_26b,_263,_266)){if(_26b==_266||_265===false||!(_26b=_26b.parentNode)||_26b.nodeType!=1){return;}}return _26b;};if(_269){return on(_266,_269(_26a),_267);}return on(_266,_264,function(_26c){var _26d=_26a(_26c.target);return _26d&&_267.call(_26d,_26c);});};};function _26e(){this.cancelable=false;};function _26f(){this.bubbles=false;};var _270=[].slice,_271=on.emit=function(_272,type,_273){var args=_270.call(arguments,2);var _274="on"+type;if("parentNode" in _272){var _275=args[0]={};for(var i in _273){_275[i]=_273[i];}_275.preventDefault=_26e;_275.stopPropagation=_26f;_275.target=_272;_275.type=type;_273=_275;}do{_272[_274]&&_272[_274].apply(_272,args);}while(_273&&_273.bubbles&&(_272=_272.parentNode));return _273&&_273.cancelable&&_273;};var _260={};if(!has("event-stopimmediatepropagation")){var _276=function(){this.immediatelyStopped=true;this.modified=true;};var _25e=function(_277){return function(_278){if(!_278.immediatelyStopped){_278.stopImmediatePropagation=_276;return _277.apply(this,arguments);}};};}if(has("dom-addeventlistener")){_260={focusin:"focus",focusout:"blur"};on.emit=function(_279,type,_27a){if(_279.dispatchEvent&&document.createEvent){var _27b=_279.ownerDocument.createEvent("HTMLEvents");_27b.initEvent(type,!!_27a.bubbles,!!_27a.cancelable);for(var i in _27a){var _27c=_27a[i];if(!(i in _27b)){_27b[i]=_27a[i];}}return _279.dispatchEvent(_27b)&&_27b;}return _271.apply(on,arguments);};}else{on._fixEvent=function(evt,_27d){if(!evt){var w=_27d&&(_27d.ownerDocument||_27d.document||_27d).parentWindow||window;evt=w.event;}if(!evt){return evt;}if(_27e&&evt.type==_27e.type){evt=_27e;}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_27d||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_27f;evt.preventDefault=_280;}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;_281(evt);break;}}return evt;};var _27e,_282=function(_283){this.handle=_283;};_282.prototype.remove=function(){delete _dojoIEListeners_[this.handle];};var _284=function(_285){return function(evt){evt=on._fixEvent(evt,this);var _286=_285.call(this,evt);if(evt.modified){if(!_27e){setTimeout(function(){_27e=null;});}_27e=evt;}return _286;};};var _262=function(_287,type,_288){_288=_284(_288);if(((_287.ownerDocument?_287.ownerDocument.parentWindow:_287.parentWindow||_287.window||window)!=top||has("jscript")<5.8)&&!has("config-_allow_leaks")){if(typeof _dojoIEListeners_=="undefined"){_dojoIEListeners_=[];}var _289=_287[type];if(!_289||!_289.listeners){var _28a=_289;_289=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);}}");_289.listeners=[];_287[type]=_289;_289.global=this;if(_28a){_289.listeners.push(_dojoIEListeners_.push(_28a)-1);}}var _28b;_289.listeners.push(_28b=(_289.global._dojoIEListeners_.push(_288)-1));return new _282(_28b);}return _240.after(_287,type,_288,true);};var _281=function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _27f=function(){this.cancelBubble=true;};var _280=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 _28c=function(){};var _28d=window.orientation;var _25d=function(_28e){return function(_28f){var _290=_28f.corrected;if(!_290){var type=_28f.type;try{delete _28f.type;}catch(e){}if(_28f.type){_28c.prototype=_28f;var _290=new _28c;_290.preventDefault=function(){_28f.preventDefault();};_290.stopPropagation=function(){_28f.stopPropagation();};}else{_290=_28f;_290.type=type;}_28f.corrected=_290;if(type=="resize"){if(_28d==window.orientation){return null;}_28d=window.orientation;_290.type="orientationchange";return _28e.call(this,_290);}if(!("rotation" in _290)){_290.rotation=0;_290.scale=1;}var _291=_290.changedTouches[0];for(var i in _291){delete _290[i];_290[i]=_291[i];}}return _28e.call(this,_290);};};}return on;});},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],function(dojo,on,hub,_292,_293,_294,has,lang){has.add("events-keypress-typed",function(){var _295={charCode:0};try{_295=document.createEvent("KeyboardEvent");(_295.initKeyboardEvent||_295.initKeyEvent).call(_295,"keypress",true,true,null,false,false,false,false,9,3);}catch(e){}return _295.charCode==0&&!has("opera");});function _296(obj,_297,_298,_299,_29a){_299=lang.hitch(_298,_299);if(!obj||!(obj.addEventListener||obj.attachEvent)){return _292.after(obj||dojo.global,_297,_299,true);}if(typeof _297=="string"&&_297.substring(0,2)=="on"){_297=_297.substring(2);}if(!obj){obj=dojo.global;}if(!_29a){switch(_297){case "keypress":_297=_29b;break;case "mouseenter":_297=_294.enter;break;case "mouseleave":_297=_294.leave;break;}}return on(obj,_297,_299,_29a);};var _29c={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 _29d=has("mac")?"metaKey":"ctrlKey";var _29e=function(evt,_29f){var faux=lang.mixin({},evt,_29f);_2a0(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};function _2a0(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _29b;if(has("events-keypress-typed")){var _2a1=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};_29b=function(_2a2,_2a3){var _2a4=on(_2a2,"keydown",function(evt){var k=evt.keyCode;var _2a5=(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(_2a5||evt.ctrlKey){var c=_2a5?0:k;if(evt.ctrlKey){if(k==3||k==13){return _2a3.call(evt.currentTarget,evt);}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=_29c[c]||c;}}}}var faux=_29e(evt,{type:"keypress",faux:true,charCode:c});_2a3.call(evt.currentTarget,faux);if(has("ie")){_2a1(evt,faux.keyCode);}}});var _2a6=on(_2a2,"keypress",function(evt){var c=evt.charCode;c=c>=32?c:0;evt=_29e(evt,{charCode:c,faux:true});return _2a3.call(this,evt);});return {remove:function(){_2a4.remove();_2a6.remove();}};};}else{if(has("opera")){_29b=function(_2a7,_2a8){return on(_2a7,"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 _2a8.call(this,_29e(evt,{charCode:c}));});};}else{_29b=function(_2a9,_2aa){return on(_2a9,"keypress",function(evt){_2a0(evt);return _2aa.call(this,evt);});};}}var _2ab={_keypress:_29b,connect:function(obj,_2ac,_2ad,_2ae,_2af){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 _296.apply(this,args);},disconnect:function(_2b0){if(_2b0){_2b0.remove();}},subscribe:function(_2b1,_2b2,_2b3){return hub.subscribe(_2b1,lang.hitch(_2b2,_2b3));},publish:function(_2b4,args){return hub.publish.apply(hub,[_2b4].concat(args));},connectPublisher:function(_2b5,obj,_2b6){var pf=function(){_2ab.publish(_2b5,arguments);};return _2b6?_2ab.connect(obj,_2b6,pf):_2ab.connect(obj,pf);},isCopyKey:function(e){return e[_29d];}};_2ab.unsubscribe=_2ab.disconnect;1&&lang.mixin(dojo,_2ab);return _2ab;});},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(_2b7){var hub=new _2b7;return {publish:function(_2b8,_2b9){return hub.emit.apply(hub,arguments);},subscribe:function(_2ba,_2bb){return hub.on.apply(hub,arguments);}};});},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(_2bc,on){"use strict";var _2bd=_2bc.after;function _2be(){};_2be.prototype={on:function(type,_2bf){return on.parse(this,type,_2bf,function(_2c0,type){return _2bd(_2c0,"on"+type,_2bf,true);});},emit:function(type,_2c1){var args=[this];args.push.apply(args,arguments);return on.emit.apply(on,args);}};return _2be;});},"dojo/aspect":function(){define("dojo/aspect",[],function(){"use strict";var _2c2,_2c3=0;function _2c4(_2c5,type,_2c6,_2c7){var _2c8=_2c5[type];var _2c9=type=="around";var _2ca;if(_2c9){var _2cb=_2c6(function(){return _2c8.advice(this,arguments);});_2ca={remove:function(){_2ca.cancelled=true;},advice:function(_2cc,args){return _2ca.cancelled?_2c8.advice(_2cc,args):_2cb.apply(_2cc,args);}};}else{_2ca={remove:function(){var _2cd=_2ca.previous;var next=_2ca.next;if(!next&&!_2cd){delete _2c5[type];}else{if(_2cd){_2cd.next=next;}else{_2c5[type]=next;}if(next){next.previous=_2cd;}}},id:_2c3++,advice:_2c6,receiveArguments:_2c7};}if(_2c8&&!_2c9){if(type=="after"){while(_2c8.next&&(_2c8=_2c8.next)){}_2c8.next=_2ca;_2ca.previous=_2c8;}else{if(type=="before"){_2c5[type]=_2ca;_2ca.next=_2c8;_2c8.previous=_2ca;}}}else{_2c5[type]=_2ca;}return _2ca;};function _2ce(type){return function(_2cf,_2d0,_2d1,_2d2){var _2d3=_2cf[_2d0],_2d4;if(!_2d3||_2d3.target!=_2cf){_2cf[_2d0]=_2d4=function(){var _2d5=_2c3;var args=arguments;var _2d6=_2d4.before;while(_2d6){args=_2d6.advice.apply(this,args)||args;_2d6=_2d6.next;}if(_2d4.around){var _2d7=_2d4.around.advice(this,args);}var _2d8=_2d4.after;while(_2d8&&_2d8.id<_2d5){if(_2d8.receiveArguments){var _2d9=_2d8.advice.apply(this,args);_2d7=_2d9===_2c2?_2d7:_2d9;}else{_2d7=_2d8.advice.call(this,_2d7,args);}_2d8=_2d8.next;}return _2d7;};if(_2d3){_2d4.around={advice:function(_2da,args){return _2d3.apply(_2da,args);}};}_2d4.target=_2cf;}var _2db=_2c4((_2d4||_2d3),type,_2d1,_2d2);_2d1=null;return _2db;};};var _2dc=_2ce("after");var _2dd=_2ce("before");var _2de=_2ce("around");return {before:_2dd,around:_2de,after:_2dc};});},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(dojo,on,has,dom){if(on._fixEvent){var _2df=on._fixEvent;on._fixEvent=function(evt,se){evt=_2df(evt,se);if(evt){dom.normalizeEvent(evt);}return evt;};}var ret={fix:function(evt,_2e0){if(on._fixEvent){return on._fixEvent(evt,_2e0);}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/dom-geometry":function(){define("dojo/dom-geometry",["./sniff","./_base/window","./dom","./dom-style"],function(has,win,dom,_2e1){var geom={};geom.boxModel="content-box";if(has("ie")){geom.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}geom.getPadExtents=function getPadExtents(node,_2e2){node=dom.byId(node);var s=_2e2||_2e1.getComputedStyle(node),px=_2e1.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,_2e3){node=dom.byId(node);var px=_2e1.toPixelValue,s=_2e3||_2e1.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,_2e4){node=dom.byId(node);var s=_2e4||_2e1.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,_2e5){node=dom.byId(node);var s=_2e5||_2e1.getComputedStyle(node),px=_2e1.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,_2e6){node=dom.byId(node);var s=_2e6||_2e1.getComputedStyle(node),me=geom.getMarginExtents(node,s),l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode,px=_2e1.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=_2e1.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=_2e1.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,_2e7){node=dom.byId(node);var s=_2e7||_2e1.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 _2e8(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 _2e9(node){return node.tagName.toLowerCase()=="button"||node.tagName.toLowerCase()=="input"&&(node.getAttribute("type")||"").toLowerCase()=="button";};function _2ea(node){return geom.boxModel=="border-box"||node.tagName.toLowerCase()=="table"||_2e9(node);};geom.setContentSize=function setContentSize(node,box,_2eb){node=dom.byId(node);var w=box.w,h=box.h;if(_2ea(node)){var pb=geom.getPadBorderExtents(node,_2eb);if(w>=0){w+=pb.w;}if(h>=0){h+=pb.h;}}_2e8(node,NaN,NaN,w,h);};var _2ec={l:0,t:0,w:0,h:0};geom.setMarginBox=function setMarginBox(node,box,_2ed){node=dom.byId(node);var s=_2ed||_2e1.getComputedStyle(node),w=box.w,h=box.h,pb=_2ea(node)?_2ec:geom.getPadBorderExtents(node,s),mb=geom.getMarginExtents(node,s);if(has("webkit")){if(_2e9(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);}_2e8(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(_2ee,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){_2ee+=de.clientLeft;}return (ie<8||qk)?(_2ee+de.clientWidth-de.scrollWidth):-_2ee;}return _2ee;};geom.position=function(node,_2ef){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")<9){var _2f0=geom.getIeDocumentElementOffset(node.ownerDocument);ret.x-=_2f0.x+(has("quirks")?db.clientLeft+db.offsetLeft:0);ret.y-=_2f0.y+(has("quirks")?db.clientTop+db.offsetTop:0);}if(_2ef){var _2f1=geom.docScroll(node.ownerDocument);ret.x+=_2f1.x;ret.y+=_2f1.y;}return ret;};geom.getMarginSize=function getMarginSize(node,_2f2){node=dom.byId(node);var me=geom.getMarginExtents(node,_2f2||_2e1.getComputedStyle(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};geom.normalizeEvent=function(_2f3){if(!("layerX" in _2f3)){_2f3.layerX=_2f3.offsetX;_2f3.layerY=_2f3.offsetY;}if(!has("dom-addeventlistener")){var se=_2f3.target;var doc=(se&&se.ownerDocument)||document;var _2f4=has("quirks")?doc.body:doc.documentElement;var _2f5=geom.getIeDocumentElementOffset(doc);_2f3.pageX=_2f3.clientX+geom.fixIeBiDiScrollLeft(_2f4.scrollLeft||0,doc)-_2f5.x;_2f3.pageY=_2f3.clientY+(_2f4.scrollTop||0)-_2f5.y;}};return geom;});},"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 _2f6;if((has("dom-quirks")&&has("ie"))||!has("dom-addeventlistener")){_2f6={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_2f7){return e.button&_2f7;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{_2f6={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_2f8){return e.button==_2f8;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}dojo.mouseButtons=_2f6;function _2f9(type,_2fa){var _2fb=function(node,_2fc){return on(node,type,function(evt){if(_2fa){return _2fa(evt,_2fc);}if(!dom.isDescendant(evt.relatedTarget,node)){return _2fc.call(this,evt);}});};_2fb.bubble=function(_2fd){return _2f9(type,function(evt,_2fe){var _2ff=_2fd(evt.target);var _300=evt.relatedTarget;if(_2ff&&(_2ff!=(_300&&_300.nodeType==1&&_2fd(_300)))){return _2fe.call(_2ff,evt);}});};return _2fb;};var _301;if(has("events-mousewheel")){_301="mousewheel";}else{_301=function(node,_302){return on(node,"DOMMouseScroll",function(evt){evt.wheelDelta=-evt.detail;_302.call(this,evt);});};}return {_eventHandler:_2f9,enter:_2f9("mouseover"),leave:_2f9("mouseout"),wheel:_301,isLeft:_2f6.isLeft,isMiddle:_2f6.isMiddle,isRight:_2f6.isRight};});},"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/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/dom-class":function(){define("dojo/dom-class",["./_base/lang","./_base/array","./dom"],function(lang,_303,dom){var _304="className";var cls,_305=/\s+/,a1=[""];function _306(s){if(typeof s=="string"||s instanceof String){if(s&&!_305.test(s)){a1[0]=s;return a1;}var a=s.split(_305);if(a.length&&!a[0]){a.shift();}if(a.length&&!a[a.length-1]){a.pop();}return a;}if(!s){return [];}return _303.filter(s,function(x){return x;});};var _307={};cls={contains:function containsClass(node,_308){return ((" "+dom.byId(node)[_304]+" ").indexOf(" "+_308+" ")>=0);},add:function addClass(node,_309){node=dom.byId(node);_309=_306(_309);var cls=node[_304],_30a;cls=cls?" "+cls+" ":" ";_30a=cls.length;for(var i=0,len=_309.length,c;i<len;++i){c=_309[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_30a<cls.length){node[_304]=cls.substr(1,cls.length-2);}},remove:function removeClass(node,_30b){node=dom.byId(node);var cls;if(_30b!==undefined){_30b=_306(_30b);cls=" "+node[_304]+" ";for(var i=0,len=_30b.length;i<len;++i){cls=cls.replace(" "+_30b[i]+" "," ");}cls=lang.trim(cls);}else{cls="";}if(node[_304]!=cls){node[_304]=cls;}},replace:function replaceClass(node,_30c,_30d){node=dom.byId(node);_307[_304]=node[_304];cls.remove(_307,_30d);cls.add(_307,_30c);if(node[_304]!==_307[_304]){node[_304]=_307[_304];}},toggle:function toggleClass(node,_30e,_30f){node=dom.byId(node);if(_30f===undefined){_30e=_306(_30e);for(var i=0,len=_30e.length,c;i<len;++i){c=_30e[i];cls[cls.contains(node,c)?"remove":"add"](node,c);}}else{cls[_30f?"add":"remove"](node,_30e);}return _30f;}};return cls;});},"dojo/_base/url":function(){define(["./kernel"],function(dojo){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_310=function(){var n=null,_311=arguments,uri=[_311[0]];for(var i=1;i<_311.length;i++){if(!_311[i]){continue;}var _312=new _310(_311[i]+""),_313=new _310(uri[0]+"");if(_312.path==""&&!_312.scheme&&!_312.authority&&!_312.query){if(_312.fragment!=n){_313.fragment=_312.fragment;}_312=_313;}else{if(!_312.scheme){_312.scheme=_313.scheme;if(!_312.authority){_312.authority=_313.authority;if(_312.path.charAt(0)!="/"){var path=_313.path.substring(0,_313.path.lastIndexOf("/")+1)+_312.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;}}}}_312.path=segs.join("/");}}}}uri=[];if(_312.scheme){uri.push(_312.scheme,":");}if(_312.authority){uri.push("//",_312.authority);}uri.push(_312.path);if(_312.query){uri.push("?",_312.query);}if(_312.fragment){uri.push("#",_312.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;}};_310.prototype.toString=function(){return this.uri;};return dojo._Url=_310;});},"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,_314){return json.stringify(it,function(key,_315){if(_315){var tf=_315.__json__||_315.json;if(typeof tf=="function"){return tf.call(_315);}}return _315;},_314&&dojo.toJsonIndentStr);};return dojo;});},"dojo/json":function(){define("dojo/json",["./has"],function(has){"use strict";var _316=typeof JSON!="undefined";has.add("json-parse",_316);has.add("json-stringify",_316&&JSON.stringify({a:0},function(k,v){return v||1;})=="{\"a\":1}");if(has("json-stringify")){return JSON;}else{var _317=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,_318){if(_318&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str)){throw new SyntaxError("Invalid characters in JSON");}return eval("("+str+")");},stringify:function(_319,_31a,_31b){var _31c;if(typeof _31a=="string"){_31b=_31a;_31a=null;}function _31d(it,_31e,key){if(_31a){it=_31a(key,it);}var val,_31f=typeof it;if(_31f=="number"){return isFinite(it)?it+"":"null";}if(_31f=="boolean"){return it+"";}if(it===null){return "null";}if(typeof it=="string"){return _317(it);}if(_31f=="function"||_31f=="undefined"){return _31c;}if(typeof it.toJSON=="function"){return _31d(it.toJSON(key),_31e,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 _31d(it.valueOf(),_31e,key);}var _320=_31b?(_31e+_31b):"";var sep=_31b?" ":"";var _321=_31b?"\n":"";if(it instanceof Array){var itl=it.length,res=[];for(key=0;key<itl;key++){var obj=it[key];val=_31d(obj,_320,key);if(typeof val!="string"){val="null";}res.push(_321+_320+val);}return "["+res.join(",")+_321+_31e+"]";}var _322=[];for(key in it){var _323;if(it.hasOwnProperty(key)){if(typeof key=="number"){_323="\""+key+"\"";}else{if(typeof key=="string"){_323=_317(key);}else{continue;}}val=_31d(it[key],_320,key);if(typeof val!="string"){continue;}_322.push(_321+_320+_323+":"+sep+val);}}return "{"+_322.join(",")+_321+_31e+"}";};return _31d(_319,"","");}};}});},"dojo/date/stamp":function(){define(["../_base/lang","../_base/array"],function(lang,_324){var _325={};lang.setObject("dojo.date.stamp",_325);_325.fromISOString=function(_326,_327){if(!_325._isoRegExp){_325._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _328=_325._isoRegExp.exec(_326),_329=null;if(_328){_328.shift();if(_328[1]){_328[1]--;}if(_328[6]){_328[6]*=1000;}if(_327){_327=new Date(_327);_324.forEach(_324.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _327["get"+prop]();}),function(_32a,_32b){_328[_32b]=_328[_32b]||_32a;});}_329=new Date(_328[0]||1970,_328[1]||0,_328[2]||1,_328[3]||0,_328[4]||0,_328[5]||0,_328[6]||0);if(_328[0]<100){_329.setFullYear(_328[0]||1970);}var _32c=0,_32d=_328[7]&&_328[7].charAt(0);if(_32d!="Z"){_32c=((_328[8]||0)*60)+(Number(_328[9])||0);if(_32d!="-"){_32c*=-1;}}if(_32d){_32c-=_329.getTimezoneOffset();}if(_32c){_329.setTime(_329.getTime()+_32c*60000);}}return _329;};_325.toISOString=function(_32e,_32f){var _330=function(n){return (n<10)?"0"+n:n;};_32f=_32f||{};var _331=[],_332=_32f.zulu?"getUTC":"get",date="";if(_32f.selector!="time"){var year=_32e[_332+"FullYear"]();date=["0000".substr((year+"").length)+year,_330(_32e[_332+"Month"]()+1),_330(_32e[_332+"Date"]())].join("-");}_331.push(date);if(_32f.selector!="date"){var time=[_330(_32e[_332+"Hours"]()),_330(_32e[_332+"Minutes"]()),_330(_32e[_332+"Seconds"]())].join(":");var _333=_32e[_332+"Milliseconds"]();if(_32f.milliseconds){time+="."+(_333<100?"0":"")+_330(_333);}if(_32f.zulu){time+="Z";}else{if(_32f.selector!="time"){var _334=_32e.getTimezoneOffset();var _335=Math.abs(_334);time+=(_334>0?"-":"+")+_330(Math.floor(_335/60))+":"+_330(_335%60);}}_331.push(time);}return _331.join("T");};return _325;});},"dojo/Deferred":function(){define("dojo/Deferred",["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(has,lang,_336,_337,_338){"use strict";var _339=0,_33a=1,_33b=2;var _33c="This deferred has already been fulfilled.";var _33d=Object.freeze||function(){};var _33e=function(_33f,type,_340,_341,_342){if(1){if(type===_33b&&_343.instrumentRejected&&_33f.length===0){_343.instrumentRejected(_340,false,_341,_342);}}for(var i=0;i<_33f.length;i++){_344(_33f[i],type,_340,_341);}};var _344=function(_345,type,_346,_347){var func=_345[type];var _348=_345.deferred;if(func){try{var _349=func(_346);if(type===_339){if(typeof _349!=="undefined"){_34a(_348,type,_349);}}else{if(_349&&typeof _349.then==="function"){_345.cancel=_349.cancel;_349.then(_34b(_348,_33a),_34b(_348,_33b),_34b(_348,_339));return;}_34a(_348,_33a,_349);}}catch(error){_34a(_348,_33b,error);}}else{_34a(_348,type,_346);}if(1){if(type===_33b&&_343.instrumentRejected){_343.instrumentRejected(_346,!!func,_347,_348.promise);}}};var _34b=function(_34c,type){return function(_34d){_34a(_34c,type,_34d);};};var _34a=function(_34e,type,_34f){if(!_34e.isCanceled()){switch(type){case _339:_34e.progress(_34f);break;case _33a:_34e.resolve(_34f);break;case _33b:_34e.reject(_34f);break;}}};var _343=function(_350){var _351=this.promise=new _337();var _352=this;var _353,_354,_355;var _356=false;var _357=[];if(1&&Error.captureStackTrace){Error.captureStackTrace(_352,_343);Error.captureStackTrace(_351,_343);}this.isResolved=_351.isResolved=function(){return _353===_33a;};this.isRejected=_351.isRejected=function(){return _353===_33b;};this.isFulfilled=_351.isFulfilled=function(){return !!_353;};this.isCanceled=_351.isCanceled=function(){return _356;};this.progress=function(_358,_359){if(!_353){_33e(_357,_339,_358,null,_352);return _351;}else{if(_359===true){throw new Error(_33c);}else{return _351;}}};this.resolve=function(_35a,_35b){if(!_353){_33e(_357,_353=_33a,_354=_35a,null,_352);_357=null;return _351;}else{if(_35b===true){throw new Error(_33c);}else{return _351;}}};var _35c=this.reject=function(_35d,_35e){if(!_353){if(1&&Error.captureStackTrace){Error.captureStackTrace(_355={},_35c);}_33e(_357,_353=_33b,_354=_35d,_355,_352);_357=null;return _351;}else{if(_35e===true){throw new Error(_33c);}else{return _351;}}};this.then=_351.then=function(_35f,_360,_361){var _362=[_361,_35f,_360];_362.cancel=_351.cancel;_362.deferred=new _343(function(_363){return _362.cancel&&_362.cancel(_363);});if(_353&&!_357){_344(_362,_353,_354,_355);}else{_357.push(_362);}return _362.deferred.promise;};this.cancel=_351.cancel=function(_364,_365){if(!_353){if(_350){var _366=_350(_364);_364=typeof _366==="undefined"?_364:_366;}_356=true;if(!_353){if(typeof _364==="undefined"){_364=new _336();}_35c(_364);return _364;}else{if(_353===_33b&&_354===_364){return _364;}}}else{if(_365===true){throw new Error(_33c);}}};_33d(_351);};_343.prototype.toString=function(){return "[object Deferred]";};if(_338){_338(_343);}return _343;});},"dojo/errors/CancelError":function(){define(["./create"],function(_367){return _367("CancelError",null,null,{dojoType:"cancel"});});},"dojo/errors/create":function(){define(["../_base/lang"],function(lang){return function(name,ctor,base,_368){base=base||Error;var _369=function(_36a){if(base===Error){if(Error.captureStackTrace){Error.captureStackTrace(this,_369);}var err=Error.call(this,_36a),prop;for(prop in err){if(err.hasOwnProperty(prop)){this[prop]=err[prop];}}this.message=_36a;this.stack=err.stack;}else{base.apply(this,arguments);}if(ctor){ctor.apply(this,arguments);}};_369.prototype=lang.delegate(base.prototype,_368);_369.prototype.name=name;_369.prototype.constructor=_369;return _369;};});},"dojo/promise/Promise":function(){define(["../_base/lang"],function(lang){"use strict";function _36b(){throw new TypeError("abstract");};return lang.extend(function Promise(){},{then:function(_36c,_36d,_36e){_36b();},cancel:function(_36f,_370){_36b();},isResolved:function(){_36b();},isRejected:function(){_36b();},isFulfilled:function(){_36b();},isCanceled:function(){_36b();},always:function(_371){return this.then(_371,_371);},otherwise:function(_372){return this.then(null,_372);},trace:function(){return this;},traceRejected:function(){return this;},toString:function(){return "[object Promise]";}});});},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(_373,has,lang,_374){function _375(_376,_377,_378){var _379="";if(_376&&_376.stack){_379+=_376.stack;}if(_377&&_377.stack){_379+="\n    ----------------------------------------\n    rejected"+_377.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ");}if(_378&&_378.stack){_379+="\n    ----------------------------------------\n"+_378.stack;}console.error(_376,_379);};function _37a(_37b,_37c,_37d,_37e){if(!_37c){_375(_37b,_37d,_37e);}};var _37f=[];var _380=false;var _381=1000;function _382(_383,_384,_385,_386){if(_384){_374.some(_37f,function(obj,ix){if(obj.error===_383){_37f.splice(ix,1);return true;}});}else{if(!_374.some(_37f,function(obj){return obj.error===_383;})){_37f.push({error:_383,rejection:_385,deferred:_386,timestamp:new Date().getTime()});}}if(!_380){_380=setTimeout(_387,_381);}};function _387(){var now=new Date().getTime();var _388=now-_381;_37f=_374.filter(_37f,function(obj){if(obj.timestamp<_388){_375(obj.error,obj.rejection,obj.deferred);return false;}return true;});if(_37f.length){_380=setTimeout(_387,_37f[0].timestamp+_381-now);}else{_380=false;}};return function(_389){var _38a=has("config-useDeferredInstrumentation");if(_38a){_373.on("resolved",lang.hitch(console,"log","resolved"));_373.on("rejected",lang.hitch(console,"log","rejected"));_373.on("progress",lang.hitch(console,"log","progress"));var args=[];if(typeof _38a==="string"){args=_38a.split(",");_38a=args.shift();}if(_38a==="report-rejections"){_389.instrumentRejected=_37a;}else{if(_38a==="report-unhandled-rejections"||_38a===true||_38a===1){_389.instrumentRejected=_382;_381=parseInt(args[0],10)||_381;}else{throw new Error("Unsupported instrumentation usage <"+_38a+">");}}}};});},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(lang,_38b,_38c){"use strict";var _38d=new _38c;var emit=_38d.emit;_38d.emit=null;function _38e(args){setTimeout(function(){emit.apply(_38d,args);},0);};_38b.prototype.trace=function(){var args=lang._toArray(arguments);this.then(function(_38f){_38e(["resolved",_38f].concat(args));},function(_390){_38e(["rejected",_390].concat(args));},function(_391){_38e(["progress",_391].concat(args));});return this;};_38b.prototype.traceRejected=function(){var args=lang._toArray(arguments);this.otherwise(function(_392){_38e(["rejected",_392].concat(args));});return this;};return _38d;});},"dojo/query":function(){define("dojo/query",["./_base/kernel","./has","./dom","./on","./_base/array","./_base/lang","./selector/_loader","./selector/_loader!default"],function(dojo,has,dom,on,_393,lang,_394,_395){"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,_396=_393.forEach;var tnl=function(a,_397,_398){var _399=new (_398||this._NodeListCtor||nl)(a);return _397?_399._stash(_397):_399;};var _39a=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 _39b=function(f,o){return function(){this.forEach(_39a(f,arguments,o));return this;};};var _39c=function(f,o){return function(){return this.map(_39a(f,arguments,o));};};var _39d=function(f,o){return function(){return this.filter(_39a(f,arguments,o));};};var _39e=function(f,g,o){return function(){var a=arguments,body=_39a(f,a,o);if(g.call(o||dojo.global,a)){return this.map(body);}this.forEach(body);return this;};};var _39f=function(_3a0){var _3a1=this instanceof nl&&has("array-extensible");if(typeof _3a0=="number"){_3a0=Array(_3a0);}var _3a2=(_3a0&&"length" in _3a0)?_3a0:arguments;if(_3a1||!_3a2.sort){var _3a3=_3a1?this:[],l=_3a3.length=_3a2.length;for(var i=0;i<l;i++){_3a3[i]=_3a2[i];}if(_3a1){return _3a3;}_3a2=_3a3;}lang._mixin(_3a2,nlp);_3a2._NodeListCtor=function(_3a4){return nl(_3a4);};return _3a2;};var nl=_39f,nlp=nl.prototype=has("array-extensible")?[]:{};nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_39c;nl._adaptAsForEach=_39b;nl._adaptAsFilter=_39d;nl._adaptWithCondition=_39e;_396(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});_396(["indexOf","lastIndexOf","every","some"],function(name){var f=_393[name];nlp[name]=function(){return f.apply(dojo,[this].concat(aps.call(arguments,0)));};});lang.extend(_39f,{constructor:nl,_NodeListCtor:nl,toString:function(){return this.join(",");},_stash:function(_3a5){this._parent=_3a5;return this;},on:function(_3a6,_3a7){var _3a8=this.map(function(node){return on(node,_3a6,_3a7);});_3a8.remove=function(){for(var i=0;i<_3a8.length;i++){_3a8[i].remove();}};return _3a8;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor(0);}},concat:function(item){var t=aps.call(this,0),m=_393.map(arguments,function(a){return aps.call(a,0);});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(_393.map(this,func,obj),this);},forEach:function(_3a9,_3aa){_396(this,_3a9,_3aa);return this;},filter:function(_3ab){var a=arguments,_3ac=this,_3ad=0;if(typeof _3ab=="string"){_3ac=_3ae._filterResult(this,a[0]);if(a.length==1){return _3ac._stash(this);}_3ad=1;}return this._wrap(_393.filter(_3ac,a[_3ad],a[_3ad+1]),this);},instantiate:function(_3af,_3b0){var c=lang.isFunction(_3af)?_3af:lang.getObject(_3af);_3b0=_3b0||{};return this.forEach(function(node){new c(_3b0,node);});},at:function(){var t=new this._NodeListCtor(0);_396(arguments,function(i){if(i<0){i=this.length+i;}if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});function _3b1(_3b2,_3b3){var _3b4=function(_3b5,root){if(typeof root=="string"){root=dom.byId(root);if(!root){return new _3b3([]);}}var _3b6=typeof _3b5=="string"?_3b2(_3b5,root):_3b5?_3b5.orphan?_3b5:[_3b5]:[];if(_3b6.orphan){return _3b6;}return new _3b3(_3b6);};_3b4.matches=_3b2.match||function(node,_3b7,root){return _3b4.filter([node],_3b7,root).length>0;};_3b4.filter=_3b2.filter||function(_3b8,_3b9,root){return _3b4(_3b9,root).filter(function(node){return _393.indexOf(_3b8,node)>-1;});};if(typeof _3b2!="function"){var _3ba=_3b2.search;_3b2=function(_3bb,root){return _3ba(root||document,_3bb);};}return _3b4;};var _3ae=_3b1(_395,_39f);dojo.query=_3b1(_395,function(_3bc){return _39f(_3bc);});_3ae.load=function(id,_3bd,_3be){_394.load(id,_3bd,function(_3bf){_3be(_3b1(_3bf,_39f));});};dojo._filterQueryResult=_3ae._filterResult=function(_3c0,_3c1,root){return new _39f(_3ae.filter(_3c0,_3c1,root));};dojo.NodeList=_3ae.NodeList=_39f;return _3ae;});},"dojo/selector/_loader":function(){define(["../has","require"],function(has,_3c2){"use strict";var _3c3=document.createElement("div");has.add("dom-qsa2.1",!!_3c3.querySelectorAll);has.add("dom-qsa3",function(){try{_3c3.innerHTML="<p class='TEST'></p>";return _3c3.querySelectorAll(".TEST:empty").length==1;}catch(e){}});var _3c4;var acme="./acme",lite="./lite";return {load:function(id,_3c5,_3c6,_3c7){var req=_3c2;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=_3c5)&&id;if(id.charAt(id.length-1)=="?"){id=id.substring(0,id.length-1);var _3c8=true;}if(_3c8&&(has("dom-compliant-qsa")||_3c4)){return _3c6(_3c4);}req([id],function(_3c9){if(id!="./lite"){_3c4=_3c9;}_3c6(_3c9);});}};});},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(dom,has,_3ca,lang,win){var trim=lang.trim;var each=_3ca.forEach;var _3cb=function(){return win.doc;};var _3cc=(_3cb().compatMode)=="BackCompat";var _3cd=">~+";var _3ce=false;var _3cf=function(){return true;};var _3d0=function(_3d1){if(_3cd.indexOf(_3d1.slice(-1))>=0){_3d1+=" * ";}else{_3d1+=" ";}var ts=function(s,e){return trim(_3d1.slice(s,e));};var _3d2=[];var _3d3=-1,_3d4=-1,_3d5=-1,_3d6=-1,_3d7=-1,inId=-1,_3d8=-1,_3d9,lc="",cc="",_3da;var x=0,ql=_3d1.length,_3db=null,_3dc=null;var _3dd=function(){if(_3d8>=0){var tv=(_3d8==x)?null:ts(_3d8,x);_3db[(_3cd.indexOf(tv)<0)?"tag":"oper"]=tv;_3d8=-1;}};var _3de=function(){if(inId>=0){_3db.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _3df=function(){if(_3d7>=0){_3db.classes.push(ts(_3d7+1,x).replace(/\\/g,""));_3d7=-1;}};var _3e0=function(){_3de();_3dd();_3df();};var _3e1=function(){_3e0();if(_3d6>=0){_3db.pseudos.push({name:ts(_3d6+1,x)});}_3db.loops=(_3db.pseudos.length||_3db.attrs.length||_3db.classes.length);_3db.oquery=_3db.query=ts(_3da,x);_3db.otag=_3db.tag=(_3db["oper"])?null:(_3db.tag||"*");if(_3db.tag){_3db.tag=_3db.tag.toUpperCase();}if(_3d2.length&&(_3d2[_3d2.length-1].oper)){_3db.infixOper=_3d2.pop();_3db.query=_3db.infixOper.query+" "+_3db.query;}_3d2.push(_3db);_3db=null;};for(;lc=cc,cc=_3d1.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_3db){_3da=x;_3db={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return _3ce?this.otag:this.tag;}};_3d8=x;}if(_3d9){if(cc==_3d9){_3d9=null;}continue;}else{if(cc=="'"||cc=="\""){_3d9=cc;continue;}}if(_3d3>=0){if(cc=="]"){if(!_3dc.attr){_3dc.attr=ts(_3d3+1,x);}else{_3dc.matchFor=ts((_3d5||_3d3+1),x);}var cmf=_3dc.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_3dc.matchFor=cmf.slice(1,-1);}}if(_3dc.matchFor){_3dc.matchFor=_3dc.matchFor.replace(/\\/g,"");}_3db.attrs.push(_3dc);_3dc=null;_3d3=_3d5=-1;}else{if(cc=="="){var _3e2=("|~^$*".indexOf(lc)>=0)?lc:"";_3dc.type=_3e2+cc;_3dc.attr=ts(_3d3+1,x-_3e2.length);_3d5=x+1;}}}else{if(_3d4>=0){if(cc==")"){if(_3d6>=0){_3dc.value=ts(_3d4+1,x);}_3d6=_3d4=-1;}}else{if(cc=="#"){_3e0();inId=x+1;}else{if(cc=="."){_3e0();_3d7=x;}else{if(cc==":"){_3e0();_3d6=x;}else{if(cc=="["){_3e0();_3d3=x;_3dc={};}else{if(cc=="("){if(_3d6>=0){_3dc={name:ts(_3d6+1,x),value:null};_3db.pseudos.push(_3dc);}_3d4=x;}else{if((cc==" ")&&(lc!=cc)){_3e1();}}}}}}}}}return _3d2;};var _3e3=function(_3e4,_3e5){if(!_3e4){return _3e5;}if(!_3e5){return _3e4;}return function(){return _3e4.apply(window,arguments)&&_3e5.apply(window,arguments);};};var _3e6=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _3e7=function(n){return (1==n.nodeType);};var _3e8="";var _3e9=function(elem,attr){if(!elem){return _3e8;}if(attr=="class"){return elem.className||_3e8;}if(attr=="for"){return elem.htmlFor||_3e8;}if(attr=="style"){return elem.style.cssText||_3e8;}return (_3ce?elem.getAttribute(attr):elem.getAttribute(attr,2))||_3e8;};var _3ea={"*=":function(attr,_3eb){return function(elem){return (_3e9(elem,attr).indexOf(_3eb)>=0);};},"^=":function(attr,_3ec){return function(elem){return (_3e9(elem,attr).indexOf(_3ec)==0);};},"$=":function(attr,_3ed){return function(elem){var ea=" "+_3e9(elem,attr);var _3ee=ea.lastIndexOf(_3ed);return _3ee>-1&&(_3ee==(ea.length-_3ed.length));};},"~=":function(attr,_3ef){var tval=" "+_3ef+" ";return function(elem){var ea=" "+_3e9(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_3f0){var _3f1=_3f0+"-";return function(elem){var ea=_3e9(elem,attr);return ((ea==_3f0)||(ea.indexOf(_3f1)==0));};},"=":function(attr,_3f2){return function(elem){return (_3e9(elem,attr)==_3f2);};}};var _3f3=(typeof _3cb().firstChild.nextElementSibling=="undefined");var _3f4=!_3f3?"nextElementSibling":"nextSibling";var _3f5=!_3f3?"previousElementSibling":"previousSibling";var _3f6=(_3f3?_3e7:_3cf);var _3f7=function(node){while(node=node[_3f5]){if(_3f6(node)){return false;}}return true;};var _3f8=function(node){while(node=node[_3f4]){if(_3f6(node)){return false;}}return true;};var _3f9=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[_3f4]){if(_3f6(te)){if(has("ie")){te.setAttribute("_i",++i);}else{te["_i"]=++i;}if(node===te){ci=i;}}}return ci;};var _3fa=function(elem){return !((_3f9(elem))%2);};var _3fb=function(elem){return ((_3f9(elem))%2);};var _3fc={"checked":function(name,_3fd){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"disabled":function(name,_3fe){return function(elem){return elem.disabled;};},"enabled":function(name,_3ff){return function(elem){return !elem.disabled;};},"first-child":function(){return _3f7;},"last-child":function(){return _3f8;},"only-child":function(name,_400){return function(node){return _3f7(node)&&_3f8(node);};},"empty":function(name,_401){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,_402){var cz=_402.charAt(0);if(cz=="\""||cz=="'"){_402=_402.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_402)>=0);};},"not":function(name,_403){var p=_3d0(_403)[0];var _404={el:1};if(p.tag!="*"){_404.tag=1;}if(!p.classes.length){_404.classes=1;}var ntf=_405(p,_404);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_406){var pi=parseInt;if(_406=="odd"){return _3fb;}else{if(_406=="even"){return _3fa;}}if(_406.indexOf("n")!=-1){var _407=_406.split("n",2);var pred=_407[0]?((_407[0]=="-")?-1:pi(_407[0])):1;var idx=_407[1]?pi(_407[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=_3f9(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_406=idx;}}var _408=pi(_406);return function(elem){return (_3f9(elem)==_408);};}};var _409=(has("ie")<9||has("ie")==9&&has("quirks"))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_3ce?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _405=function(_40a,_40b){if(!_40a){return _3cf;}_40b=_40b||{};var ff=null;if(!("el" in _40b)){ff=_3e3(ff,_3e7);}if(!("tag" in _40b)){if(_40a.tag!="*"){ff=_3e3(ff,function(elem){return (elem&&((_3ce?elem.tagName:elem.tagName.toUpperCase())==_40a.getTag()));});}}if(!("classes" in _40b)){each(_40a.classes,function(_40c,idx,arr){var re=new RegExp("(?:^|\\s)"+_40c+"(?:\\s|$)");ff=_3e3(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _40b)){each(_40a.pseudos,function(_40d){var pn=_40d.name;if(_3fc[pn]){ff=_3e3(ff,_3fc[pn](pn,_40d.value));}});}if(!("attrs" in _40b)){each(_40a.attrs,function(attr){var _40e;var a=attr.attr;if(attr.type&&_3ea[attr.type]){_40e=_3ea[attr.type](a,attr.matchFor);}else{if(a.length){_40e=_409(a);}}if(_40e){ff=_3e3(ff,_40e);}});}if(!("id" in _40b)){if(_40a.id){ff=_3e3(ff,function(elem){return (!!elem&&(elem.id==_40a.id));});}}if(!ff){if(!("default" in _40b)){ff=_3cf;}}return ff;};var _40f=function(_410){return function(node,ret,bag){while(node=node[_3f4]){if(_3f3&&(!_3e7(node))){continue;}if((!bag||_411(node,bag))&&_410(node)){ret.push(node);}break;}return ret;};};var _412=function(_413){return function(root,ret,bag){var te=root[_3f4];while(te){if(_3f6(te)){if(bag&&!_411(te,bag)){break;}if(_413(te)){ret.push(te);}}te=te[_3f4];}return ret;};};var _414=function(_415){_415=_415||_3cf;return function(root,ret,bag){var te,x=0,tret=root.children||root.childNodes;while(te=tret[x++]){if(_3f6(te)&&(!bag||_411(te,bag))&&(_415(te,x))){ret.push(te);}}return ret;};};var _416=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _417={};var _418=function(_419){var _41a=_417[_419.query];if(_41a){return _41a;}var io=_419.infixOper;var oper=(io?io.oper:"");var _41b=_405(_419,{el:1});var qt=_419.tag;var _41c=("*"==qt);var ecs=_3cb()["getElementsByClassName"];if(!oper){if(_419.id){_41b=(!_419.loops&&_41c)?_3cf:_405(_419,{el:1,id:1});_41a=function(root,arr){var te=dom.byId(_419.id,(root.ownerDocument||root));if(!te||!_41b(te)){return;}if(9==root.nodeType){return _3e6(te,arr);}else{if(_416(te,root)){return _3e6(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_419.classes.length&&!_3cc){_41b=_405(_419,{el:1,classes:1,id:1});var _41d=_419.classes.join(" ");_41a=function(root,arr,bag){var ret=_3e6(0,arr),te,x=0;var tret=root.getElementsByClassName(_41d);while((te=tret[x++])){if(_41b(te,root)&&_411(te,bag)){ret.push(te);}}return ret;};}else{if(!_41c&&!_419.loops){_41a=function(root,arr,bag){var ret=_3e6(0,arr),te,x=0;var tag=_419.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_411(te,bag)){ret.push(te);}}return ret;};}else{_41b=_405(_419,{el:1,tag:1,id:1});_41a=function(root,arr,bag){var ret=_3e6(0,arr),te,x=0;var tag=_419.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_41b(te,root)&&_411(te,bag)){ret.push(te);}}return ret;};}}}}else{var _41e={el:1};if(_41c){_41e.tag=1;}_41b=_405(_419,_41e);if("+"==oper){_41a=_40f(_41b);}else{if("~"==oper){_41a=_412(_41b);}else{if(">"==oper){_41a=_414(_41b);}}}}return _417[_419.query]=_41a;};var _41f=function(root,_420){var _421=_3e6(root),qp,x,te,qpl=_420.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_420[i];x=_421.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_418(qp);for(var j=0;(te=_421[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_421=ret;}return ret;};var _422={},_423={};var _424=function(_425){var _426=_3d0(trim(_425));if(_426.length==1){var tef=_418(_426[0]);return function(root){var r=tef(root,[]);if(r){r.nozip=true;}return r;};}return function(root){return _41f(root,_426);};};var _427=has("ie")?"commentStrip":"nozip";var qsa="querySelectorAll";var _428=!!_3cb()[qsa];var _429=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g;var _42a=function(_42b,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_42b;};var _42c=/([^[]*)([^\]]*])?/g;var _42d=function(_42e,_42f,att){return _42f.replace(_429,_42a)+(att||"");};var _430=function(_431,_432){_431=_431.replace(_42c,_42d);if(_428){var _433=_423[_431];if(_433&&!_432){return _433;}}var _434=_422[_431];if(_434){return _434;}var qcz=_431.charAt(0);var _435=(-1==_431.indexOf(" "));if((_431.indexOf("#")>=0)&&(_435)){_432=true;}var _436=(_428&&(!_432)&&(_3cd.indexOf(qcz)==-1)&&(!has("ie")||(_431.indexOf(":")==-1))&&(!(_3cc&&(_431.indexOf(".")>=0)))&&(_431.indexOf(":contains")==-1)&&(_431.indexOf(":checked")==-1)&&(_431.indexOf("|=")==-1));if(_436){var tq=(_3cd.indexOf(_431.charAt(_431.length-1))>=0)?(_431+" *"):_431;return _423[_431]=function(root){try{if(!((9==root.nodeType)||_435)){throw "";}var r=root[qsa](tq);r[_427]=true;return r;}catch(e){return _430(_431,true)(root);}};}else{var _437=_431.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return _422[_431]=((_437.length<2)?_424(_431):function(root){var _438=0,ret=[],tp;while((tp=_437[_438++])){ret=ret.concat(_424(tp)(root));}return ret;});}};var _439=0;var _43a=has("ie")?function(node){if(_3ce){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_439)||_439);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_439));};var _411=function(node,bag){if(!bag){return 1;}var id=_43a(node);if(!bag[id]){return bag[id]=1;}return 0;};var _43b="_zipIdx";var _43c=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;}_439++;var x,te;if(has("ie")&&_3ce){var _43d=_439+"";arr[0].setAttribute(_43b,_43d);for(x=1;te=arr[x];x++){if(arr[x].getAttribute(_43b)!=_43d){ret.push(te);}te.setAttribute(_43b,_43d);}}else{if(has("ie")&&arr.commentStrip){try{for(x=1;te=arr[x];x++){if(_3e7(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_43b]=_439;}for(x=1;te=arr[x];x++){if(arr[x][_43b]!=_439){ret.push(te);}te[_43b]=_439;}}}return ret;};var _43e=function(_43f,root){root=root||_3cb();var od=root.ownerDocument||root;_3ce=(od.createElement("div").tagName==="div");var r=_430(_43f)(root);if(r&&r.nozip){return r;}return _43c(r);};_43e.filter=function(_440,_441,root){var _442=[],_443=_3d0(_441),_444=(_443.length==1&&!/[^\w#\.]/.test(_441))?_405(_443[0]):function(node){return _3ca.indexOf(_43e(_441,dom.byId(root)),node)!=-1;};for(var x=0,te;te=_440[x];x++){if(_444(te)){_442.push(te);}}return _442;};return _43e;});},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(dojo,has,_445,_446,lang){var _447=0,_448,_449=[],_44a=0,_44b=function(){_447=1;dojo._postLoad=dojo.config.afterOnLoad=true;if(_449.length){_448(_44c);}},_44c=function(){if(_447&&!_44a&&_449.length){_44a=1;var f=_449.shift();try{f();}finally{_44a=0;}_44a=0;if(_449.length){_448(_44c);}}};_445.on("idle",_44c);_448=function(){if(_445.idle()){_44c();}};var _44d=dojo.ready=dojo.addOnLoad=function(_44e,_44f,_450){var _451=lang._toArray(arguments);if(typeof _44e!="number"){_450=_44f;_44f=_44e;_44e=1000;}else{_451.shift();}_450=_450?lang.hitch.apply(dojo,_451):function(){_44f();};_450.priority=_44e;for(var i=0;i<_449.length&&_44e>=_449[i].priority;i++){}_449.splice(i,0,_450);_448();};1||has.add("dojo-config-addOnLoad",1);if(1){var dca=dojo.config.addOnLoad;if(dca){_44d[(lang.isArray(dca)?"apply":"call")](dojo,dca);}}if(1&&dojo.config.parseOnLoad&&!dojo.isAsync){_44d(99,function(){if(!dojo.parser){dojo.deprecated("Add explicit require(['dojo/parser']);","","2.0");_445(["dojo/parser"]);}});}if(1){_446(_44b);}else{_44b();}return _44d;});},"todo/app18":function(){require({cache:{"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<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:\n\t\t\t 'domNode'}, value: at(${id}_ctrl, 'complete')\"></span><!--\n\t\t-->)</button>\n\t</footer>\n</section>\n"}});define("todo/app18",["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(_452,lang,_453,keys,_454,_455,_456,_457,_458){return _452([_457,_455,_456],{templateString:_458,_setPresentAttr:{type:"classExists",className:"todos_present"},_setCompleteAttr:{type:"classExists",className:"todos_selected"},startup:function(){var _459=this;this.inherited(arguments);_453.addOnUnload(function(){_459.destroy();});},onKeyPressNewItem:function(_45a){if(_45a.keyCode!==keys.ENTER||!_454.trim(_45a.target.value).length){return;}lang.getObject(this.id+"_listCtrl").addItem(_45a.target.value);_45a.target.value="";_45a.preventDefault();_45a.stopPropagation();}});});},"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,_45b=0,_45c="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _45d(_45e,_45f){var _460=[],_461=[{cls:0,refs:[]}],_462={},_463=1,l=_45e.length,i=0,j,lin,base,top,_464,rec,name,refs;for(;i<l;++i){base=_45e[i];if(!base){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_45f);}else{if(opts.call(base)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_45f);}}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){_464=lin[j].prototype;if(!_464.hasOwnProperty("declaredClass")){_464.declaredClass="uniqName_"+(_45b++);}name=_464.declaredClass;if(!_462.hasOwnProperty(name)){_462[name]={count:0,refs:[],cls:lin[j]};++_463;}rec=_462[name];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_461[0].refs.push(top);}while(_461.length){top=_461.pop();_460.push(top.cls);--_463;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break;}_460.push(top.cls);--_463;}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){_461.push(top);}}}}if(_463){err("can't build consistent linearization",_45f);}base=_45e[0];_460[0]=base?base._meta&&base===_460[_460.length-base._meta.bases.length]?base._meta.bases.length:1:0;return _460;};function _465(args,a,f){var name,_466,_467,_468,meta,base,_469,opf,pos,_46a=this._inherited=this._inherited||{};if(typeof args=="string"){name=args;args=a;a=f;}f=0;_468=args.callee;name=name||_468.nom;if(!name){err("can't deduce a name to call inherited()",this.declaredClass);}meta=this.constructor._meta;_467=meta.bases;pos=_46a.p;if(name!=_45c){if(_46a.c!==_468){pos=0;base=_467[0];meta=base._meta;if(meta.hidden[name]!==_468){_466=meta.chains;if(_466&&typeof _466[name]=="string"){err("calling chained method with inherited: "+name,this.declaredClass);}do{meta=base._meta;_469=base.prototype;if(meta&&(_469[name]===_468&&_469.hasOwnProperty(name)||meta.hidden[name]===_468)){break;}}while(base=_467[++pos]);pos=base?pos:-1;}}base=_467[++pos];if(base){_469=base.prototype;if(base._meta&&_469.hasOwnProperty(name)){f=_469[name];}else{opf=op[name];do{_469=base.prototype;f=_469[name];if(f&&(base._meta?_469.hasOwnProperty(name):f!==opf)){break;}}while(base=_467[++pos]);}}f=base&&f||op[name];}else{if(_46a.c!==_468){pos=0;meta=_467[0]._meta;if(meta&&meta.ctor!==_468){_466=meta.chains;if(!_466||_466.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(base=_467[++pos]){meta=base._meta;if(meta&&meta.ctor===_468){break;}}pos=base?pos:-1;}}while(base=_467[++pos]){meta=base._meta;f=meta?meta.ctor:base;if(f){break;}}f=base&&f;}_46a.c=f;_46a.p=pos;if(f){return a===true?f:f.apply(this,a||args);}};function _46b(name,args){if(typeof name=="string"){return this.__inherited(name,args,true);}return this.__inherited(name,true);};function _46c(args,a1,a2){var f=this.getInherited(args,a1);if(f){return f.apply(this,a2||a1||args);}};var _46d=dojo.config.isDebug?_46c:_465;function _46e(cls){var _46f=this.constructor._meta.bases;for(var i=0,l=_46f.length;i<l;++i){if(_46f[i]===cls){return true;}}return this instanceof cls;};function _470(_471,_472){for(var name in _472){if(name!=_45c&&_472.hasOwnProperty(name)){_471[name]=_472[name];}}if(has("bug-for-in-skips-shadowed")){for(var _473=lang._extraNames,i=_473.length;i;){name=_473[--i];if(name!=_45c&&_472.hasOwnProperty(name)){_471[name]=_472[name];}}}};function _474(_475,_476){var name,t;for(name in _476){t=_476[name];if((t!==op[name]||!(name in op))&&name!=_45c){if(opts.call(t)=="[object Function]"){t.nom=name;}_475[name]=t;}}if(has("bug-for-in-skips-shadowed")){for(var _477=lang._extraNames,i=_477.length;i;){name=_477[--i];t=_476[name];if((t!==op[name]||!(name in op))&&name!=_45c){if(opts.call(t)=="[object Function]"){t.nom=name;}_475[name]=t;}}}return _475;};function _478(_479){_47a.safeMixin(this.prototype,_479);return this;};function _47b(_47c){return _47a([this].concat(_47c));};function _47d(_47e,_47f){return function(){var a=arguments,args=a,a0=a[0],f,i,m,l=_47e.length,_480;if(!(this instanceof a.callee)){return _481(a);}if(_47f&&(a0&&a0.preamble||this.preamble)){_480=new Array(_47e.length);_480[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_47e[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_480[i]=a;}}for(i=l-1;i>=0;--i){f=_47e[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_480?_480[i]:a);}}f=this.postscript;if(f){f.apply(this,args);}};};function _482(ctor,_483){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _481(a);}if(_483){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 _484(_485){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _481(a);}for(;f=_485[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 _486(name,_487,_488){return function(){var b,m,f,i=0,step=1;if(_488){i=_487.length-1;step=-1;}for(;b=_487[i];i+=step){m=b._meta;f=(m?m.hidden:b.prototype)[name];if(f){f.apply(this,arguments);}}};};function _489(ctor){xtor.prototype=ctor.prototype;var t=new xtor;xtor.prototype=null;return t;};function _481(args){var ctor=args.callee,t=_489(ctor);ctor.apply(t,args);return t;};function _47a(_48a,_48b,_48c){if(typeof _48a!="string"){_48c=_48b;_48b=_48a;_48a="";}_48c=_48c||{};var _48d,i,t,ctor,name,_48e,_48f,_490=1,_491=_48b;if(opts.call(_48b)=="[object Array]"){_48e=_45d(_48b,_48a);t=_48e[0];_490=_48e.length-t;_48b=_48e[_490];}else{_48e=[0];if(_48b){if(opts.call(_48b)=="[object Function]"){t=_48b._meta;_48e=_48e.concat(t?t.bases:_48b);}else{err("base class is not a callable constructor.",_48a);}}else{if(_48b!==null){err("unknown base class. Did you use dojo.require to pull it in?",_48a);}}}if(_48b){for(i=_490-1;;--i){_48d=_489(_48b);if(!i){break;}t=_48e[i];(t._meta?_470:mix)(_48d,t.prototype);ctor=new Function;ctor.superclass=_48b;ctor.prototype=_48d;_48b=_48d.constructor=ctor;}}else{_48d={};}_47a.safeMixin(_48d,_48c);t=_48c.constructor;if(t!==op.constructor){t.nom=_45c;_48d.constructor=t;}for(i=_490-1;i;--i){t=_48e[i]._meta;if(t&&t.chains){_48f=mix(_48f||{},t.chains);}}if(_48d["-chains-"]){_48f=mix(_48f||{},_48d["-chains-"]);}t=!_48f||!_48f.hasOwnProperty(_45c);_48e[0]=ctor=(_48f&&_48f.constructor==="manual")?_484(_48e):(_48e.length==1?_482(_48c.constructor,t):_47d(_48e,t));ctor._meta={bases:_48e,hidden:_48c,chains:_48f,parents:_491,ctor:_48c.constructor};ctor.superclass=_48b&&_48b.prototype;ctor.extend=_478;ctor.createSubclass=_47b;ctor.prototype=_48d;_48d.constructor=ctor;_48d.getInherited=_46b;_48d.isInstanceOf=_46e;_48d.inherited=_46d;_48d.__inherited=_465;if(_48a){_48d.declaredClass=_48a;lang.setObject(_48a,ctor);}if(_48f){for(name in _48f){if(_48d[name]&&typeof _48f[name]=="string"&&name!=_45c){t=_48d[name]=_486(name,_48e,_48f[name]==="after");t.nom=name;}}}return ctor;};dojo.safeMixin=_47a.safeMixin=_474;dojo.declare=_47a;return _47a;});},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(dojo,lang,on){var win=window;var _492={addOnWindowUnload:function(obj,_493){if(!dojo.windowUnloaded){on(win,"unload",(dojo.windowUnloaded=function(){}));}on(win,"unload",lang.hitch(obj,_493));},addOnUnload:function(obj,_494){on(win,"beforeunload",lang.hitch(obj,_494));}};dojo.addOnWindowUnload=_492.addOnWindowUnload;dojo.addOnUnload=_492.addOnUnload;return _492;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_495,lang){var _496={};lang.setObject("dojo.string",_496);_496.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("");};_496.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_496.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_496.substitute=function(_497,map,_498,_499){_499=_499||_495.global;_498=_498?lang.hitch(_499,_498):function(v){return v;};return _497.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_49a,key,_49b){var _49c=lang.getObject(key,false,map);if(_49b){_49c=lang.getObject(_49b,false,_499).call(_499,_49c,key);}return _498(_49c,key).toString();});};_496.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 _496;});},"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,_49d,_49e,_49f,_4a0,_4a1,_4a2,_4a3,has,_4a4){var _4a5=_4a2("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _4a6=this.declaredClass,_4a7=this;return _49f.substitute(tmpl,this,function(_4a8,key){if(key.charAt(0)=="!"){_4a8=lang.getObject(key.substr(1),false,_4a7);}if(typeof _4a8=="undefined"){throw new Error(_4a6+" template:"+key);}if(_4a8==null){return "";}return key.charAt(0)=="!"?_4a8:_4a8.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_4a0(this.templatePath,{sanitize:true});}var _4a9=_4a5.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);var node;if(lang.isString(_4a9)){node=_4a3.toDom(this._stringRepl(_4a9),this.ownerDocument);if(node.nodeType!=1){throw new Error("Invalid template: "+_4a9);}}else{node=_4a9.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(_4aa){var dest=this.containerNode;if(_4aa&&dest){while(_4aa.hasChildNodes()){dest.appendChild(_4aa.firstChild);}}},_attachTemplateNodes:function(_4ab,_4ac){var _4ad=lang.isArray(_4ab)?_4ab:(_4ab.all||_4ab.getElementsByTagName("*"));var x=lang.isArray(_4ab)?0:-1;for(;x<0||_4ad[x];x++){var _4ae=(x==-1)?_4ab:_4ad[x];if(this.widgetsInTemplate&&(_4ac(_4ae,"dojoType")||_4ac(_4ae,"data-dojo-type"))){continue;}var _4af=_4ac(_4ae,"dojoAttachPoint")||_4ac(_4ae,"data-dojo-attach-point");if(_4af){var _4b0,_4b1=_4af.split(/\s*,\s*/);while((_4b0=_4b1.shift())){if(lang.isArray(this[_4b0])){this[_4b0].push(_4ae);}else{this[_4b0]=_4ae;}this._attachPoints.push(_4b0);}}var _4b2=_4ac(_4ae,"dojoAttachEvent")||_4ac(_4ae,"data-dojo-attach-event");if(_4b2){var _4b3,_4b4=_4b2.split(/\s*,\s*/);var trim=lang.trim;while((_4b3=_4b4.shift())){if(_4b3){var _4b5=null;if(_4b3.indexOf(":")!=-1){var _4b6=_4b3.split(":");_4b3=trim(_4b6[0]);_4b5=trim(_4b6[1]);}else{_4b3=trim(_4b3);}if(!_4b5){_4b5=_4b3;}this._attachEvents.push(this.connect(_4ae,_49d[_4b3]||_4b3,_4b5));}}}}},destroyRendering:function(){_4a1.forEach(this._attachPoints,function(_4b7){delete this[_4b7];},this);this._attachPoints=[];_4a1.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_4a5._templateCache={};_4a5.getCachedTemplate=function(_4b8,_4b9,doc){var _4ba=_4a5._templateCache;var key=_4b8;var _4bb=_4ba[key];if(_4bb){try{if(!_4bb.ownerDocument||_4bb.ownerDocument==(doc||document)){return _4bb;}}catch(e){}_4a3.destroy(_4bb);}_4b8=_49f.trim(_4b8);if(_4b9||_4b8.match(/\$\{([^\}]+)\}/g)){return (_4ba[key]=_4b8);}else{var node=_4a3.toDom(_4b8,doc);if(node.nodeType!=1){throw new Error("Invalid template: "+_4b8);}return (_4ba[key]=node);}};if(has("ie")){_4a4.addOnWindowUnload(function(){var _4bc=_4a5._templateCache;for(var key in _4bc){var _4bd=_4bc[key];if(typeof _4bd=="object"){_4a3.destroy(_4bd);}delete _4bc[key];}});}lang.extend(_49e,{dojoAttachEvent:"",dojoAttachPoint:""});return _4a5;});},"dojo/touch":function(){define("dojo/touch",["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,_4be,dom,on,has,_4bf,_4c0,win){var _4c1=has("touch");var ios4=false;if(has("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));ios4=os<5;}var _4c2,_4c3;if(_4c1){_4c0(function(){_4c3=win.body();win.doc.addEventListener("touchstart",function(evt){var _4c4=_4c3;_4c3=evt.target;on.emit(_4c4,"dojotouchout",{target:_4c4,relatedTarget:_4c3,bubbles:true});on.emit(_4c3,"dojotouchover",{target:_4c3,relatedTarget:_4c4,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _4c5=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_4c5&&_4c3!==_4c5){on.emit(_4c3,"dojotouchout",{target:_4c3,relatedTarget:_4c5,bubbles:true});on.emit(_4c5,"dojotouchover",{target:_4c5,relatedTarget:_4c3,bubbles:true});_4c3=_4c5;}});});_4c2=function(node,_4c6){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_4c3,node)){evt.target=_4c3;_4c6.call(this,evt);}});};}function _4c7(type){return function(node,_4c8){return on(node,type,_4c8);};};var _4c9={press:_4c7(_4c1?"touchstart":"mousedown"),move:_4c1?_4c2:_4c7("mousemove"),release:_4c7(_4c1?"touchend":"mouseup"),cancel:_4c1?_4c7("touchcancel"):_4bf.leave,over:_4c7(_4c1?"dojotouchover":"mouseover"),out:_4c7(_4c1?"dojotouchout":"mouseout"),enter:_4bf._eventHandler(_4c1?"dojotouchover":"mouseover"),leave:_4bf._eventHandler(_4c1?"dojotouchout":"mouseout")};1&&(dojo.touch=_4c9);return _4c9;});},"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(_4ca,_4cb,_4cc,_4cd,_4ce,_4cf,dom,_4d0,_4d1,_4d2,_4d3,_4d4,has,_4d5,lang,on,_4d6,_4d7,_4d8,win,_4d9,_4da){has.add("dijit-legacy-requires",!_4d5.isAsync);if(has("dijit-legacy-requires")){_4d6(0,function(){var _4db=["dijit/_base/manager"];_4ca(_4db);});}var _4dc={};function _4dd(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _4de(attr){return function(val){_4d0[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _4cf("dijit._WidgetBase",[_4d7,_4d9],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_4de("lang"),dir:"",_setDirAttr:_4de("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:_4cd.blankGif||_4ca.toUrl("dojo/resources/blank.gif"),postscript:function(_4df,_4e0){this.create(_4df,_4e0);},create:function(_4e1,_4e2){this.srcNodeRef=dom.byId(_4e2);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_4e1){this.params=_4e1;lang.mixin(this,_4e1);}this.postMixInProperties();if(!this.id){this.id=_4da.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);_4da.add(this);this.buildRendering();var _4e3;if(this.domNode){this._applyAttributes();var _4e4=this.srcNodeRef;if(_4e4&&_4e4.parentNode&&this.domNode!==_4e4){_4e4.parentNode.replaceChild(this.domNode,_4e4);_4e3=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_4e3){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 _4e5=ctor.prototype;for(var _4e6 in _4e5){if(_4e6 in this.attributeMap){continue;}var _4e7="_set"+_4e6.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_4e7 in _4e5){list.push(_4e6);}}}var _4e8={};for(var key in this.params||{}){_4e8[key]=this[key];}_4cb.forEach(list,function(attr){if(attr in _4e8){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(key in _4e8){this.set(key,_4e8[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _4e9=this.baseClass.split(" ");if(!this.isLeftToRight()){_4e9=_4e9.concat(_4cb.map(_4e9,function(name){return name+"Rtl";}));}_4d1.add(this.domNode,_4e9);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_4cb.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_4ea){this._beingDestroyed=true;this.destroyDescendants(_4ea);this.destroy(_4ea);},destroy:function(_4eb){this._beingDestroyed=true;this.uninitialize();function _4ec(w){if(w.destroyRecursive){w.destroyRecursive(_4eb);}else{if(w.destroy){w.destroy(_4eb);}}};_4cb.forEach(this._connects,lang.hitch(this,"disconnect"));_4cb.forEach(this._supportingWidgets,_4ec);if(this.domNode){_4cb.forEach(_4da.findWidgets(this.domNode,this.containerNode),_4ec);}this.destroyRendering(_4eb);_4da.remove(this.id);this._destroyed=true;},destroyRendering:function(_4ed){if(this.bgIframe){this.bgIframe.destroy(_4ed);delete this.bgIframe;}if(this.domNode){if(_4ed){_4d0.remove(this.domNode,"widgetId");}else{_4d2.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_4ed){_4d2.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_4ee){_4cb.forEach(this.getChildren(),function(_4ef){if(_4ef.destroyRecursive){_4ef.destroyRecursive(_4ee);}});},uninitialize:function(){return false;},_setStyleAttr:function(_4f0){var _4f1=this.domNode;if(lang.isObject(_4f0)){_4d4.set(_4f1,_4f0);}else{if(_4f1.style.cssText){_4f1.style.cssText+="; "+_4f0;}else{_4f1.style.cssText=_4f0;}}this._set("style",_4f0);},_attrToDom:function(attr,_4f2,_4f3){_4f3=arguments.length>=3?_4f3:this.attributeMap[attr];_4cb.forEach(lang.isArray(_4f3)?_4f3:[_4f3],function(_4f4){var _4f5=this[_4f4.node||_4f4||"domNode"];var type=_4f4.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_4f2)){_4f2=lang.hitch(this,_4f2);}var _4f6=_4f4.attribute?_4f4.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_4f5.tagName){_4d0.set(_4f5,_4f6,_4f2);}else{_4f5.set(_4f6,_4f2);}break;case "innerText":_4f5.innerHTML="";_4f5.appendChild(this.ownerDocument.createTextNode(_4f2));break;case "innerHTML":_4f5.innerHTML=_4f2;break;case "class":_4d1.replace(_4f5,_4f2,this[attr]);break;}},this);},get:function(name){var _4f7=this._getAttrNames(name);return this[_4f7.g]?this[_4f7.g]():this[name];},set:function(name,_4f8){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _4f9=this._getAttrNames(name),_4fa=this[_4f9.s];if(lang.isFunction(_4fa)){var _4fb=_4fa.apply(this,Array.prototype.slice.call(arguments,1));}else{var _4fc=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_4fc].tagName,_4fd=_4dc[tag]||(_4dc[tag]=_4dd(this[_4fc])),map=name in this.attributeMap?this.attributeMap[name]:_4f9.s in this?this[_4f9.s]:((_4f9.l in _4fd&&typeof _4f8!="function")||/^aria-|^data-|^role$/.test(name))?_4fc:null;if(map!=null){this._attrToDom(name,_4f8,map);}this._set(name,_4f8);}return _4fb||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,_4fe){var _4ff=this[name];this[name]=_4fe;if(this._created&&_4fe!==_4ff){if(this._watchCallbacks){this._watchCallbacks(name,_4ff,_4fe);}this.emit("attrmodified-"+name,{detail:{prevValue:_4ff,newValue:_4fe}});}},emit:function(type,_500,_501){_500=_500||{};if(_500.bubbles===undefined){_500.bubbles=true;}if(_500.cancelable===undefined){_500.cancelable=true;}if(!_500.detail){_500.detail={};}_500.detail.widget=this;var ret,_502=this["on"+type];if(_502){ret=_502.apply(this,_501?_501:[_500]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_500);}return ret;},on:function(type,func){var _503=this._onMap(type);if(_503){return _4cc.after(this,_503,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?_4da.findWidgets(this.containerNode):[];},getParent:function(){return _4da.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_504,_505){return this.own(_4ce.connect(obj,_504,this,_505))[0];},disconnect:function(_506){_506.remove();},subscribe:function(t,_507){return this.own(_4d8.subscribe(t,lang.hitch(this,_507)))[0];},unsubscribe:function(_508){_508.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_4d3.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_4d4.get(this.domNode,"display")!="none");},placeAt:function(_509,_50a){var _50b=!_509.tagName&&_4da.byId(_509);if(_50b&&_50b.addChild&&(!_50a||typeof _50a==="number")){_50b.addChild(this,_50a);}else{var ref=_50b?(_50b.containerNode&&!/after|before|replace/.test(_50a||"")?_50b.containerNode:_50b.domNode):dom.byId(_509,this.ownerDocument);_4d2.place(this.domNode,ref,_50a);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_50c){return _50c;},applyTextDir:function(){},defer:function(fcn,_50d){var _50e=setTimeout(lang.hitch(this,function(){_50e=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_50d||0);return {remove:function(){if(_50e){clearTimeout(_50e);_50e=null;}return null;}};}});});},"dojo/Stateful":function(){define("dojo/Stateful",["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_50f,lang,_510,when){return _50f("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(_511){if(_511){this.set(_511);}},_get:function(name,_512){return typeof this[_512.g]==="function"?this[_512.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_513){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _514=this._getAttrNames(name),_515=this._get(name,_514),_516=this[_514.s],_517;if(typeof _516==="function"){_517=_516.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_513;}if(this._watchCallbacks){var self=this;when(_517,function(){self._watchCallbacks(name,_515,_513);});}return this;},_changeAttrValue:function(name,_518){var _519=this.get(name);this[name]=_518;if(this._watchCallbacks){this._watchCallbacks(name,_519,_518);}return this;},watch:function(name,_51a){var _51b=this._watchCallbacks;if(!_51b){var self=this;_51b=this._watchCallbacks=function(name,_51c,_51d,_51e){var _51f=function(_520){if(_520){_520=_520.slice();for(var i=0,l=_520.length;i<l;i++){_520[i].call(self,name,_51c,_51d);}}};_51f(_51b["_"+name]);if(!_51e){_51f(_51b["*"]);}};}if(!_51a&&typeof name==="function"){_51a=name;name="*";}else{name="_"+name;}var _521=_51b[name];if(typeof _521!=="object"){_521=_51b[name]=[];}_521.push(_51a);var _522={};_522.unwatch=_522.remove=function(){var _523=_510.indexOf(_521,_51a);if(_523>-1){_521.splice(_523,1);}};return _522;}});});},"dojo/when":function(){define("dojo/when",["./Deferred","./promise/Promise"],function(_524,_525){"use strict";return function when(_526,_527,_528,_529){var _52a=_526&&typeof _526.then==="function";var _52b=_52a&&_526 instanceof _525;if(!_52a){if(_527){return _527(_526);}else{return new _524().resolve(_526);}}else{if(!_52b){var _52c=new _524(_526.cancel);_526.then(_52c.resolve,_52c.reject,_52c.progress);_526=_52c.promise;}}if(_527||_528||_529){return _526.then(_527,_528,_529);}return _526;};});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_52d,_52e,_52f){return _52f("dijit.Destroyable",null,{destroy:function(_530){this._destroyed=true;},own:function(){_52d.forEach(arguments,function(_531){var _532="destroyRecursive" in _531?"destroyRecursive":"destroy" in _531?"destroy":"remove";var odh=_52e.before(this,"destroy",function(_533){_531[_532](_533);});var hdh=_52e.after(_531,_532,function(){odh.remove();hdh.remove();},true);},this);return arguments;}});});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_534,has,_535,win,_536){var _537={},hash={};var _538={length:0,add:function(_539){if(hash[_539.id]){throw new Error("Tried to register widget with id=="+_539.id+" but that id is already registered");}hash[_539.id]=_539;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(_53a){var id;do{id=_53a+"_"+(_53a in _537?++_537[_53a]:_537[_53a]=0);}while(hash[id]);return _536._scopeName=="dijit"?id:_536._scopeName+"_"+id;},findWidgets:function(root,_53b){var _53c=[];function _53d(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _53e=node.getAttribute("widgetId");if(_53e){var _53f=hash[_53e];if(_53f){_53c.push(_53f);}}else{if(node!==_53b){_53d(node);}}}}};_53d(root);return _53c;},_destroyAll:function(){_536._curFocus=null;_536._prevFocus=null;_536._activeStack=[];_534.forEach(_538.findWidgets(win.body()),function(_540){if(!_540._destroyed){if(_540.destroyRecursive){_540.destroyRecursive();}else{if(_540.destroy){_540.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.nodeType==1&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_536.registry=_538;return _538;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/cache":function(){define("dojo/cache",["./_base/kernel","./text"],function(dojo){return dojo.cache;});},"dojo/text":function(){define("dojo/text",["./_base/kernel","require","./has","./_base/xhr"],function(dojo,_541,has,xhr){var _542;if(1){_542=function(url,sync,load){xhr("GET",{url:url,sync:!!sync,load:load,headers:dojo.config.textPluginHeaders||{}});};}else{if(_541.getText){_542=_541.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _543={},_544=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _545=text.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_545){text=_545[1];}}else{text="";}return text;},_546={},_547={};dojo.cache=function(_548,url,_549){var key;if(typeof _548=="string"){if(/\//.test(_548)){key=_548;_549=url;}else{key=_541.toUrl(_548.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_548+"";_549=url;}var val=(_549!=undefined&&typeof _549!="string")?_549.value:_549,_54a=_549&&_549.sanitize;if(typeof val=="string"){_543[key]=val;return _54a?_544(val):val;}else{if(val===null){delete _543[key];return null;}else{if(!(key in _543)){_542(key,true,function(text){_543[key]=text;});}return _54a?_544(_543[key]):_543[key];}}};return {dynamic:true,normalize:function(id,_54b){var _54c=id.split("!"),url=_54c[0];return (/^\./.test(url)?_54b(url):url)+(_54c[1]?"!"+_54c[1]:"");},load:function(id,_54d,load){var _54e=id.split("!"),_54f=_54e.length>1,_550=_54e[0],url=_54d.toUrl(_54e[0]),_551="url:"+url,text=_546,_552=function(text){load(_54f?_544(text):text);};if(_550 in _543){text=_543[_550];}else{if(_551 in _54d.cache){text=_54d.cache[_551];}else{if(url in _543){text=_543[url];}}}if(text===_546){if(_547[url]){_547[url].push(_552);}else{var _553=_547[url]=[_552];_542(url,!_54d.async,function(text){_543[_550]=_543[url]=text;for(var i=0;i<_553.length;){_553[i++](text);}delete _547[url];});}}else{_552(text);}}};});},"dojo/_base/xhr":function(){define(["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./config","./json","./lang","./array","../on","../aspect","../request/watch","../request/xhr","../request/util"],function(dojo,has,_554,ioq,dom,_555,_556,_557,json,lang,_558,on,_559,_55a,_55b,util){dojo._xhrObj=_55b._create;var cfg=dojo.config;dojo.objectToQuery=ioq.objectToQuery;dojo.queryToObject=ioq.queryToObject;dojo.fieldToObject=_555.fieldToObject;dojo.formToObject=_555.toObject;dojo.formToQuery=_555.toQuery;dojo.formToJson=_555.toJson;dojo._blockAsync=false;var _55c=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(!_557.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 _55d=xhr.responseText;var _55e=_55d.indexOf("/*");var _55f=_55d.lastIndexOf("*/");if(_55e==-1||_55f==-1){throw new Error("JSON was not comment filtered");}return json.fromJson(_55d.substring(_55e+2,_55f));},"javascript":function(xhr){return dojo.eval(xhr.responseText);},"xml":function(xhr){var _560=xhr.responseXML;if(has("ie")){if((!_560||!_560.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_558.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_560=dom;}catch(e){return false;}return true;});}}return _560;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _55c["json-comment-filtered"](xhr);}else{return _55c["json"](xhr);}}};dojo._ioSetArgs=function(args,_561,_562,_563){var _564={args:args,url:args.url};var _565=null;if(args.form){var form=dom.byId(args.form);var _566=form.getAttributeNode("action");_564.url=_564.url||(_566?_566.value:null);_565=_555.toObject(form);}var _567=[{}];if(_565){_567.push(_565);}if(args.content){_567.push(args.content);}if(args.preventCache){_567.push({"dojo.preventCache":new Date().valueOf()});}_564.query=ioq.objectToQuery(lang.mixin.apply(null,_567));_564.handleAs=args.handleAs||"text";var d=new _556(function(dfd){dfd.canceled=true;_561&&_561(dfd);var err=dfd.ioArgs.error;if(!err){err=new Error("request cancelled");err.dojoType="cancel";dfd.ioArgs.error=err;}return err;});d.addCallback(_562);var ld=args.load;if(ld&&lang.isFunction(ld)){d.addCallback(function(_568){return ld.call(args,_568,_564);});}var err=args.error;if(err&&lang.isFunction(err)){d.addErrback(function(_569){return err.call(args,_569,_564);});}var _56a=args.handle;if(_56a&&lang.isFunction(_56a)){d.addBoth(function(_56b){return _56a.call(args,_56b,_564);});}d.addErrback(function(_56c){return _563(_56c,d);});if(cfg.ioPublish&&dojo.publish&&_564.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=_564;return d;};var _56d=function(dfd){var ret=_55c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _56e=function(_56f,dfd){if(!dfd.ioArgs.args.failOk){console.error(_56f);}return _56f;};var _570=function(dfd){if(_571<=0){_571=0;if(cfg.ioPublish&&dojo.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){dojo.publish("/dojo/io/stop");}}};var _571=0;_559.after(_55a,"_onAction",function(){_571-=1;});_559.after(_55a,"_onInFlight",_570);dojo._ioCancelAll=_55a.cancelAll;dojo._ioNotifyStart=function(dfd){if(cfg.ioPublish&&dojo.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_571){dojo.publish("/dojo/io/start");}_571+=1;dojo.publish("/dojo/io/send",[dfd]);}};dojo._ioWatch=function(dfd,_572,_573,_574){var args=dfd.ioArgs.options=dfd.ioArgs.args;lang.mixin(dfd,{response:dfd.ioArgs,isValid:function(_575){return _572(dfd);},isReady:function(_576){return _573(dfd);},handleResponse:function(_577){return _574(dfd);}});_55a(dfd);_570(dfd);};var _578="application/x-www-form-urlencoded";dojo._ioAddQueryToUrl=function(_579){if(_579.query.length){_579.url+=(_579.url.indexOf("?")==-1?"?":"&")+_579.query;_579.query=null;}};dojo.xhr=function(_57a,args,_57b){var rDfd;var dfd=dojo._ioSetArgs(args,function(dfd){rDfd&&rDfd.cancel();},_56d,_56e);var _57c=dfd.ioArgs;if("postData" in args){_57c.query=args.postData;}else{if("putData" in args){_57c.query=args.putData;}else{if("rawBody" in args){_57c.query=args.rawBody;}else{if((arguments.length>2&&!_57b)||"POST|PUT".indexOf(_57a.toUpperCase())===-1){dojo._ioAddQueryToUrl(_57c);}}}}var _57d={method:_57a,handleAs:"text",timeout:args.timeout,withCredentials:args.withCredentials,ioArgs:_57c};if(typeof args.headers!=="undefined"){_57d.headers=args.headers;}if(typeof args.contentType!=="undefined"){if(!_57d.headers){_57d.headers={};}_57d.headers["Content-Type"]=args.contentType;}if(typeof _57c.query!=="undefined"){_57d.data=_57c.query;}if(typeof args.sync!=="undefined"){_57d.sync=args.sync;}dojo._ioNotifyStart(dfd);try{rDfd=_55b(_57c.url,_57d,true);}catch(e){dfd.cancel();return dfd;}dfd.ioArgs.xhr=rDfd.response.xhr;rDfd.then(function(){dfd.resolve(dfd);}).otherwise(function(_57e){_57c.error=_57e;if(_57e.response){_57e.status=_57e.response.status;_57e.responseText=_57e.response.text;_57e.xhr=_57e.response.xhr;}dfd.reject(_57e);});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 _57f;dojo.xhrGet({url:url,sync:true,load:function(text){_57f=text;}});return _57f;};lang.mixin(dojo.xhr,{_xhrObj:dojo._xhrObj,fieldToObject:_555.fieldToObject,formToObject:_555.toObject,objectToQuery:ioq.objectToQuery,formToQuery:_555.toQuery,formToJson:_555.toJson,queryToObject:ioq.queryToObject,contentHandlers:_55c,_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;});},"dojo/io-query":function(){define("dojo/io-query",["./_base/lang"],function(lang){var _580={};return {objectToQuery:function objectToQuery(map){var enc=encodeURIComponent,_581=[];for(var name in map){var _582=map[name];if(_582!=_580[name]){var _583=enc(name)+"=";if(lang.isArray(_582)){for(var i=0,l=_582.length;i<l;++i){_581.push(_583+enc(_582[i]));}}else{_581.push(_583+enc(_582));}}}return _581.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;}};});},"dojo/dom-form":function(){define("dojo/dom-form",["./_base/lang","./dom","./io-query","./json"],function(lang,dom,ioq,json){function _584(obj,name,_585){if(_585===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_585];}else{if(lang.isArray(val)){val.push(_585);}else{obj[name]=_585;}}};var _586="file|submit|image|reset|button";var form={fieldToObject:function fieldToObject(_587){var ret=null;_587=dom.byId(_587);if(_587){var _588=_587.name,type=(_587.type||"").toLowerCase();if(_588&&type&&!_587.disabled){if(type=="radio"||type=="checkbox"){if(_587.checked){ret=_587.value;}}else{if(_587.multiple){ret=[];var _589=[_587.firstChild];while(_589.length){for(var node=_589.pop();node;node=node.nextSibling){if(node.nodeType==1&&node.tagName.toLowerCase()=="option"){if(node.selected){ret.push(node.value);}}else{if(node.nextSibling){_589.push(node.nextSibling);}if(node.firstChild){_589.push(node.firstChild);}break;}}}}else{ret=_587.value;}}}}return ret;},toObject:function formToObject(_58a){var ret={},_58b=dom.byId(_58a).elements;for(var i=0,l=_58b.length;i<l;++i){var item=_58b[i],_58c=item.name,type=(item.type||"").toLowerCase();if(_58c&&type&&_586.indexOf(type)<0&&!item.disabled){_584(ret,_58c,form.fieldToObject(item));if(type=="image"){ret[_58c+".x"]=ret[_58c+".y"]=ret[_58c].x=ret[_58c].y=0;}}}return ret;},toQuery:function formToQuery(_58d){return ioq.objectToQuery(form.toObject(_58d));},toJson:function formToJson(_58e,_58f){return json.stringify(form.toObject(_58e),null,_58f?4:0);}};return form;});},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(dojo,_590,_591,_592,has,lang,when){var _593=function(){};var _594=Object.freeze||function(){};var _595=dojo.Deferred=function(_596){var _597,_598,_599,head,_59a;var _59b=(this.promise=new _591());function _59c(_59d){if(_598){throw new Error("This deferred has already been resolved");}_597=_59d;_598=true;_59e();};function _59e(){var _59f;while(!_59f&&_59a){var _5a0=_59a;_59a=_59a.next;if((_59f=(_5a0.progress==_593))){_598=false;}var func=(_599?_5a0.error:_5a0.resolved);if(has("config-useDeferredInstrumentation")){if(_599&&_590.instrumentRejected){_590.instrumentRejected(_597,!!func);}}if(func){try{var _5a1=func(_597);if(_5a1&&typeof _5a1.then==="function"){_5a1.then(lang.hitch(_5a0.deferred,"resolve"),lang.hitch(_5a0.deferred,"reject"),lang.hitch(_5a0.deferred,"progress"));continue;}var _5a2=_59f&&_5a1===undefined;if(_59f&&!_5a2){_599=_5a1 instanceof Error;}_5a0.deferred[_5a2&&_599?"reject":"resolve"](_5a2?_597:_5a1);}catch(e){_5a0.deferred.reject(e);}}else{if(_599){_5a0.deferred.reject(_597);}else{_5a0.deferred.resolve(_597);}}}};this.resolve=this.callback=function(_5a3){this.fired=0;this.results=[_5a3,null];_59c(_5a3);};this.reject=this.errback=function(_5a4){_599=true;this.fired=1;if(has("config-useDeferredInstrumentation")){if(_590.instrumentRejected){_590.instrumentRejected(_5a4,!!_59a);}}_59c(_5a4);this.results=[null,_5a4];};this.progress=function(_5a5){var _5a6=_59a;while(_5a6){var _5a7=_5a6.progress;_5a7&&_5a7(_5a5);_5a6=_5a6.next;}};this.addCallbacks=function(_5a8,_5a9){this.then(_5a8,_5a9,_593);return this;};_59b.then=this.then=function(_5aa,_5ab,_5ac){var _5ad=_5ac==_593?this:new _595(_59b.cancel);var _5ae={resolved:_5aa,error:_5ab,progress:_5ac,deferred:_5ad};if(_59a){head=head.next=_5ae;}else{_59a=head=_5ae;}if(_598){_59e();}return _5ad.promise;};var _5af=this;_59b.cancel=this.cancel=function(){if(!_598){var _5b0=_596&&_596(_5af);if(!_598){if(!(_5b0 instanceof Error)){_5b0=new _592(_5b0);}_5b0.log=false;_5af.reject(_5b0);}}};_594(_59b);};lang.extend(_595,{addCallback:function(_5b1){return this.addCallbacks(lang.hitch.apply(dojo,arguments));},addErrback:function(_5b2){return this.addCallbacks(null,lang.hitch.apply(dojo,arguments));},addBoth:function(_5b3){var _5b4=lang.hitch.apply(dojo,arguments);return this.addCallbacks(_5b4,_5b4);},fired:-1});_595.when=dojo.when=when;return _595;});},"dojo/request/watch":function(){define(["./util","../errors/RequestTimeoutError","../errors/CancelError","../_base/array","../_base/window","../has!host-browser?dom-addeventlistener?:../on:"],function(util,_5b5,_5b6,_5b7,win,on){var _5b8=null,_5b9=[];function _5ba(){var now=+(new Date);for(var i=0,dfd;i<_5b9.length&&(dfd=_5b9[i]);i++){var _5bb=dfd.response,_5bc=_5bb.options;if((dfd.isCanceled&&dfd.isCanceled())||(dfd.isValid&&!dfd.isValid(_5bb))){_5b9.splice(i--,1);_5bd._onAction&&_5bd._onAction();}else{if(dfd.isReady&&dfd.isReady(_5bb)){_5b9.splice(i--,1);dfd.handleResponse(_5bb);_5bd._onAction&&_5bd._onAction();}else{if(dfd.startTime){if(dfd.startTime+(_5bc.timeout||0)<now){_5b9.splice(i--,1);dfd.cancel(new _5b5("Timeout exceeded",_5bb));_5bd._onAction&&_5bd._onAction();}}}}}_5bd._onInFlight&&_5bd._onInFlight(dfd);if(!_5b9.length){clearInterval(_5b8);_5b8=null;}};function _5bd(dfd){if(dfd.response.options.timeout){dfd.startTime=+(new Date);}if(dfd.isFulfilled()){return;}_5b9.push(dfd);if(!_5b8){_5b8=setInterval(_5ba,50);}if(dfd.response.options.sync){_5ba();}};_5bd.cancelAll=function cancelAll(){try{_5b7.forEach(_5b9,function(dfd){try{dfd.cancel(new _5b6("All requests canceled."));}catch(e){}});}catch(e){}};if(win&&on&&win.doc.attachEvent){on(win.global,"unload",function(){_5bd.cancelAll();});}return _5bd;});},"dojo/request/util":function(){define(["exports","../errors/RequestError","../errors/CancelError","../Deferred","../io-query","../_base/array","../_base/lang"],function(_5be,_5bf,_5c0,_5c1,_5c2,_5c3,lang){_5be.deepCopy=function deepCopy(_5c4,_5c5){for(var name in _5c5){var tval=_5c4[name],sval=_5c5[name];if(tval!==sval){if(tval&&typeof tval==="object"&&sval&&typeof sval==="object"){_5be.deepCopy(tval,sval);}else{_5c4[name]=sval;}}}return _5c4;};_5be.deepCreate=function deepCreate(_5c6,_5c7){_5c7=_5c7||{};var _5c8=lang.delegate(_5c6),name,_5c9;for(name in _5c6){_5c9=_5c6[name];if(_5c9&&typeof _5c9==="object"){_5c8[name]=_5be.deepCreate(_5c9,_5c7[name]);}}return _5be.deepCopy(_5c8,_5c7);};var _5ca=Object.freeze||function(obj){return obj;};function _5cb(_5cc){return _5ca(_5cc);};_5be.deferred=function deferred(_5cd,_5ce,_5cf,_5d0,_5d1,last){var def=new _5c1(function(_5d2){_5ce&&_5ce(def,_5cd);if(!_5d2||!(_5d2 instanceof _5bf)&&!(_5d2 instanceof _5c0)){return new _5c0("Request canceled",_5cd);}return _5d2;});def.response=_5cd;def.isValid=_5cf;def.isReady=_5d0;def.handleResponse=_5d1;function _5d3(_5d4){_5d4.response=_5cd;throw _5d4;};var _5d5=def.then(_5cb).otherwise(_5d3);if(_5be.notify){_5d5.then(lang.hitch(_5be.notify,"emit","load"),lang.hitch(_5be.notify,"emit","error"));}var _5d6=_5d5.then(function(_5d7){return _5d7.data||_5d7.text;});var _5d8=_5ca(lang.delegate(_5d6,{response:_5d5}));if(last){def.then(function(_5d9){last.call(def,_5d9);},function(_5da){last.call(def,_5cd,_5da);});}def.promise=_5d8;def.then=_5d8.then;return def;};_5be.addCommonMethods=function addCommonMethods(_5db,_5dc){_5c3.forEach(_5dc||["GET","POST","PUT","DELETE"],function(_5dd){_5db[(_5dd==="DELETE"?"DEL":_5dd).toLowerCase()]=function(url,_5de){_5de=lang.delegate(_5de||{});_5de.method=_5dd;return _5db(url,_5de);};});};_5be.parseArgs=function parseArgs(url,_5df,_5e0){var data=_5df.data,_5e1=_5df.query;if(data&&!_5e0){if(typeof data==="object"){_5df.data=_5c2.objectToQuery(data);}}if(_5e1){if(typeof _5e1==="object"){_5e1=_5c2.objectToQuery(_5e1);}if(_5df.preventCache){_5e1+=(_5e1?"&":"")+"request.preventCache="+(+(new Date));}}else{if(_5df.preventCache){_5e1="request.preventCache="+(+(new Date));}}if(url&&_5e1){url+=(~url.indexOf("?")?"&":"?")+_5e1;}return {url:url,options:_5df,getHeader:function(_5e2){return null;}};};_5be.checkStatus=function(stat){stat=stat||0;return (stat>=200&&stat<300)||stat===304||stat===1223||!stat;};});},"dojo/errors/RequestError":function(){define(["./create"],function(_5e3){return _5e3("RequestError",function(_5e4,_5e5){this.response=_5e5;});});},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(_5e6,_5e7){return _5e6("RequestTimeoutError",null,_5e7,{dojoType:"timeout"});});},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(_5e8,_5e9,_5ea,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 _5eb(_5ec,_5ed){var _5ee=_5ec.xhr;_5ec.status=_5ec.xhr.status;_5ec.text=_5ee.responseText;if(_5ec.options.handleAs==="xml"){_5ec.data=_5ee.responseXML;}if(!_5ed){try{_5ea(_5ec);}catch(e){_5ed=e;}}if(_5ed){this.reject(_5ed);}else{if(util.checkStatus(_5ee.status)){this.resolve(_5ec);}else{_5ed=new _5e8("Unable to load "+_5ec.url+" status: "+_5ee.status,_5ec);this.reject(_5ed);}}};var _5ef,_5f0,_5f1,_5f2;if(has("native-xhr2")){_5ef=function(_5f3){return !this.isFulfilled();};_5f2=function(dfd,_5f4){_5f4.xhr.abort();};_5f1=function(_5f5,dfd,_5f6){function _5f7(evt){dfd.handleResponse(_5f6);};function _5f8(evt){var _5f9=evt.target;var _5fa=new _5e8("Unable to load "+_5f6.url+" status: "+_5f9.status,_5f6);dfd.handleResponse(_5f6,_5fa);};function _5fb(evt){if(evt.lengthComputable){_5f6.loaded=evt.loaded;_5f6.total=evt.total;dfd.progress(_5f6);}};_5f5.addEventListener("load",_5f7,false);_5f5.addEventListener("error",_5f8,false);_5f5.addEventListener("progress",_5fb,false);return function(){_5f5.removeEventListener("load",_5f7,false);_5f5.removeEventListener("error",_5f8,false);_5f5.removeEventListener("progress",_5fb,false);};};}else{_5ef=function(_5fc){return _5fc.xhr.readyState;};_5f0=function(_5fd){return 4===_5fd.xhr.readyState;};_5f2=function(dfd,_5fe){var xhr=_5fe.xhr;var _5ff=typeof xhr.abort;if(_5ff==="function"||_5ff==="object"||_5ff==="unknown"){xhr.abort();}};}var _600,_601={data:null,query:null,sync:false,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}};function xhr(url,_602,_603){var _604=util.parseArgs(url,util.deepCreate(_601,_602),has("native-formdata")&&_602&&_602.data&&_602.data instanceof FormData);url=_604.url;_602=_604.options;var _605,last=function(){_605&&_605();};var dfd=util.deferred(_604,_5f2,_5ef,_5f0,_5eb,last);var _606=_604.xhr=xhr._create();if(!_606){dfd.cancel(new _5e8("XHR was not created"));return _603?dfd:dfd.promise;}_604.getHeader=function(_607){return this.xhr.getResponseHeader(_607);};if(_5f1){_605=_5f1(_606,dfd,_604);}var data=_602.data,_608=!_602.sync,_609=_602.method;try{_606.open(_609,url,_608,_602.user||_600,_602.password||_600);if(_602.withCredentials){_606.withCredentials=_602.withCredentials;}var _60a=_602.headers,_60b;if(_60a){for(var hdr in _60a){if(hdr.toLowerCase()==="content-type"){_60b=_60a[hdr];}else{if(_60a[hdr]){_606.setRequestHeader(hdr,_60a[hdr]);}}}}if(_60b&&_60b!==false){_606.setRequestHeader("Content-Type",_60b);}if(!_60a||!("X-Requested-With" in _60a)){_606.setRequestHeader("X-Requested-With","XMLHttpRequest");}if(util.notify){util.notify.emit("send",_604,dfd.promise.cancel);}_606.send(data);}catch(e){dfd.reject(e);}_5e9(dfd);_606=null;return _603?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;});},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has"],function(JSON,_60c,_60d,has){has.add("activex",typeof ActiveXObject!=="undefined");var _60e;if(has("activex")){var dp=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];_60e=function(_60f){var _610=_60f.data;if(!_610||!_610.documentElement){var text=_60f.text;_60d.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(text);_610=dom;}catch(e){return false;}return true;});}return _610;};}var _611={"javascript":function(_612){return _60c.eval(_612.text||"");},"json":function(_613){return JSON.parse(_613.text||null);},"xml":_60e};function _614(_615){var _616=_611[_615.options.handleAs];_615.data=_616?_616(_615):(_615.data||_615.text);return _615;};_614.register=function(name,_617){_611[name]=_617;};return _614;});},"dijit/_WidgetsInTemplateMixin":function(){define("dijit/_WidgetsInTemplateMixin",["dojo/_base/array","dojo/_base/declare","dojo/parser"],function(_618,_619,_61a){return _619("dijit._WidgetsInTemplateMixin",null,{_earlyTemplatedStartup:false,widgetsInTemplate:true,_beforeFillContent:function(){if(this.widgetsInTemplate){var node=this.domNode;var cw=(this._startupWidgets=_61a.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(){_618.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);}});});},"todo/CssToggleWidget":function(){define("todo/CssToggleWidget",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dijit/_WidgetBase"],function(_61b,_61c,lang,_61d,_61e){return _61c(_61e,{_attrToDom:function(attr,_61f,_620){var _621=arguments.callee;_61b.forEach((function(){return lang.isArray(_620)?_620.slice(0):[_620];})(arguments.length>=3?_620:this.attributeMap[attr]),function(_622){_622.type!="classExists"?this.inherited("_attrToDom",lang.mixin([attr,_61f,_622],{callee:_621})):_61d.toggle(this[_622.node||"domNode"],_622.className||attr,_61f);},this);}});});},"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<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:\n\t\t\t 'domNode'}, value: at(${id}_ctrl, 'complete')\"></span><!--\n\t\t-->)</button>\n\t</footer>\n</section>\n","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}\" role=\"${type}\" aria-checked=\"false\" ${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(_623,_624,_625,has,_626,_627,_628,_629,_62a){if(has("dijit-legacy-requires")){_627(0,function(){var _62b=["dijit/form/RadioButton"];_623(_62b);});}return _624("dijit.form.CheckBox",[_628,_629],{templateString:_62a,baseClass:"dijitCheckBox",_setValueAttr:function(_62c,_62d){if(typeof _62c=="string"){this.inherited(arguments);_62c=true;}if(this._created){this.set("checked",_62c,_62d);}},_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){_626("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){_626("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);}});});},"dijit/form/ToggleButton":function(){define("dijit/form/ToggleButton",["dojo/_base/declare","dojo/_base/kernel","./Button","./_ToggleButtonMixin"],function(_62e,_62f,_630,_631){return _62e("dijit.form.ToggleButton",[_630,_631],{baseClass:"dijitToggleButton",setChecked:function(_632){_62f.deprecated("setChecked("+_632+") is deprecated. Use set('checked',"+_632+") instead.","","2.0");this.set("checked",_632);}});});},"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(_633,_634,_635,has,_636,lang,_637,_638,_639,_63a){if(has("dijit-legacy-requires")){_637(0,function(){var _63b=["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"];_633(_63b);});}return _634("dijit.form.Button",[_638,_639],{showLabel:true,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:_63a,_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(_63c){if(_63c&&(!this.params||!("label" in this.params))){var _63d=lang.trim(_63c.innerHTML);if(_63d){this.label=_63d;}}},_setShowLabelAttr:function(val){if(this.containerNode){_635.toggle(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},setLabel:function(_63e){_636.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_63e);},_setLabelAttr:function(_63f){this.inherited(arguments);if(!this.showLabel&&!("title" in this.params)){this.titleNode.title=lang.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});});},"dijit/form/_FormWidget":function(){define("dijit/form/_FormWidget",["dojo/_base/declare","dojo/has","dojo/_base/kernel","dojo/ready","../_Widget","../_CssStateMixin","../_TemplatedMixin","./_FormWidgetMixin"],function(_640,has,_641,_642,_643,_644,_645,_646){if(has("dijit-legacy-requires")){_642(0,function(){var _647=["dijit/form/_FormValueWidget"];require(_647);});}return _640("dijit.form._FormWidget",[_643,_645,_644,_646],{setDisabled:function(_648){_641.deprecated("setDisabled("+_648+") is deprecated. Use set('disabled',"+_648+") instead.","","2.0");this.set("disabled",_648);},setValue:function(_649){_641.deprecated("dijit.form._FormWidget:setValue("+_649+") is deprecated.  Use set('value',"+_649+") instead.","","2.0");this.set("value",_649);},getValue:function(){_641.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});});},"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(_64a,_64b,_64c,_64d,has,_64e,lang,_64f,_650,_651,_652,_653,_654){function _655(){};function _656(_657){return function(obj,_658,_659,_65a){if(obj&&typeof _658=="string"&&obj[_658]==_655){return obj.on(_658.substring(2).toLowerCase(),lang.hitch(_659,_65a));}return _657.apply(_64c,arguments);};};_64a.around(_64c,"connect",_656);if(_64e.connect){_64a.around(_64e,"connect",_656);}var _65b=_64d("dijit._Widget",[_652,_653,_654],{onClick:_655,onDblClick:_655,onKeyDown:_655,onKeyPress:_655,onKeyUp:_655,onMouseDown:_655,onMouseMove:_655,onMouseOut:_655,onMouseOver:_655,onMouseLeave:_655,onMouseEnter:_655,onMouseUp:_655,constructor:function(_65c){this._toConnect={};for(var name in _65c){if(this[name]===_655){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_65c[name];delete _65c[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)]===_655){return _64c.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_65d){_64e.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_65d);},attr:function(name,_65e){if(_64b.isDebug){var _65f=arguments.callee._ach||(arguments.callee._ach={}),_660=(arguments.callee.caller||"unknown caller").toString();if(!_65f[_660]){_64e.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_660,"","2.0");_65f[_660]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_64e.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_64f("[widgetId]",this.containerNode).map(_651.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(has("dijit-legacy-requires")){_650(0,function(){var _661=["dijit/_base"];require(_661);});}return _65b;});},"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,_662,keys,_663,has,_664,win,_665){var ret=_663("dijit._OnDijitClickMixin",null,{connect:function(obj,_666,_667){return this.inherited(arguments,[obj,_666=="ondijitclick"?_665:_666,_667]);}});ret.a11yclick=_665;return ret;});},"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,_668,keys,_669,has,_66a,win){var _66b=null;if(has("dom-addeventlistener")){win.doc.addEventListener("keydown",function(evt){_66b=evt.target;},true);}else{(function(){var _66c=function(evt){_66b=evt.srcElement;};win.doc.attachEvent("onkeydown",_66c);_66a.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_66c);});})();}function _66d(e){return (e.keyCode===keys.ENTER||e.keyCode===keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};return function(node,_66e){if(/input|button/i.test(node.nodeName)){return on(node,"click",_66e);}else{var _66f=[on(node,"keydown",function(e){if(_66d(e)){_66b=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_66d(e)&&e.target==_66b){_66b=null;on.emit(e.target,"click",{cancelable:true,bubbles:true});}}),on(node,"click",function(e){_66e.call(this,e);})];if(has("touch")){var _670;_66f.push(on(node,"touchend",function(e){var _671=e.target;_670=setTimeout(function(){_670=null;on.emit(_671,"click",{cancelable:true,bubbles:true});},600);}),on(node,"click",function(e){if(_670){clearTimeout(_670);}}));}return {remove:function(){_668.forEach(_66f,function(h){h.remove();});if(_670){clearTimeout(_670);_670=null;}}};}};return ret;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_672,_673,_674,lang){lang.extend(_673,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _674("dijit._FocusMixin",null,{_focusManager:_672});});},"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(_675,_676,dom,_677,_678,_679,lang,on,_67a,has,_67b,_67c,win,_67d,a11y,_67e,_67f){var _680=_676([_67b,_679],{curNode:null,activeStack:[],constructor:function(){var _681=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);}});_675.before(_678,"empty",_681);_675.before(_678,"destroy",_681);},registerIframe:function(_682){return this.registerWin(_682.contentWindow,_682);},registerWin:function(_683,_684){var _685=this;var _686=function(evt){_685._justMouseDowned=true;setTimeout(function(){_685._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_685._onTouchNode(_684||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_683.document.documentElement:_683.document;if(doc){if(has("ie")){_683.document.body.attachEvent("onmousedown",_686);var _687=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_685._onFocusNode(_684||evt.srcElement);}else{_685._onTouchNode(_684||evt.srcElement);}};doc.attachEvent("onfocusin",_687);var _688=function(evt){_685._onBlurNode(_684||evt.srcElement);};doc.attachEvent("onfocusout",_688);return {remove:function(){_683.document.detachEvent("onmousedown",_686);doc.detachEvent("onfocusin",_687);doc.detachEvent("onfocusout",_688);doc=null;}};}else{doc.body.addEventListener("mousedown",_686,true);doc.body.addEventListener("touchstart",_686,true);var _689=function(evt){_685._onFocusNode(_684||evt.target);};doc.addEventListener("focus",_689,true);var _68a=function(evt){_685._onBlurNode(_684||evt.target);};doc.addEventListener("blur",_68a,true);return {remove:function(){doc.body.removeEventListener("mousedown",_686,true);doc.body.removeEventListener("touchstart",_686,true);doc.removeEventListener("focus",_689,true);doc.removeEventListener("blur",_68a,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 _68b=[];try{while(node){var _68c=_677.get(node,"dijitPopupParent");if(_68c){node=_67e.byId(_68c).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_67d.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_68d=id&&_67e.byId(id);if(_68d&&!(by=="mouse"&&_68d.get("disabled"))){_68b.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_68b,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(_68e,by){var _68f=this.activeStack;this.set("activeStack",_68e);for(var _690=0;_690<Math.min(_68f.length,_68e.length);_690++){if(_68f[_690]!=_68e[_690]){break;}}var _691;for(var i=_68f.length-1;i>=_690;i--){_691=_67e.byId(_68f[i]);if(_691){_691._hasBeenBlurred=true;_691.set("focused",false);if(_691._focusManager==this){_691._onBlur(by);}this.emit("widget-blur",_691,by);}}for(i=_690;i<_68e.length;i++){_691=_67e.byId(_68e[i]);if(_691){_691.set("focused",true);if(_691._focusManager==this){_691._onFocus(by);}this.emit("widget-focus",_691,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _692=new _680();_67a(function(){var _693=_692.registerWin(_67d.get(win.doc));if(has("ie")){_67c.addOnWindowUnload(function(){if(_693){_693.remove();_693=null;}});}});_67f.focus=function(node){_692.focus(node);};for(var attr in _692){if(!/^_/.test(attr)){_67f.focus[attr]=typeof _692[attr]=="function"?lang.hitch(_692,attr):_692[attr];}}_692.watch(function(attr,_694,_695){_67f.focus[attr]=_695;});return _692;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_696,dom,geom,_697){var _698={getBox:function(doc){doc=doc||_696.doc;var _699=(doc.compatMode=="BackCompat")?_696.body(doc):doc.documentElement,_69a=geom.docScroll(doc),w,h;if(has("touch")){var _69b=_698.get(doc);w=_69b.innerWidth||_699.clientWidth;h=_69b.innerHeight||_699.clientHeight;}else{w=_699.clientWidth;h=_699.clientHeight;}return {l:_69a.x,t:_69a.y,w:w,h:h};},get:function(doc){if(has("ie")&&_698!==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||_696.doc,body=_696.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 _69c=doc.compatMode=="BackCompat",_69d=(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):(_69c?body:html),_69e=isWK?body:_69d,_69f=_69d.clientWidth,_6a0=_69d.clientHeight,rtl=!geom.isBodyLtr(doc),_6a1=pos||geom.position(node),el=node.parentNode,_6a2=function(el){return ((isIE<=6||(isIE&&_69c))?false:(_697.get(el,"position").toLowerCase()=="fixed"));};if(_6a2(node)){return;}while(el){if(el==body){el=_69e;}var _6a3=geom.position(el),_6a4=_6a2(el);if(el==_69e){_6a3.w=_69f;_6a3.h=_6a0;if(_69e==html&&isIE&&rtl){_6a3.x+=_69e.offsetWidth-_6a3.w;}if(_6a3.x<0||!isIE){_6a3.x=0;}if(_6a3.y<0||!isIE){_6a3.y=0;}}else{var pb=geom.getPadBorderExtents(el);_6a3.w-=pb.w;_6a3.h-=pb.h;_6a3.x+=pb.l;_6a3.y+=pb.t;var _6a5=el.clientWidth,_6a6=_6a3.w-_6a5;if(_6a5>0&&_6a6>0){_6a3.w=_6a5;_6a3.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_6a6:0;}_6a5=el.clientHeight;_6a6=_6a3.h-_6a5;if(_6a5>0&&_6a6>0){_6a3.h=_6a5;}}if(_6a4){if(_6a3.y<0){_6a3.h+=_6a3.y;_6a3.y=0;}if(_6a3.x<0){_6a3.w+=_6a3.x;_6a3.x=0;}if(_6a3.y+_6a3.h>_6a0){_6a3.h=_6a0-_6a3.y;}if(_6a3.x+_6a3.w>_69f){_6a3.w=_69f-_6a3.x;}}var l=_6a1.x-_6a3.x,t=_6a1.y-Math.max(_6a3.y,0),r=l+_6a1.w-_6a3.w,bot=t+_6a1.h-_6a3.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_69c)||isIE>=9)){s=-s;}_6a1.x+=el.scrollLeft;el.scrollLeft+=s;_6a1.x-=el.scrollLeft;}if(bot*t>0){_6a1.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_6a1.y-=el.scrollTop;}el=(el!=_69e)&&!_6a4&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_698);return _698;});},"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(_6a7,_6a8,_6a9,dom,_6aa,_6ab,has,_6ac){var _6ad=(_6ac._isElementShown=function(elem){var s=_6ab.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_6aa.get(elem,"type")!="hidden");});_6ac.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _6aa.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _6ae=elem.contentDocument;if("designMode" in _6ae&&_6ae.designMode=="on"){return true;}body=_6ae.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 _6af=(_6ac.isTabNavigable=function(elem){if(_6aa.get(elem,"disabled")){return false;}else{if(_6aa.has(elem,"tabIndex")){return _6aa.get(elem,"tabIndex")>=0;}else{return _6ac.hasDefaultTabStop(elem);}}});_6ac._getTabNavigable=function(root){var _6b0,last,_6b1,_6b2,_6b3,_6b4,_6b5={};function _6b6(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _6b7=function(_6b8){for(var _6b9=_6b8.firstChild;_6b9;_6b9=_6b9.nextSibling){if(_6b9.nodeType!=1||(has("ie")<=9&&_6b9.scopeName!=="HTML")||!_6ad(_6b9)){continue;}if(_6af(_6b9)){var _6ba=+_6aa.get(_6b9,"tabIndex");if(!_6aa.has(_6b9,"tabIndex")||_6ba==0){if(!_6b0){_6b0=_6b9;}last=_6b9;}else{if(_6ba>0){if(!_6b1||_6ba<_6b2){_6b2=_6ba;_6b1=_6b9;}if(!_6b3||_6ba>=_6b4){_6b4=_6ba;_6b3=_6b9;}}}var rn=_6b6(_6b9);if(_6aa.get(_6b9,"checked")&&rn){_6b5[rn]=_6b9;}}if(_6b9.nodeName.toUpperCase()!="SELECT"){_6b7(_6b9);}}};if(_6ad(root)){_6b7(root);}function rs(node){return _6b5[_6b6(node)]||node;};return {first:rs(_6b0),last:rs(last),lowest:rs(_6b1),highest:rs(_6b3)};};_6ac.getFirstInTabbingOrder=function(root,doc){var _6bb=_6ac._getTabNavigable(dom.byId(root,doc));return _6bb.lowest?_6bb.lowest:_6bb.first;};_6ac.getLastInTabbingOrder=function(root,doc){var _6bc=_6ac._getTabNavigable(dom.byId(root,doc));return _6bc.last?_6bc.last:_6bc.highest;};return {hasDefaultTabStop:_6ac.hasDefaultTabStop,isTabNavigable:_6ac.isTabNavigable,_getTabNavigable:_6ac._getTabNavigable,getFirstInTabbingOrder:_6ac.getFirstInTabbingOrder,getLastInTabbingOrder:_6ac.getLastInTabbingOrder};});},"dojo/uacss":function(){define("dojo/uacss",["./dom-geometry","./_base/lang","./ready","./sniff","./_base/window"],function(_6bd,lang,_6be,has,_6bf){var html=_6bf.doc.documentElement,ie=has("ie"),_6c0=has("opera"),maj=Math.floor,ff=has("ff"),_6c1=_6bd.boxModel.replace(/-/,""),_6c2={"dj_quirks":has("quirks"),"dj_opera":_6c0,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla")};if(ie){_6c2["dj_ie"]=true;_6c2["dj_ie"+maj(ie)]=true;_6c2["dj_iequirks"]=has("quirks");}if(ff){_6c2["dj_ff"+maj(ff)]=true;}_6c2["dj_"+_6c1]=true;var _6c3="";for(var clz in _6c2){if(_6c2[clz]){_6c3+=clz+" ";}}html.className=lang.trim(html.className+" "+_6c3);_6be(90,function(){if(!_6bd.isBodyLtr()){var _6c4="dj_rtl dijitRtl "+_6c3.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_6c4+"dj_rtl dijitRtl "+_6c3.replace(/ /g,"-rtl "));}});return has;});},"dijit/hccss":function(){define("dijit/hccss",["dojo/dom-class","dojo/hccss","dojo/ready","dojo/_base/window"],function(_6c5,has,_6c6,win){_6c6(90,function(){if(has("highcontrast")){_6c5.add(win.body(),"dijit_a11y");}});return has;});},"dojo/hccss":function(){define("dojo/hccss",["require","./_base/config","./dom-class","./dom-style","./has","./ready","./_base/window"],function(_6c7,_6c8,_6c9,_6ca,has,_6cb,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("+(_6c8.blankGif||_6c7.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_6ca.getComputedStyle(div),_6cc=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_6cc&&(_6cc=="none"||_6cc=="url(invalid-url:)"));if(has("ie")<=8){div.outerHTML="";}else{win.body().removeChild(div);}return hc;});_6cb(90,function(){if(has("highcontrast")){_6c9.add(win.body(),"dj_a11y");}});return has;});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/has","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/window","./registry"],function(_6cd,_6ce,dom,_6cf,has,lang,on,_6d0,win,_6d1){var _6d2=_6ce("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_6cd.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(_6d3){if(!this.disabled){switch(_6d3.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 _6d4=this.baseClass.split(" ");function _6d5(_6d6){_6d4=_6d4.concat(_6cd.map(_6d4,function(c){return c+_6d6;}),"dijit"+_6d6);};if(!this.isLeftToRight()){_6d5("Rtl");}var _6d7=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_6d5(_6d7);}if(this.state){_6d5(this.state);}if(this.selected){_6d5("Selected");}if(this._opened){_6d5("Opened");}if(this.disabled){_6d5("Disabled");}else{if(this.readOnly){_6d5("ReadOnly");}else{if(this.active){_6d5("Active");}else{if(this.hovering){_6d5("Hover");}}}}if(this.focused){_6d5("Focused");}var tn=this.stateNode||this.domNode,_6d8={};_6cd.forEach(tn.className.split(" "),function(c){_6d8[c]=true;});if("_stateClasses" in this){_6cd.forEach(this._stateClasses,function(c){delete _6d8[c];});}_6cd.forEach(_6d4,function(c){_6d8[c]=true;});var _6d9=[];for(var c in _6d8){_6d9.push(c);}tn.className=_6d9.join(" ");this._stateClasses=_6d4;},_subnodeCssMouseEvent:function(node,_6da,evt){if(this.disabled||this.readOnly){return;}function _6db(_6dc){_6cf.toggle(node,_6da+"Hover",_6dc);};function _6dd(_6de){_6cf.toggle(node,_6da+"Active",_6de);};function _6df(_6e0){_6cf.toggle(node,_6da+"Focused",_6e0);};switch(evt.type){case "mouseover":_6db(true);break;case "mouseout":_6db(false);_6dd(false);break;case "mousedown":case "touchstart":_6dd(true);break;case "mouseup":case "touchend":_6dd(false);break;case "focus":case "focusin":_6df(true);break;case "blur":case "focusout":_6df(false);break;}},_trackMouseState:function(node,_6e1){node._cssState=_6e1;}});_6d0(function(){function _6e2(evt){if(!dom.isDescendant(evt.relatedTarget,evt.target)){for(var node=evt.target;node&&node!=evt.relatedTarget;node=node.parentNode){if(node._cssState){var _6e3=_6d1.getEnclosingWidget(node);if(_6e3){if(node==_6e3.domNode){_6e3._cssMouseEvent(evt);}else{_6e3._subnodeCssMouseEvent(node,node._cssState,evt);}}}}}};function _6e4(evt){evt.target=evt.srcElement;_6e2(evt);};var body=win.body(),_6e5=(has("touch")?[]:["mouseover","mouseout"]).concat(["mousedown","touchstart","mouseup","touchend"]);_6cd.forEach(_6e5,function(type){if(body.addEventListener){body.addEventListener(type,_6e2,true);}else{body.attachEvent("on"+type,_6e4);}});on(body,"focusin, focusout",function(evt){var node=evt.target;if(node._cssState&&!node.getAttribute("widgetId")){var _6e6=_6d1.getEnclosingWidget(node);_6e6._subnodeCssMouseEvent(node,node._cssState,evt);}});});return _6d2;});},"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(_6e7,_6e8,_6e9,_6ea,lang,_6eb,has,_6ec,a11y){return _6e8("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_6ed){this._set("disabled",_6ed);_6e9.set(this.focusNode,"disabled",_6ed);if(this.valueNode){_6e9.set(this.valueNode,"disabled",_6ed);}this.focusNode.setAttribute("aria-disabled",_6ed?"true":"false");if(_6ed){this._set("hovering",false);this._set("active",false);var _6ee="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_6e7.forEach(lang.isArray(_6ee)?_6ee:[_6ee],function(_6ef){var node=this[_6ef];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 _6f0=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_6f1);this.disconnect(_6f0);});var _6f1=this.connect(this.ownerDocumentBody,"onmouseup",function(){this.disconnect(_6f1);this.disconnect(_6f0);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_6ec.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_6ea.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(_6f2,_6f3){if(this._lastValueReported==undefined&&(_6f3===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_6f2;}this._pendingOnChange=this._pendingOnChange||(typeof _6f2!=typeof this._lastValueReported)||(this.compare(_6f2,this._lastValueReported)!=0);if((this.intermediateChanges||_6f3||_6f3===undefined)&&this._pendingOnChange){this._lastValueReported=_6f2;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_6f2);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_6f4,dom,_6f5,_6f6){return _6f4("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_6f5.stop(e);return false;}var _6f7=this.onClick(e)===false;if(!_6f7&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _6f8=_6f6.byNode(node);if(_6f8&&typeof _6f8._onSubmit=="function"){_6f8._onSubmit(e);_6f7=true;break;}}}if(_6f7){e.preventDefault();}return !_6f7;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_6f9){this._set("label",_6f9);(this.containerNode||this.focusNode).innerHTML=_6f9;}});});},"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","dijit/form/_ToggleButtonMixin":function(){define("dijit/form/_ToggleButtonMixin",["dojo/_base/declare","dojo/dom-attr"],function(_6fa,_6fb){return _6fa("dijit.form._ToggleButtonMixin",null,{checked:false,_aria_attr:"aria-pressed",_onClick:function(evt){var _6fc=this.checked;this._set("checked",!_6fc);var ret=this.inherited(arguments);this.set("checked",ret?this.checked:_6fc);return ret;},_setCheckedAttr:function(_6fd,_6fe){this._set("checked",_6fd);var node=this.focusNode||this.domNode;_6fb.set(node,"checked",!!_6fd);if(_6fd){node.setAttribute("checked","");}else{node.removeAttribute("checked");}node.setAttribute(this._aria_attr,String(_6fd));this._handleOnChange(_6fd,_6fe);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});});},"dijit/form/_CheckBoxMixin":function(){define("dijit/form/_CheckBoxMixin",["dojo/_base/declare","dojo/dom-attr","dojo/_base/event"],function(_6ff,_700,_701){return _6ff("dijit.form._CheckBoxMixin",null,{type:"checkbox",value:"on",readOnly:false,_aria_attr:"aria-checked",_setReadOnlyAttr:function(_702){this._set("readOnly",_702);_700.set(this.focusNode,"readOnly",_702);},_setLabelAttr:undefined,_getSubmitValue:function(_703){return !_703&&_703!==0?"on":_703;},_setValueAttr:function(_704){_704=this._getSubmitValue(_704);this._set("value",_704);_700.set(this.focusNode,"value",_704);},reset:function(){this.inherited(arguments);this._set("value",this.params.value||"on");_700.set(this.focusNode,"value",this.value);},_onClick:function(e){if(this.readOnly){_701.stop(e);return false;}return this.inherited(arguments);}});});},"url:dijit/form/templates/CheckBox.html":"<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" role=\"${type}\" aria-checked=\"false\" ${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/NodeList-dom":function(){define("dojo/NodeList-dom",["./_base/kernel","./query","./_base/array","./_base/lang","./dom-class","./dom-construct","./dom-geometry","./dom-attr","./dom-style"],function(dojo,_705,_706,lang,_707,_708,_709,_70a,_70b){var _70c=function(a){return a.length==1&&(typeof a[0]=="string");};var _70d=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};var _70e=_705.NodeList,awc=_70e._adaptWithCondition,aafe=_70e._adaptAsForEach,aam=_70e._adaptAsMap;function _70f(_710){return function(node,name,_711){if(arguments.length==2){return _710[typeof name=="string"?"get":"set"](node,name);}return _710.set(node,name,_711);};};lang.extend(_70e,{_normalize:function(_712,_713){var _714=_712.parse===true;if(typeof _712.template=="string"){var _715=_712.templateFunc||(dojo.string&&dojo.string.substitute);_712=_715?_715(_712.template,_712):_712;}var type=(typeof _712);if(type=="string"||type=="number"){_712=_708.toDom(_712,(_713&&_713.ownerDocument));if(_712.nodeType==11){_712=lang._toArray(_712.childNodes);}else{_712=[_712];}}else{if(!lang.isArrayLike(_712)){_712=[_712];}else{if(!lang.isArray(_712)){_712=lang._toArray(_712);}}}if(_714){_712._runParse=true;}return _712;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_716,_717,_718){if(_716.nodeType!=1&&_717=="only"){return;}var _719=_716,_71a;var _71b=ary.length;for(var i=_71b-1;i>=0;i--){var node=(_718?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_71a){_71a=_719.ownerDocument.createElement("div");}_71a.appendChild(node);dojo.parser.parse(_71a);node=_71a.firstChild;while(_71a.firstChild){_71a.removeChild(_71a.firstChild);}}if(i==_71b-1){_708.place(node,_719,_717);}else{_719.parentNode.insertBefore(node,_719);}_719=node;}},position:aam(_709.position),attr:awc(_70f(_70a),_70c),style:awc(_70f(_70b),_70c),addClass:aafe(_707.add),removeClass:aafe(_707.remove),toggleClass:aafe(_707.toggle),replaceClass:aafe(_707.replace),empty:aafe(_708.empty),removeAttr:aafe(_70a.remove),marginBox:aam(_709.getMarginBox),place:function(_71c,_71d){var item=_705(_71c)[0];return this.forEach(function(node){_708.place(node,item,_71d);});},orphan:function(_71e){return (_71e?_705._filterResult(this,_71e):this).forEach(_70d);},adopt:function(_71f,_720){return _705(_71f).place(this[0],_720)._stash(this);},query:function(_721){if(!_721){return this;}var ret=new _70e;this.map(function(node){_705(_721,node).forEach(function(_722){if(_722!==undefined){ret.push(_722);}});});return ret._stash(this);},filter:function(_723){var a=arguments,_724=this,_725=0;if(typeof _723=="string"){_724=_705._filterResult(this,a[0]);if(a.length==1){return _724._stash(this);}_725=1;}return this._wrap(_706.filter(_724,a[_725],a[_725+1]),this);},addContent:function(_726,_727){_726=this._normalize(_726,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_726,node,_727,i>0);}return this;}});return _70e;});},"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(_728,_729,_72a,_72b,lang,has,_72c,_72d,_72e,_72f){var _730=_728("dijit.form.TextBox",[_72c,_72d],{templateString:_72e,_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=_72a.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _731=this.domNode.getElementsByTagName("INPUT");if(_731){for(var i=0;i<_731.length;i++){_731[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=_729.create("span",{onmousedown:function(e){e.preventDefault();},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(_732,_733,_734){this.inherited(arguments);this._updatePlaceHolder();},getDisplayedValue:function(){_72b.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use get('displayedValue') instead.","","2.0");return this.get("displayedValue");},setDisplayedValue:function(_735){_72b.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_735);},_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")){_730.prototype._isTextSelected=function(){var _736=this.ownerDocument.selection.createRange();var _737=_736.parentElement();return _737==this.textbox&&_736.text.length>0;};_72f._setSelectionRange=_72d._setSelectionRange=function(_738,_739,stop){if(_738.createTextRange){var r=_738.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_739);r.moveEnd("character",stop-_739);r.select();}};}return _730;});},"dijit/form/_FormValueWidget":function(){define("dijit/form/_FormValueWidget",["dojo/_base/declare","dojo/sniff","./_FormWidget","./_FormValueMixin"],function(_73a,has,_73b,_73c){return _73a("dijit.form._FormValueWidget",[_73b,_73c],{_layoutHackIE7:function(){if(has("ie")==7){var _73d=this.domNode;var _73e=_73d.parentNode;var _73f=_73d.firstChild||_73d;var _740=_73f.style.filter;var _741=this;while(_73e&&_73e.clientHeight==0){(function ping(){var _742=_741.connect(_73e,"onscroll",function(){_741.disconnect(_742);_73f.style.filter=(new Date()).getMilliseconds();_741.defer(function(){_73f.style.filter=_740;});});})();_73e=_73e.parentNode;}}}});});},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/sniff","./_FormWidgetMixin"],function(_743,_744,keys,has,_745){return _743("dijit.form._FormValueMixin",_745,{readOnly:false,_setReadOnlyAttr:function(_746){_744.set(this.focusNode,"readOnly",_746);this._set("readOnly",_746);},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(_747,_748){this._handleOnChange(_747,_748);},_handleOnChange:function(_749,_74a){this._set("value",_749);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);}}}});});},"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(_74b,_74c,dom,_74d,keys,lang,on,_74e){var _74f=_74c("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(_750,_751,_752){var _753;if(_750!==undefined){_753=this.filter(_750);if(typeof _752!="string"){if(_753!==null&&((typeof _753!="number")||!isNaN(_753))){_752=this.filter(this.format(_753,this.constraints));}else{_752="";}}}if(_752!=null&&((typeof _752)!="number"||!isNaN(_752))&&this.textbox.value!=_752){this.textbox.value=_752;this._set("displayedValue",this.get("displayedValue"));}if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_752);}this.inherited(arguments,[_753,_751]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_754){if(_754==null){_754="";}else{if(typeof _754!="string"){_754=String(_754);}}this.textbox.value=_754;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_754);}},format:function(_755){return _755==null?"":(_755.toString?_755.toString():_755);},parse:function(_756){return _756;},_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 _757=function(e){var _758;if(e.type=="keydown"){_758=e.keyCode;switch(_758){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(_758){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((_758>=65&&_758<=90)||(_758>=48&&_758<=57)||_758==keys.SPACE){return;}var _759=false;for(var i in keys){if(keys[i]===e.keyCode){_759=true;break;}}if(!_759){return;}}}_758=e.charCode>=32?String.fromCharCode(e.charCode):e.charCode;if(!_758){_758=(e.keyCode>=65&&e.keyCode<=90)||(e.keyCode>=48&&e.keyCode<=57)||e.keyCode==keys.SPACE?String.fromCharCode(e.keyCode):e.keyCode;}if(!_758){_758=229;}if(e.type=="keypress"){if(typeof _758!="string"){return;}if((_758>="a"&&_758<="z")||(_758>="A"&&_758<="Z")||(_758>="0"&&_758<="9")||(_758===" ")){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:_758,_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,_757)));},_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()){_74f.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(_75a){if(!this._created||this.textDir!=_75a){this._set("textDir",_75a);this.applyTextDir(this.focusNode,this.focusNode.value);}}});_74f._setSelectionRange=_74e._setSelectionRange=function(_75b,_75c,stop){if(_75b.setSelectionRange){_75b.setSelectionRange(_75c,stop);}};_74f.selectInputText=_74e.selectInputText=function(_75d,_75e,stop){_75d=dom.byId(_75d);if(isNaN(_75e)){_75e=0;}if(isNaN(stop)){stop=_75d.value?_75d.value.length:0;}try{_75d.focus();_74f._setSelectionRange(_75d,_75e,stop);}catch(e){}};return _74f;});},"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/at":function(){define("dojox/mvc/at",["dojo/_base/kernel","dojo/_base/lang","./sync","./_atBindingExtension"],function(_75f,lang,sync){_75f.experimental("dojox.mvc");var at=function(_760,_761){return {atsignature:"dojox.mvc.at",target:_760,targetProp:_761,bindDirection:sync.both,direction:function(_762){this.bindDirection=_762;return this;},transform:function(_763){this.converter=_763;return this;}};};at.from=sync.from;at.to=sync.to;at.both=sync.both;return lang.setObject("dojox.mvc.at",at);});},"dojox/mvc/sync":function(){define("dojox/mvc/sync",["dojo/_base/lang","dojo/_base/config","dojo/_base/array","dojo/has"],function(lang,_764,_765,has){var mvc=lang.getObject("dojox.mvc",true);has.add("mvc-bindings-log-api",(_764["mvc"]||{}).debugBindings);var sync;if(has("mvc-bindings-log-api")){function _766(_767,_768,_769,_76a){return [[_769._setIdAttr||!_769.declaredClass?_769:_769.declaredClass,_76a].join(":"),[_767._setIdAttr||!_767.declaredClass?_767:_767.declaredClass,_768].join(":")];};}function _76b(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(_76c,_76d,_76e,_76f,_770,_771,old,_772,_773){if(sync.equals(_772,old)||_76f=="*"&&_765.indexOf(_76e.get("properties")||[_771],_771)<0||_76f=="*"&&_771 in (_773||{})){return;}var prop=_76f=="*"?_771:_76f;if(has("mvc-bindings-log-api")){var _774=_766(_76e,prop,_770,_771);}try{_772=_76c?_76c(_772,_76d):_772;}catch(e){if(has("mvc-bindings-log-api")){}return;}if(has("mvc-bindings-log-api")){}lang.isFunction(_76e.set)?_76e.set(prop,_772):(_76e[prop]=_772);};var _775={from:1,to:2,both:3},_776;sync=function(_777,_778,_779,_77a,_77b){var _77c=(_77b||{}).converter,_77d,_77e,_77f;if(_77c){_77d={source:_777,target:_779};_77e=_77c.format&&lang.hitch(_77d,_77c.format);_77f=_77c.parse&&lang.hitch(_77d,_77c.parse);}var _780=[],_781=[],list,_782=lang.mixin({},_777.constraints,_779.constraints),_783=(_77b||{}).bindDirection||mvc.both;if(has("mvc-bindings-log-api")){var _784=_766(_777,_778,_779,_77a);}if(_77a=="*"){if(_778!="*"){throw new Error("Unmatched wildcard is specified between source and target.");}list=_779.get("properties");if(!list){list=[];for(var s in _779){if(_779.hasOwnProperty(s)&&s!="_watchCallbacks"){list.push(s);}}}_781=_779.get("excludes");}else{list=[_778];}if(_783&mvc.from){if(lang.isFunction(_777.set)&&lang.isFunction(_777.watch)){_780.push(_777.watch.apply(_777,((_778!="*")?[_778]:[]).concat([function(name,old,_785){copy(_77e,_782,_779,_77a,_777,name,old,_785,_781);}])));}else{if(has("mvc-bindings-log-api")){}}_765.forEach(list,function(prop){if(_77a!="*"||!(prop in (_781||{}))){var _786=lang.isFunction(_777.get)?_777.get(prop):_777[prop];copy(_77e,_782,_779,_77a=="*"?prop:_77a,_777,prop,_776,_786);}});}if(_783&mvc.to){if(!(_783&mvc.from)){_765.forEach(list,function(prop){if(_77a!="*"||!(prop in (_781||{}))){var _787=lang.isFunction(_779.get)?_779.get(_77a):_779[_77a];copy(_77f,_782,_777,prop,_779,_77a=="*"?prop:_77a,_776,_787);}});}if(lang.isFunction(_779.set)&&lang.isFunction(_779.watch)){_780.push(_779.watch.apply(_779,((_77a!="*")?[_77a]:[]).concat([function(name,old,_788){copy(_77f,_782,_777,_778,_779,name,old,_788,_781);}])));}else{if(has("mvc-bindings-log-api")){}}}if(has("mvc-bindings-log-api")){}var _789={};_789.unwatch=_789.remove=function(){for(var h=null;h=_780.pop();){h.unwatch();if(has("mvc-bindings-log-api")){}}};return _789;};lang.mixin(mvc,_775);return lang.setObject("dojox.mvc.sync",lang.mixin(sync,{equals:_76b},_775));});},"dojox/mvc/_atBindingExtension":function(){define("dojox/mvc/_atBindingExtension",["dojo/aspect","dojo/_base/lang","dijit/_WidgetBase","./_atBindingMixin","dijit/registry"],function(_78a,lang,_78b,_78c){lang.extend(_78b,_78c.prototype);_78a.before(_78b.prototype,"postscript",function(_78d,_78e){this._dbpostscript(_78d,_78e);});_78a.before(_78b.prototype,"startup",function(){this._startAtWatchHandles();});_78a.before(_78b.prototype,"destroy",function(){this._stopAtWatchHandles();});_78a.around(_78b.prototype,"set",function(_78f){return function(name,_790){if(name==_78c.prototype.dataBindAttr){return this._setBind(_790);}else{if((_790||{}).atsignature=="dojox.mvc.at"){return this._setAtWatchHandle(name,_790);}}return _78f.apply(this,lang._toArray(arguments));};});});},"dojox/mvc/_atBindingMixin":function(){define("dojox/mvc/_atBindingMixin",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/has","./resolve","./sync"],function(_791,lang,_792,has,_793,sync){if(has("mvc-bindings-log-api")){function _794(_795,_796){return [_795._setIdAttr||!_795.declaredClass?_795:_795.declaredClass,_796].join(":");};function _797(_798,_799){console.warn(_799+" could not be resolved"+(typeof _798=="string"?(" with "+_798):"")+".");};}function _79a(w){var _79b;try{_79b=require("dijit/registry");}catch(e){return;}var pn=w.domNode&&w.domNode.parentNode,pw,pb;while(pn){pw=_79b.getEnclosingWidget(pn);if(pw){var _79c=pw._relTargetProp||"target",pt=lang.isFunction(pw.get)?pw.get(_79c):pw[_79c];if(pt||_79c in pw.constructor.prototype){return pw;}}pn=pw&&pw.domNode.parentNode;}};function bind(_79d,_79e,_79f,_7a0,_7a1){var _7a2={},_7a3=_79a(_79f),_7a4=_7a3&&_7a3._relTargetProp||"target";function _7a5(){_7a2["Two"]&&_7a2["Two"].unwatch();delete _7a2["Two"];var _7a6=_7a3&&(lang.isFunction(_7a3.get)?_7a3.get(_7a4):_7a3[_7a4]),_7a7=_793(_79d,_7a6),_7a8=_793(_79f,_7a6);if(has("mvc-bindings-log-api")&&(!_7a7||/^rel:/.test(_79d)&&!_7a3)){_797(_79d,_79e);}if(has("mvc-bindings-log-api")&&(!_7a8||/^rel:/.test(_79f)&&!_7a3)){_797(_79f,_7a0);}if(!_7a7||!_7a8||(/^rel:/.test(_79d)||/^rel:/.test(_79f))&&!_7a3){return;}if((!_7a7.set||!_7a7.watch)&&_79e=="*"){if(has("mvc-bindings-log-api")){_797(_79d,_79e);}return;}if(_79e==null){lang.isFunction(_7a8.set)?_7a8.set(_7a0,_7a7):(_7a8[_7a0]=_7a7);if(has("mvc-bindings-log-api")){}}else{_7a2["Two"]=sync(_7a7,_79e,_7a8,_7a0,_7a1);}};_7a5();if(_7a3&&/^rel:/.test(_79d)||/^rel:/.test(_79f)&&lang.isFunction(_7a3.set)&&lang.isFunction(_7a3.watch)){_7a2["rel"]=_7a3.watch(_7a4,function(name,old,_7a9){if(old!==_7a9){if(has("mvc-bindings-log-api")){}_7a5();}});}var h={};h.unwatch=h.remove=function(){for(var s in _7a2){_7a2[s]&&_7a2[s].unwatch();delete _7a2[s];}};return h;};var _7aa=_792("dojox/mvc/_atBindingMixin",null,{dataBindAttr:"data-mvc-bindings",_dbpostscript:function(_7ab,_7ac){var refs=this._refs=(_7ab||{}).refs||{};for(var prop in _7ab){if((_7ab[prop]||{}).atsignature=="dojox.mvc.at"){var h=_7ab[prop];delete _7ab[prop];refs[prop]=h;}}},_startAtWatchHandles:function(){var refs=this._refs;if(refs){var _7ad=this._atWatchHandles=this._atWatchHandles||{};this._excludes=null;for(var prop in refs){if(!refs[prop]||prop=="*"){continue;}_7ad[prop]=bind(refs[prop].target,refs[prop].targetProp,this,prop,{bindDirection:refs[prop].bindDirection,converter:refs[prop].converter});}if((refs["*"]||{}).atsignature=="dojox.mvc.at"){_7ad["*"]=bind(refs["*"].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,_7ae){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 _7af=this._atWatchHandles=this._atWatchHandles||{};if(_7af[name]){_7af[name].unwatch();delete _7af[name];}this[name]=null;this._excludes=null;if(this._started){_7af[name]=bind(_7ae.target,_7ae.targetProp,this,name,{bindDirection:_7ae.bindDirection,converter:_7ae.converter});}else{this._refs[name]=_7ae;}},_setBind:function(_7b0){var list=eval("({"+_7b0+"})");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);_791.forEach(["id","excludes","properties","ref","binding"],function(s){var _7b1=_791.indexOf(list,s);if(_7b1>=0){list.splice(_7b1,1);}});return this.constructor._attribs=list;}});_7aa.prototype[_7aa.prototype.dataBindAttr]="";return _7aa;});},"dojox/mvc/resolve":function(){define("dojox/mvc/resolve",["dojo/_base/lang","dijit/registry","dojo/Stateful"],function(lang,_7b2){var _7b3=function(_7b4,_7b5){if(typeof _7b4=="string"){var _7b6=_7b4.match(/^(expr|rel|widget):(.*)$/)||[];try{if(_7b6[1]=="rel"){_7b4=lang.getObject(_7b6[2]||"",false,_7b5);}else{if(_7b6[1]=="widget"){_7b4=_7b2.byId(_7b6[2]);}else{_7b4=lang.getObject(_7b6[2]||_7b4,false,_7b5);}}}catch(e){}}return _7b4;};return lang.setObject("dojox.mvc.resolve",_7b3);});},"todo/TodoList":function(){define("todo/TodoList",["dojo/_base/declare","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dojox/mvc/WidgetList","dojox/mvc/_InlineTemplateMixin","todo/CssToggleWidget","todo/ctrl/_HashCompletedMixin"],function(_7b7,_7b8,_7b9,_7ba,_7bb,_7bc,_7bd){return _7b7([_7ba,_7bb],{childClz:_7b7([_7bc,_7b8,_7b9,_7bd],{_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);}}})});});},"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(_7be,_7bf,lang,_7c0,_7c1,_7c2,_7c3){var _7c4="data-mvc-child-type",_7c5="data-mvc-child-mixins",_7c6="data-mvc-child-props",_7c7="data-mvc-child-bindings",_7c8;function _7c9(_7ca){return eval("({"+_7ca+"})");};function _7cb(w){for(var h=null;h=(w._handles||[]).pop();){h.unwatch();}};var _7cc=_7c0("dojox.mvc.WidgetList",[_7c2,_7c1],{childClz:null,childType:"",childMixins:"",childParams:null,childBindings:null,children:null,templateString:"",partialRebuild:false,_relTargetProp:"children",postMixInProperties:function(){this.inherited(arguments);if(this[_7c4]){this.childType=this[_7c4];}if(this[_7c5]){this.childMixins=this[_7c5];}},startup:function(){this.inherited(arguments);this._setChildrenAttr(this.children);},_setChildrenAttr:function(_7cd){var _7ce=this.children;this._set("children",_7cd);if(this._started&&(!this._builtOnce||_7ce!=_7cd)){_7cb(this);this._builtOnce=true;this._buildChildren(_7cd);if(lang.isArray(_7cd)){var _7cf=this;!this.partialRebuild&&lang.isFunction(_7cd.watchElements)&&(this._handles=this._handles||[]).push(_7cd.watchElements(function(idx,_7d0,adds){_7cf._buildChildren(_7cd);}));_7cd.watch!=={}.watch&&(this._handles=this._handles||[]).push(_7cd.watch(function(name,old,_7d1){if(!isNaN(name)){var w=_7cf.getChildren()[name-0];w&&w.set(w._relTargetProp||"target",_7d1);}}));}}},_buildChildren:function(_7d2){for(var cw=this.getChildren(),w=null;w=cw.pop();){this.removeChild(w);w.destroy();}if(!lang.isArray(_7d2)){return;}var _7d3=lang.hitch(this,function(seq){if(this._buildChildrenSeq>seq){return;}var clz=_7c0([].slice.call(arguments,1),{}),_7d4=this;function _7d5(_7d6,_7d7){_7bf.forEach(_7bf.map(_7d6,function(_7d8,idx){var _7d9={ownerDocument:_7d4.ownerDocument,parent:_7d4,indexAtStartup:_7d7+idx};_7d9[(_7d4.childParams||_7d4[_7c6]&&_7c9.call(_7d9,_7d4[_7c6])||{})._relTargetProp||clz.prototype._relTargetProp||"target"]=_7d8;var _7da=_7d4.childParams||_7d4[_7c6]&&_7c9.call(_7d9,_7d4[_7c6]),_7db=_7d4.childBindings||_7d4[_7c7]&&_7c9.call(_7d9,_7d4[_7c7]);if(_7d4.templateString&&!_7d9.templateString&&!clz.prototype.templateString){_7d9.templateString=_7d4.templateString;}if(_7db&&!_7d9.bindings&&!clz.prototype.bindings){_7d9.bindings=_7db;}return new clz(lang.mixin(_7d9,_7da));}),function(_7dc,idx){_7d4.addChild(_7dc,_7d7+idx);});};_7d5(_7d2,0);if(this.partialRebuild){lang.isFunction(_7d2.watchElements)&&(this._handles=this._handles||[]).push(_7d2.watchElements(function(idx,_7dd,adds){for(var i=0,l=(_7dd||[]).length;i<l;++i){_7d4.removeChild(idx);}_7d5(adds,idx);}));}},this._buildChildrenSeq=(this._buildChildrenSeq||0)+1);if(this.childClz){_7d3(this.childClz);}else{if(this.childType){var _7de=[this.childType].concat(this.childMixins&&this.childMixins.split(",")||[]),mids=_7bf.filter(_7bf.map(_7de,function(type){return lang.getObject(type)?_7c8:type;}),function(mid){return mid!==_7c8;}),_7df=this;_7be(mids,function(){if(!_7df._beingDestroyed){_7d3.apply(this,_7bf.map(_7de,function(type){return lang.getObject(type)||_7be(type);}));}});}else{_7d3(_7c3);}}},destroy:function(){_7cb(this);this.inherited(arguments);}});_7cc.prototype[_7c4]=_7cc.prototype[_7c5]=_7cc.prototype[_7c6]=_7cc.prototype[_7c7]="";return _7cc;});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct"],function(_7e0,_7e1,_7e2){return _7e1("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_7e3,_7e4){var _7e5=this.containerNode;if(_7e4&&typeof _7e4=="number"){var _7e6=this.getChildren();if(_7e6&&_7e6.length>=_7e4){_7e5=_7e6[_7e4-1].domNode;_7e4="after";}}_7e2.place(_7e3.domNode,_7e5,_7e4);if(this._started&&!_7e3._started){_7e3.startup();}},removeChild:function(_7e7){if(typeof _7e7=="number"){_7e7=this.getChildren()[_7e7];}if(_7e7){var node=_7e7.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_7e8,dir){var _7e9=this.getChildren(),idx=_7e0.indexOf(this.getChildren(),_7e8);return _7e9[idx+dir];},getIndexOfChild:function(_7ea){return _7e0.indexOf(this.getChildren(),_7ea);}});});},"dojox/mvc/Templated":function(){define("dojox/mvc/Templated",["dojo/_base/declare","dojo/_base/lang","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dojox/mvc/at"],function(_7eb,lang,_7ec,_7ed,_7ee,at){return _7eb("dojox.mvc.Templated",[_7ec,_7ed,_7ee],{bindings:null,startup:function(){this.inherited(arguments);for(var s in this.bindings){var w=this[s],_7ef=this.bindings[s];if(w){for(var prop in _7ef){w.set(prop,_7ef[prop]);}}}}});});},"dojox/mvc/_InlineTemplateMixin":function(){define("dojox/mvc/_InlineTemplateMixin",["dojo/_base/declare","dojo/_base/lang","dojo/has"],function(_7f0,lang,has){has.add("dom-qsa",!!document.createElement("div").querySelectorAll);return _7f0("dojox.mvc._InlineTemplateMixin",null,{buildRendering:function(){var root=this.srcNodeRef;if(root){var _7f1=has("dom-qsa")?root.querySelectorAll("script[type='dojox/mvc/InlineTemplate']"):root.getElementsByTagName("script"),_7f2=[];for(var i=0,l=_7f1.length;i<l;++i){if(!has("dom-qsa")&&_7f1[i].getAttribute("type")!="dojox/mvc/InlineTemplate"){continue;}_7f2.push(_7f1[i].innerHTML);}var _7f3=lang.trim(_7f2.join(""));if(_7f3){this.templateString=_7f3;}}this.inherited(arguments);}});});},"todo/ctrl/_HashCompletedMixin":function(){define("todo/ctrl/_HashCompletedMixin",["dojo/_base/declare"],function(_7f4){var _7f5="/active",_7f6="/completed";function _7f7(_7f8){return _7f8.hash==_7f5?_7f8.completed:_7f8.hash==_7f6?!_7f8.completed:false;};return _7f4(null,{_setHashAttr:function(_7f9){this.set("hidden",_7f7({hash:_7f9,completed:this.completed}));this._set("hash",_7f9);},_setCompletedAttr:function(_7fa){this.set("hidden",_7f7({hash:this.hash,completed:_7fa}));this._set("completed",_7fa);}});});},"todo/ctrl/RouteController":function(){define("todo/ctrl/RouteController",["dojo/_base/declare","dojo/router","dijit/Destroyable","dojox/mvc/_Controller"],function(_7fb,_7fc,_7fd,_7fe){return _7fb([_7fe,_7fd],{postscript:function(_7ff,_800){this.inherited(arguments);_800&&_800.setAttribute("widgetId",this.id);},startup:function(){var _801=this;this.own(_7fc.register(/.*/,function(e){_801._set("hash",e.newPath);}));_7fc.startup();this.set("hash",_7fc._currentPath);},_setHashAttr:function(_802){if(this.hash!=_802){_7fc.go(_802);}this._set("hash",_802);}});});},"dojo/router":function(){define("dojo/router",["./router/RouterBase"],function(_803){return new _803({});});},"dojo/router/RouterBase":function(){define(["dojo/_base/declare","dojo/hash","dojo/topic"],function(_804,hash,_805){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 _806(_807,_808,_809){var _80a,_80b,_80c,_80d,i,l;_80a=this.callbackQueue;_80b=false;_80c=false;_80d={stopImmediatePropagation:function(){_80b=true;},preventDefault:function(){_80c=true;},oldPath:_808,newPath:_809,params:_807};for(i=0,l=_80a.length;i<l;++i){if(!_80b){_80a[i](_80d);}}return !_80c;};var _80e=_804(null,{_routes:null,_routeIndex:null,_started:false,_currentPath:"",idMatch:/:(\w[\w\d]*)/g,idReplacement:"([^\\/]+)",globMatch:/\*(\w[\w\d]*)/,globReplacement:"(.+)",constructor:function(_80f){this._routes=[];this._routeIndex={};for(var i in _80f){if(_80f.hasOwnProperty(i)){this[i]=_80f[i];}}},register:function(_810,_811){return this._registerRoute(_810,_811);},registerBefore:function(_812,_813){return this._registerRoute(_812,_813,true);},go:function(path,_814){var _815;path=trim(path);_815=this._handlePathChange(path);if(_815){hash(path,_814);}return _815;},startup:function(){if(this._started){return;}var self=this;this._started=true;this._handlePathChange(hash());_805.subscribe("/dojo/hashchange",function(){self._handlePathChange.apply(self,arguments);});},_handlePathChange:function(_816){var i,j,li,lj,_817,_818,_819,_81a,_81b,_81c=this._routes,_81d=this._currentPath;if(!this._started||_816===_81d){return _819;}_819=true;for(i=0,li=_81c.length;i<li;++i){_817=_81c[i];_818=_817.route.exec(_816);if(_818){if(_817.parameterNames){_81a=_817.parameterNames;_81b={};for(j=0,lj=_81a.length;j<lj;++j){_81b[_81a[j]]=_818[j+1];}}else{_81b=_818.slice(1);}_819=_817.fire(_81b,_81d,_816);}}if(_819){this._currentPath=_816;}return _819;},_convertRouteToRegExp:function(_81e){_81e=_81e.replace(this.idMatch,this.idReplacement);_81e=_81e.replace(this.globMatch,this.globReplacement);_81e="^"+_81e+"$";return new RegExp(_81e);},_getParameterNames:function(_81f){var _820=this.idMatch,_821=this.globMatch,_822=[],_823;_820.lastIndex=0;while((_823=_820.exec(_81f))!==null){_822.push(_823[1]);}if((_823=_821.exec(_81f))!==null){_822.push(_823[1]);}return _822.length>0?_822:null;},_indexRoutes:function(){var i,l,_824,_825,_826=this._routes;_825=this._routeIndex={};for(i=0,l=_826.length;i<l;++i){_824=_826[i];_825[_824.route]=i;}},_registerRoute:function(_827,_828,_829){var _82a,_82b,_82c,_82d,_82e,self=this,_82f=this._routes,_830=this._routeIndex;_82a=this._routeIndex[_827];_82b=typeof _82a!=="undefined";if(_82b){_82c=_82f[_82a];}if(!_82c){_82c={route:_827,callbackQueue:[],fire:_806};}_82d=_82c.callbackQueue;if(typeof _827=="string"){_82c.parameterNames=this._getParameterNames(_827);_82c.route=this._convertRouteToRegExp(_827);}if(_829){_82d.unshift(_828);}else{_82d.push(_828);}if(!_82b){_82a=_82f.length;_830[_827]=_82a;_82f.push(_82c);}_82e=false;return {remove:function(){var i,l;if(_82e){return;}for(i=0,l=_82d.length;i<l;++i){if(_82d[i]===_828){_82d.splice(i,1);}}if(_82d.length===0){_82f.splice(_82a,1);self._indexRoutes();}_82e=true;},register:function(_831,_832){return self.register(_827,_831,_832);}};}});return _80e;});},"dojo/hash":function(){define("dojo/hash",["./_base/kernel","require","./_base/config","./_base/connect","./_base/lang","./ready","./sniff"],function(dojo,_833,_834,_835,lang,_836,has){dojo.hash=function(hash,_837){if(!arguments.length){return _838();}if(hash.charAt(0)=="#"){hash=hash.substring(1);}if(_837){_839(hash);}else{location.href="#"+hash;}return hash;};var _83a,_83b,_83c,_83d=_834.hashPollFrequency||100;function _83e(str,_83f){var i=str.indexOf(_83f);return (i>=0)?str.substring(i+1):"";};function _838(){return _83e(location.href,"#");};function _840(){_835.publish("/dojo/hashchange",[_838()]);};function _841(){if(_838()===_83a){return;}_83a=_838();_840();};function _839(hash){if(_83b){if(_83b.isTransitioning()){setTimeout(lang.hitch(null,_839,hash),_83d);return;}var href=_83b.iframe.location.href;var _842=href.indexOf("?");_83b.iframe.location.replace(href.substring(0,_842)+"?"+hash);return;}location.replace("#"+hash);!_83c&&_841();};function _843(){var ifr=document.createElement("iframe"),_844="dojo-hash-iframe",_845=_834.dojoBlankHtmlUrl||_833.toUrl("./resources/blank.html");if(_834.useXDomain&&!_834.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=_844;ifr.src=_845+"?"+_838();ifr.style.display="none";document.body.appendChild(ifr);this.iframe=dojo.global[_844];var _846,_847,_848,_849,_84a,_84b=this.iframe.location;function _84c(){_83a=_838();_846=_84a?_83a:_83e(_84b.href,"?");_847=false;_848=null;};this.isTransitioning=function(){return _847;};this.pollLocation=function(){if(!_84a){try{var _84d=_83e(_84b.href,"?");if(document.title!=_849){_849=this.iframe.document.title=document.title;}}catch(e){_84a=true;console.error("dojo.hash: Error adding history entry. Server unreachable.");}}var hash=_838();if(_847&&_83a===hash){if(_84a||_84d===_848){_84c();_840();}else{setTimeout(lang.hitch(this,this.pollLocation),0);return;}}else{if(_83a===hash&&(_84a||_846===_84d)){}else{if(_83a!==hash){_83a=hash;_847=true;_848=hash;ifr.src=_845+"?"+_848;_84a=false;setTimeout(lang.hitch(this,this.pollLocation),0);return;}else{if(!_84a){location.href="#"+_84b.search.substring(1);_84c();_840();}}}}setTimeout(lang.hitch(this,this.pollLocation),_83d);};_84c();setTimeout(lang.hitch(this,this.pollLocation),_83d);};_836(function(){if("onhashchange" in dojo.global&&(!has("ie")||(has("ie")>=8&&document.compatMode!="BackCompat"))){_83c=_835.connect(dojo.global,"onhashchange",_840);}else{if(document.addEventListener){_83a=_838();setInterval(_841,_83d);}else{if(document.attachEvent){_83b=new _843();}}}});return dojo.hash;});},"dojox/mvc/_Controller":function(){define("dojox/mvc/_Controller",["dojo/_base/declare","dojo/_base/lang","dojo/Stateful","./_atBindingMixin"],function(_84e,lang,_84f,_850){return _84e("dojox.mvc._Controller",[_84f,_850],{postscript:function(_851,_852){if(this._applyAttributes){this.inherited(arguments);}this._dbpostscript(_851,_852);if(_851){this.params=_851;for(var s in _851){this.set(s,_851[s]);}}var _853;try{_853=require("dijit/registry");this.id=this.id||(_852||{}).id||_853.getUniqueId(this.declaredClass.replace(/\./g,"_"));_853.add(this);}catch(e){}if(!_852){this.startup();}else{_852.setAttribute("widgetId",this.id);}},startup:function(){if(!this._applyAttributes){this._startAtWatchHandles();}this.inherited(arguments);},destroy:function(){this._beingDestroyed=true;if(!this._applyAttributes){this._stopAtWatchHandles();}this.inherited(arguments);if(!this._applyAttributes){try{require("dijit/registry").remove(this.id);}catch(e){}}this._destroyed=true;},set:function(name,_854){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)){this.set(x,name[x]);}}return this;}if(!this._applyAttributes){if((_854||{}).atsignature=="dojox.mvc.at"){return this._setAtWatchHandle(name,_854);}else{var _855="_set"+name.replace(/^[a-z]/,function(c){return c.toUpperCase();})+"Attr";if(this[_855]){this[_855](_854);}else{this._set(name,_854);}return this;}}return this.inherited(arguments);},_set:function(name,_856){if(!this._applyAttributes){return this._changeAttrValue(name,_856);}return this.inherited(arguments);}});});},"todo/ctrl/TodoListRefController":function(){define("todo/ctrl/TodoListRefController",["dojo/_base/array","dojo/_base/declare","dojo/Stateful","dojox/mvc/ModelRefController"],function(_857,_858,_859,_85a){return _858(_85a,{addItem:function(_85b){this[this._refModelProp].push(new _859({title:_85b,completed:false}));},removeItem:function(_85c){var _85d=this[this._refModelProp],_85e=_857.filter(_857.map(_85d,function(item,idx){return item.uniqueId==_85c?idx:-1;}),function(idx){return idx>=0;});if(_85e.length>0){_85d.splice(_85e[0],1);}},removeCompletedItems:function(){var _85f=this[this._refModelProp];for(var i=_85f.length-1;i>=0;--i){if(_85f[i].get("completed")){_85f.splice(i,1);}}},markAll:function(_860){_857.forEach(this[this._refModelProp],function(item){item.set("completed",_860);});}});});},"dojox/mvc/ModelRefController":function(){define("dojox/mvc/ModelRefController",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/Stateful","./_Controller"],function(_861,_862,lang,_863,_864){return _862("dojox.mvc.ModelRefController",_864,{ownProps:null,_refModelProp:"model",_refInModelProp:"model",model:null,postscript:function(_865,_866){this._relTargetProp=(_865||{})._refModelProp||this._refModelProp;this.inherited(arguments);},get:function(name){if(!this.hasControllerProperty(name)){var _867=this[this._refModelProp];return !_867?void 0:_867.get?_867.get(name):_867[name];}return this.inherited(arguments);},_set:function(name,_868){if(!this.hasControllerProperty(name)){var _869=this[this._refModelProp];_869&&(_869.set?_869.set(name,_868):(_869[name]=_868));return this;}return this.inherited(arguments);},watch:function(name,_86a){if(this.hasControllerProperty(name)){return this.inherited(arguments);}if(!_86a){_86a=name;name=null;}var hm=null,hp=null,_86b=this;function _86c(_86d){if(hp){hp.unwatch();}if(_86d&&lang.isFunction(_86d.set)&&lang.isFunction(_86d.watch)){hp=_86d.watch.apply(_86d,(name?[name]:[]).concat([function(name,old,_86e){_86a.call(_86b,name,old,_86e);}]));}};function _86f(old,_870){var _871={};if(!name){_861.forEach([old,_870],function(_872){var list=_872&&_872.get("properties");if(list){_861.forEach(list,function(item){if(!_86b.hasControllerProperty(item)){_871[item]=1;}});}else{for(var s in _872){if(_872.hasOwnProperty(s)&&!_86b.hasControllerProperty(s)){_871[s]=1;}}}});}else{_871[name]=1;}for(var s in _871){_86a.call(_86b,s,!old?void 0:old.get?old.get(s):old[s],!_870?void 0:_870.get?_870.get(s):_870[s]);}};hm=_863.prototype.watch.call(this,this._refModelProp,function(name,old,_873){if(old===_873){return;}_86f(old,_873);_86c(_873);});_86c(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)||/^dojoAttach(Point|Event)$/i.test(name);}});});},"todo/ctrl/TodoRefController":function(){define("todo/ctrl/TodoRefController",["dojo/_base/array","dojo/_base/declare","dojox/mvc/EditStoreRefController"],function(_874,_875,_876){return _875(_876,{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:_874.map(o.todos,function(item){return {title:item.title,completed:item.completed};}),incomplete:o.incomplete,complete:o.complete};}},postscript:function(_877,_878){this.getStatefulOptions.parent=this;this.inherited(arguments);_878&&_878.setAttribute("widgetId",this.id);},startup:function(){this.inherited(arguments);this.getStore(this.defaultId);},set:function(name,_879){if(name==this._refSourceModelProp&&this[this._refSourceModelProp]!=_879&&(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/EditStoreRefController":function(){define("dojox/mvc/EditStoreRefController",["dojo/_base/declare","dojo/_base/lang","dojo/when","./getPlainValue","./EditModelRefController","./StoreRefController"],function(_87a,lang,when,_87b,_87c,_87d){return _87a("dojox.mvc.EditStoreRefController",[_87d,_87c],{getPlainValueOptions:null,_removals:[],_resultsWatchHandle:null,_refSourceModelProp:"sourceModel",queryStore:function(_87e,_87f){if(!(this.store||{}).query){return;}if(this._resultsWatchHandle){this._resultsWatchHandle.unwatch();}this._removals=[];var _880=this;return when(this.inherited(arguments),function(_881){if(_880._beingDestroyed){return;}if(lang.isArray(_881)){_880._resultsWatchHandle=_881.watchElements(function(idx,_882,adds){[].push.apply(_880._removals,_882);});}return _881;});},getStore:function(id,_883){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=_87b(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);}});});},"dojox/mvc/getPlainValue":function(){define("dojox/mvc/getPlainValue",["dojo/_base/array","dojo/_base/lang","dojo/Stateful"],function(_884,lang,_885){var _886={getType:function(v){return lang.isArray(v)?"array":v!=null&&{}.toString.call(v)=="[object Object]"?"object":"value";},getPlainArray:function(a){return _884.map(a,function(item){return _887(item,this);},this);},getPlainObject:function(o){var _888={};for(var s in o){if(!(s in _885.prototype)&&s!="_watchCallbacks"){_888[s]=_887(o[s],this);}}return _888;},getPlainValue:function(v){return v;}};var _887=function(_889,_88a){return (_88a||_887)["getPlain"+(_88a||_887).getType(_889).replace(/^[a-z]/,function(c){return c.toUpperCase();})](_889);};return lang.setObject("dojox.mvc.getPlainValue",lang.mixin(_887,_886));});},"dojox/mvc/EditModelRefController":function(){define("dojox/mvc/EditModelRefController",["dojo/_base/declare","dojo/_base/lang","./getPlainValue","./getStateful","./ModelRefController"],function(_88b,lang,_88c,_88d,_88e){function _88f(ctrl,old,_890){if(old!==_890){ctrl.set(ctrl._refOriginalModelProp,ctrl.holdModelUntilCommit?_890:ctrl.cloneModel(_890));ctrl.set(ctrl._refEditModelProp,ctrl.holdModelUntilCommit?ctrl.cloneModel(_890):_890);}};return _88b("dojox.mvc.EditModelRefController",_88e,{getStatefulOptions:null,getPlainValueOptions:null,holdModelUntilCommit:false,originalModel:null,sourceModel:null,_refOriginalModelProp:"originalModel",_refSourceModelProp:"sourceModel",_refEditModelProp:"model",postscript:function(_891,_892){for(var s in {getStatefulOptions:1,getPlainValueOptions:1,holdModelUntilCommit:1}){var _893=(_891||{})[s];if(typeof _893!="undefined"){this[s]=_893;}}this.inherited(arguments);},set:function(name,_894){if(name==this._refSourceModelProp){_88f(this,this[this._refSourceModelProp],_894);}this.inherited(arguments);},cloneModel:function(_895){var _896=lang.isFunction((_895||{}).set)&&lang.isFunction((_895||{}).watch)?_88c(_895,this.getPlainValueOptions):_895;return _88d(_896,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;}});});},"dojox/mvc/getStateful":function(){define("dojox/mvc/getStateful",["dojo/_base/array","dojo/_base/lang","dojo/Stateful","./StatefulArray"],function(_897,lang,_898,_899){var _89a={getType:function(v){return lang.isArray(v)?"array":v!=null&&{}.toString.call(v)=="[object Object]"?"object":"value";},getStatefulArray:function(a){return new _899(_897.map(a,function(item){return _89b(item,this);},this));},getStatefulObject:function(o){var _89c=new _898();for(var s in o){_89c[s]=_89b(o[s],this);}return _89c;},getStatefulValue:function(v){return v;}};var _89b=function(_89d,_89e){return (_89e||_89b)["getStateful"+(_89e||_89b).getType(_89d).replace(/^[a-z]/,function(c){return c.toUpperCase();})](_89d);};return lang.setObject("dojox.mvc.getStateful",lang.mixin(_89b,_89a));});},"dojox/mvc/StatefulArray":function(){define("dojox/mvc/StatefulArray",["dojo/_base/lang","dojo/Stateful"],function(lang,_89f){function _8a0(a){if(a._watchElementCallbacks){a._watchElementCallbacks();}return a;};var _8a1=function(a){var _8a2=lang._toArray(a);var ctor=_8a1;ctor._meta={bases:[_89f]};_8a2.constructor=ctor;return lang.mixin(_8a2,{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 _8a0([].reverse.apply(this,lang._toArray(arguments)));},shift:function(){return this.splice(0,1)[0];},sort:function(){return _8a0([].sort.apply(this,lang._toArray(arguments)));},splice:function(idx,n){var l=this.get("length");idx+=idx<0?l:0;var p=Math.min(idx,l),_8a3=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,_8a3,adds);}if(this._watchCallbacks){this._watchCallbacks("length",l,l-_8a3.length+adds.length);}return _8a3;},unshift:function(){this.splice.apply(this,[0,0].concat(lang._toArray(arguments)));return this.get("length");},concat:function(a){return new _8a1([].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(_8a4,end){var l=this.get("length");_8a4+=_8a4<0?l:0;end=(end===void 0?l:end)+(end<0?l:0);var _8a5=[];for(var i=_8a4||0;i<Math.min(end,this.get("length"));i++){_8a5.push(this.get(i));}return new _8a1(_8a5);},watchElements:function(_8a6){var _8a7=this._watchElementCallbacks,_8a8=this;if(!_8a7){_8a7=this._watchElementCallbacks=function(idx,_8a9,adds){for(var list=[].concat(_8a7.list),i=0;i<list.length;i++){list[i].call(_8a8,idx,_8a9,adds);}};_8a7.list=[];}_8a7.list.push(_8a6);var h={};h.unwatch=h.remove=function(){for(var list=_8a7.list,i=0;i<list.length;i++){if(list[i]==_8a6){list.splice(i,1);break;}}};return h;}},_89f.prototype,{set:function(name,_8aa){if(name=="length"){var old=this.get("length");if(old<_8aa){this.splice.apply(this,[old,0].concat(new Array(_8aa-old)));}else{if(_8aa>old){this.splice.apply(this,[_8aa,old-_8aa]);}}return this;}else{var _8ab=this.length;_89f.prototype.set.call(this,name,_8aa);if(_8ab!=this.length){_89f.prototype.set.call(this,"length",this.length);}return this;}}});};return lang.setObject("dojox.mvc.StatefulArray",_8a1);});},"dojox/mvc/StoreRefController":function(){define("dojox/mvc/StoreRefController",["dojo/_base/declare","dojo/_base/lang","dojo/when","./getStateful","./ModelRefController"],function(_8ac,lang,when,_8ad,_8ae){return _8ac("dojox.mvc.StoreRefController",_8ae,{store:null,getStatefulOptions:null,_refSourceModelProp:"model",queryStore:function(_8af,_8b0){if(!(this.store||{}).query){return;}if(this._queryObserveHandle){this._queryObserveHandle.cancel();}var _8b1=this,_8b2=this.store.query(_8af,_8b0),_8b3=when(_8b2,function(_8b4){if(_8b1._beingDestroyed){return;}_8b4=_8ad(_8b4,_8b1.getStatefulOptions);_8b1.set(_8b1._refSourceModelProp,_8b4);return _8b4;});for(var s in _8b2){if(isNaN(s)&&_8b2.hasOwnProperty(s)&&lang.isFunction(_8b2[s])){_8b3[s]=_8b2[s];}}return _8b3;},getStore:function(id,_8b5){if(!(this.store||{}).get){return;}if(this._queryObserveHandle){this._queryObserveHandle.cancel();}var _8b6=this;result=when(this.store.get(id,_8b5),function(_8b7){if(_8b6._beingDestroyed){return;}_8b7=_8ad(_8b7,_8b6.getStatefulOptions);_8b6.set(_8b6._refSourceModelProp,_8b7);return _8b7;});return result;},putStore:function(_8b8,_8b9){if(!(this.store||{}).put){return;}return this.store.put(_8b8,_8b9);},addStore:function(_8ba,_8bb){if(!(this.store||{}).add){return;}return this.store.add(_8ba,_8bb);},removeStore:function(id,_8bc){if(!(this.store||{}).remove){return;}return this.store.remove(id,_8bc);}});});},"todo/form/InlineEditBox":function(){define("todo/form/InlineEditBox",["dijit/InlineEditBox","dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_8bd,_8be,lang,_8bf){_8bd._InlineEditor.prototype._onChange=function(){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&this.enableSave()){this._onBlur();}};return _8be("todo.form.InlineEditBox",_8bd,{postMixInProperties:function(){this.displayNode=this.srcNodeRef;var _8c0={ondblclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _8c0){this.connect(this.displayNode,name,_8c0[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;}_8bf.add(this.displayNode,"dijitInlineEditBoxDisplayMode");},_onChange:function(){this.inherited(arguments);this._onBlur();}});});},"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",["require","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(_8c1,_8c2,_8c3,_8c4,_8c5,_8c6,_8c7,_8c8,i18n,_8c9,keys,lang,has,when,fm,_8ca,_8cb,_8cc,_8cd,_8ce,_8cf,_8d0,_8d1){var _8d2=_8c3("dijit._InlineEditor",[_8ca,_8cb,_8cc],{templateString:_8d1,postMixInProperties:function(){this.inherited(arguments);this.messages=i18n.getLocalization("dijit","common",this.lang);_8c2.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)||_8c1(this.editor)):this.editor;var _8d3=this.sourceStyle,_8d4="line-height:"+_8d3.lineHeight+";",_8d5=_8c7.getComputedStyle(this.domNode);_8c2.forEach(["Weight","Family","Size","Style"],function(prop){var _8d6=_8d3["font"+prop],_8d7=_8d5["font"+prop];if(_8d7!=_8d6){_8d4+="font-"+prop+":"+_8d3["font"+prop]+";";}},this);_8c2.forEach(["marginTop","marginBottom","marginLeft","marginRight","position","left","top","right","bottom","float","clear","display"],function(prop){this.domNode.style[prop]=_8d3[prop];},this);var _8d8=this.inlineEditBox.width;if(_8d8=="100%"){_8d4+="width:100%;";this.domNode.style.display="block";}else{_8d4+="width:"+(_8d8+(Number(_8d8)==_8d8?"px":""))+";";}var _8d9=lang.delegate(this.inlineEditBox.editorParams,{style:_8d4,dir:this.dir,lang:this.lang,textDir:this.textDir});_8d9["displayedValue" in Cls.prototype?"displayedValue":"value"]=this.value;this.editWidget=new Cls(_8d9,this.editorPlaceholder);if(this.inlineEditBox.autoSave){_8c6.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){_8c8.stop(e);this.cancel(true);}else{if(e.charOrCode==keys.ENTER&&e.target.tagName=="INPUT"){_8c8.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(){_8cf.selectInputText(this.editWidget.focusNode);});}}}});var _8da=_8c3("dijit.InlineEditBox",_8ca,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:_8d0,editorWrapper:_8d2,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 _8db={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _8db){this.connect(this.displayNode,name,_8db[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;}_8c5.add(this.displayNode,"dijitInlineEditBoxDisplayMode");},setDisabled:function(_8dc){_8c9.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_8dc);},_setDisabledAttr:function(_8dd){this.domNode.setAttribute("aria-disabled",_8dd?"true":"false");if(_8dd){this.displayNode.removeAttribute("tabIndex");}else{this.displayNode.setAttribute("tabIndex",0);}_8c5.toggle(this.displayNode,"dijitInlineEditBoxDisplayModeDisabled",_8dd);this._set("disabled",_8dd);},_onMouseOver:function(){if(!this.disabled){_8c5.add(this.displayNode,"dijitInlineEditBoxDisplayModeHover");}},_onMouseOut:function(){_8c5.remove(this.displayNode,"dijitInlineEditBoxDisplayModeHover");},_onClick:function(e){if(this.disabled){return;}if(e){_8c8.stop(e);}this._onMouseOut();this.defer("edit");},edit:function(){if(this.disabled||this.editing){return;}this._set("editing",true);this._savedTabIndex=_8c4.get(this.displayNode,"tabIndex")||"0";if(this.wrapperWidget){var ew=this.wrapperWidget.editWidget;ew.set("displayedValue" in ew?"displayedValue":"value",this.value);}else{var _8de=_8c6.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:_8c7.getComputedStyle(this.displayNode),save:lang.hitch(this,"save"),cancel:lang.hitch(this,"cancel"),textDir:this.textDir},_8de);if(!this.wrapperWidget._started){this.wrapperWidget.startup();}if(!this._started){this.startup();}}var ww=this.wrapperWidget;_8c5.add(this.displayNode,"dijitOffScreen");_8c5.remove(ww.domNode,"dijitOffScreen");_8c7.set(ww.domNode,{visibility:"visible"});_8c4.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(_8df){var ww=this.wrapperWidget;_8c7.set(ww.domNode,{visibility:"hidden"});_8c5.add(ww.domNode,"dijitOffScreen");_8c5.remove(this.displayNode,"dijitOffScreen");_8c4.set(this.displayNode,"tabIndex",this._savedTabIndex);if(_8df){fm.focus(this.displayNode);}},save:function(_8e0){if(this.disabled||!this.editing){return;}this._set("editing",false);var ww=this.wrapperWidget;var _8e1=ww.getValue();this.set("value",_8e1);this._showText(_8e0);},setValue:function(val){_8c9.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 _8e2=this.renderAsHtml?val:val.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>");this.displayNode.innerHTML=_8e2||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(){_8c9.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use get('value') instead.","","2.0");return this.get("value");},cancel:function(_8e3){if(this.disabled||!this.editing){return;}this._set("editing",false);this.defer("onCancel");this._showText(_8e3);},_setTextDirAttr:function(_8e4){if(!this._created||this.textDir!=_8e4){this._set("textDir",_8e4);this.applyTextDir(this.displayNode,this.displayNode.innerText);this.displayNode.align=this.dir=="rtl"?"right":"left";}}});_8da._InlineEditor=_8d2;return _8da;});},"dojo/i18n":function(){define("dojo/i18n",["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],function(dojo,_8e5,has,_8e6,_8e7,lang,xhr,json,_8e8){has.add("dojo-preload-i18n-Api",1);1||has.add("dojo-v1x-i18n-Api",1);var _8e9=dojo.i18n={},_8ea=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_8eb=function(root,_8ec,_8ed,_8ee){for(var _8ef=[_8ed+_8ee],_8f0=_8ec.split("-"),_8f1="",i=0;i<_8f0.length;i++){_8f1+=(_8f1?"-":"")+_8f0[i];if(!root||root[_8f1]){_8ef.push(_8ed+_8f1+"/"+_8ee);}}return _8ef;},_8f2={},_8f3=function(_8f4,_8f5,_8f6){_8f6=_8f6?_8f6.toLowerCase():dojo.locale;_8f4=_8f4.replace(/\./g,"/");_8f5=_8f5.replace(/\./g,"/");return (/root/i.test(_8f6))?(_8f4+"/nls/"+_8f5):(_8f4+"/nls/"+_8f6+"/"+_8f5);},_8f7=dojo.getL10nName=function(_8f8,_8f9,_8fa){return _8f8=_8e8.id+"!"+_8f3(_8f8,_8f9,_8fa);},_8fb=function(_8fc,_8fd,_8fe,_8ff,_900,load){_8fc([_8fd],function(root){var _901=lang.clone(root.root),_902=_8eb(!root._v1x&&root,_900,_8fe,_8ff);_8fc(_902,function(){for(var i=1;i<_902.length;i++){_901=lang.mixin(lang.clone(_901),arguments[i]);}var _903=_8fd+"/"+_900;_8f2[_903]=_901;load();});});},_904=function(id,_905){return /^\./.test(id)?_905(id):id;},_906=function(_907){var list=_8e7.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_907);return list;},load=function(id,_908,load){if(has("dojo-preload-i18n-Api")){var _909=id.split("*"),_90a=_909[1]=="preload";if(_90a){if(!_8f2[id]){_8f2[id]=1;_90b(_909[2],json.parse(_909[3]),1,_908);}load(1);}if(_90a||_90c(id,_908,load)){return;}}var _90d=_8ea.exec(id),_90e=_90d[1]+"/",_90f=_90d[5]||_90d[4],_910=_90e+_90f,_911=(_90d[5]&&_90d[4]),_912=_911||dojo.locale,_913=_910+"/"+_912,_914=_911?[_912]:_906(_912),_915=_914.length,_916=function(){if(!--_915){load(lang.delegate(_8f2[_913]));}};_8e6.forEach(_914,function(_917){var _918=_910+"/"+_917;if(has("dojo-preload-i18n-Api")){_919(_918);}if(!_8f2[_918]){_8fb(_908,_910,_90e,_90f,_917,_916);}else{_916();}});};if(has("dojo-unit-tests")){var _91a=_8e9.unitTests=[];}if(has("dojo-preload-i18n-Api")||1){var _91b=_8e9.normalizeLocale=function(_91c){var _91d=_91c?_91c.toLowerCase():dojo.locale;return _91d=="root"?"ROOT":_91d;},isXd=function(mid,_91e){return (1&&1)?_91e.isXdUrl(_8e5.toUrl(mid+".js")):true;},_91f=0,_920=[],_90b=_8e9._preloadLocalizations=function(_921,_922,_923,_924){_924=_924||_8e5;function _925(mid,_926){if(isXd(mid,_924)||_923){_924([mid],_926);}else{_930([mid],_926,_924);}};function _927(_928,func){var _929=_928.split("-");while(_929.length){if(func(_929.join("-"))){return;}_929.pop();}func("ROOT");};function _92a(_92b){_92b=_91b(_92b);_927(_92b,function(loc){if(_8e6.indexOf(_922,loc)>=0){var mid=_921.replace(/\./g,"/")+"_"+loc;_91f++;_925(mid,function(_92c){for(var p in _92c){_8f2[_8e5.toAbsMid(p)+"/"+loc]=_92c[p];}--_91f;while(!_91f&&_920.length){load.apply(null,_920.shift());}});return true;}return false;});};_92a();_8e6.forEach(dojo.config.extraLocale,_92a);},_90c=function(id,_92d,load){if(_91f){_920.push([id,_92d,load]);}return _91f;},_919=function(){};}if(1){var _92e={},_92f=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;"+"}"),_930=function(deps,_931,_932){var _933=[];_8e6.forEach(deps,function(mid){var url=_932.toUrl(mid+".js");function load(text){var _934=_92f(text,_919,mid,_92e);if(_934===_92e){_933.push(_8f2[url]=_92e.result);}else{if(_934 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_934);_934={};}_933.push(_8f2[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_934:{root:_934,_v1x:1}));}};if(_8f2[url]){_933.push(_8f2[url]);}else{var _935=_932.syncLoadNls(mid);if(_935){_933.push(_935);}else{if(!xhr){try{_932.getText(url,true,load);}catch(e){_933.push(_8f2[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_933.push(_8f2[url]={});}});}}}});_931&&_931.apply(null,_933);};_919=function(_936){for(var _937,_938=_936.split("/"),_939=dojo.global[_938[0]],i=1;_939&&i<_938.length-1;_939=_939[_938[i++]]){}if(_939){_937=_939[_938[i]];if(!_937){_937=_939[_938[i].replace(/-/g,"_")];}if(_937){_8f2[_936]=_937;}}return _937;};_8e9.getLocalization=function(_93a,_93b,_93c){var _93d,_93e=_8f3(_93a,_93b,_93c);load(_93e,(!isXd(_93e,_8e5)?function(deps,_93f){_930(deps,_93f,_8e5);}:_8e5),function(_940){_93d=_940;});return _93d;};if(has("dojo-unit-tests")){_91a.push(function(doh){doh.register("tests.i18n.unit",function(t){var _941;_941=_92f("{prop:1}",_919,"nonsense",_92e);t.is({prop:1},_941);t.is(undefined,_941[1]);_941=_92f("({prop:1})",_919,"nonsense",_92e);t.is({prop:1},_941);t.is(undefined,_941[1]);_941=_92f("{'prop-x':1}",_919,"nonsense",_92e);t.is({"prop-x":1},_941);t.is(undefined,_941[1]);_941=_92f("({'prop-x':1})",_919,"nonsense",_92e);t.is({"prop-x":1},_941);t.is(undefined,_941[1]);_941=_92f("define({'prop-x':1})",_919,"nonsense",_92e);t.is(_92e,_941);t.is({"prop-x":1},_92e.result);_941=_92f("define('some/module', {'prop-x':1})",_919,"nonsense",_92e);t.is(_92e,_941);t.is({"prop-x":1},_92e.result);_941=_92f("this is total nonsense and should throw an error",_919,"nonsense",_92e);t.is(_941 instanceof Error,true);});});}}return lang.mixin(_8e9,{dynamic:true,normalize:_904,load:load,cache:_8f2});});},"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","todo/misc/HashSelectedConverter":function(){define("todo/misc/HashSelectedConverter",{format:function(_942){return this.target.domNode.getAttribute("href").substr(1)==(_942||"/");},parse:function(_943){throw new Error();}});},"todo/misc/LessThanOrEqualToConverter":function(){define("todo/misc/LessThanOrEqualToConverter",{format:function(_944,_945){return _944<=(_945.lessThanOrEqualTo||0);},parse:function(_946){throw new Error();}});},"todo/model/SimpleTodoModel":function(){define("todo/model/SimpleTodoModel",["dojo/_base/array","dojo/_base/lang","dojox/mvc/getStateful"],function(_947,lang,_948){var _949={id:"todos-dojo",todos:[],incomplete:0,complete:0};var seq=0;return function(data){function _94a(item){lang.mixin(item,{_completedSetter:function(_94b){if(this.completed^_94b){_94c.set("complete",_94c.get("complete")+(_94b?1:-1));}this.completed=_94b;},uniqueId:"TODO-"+seq++});};var _94c=_948(data||_949);_947.forEach(_94c.todos,_94a);return lang.mixin(_94c,{_elementWatchHandle:_94c.todos.watchElements(function(idx,_94d,adds){var _94e=_94c.get("complete");_947.forEach(_94d,function(item){_94e-=!!item.completed;});_947.forEach(adds,function(item){_94e+=!!item.completed;});_94c.set("complete",_94e);_94c.set("incomplete",_94c.todos.get("length")-_94e);_947.forEach(adds,_94a);}),_incompleteSetter:function(_94f){var _950=this.incomplete!=_94f;this.incomplete=_94f;if(_950){this.set("complete",this.todos.get("length")-_94f);}},_completeSetter:function(_951){var _952=this.complete!=_951;this.complete=_951;if(_952){this.set("incomplete",this.todos.get("length")-_951);}},destroy:function(){this._elementWatchHandle.remove();}});};});},"todo/store/LocalStorage":function(){define("todo/store/LocalStorage",["dojo/_base/declare","dojo/_base/lang","dojo/_base/json","dojo/store/util/QueryResults","dojo/store/util/SimpleQueryEngine"],function(_953,lang,json,_954,_955){return _953(null,{constructor:function(_956){if(!window.localStorage){throw Error("LocalStorage not available on this device");}lang.mixin(this,_956);this.setData(this.data||[]);},idProperty:"id",queryEngine:_955,get:function(id){return json.fromJson(localStorage.getItem(id));},getIdentity:function(_957){return _957[this.idProperty];},put:function(_958,_959){var id=_959&&_959.id||_958[this.idProperty]||Math.random();localStorage.setItem(id,json.toJson(_958));return id;},add:function(_95a,_95b){if(this.get(_95a[this.idProperty])){throw new Error("Object already exists");}return this.put(_95a,_95b);},remove:function(id){localStorage.removeItem(id);},query:function(_95c,_95d){var data=[];for(var i=0;i<localStorage.length;i++){data.push(this.get(localStorage.key(i)));}return _954(this.queryEngine(_95c,_95d)(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 _95e=data[i];this.put(_95e);}}});});},"dojo/store/util/QueryResults":function(){define(["../../_base/array","../../_base/lang","../../_base/Deferred"],function(_95f,lang,_960){var _961=function(_962){if(!_962){return _962;}if(_962.then){_962=lang.delegate(_962);}function _963(_964){if(!_962[_964]){_962[_964]=function(){var args=arguments;return _960.when(_962,function(_965){Array.prototype.unshift.call(args,_965);return _961(_95f[_964].apply(_95f,args));});};}};_963("forEach");_963("filter");_963("map");if(!_962.total){_962.total=_960.when(_962,function(_966){return _966.length;});}return _962;};lang.setObject("dojo.store.util.QueryResults",_961);return _961;});},"dojo/store/util/SimpleQueryEngine":function(){define(["../../_base/array"],function(_967){return function(_968,_969){switch(typeof _968){default:throw new Error("Can not query with a "+typeof _968);case "object":case "undefined":var _96a=_968;_968=function(_96b){for(var key in _96a){var _96c=_96a[key];if(_96c&&_96c.test){if(!_96c.test(_96b[key],_96b)){return false;}}else{if(_96c!=_96b[key]){return false;}}}return true;};break;case "string":if(!this[_968]){throw new Error("No filter function "+_968+" was found in store");}_968=this[_968];case "function":}function _96d(_96e){var _96f=_967.filter(_96e,_968);var _970=_969&&_969.sort;if(_970){_96f.sort(typeof _970=="function"?_970:function(a,b){for(var sort,i=0;sort=_970[i];i++){var _971=a[sort.attribute];var _972=b[sort.attribute];if(_971!=_972){return !!sort.descending==(_971==null||_971>_972)?-1:1;}}return 0;});}if(_969&&(_969.start||_969.count)){var _973=_96f.length;_96f=_96f.slice(_969.start||0,(_969.start||0)+(_969.count||Infinity));_96f.total=_973;}return _96f;};_96d.matches=_968;return _96d;};});},"dojo/main":function(){define("dojo/main",["./_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(_974,has,_975,_976,lang,_977,_978,_979){if(_978.isDebug){_975(["./_firebug/firebug"]);}1||has.add("dojo-config-require",1);if(1){var deps=_978.require;if(deps){deps=_977.map(lang.isArray(deps)?deps:[deps],function(item){return item.replace(/\./g,"/");});if(_974.isAsync){_975(deps);}else{_979(1,function(){_975(deps);});}}}return _974;});},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(dojo,lang,_97a,_97b){var _97c=dojo.Color=function(_97d){if(_97d){this.setColor(_97d);}};_97c.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":_97b.transparentColor||[0,0,0,0]};lang.extend(_97c,{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(_97e){if(lang.isString(_97e)){_97c.fromString(_97e,this);}else{if(lang.isArray(_97e)){_97c.fromArray(_97e,this);}else{this._set(_97e.r,_97e.g,_97e.b,_97e.a);if(!(_97e instanceof _97c)){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=_97a.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(_97f){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_97f?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});_97c.blendColors=dojo.blendColors=function(_980,end,_981,obj){var t=obj||new _97c();_97a.forEach(["r","g","b","a"],function(x){t[x]=_980[x]+(end[x]-_980[x])*_981;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};_97c.fromRgb=dojo.colorFromRgb=function(_982,obj){var m=_982.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&_97c.fromArray(m[1].split(/\s*,\s*/),obj);};_97c.fromHex=dojo.colorFromHex=function(_983,obj){var t=obj||new _97c(),bits=(_983.length==4)?4:8,mask=(1<<bits)-1;_983=Number("0x"+_983.substr(1));if(isNaN(_983)){return null;}_97a.forEach(["b","g","r"],function(x){var c=_983&mask;_983>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};_97c.fromArray=dojo.colorFromArray=function(a,obj){var t=obj||new _97c();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};_97c.fromString=dojo.colorFromString=function(str,obj){var a=_97c.named[str];return a&&_97c.fromArray(a,obj)||_97c.fromRgb(str,obj)||_97c.fromHex(str,obj);};return _97c;});},"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/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],function(dojo,_984,_985){var _986=_984.NodeList,nlp=_986.prototype;nlp.connect=_986._adaptAsForEach(function(){return dojo.connect.apply(this,arguments);});nlp.coords=_986._adaptAsMap(dojo.coords);_986.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];_985.forEach(_986.events,function(evt){var _987="on"+evt;nlp[_987]=function(a,b){return this.connect(_987,a,b);};});dojo.NodeList=_986;return _986;});},"dojo/_base/fx":function(){define(["./kernel","./config","./lang","../Evented","./Color","./connect","./sniff","../dom","../dom-style"],function(dojo,_988,lang,_989,_98a,_98b,has,dom,_98c){var _98d=lang.mixin;var _98e={};var _98f=_98e._Line=function(_990,end){this.start=_990;this.end=end;};_98f.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};var _991=_98e.Animation=function(args){_98d(this,args);if(lang.isArray(this.curve)){this.curve=new _98f(this.curve[0],this.curve[1]);}};_991.prototype=new _989();lang.extend(_991,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _992=this._percent,_993=this.easing;return _993?_993(_992):_992;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(_988.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(_994,_995){var _996=this;if(_996._delayTimer){_996._clearTimer();}if(_995){_996._stopTimer();_996._active=_996._paused=false;_996._percent=0;}else{if(_996._active&&!_996._paused){return _996;}}_996._fire("beforeBegin",[_996.node]);var de=_994||_996.delay,_997=lang.hitch(_996,"_play",_995);if(de>0){_996._delayTimer=setTimeout(_997,de);return _996;}_997();return _996;},_play:function(_998){var _999=this;if(_999._delayTimer){_999._clearTimer();}_999._startTime=new Date().valueOf();if(_999._paused){_999._startTime-=_999.duration*_999._percent;}_999._active=true;_999._paused=false;var _99a=_999.curve.getValue(_999._getStep());if(!_999._percent){if(!_999._startRepeatCount){_999._startRepeatCount=_999.repeat;}_999._fire("onBegin",[_99a]);}_999._fire("onPlay",[_99a]);_999._cycle();return _999;},pause:function(){var _99b=this;if(_99b._delayTimer){_99b._clearTimer();}_99b._stopTimer();if(!_99b._active){return _99b;}_99b._paused=true;_99b._fire("onPause",[_99b.curve.getValue(_99b._getStep())]);return _99b;},gotoPercent:function(_99c,_99d){var _99e=this;_99e._stopTimer();_99e._active=_99e._paused=true;_99e._percent=_99c;if(_99d){_99e.play();}return _99e;},stop:function(_99f){var _9a0=this;if(_9a0._delayTimer){_9a0._clearTimer();}if(!_9a0._timer){return _9a0;}_9a0._stopTimer();if(_99f){_9a0._percent=1;}_9a0._fire("onStop",[_9a0.curve.getValue(_9a0._getStep())]);_9a0._active=_9a0._paused=false;return _9a0;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _9a1=this;if(_9a1._active){var curr=new Date().valueOf();var step=_9a1.duration===0?1:(curr-_9a1._startTime)/(_9a1.duration);if(step>=1){step=1;}_9a1._percent=step;if(_9a1.easing){step=_9a1.easing(step);}_9a1._fire("onAnimate",[_9a1.curve.getValue(step)]);if(_9a1._percent<1){_9a1._startTimer();}else{_9a1._active=false;if(_9a1.repeat>0){_9a1.repeat--;_9a1.play(null,true);}else{if(_9a1.repeat==-1){_9a1.play(null,true);}else{if(_9a1._startRepeatCount){_9a1.repeat=_9a1._startRepeatCount;_9a1._startRepeatCount=0;}}}_9a1._percent=0;_9a1._fire("onEnd",[_9a1.node]);!_9a1.repeat&&_9a1._stopTimer();}}return _9a1;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_9a2=null,_9a3={run:function(){}};lang.extend(_991,{_startTimer:function(){if(!this._timer){this._timer=_98b.connect(_9a3,"run",this,"_cycle");ctr++;}if(!_9a2){_9a2=setInterval(lang.hitch(_9a3,"run"),this.rate);}},_stopTimer:function(){if(this._timer){_98b.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_9a2);_9a2=null;ctr=0;}}});var _9a4=has("ie")?function(node){var ns=node.style;if(!ns.width.length&&_98c.get(node,"width")=="auto"){ns.width="auto";}}:function(){};_98e._fade=function(args){args.node=dom.byId(args.node);var _9a5=_98d({properties:{}},args),_9a6=(_9a5.properties.opacity={});_9a6.start=!("start" in _9a5)?function(){return +_98c.get(_9a5.node,"opacity")||0;}:_9a5.start;_9a6.end=_9a5.end;var anim=_98e.animateProperty(_9a5);_98b.connect(anim,"beforeBegin",lang.partial(_9a4,_9a5.node));return anim;};_98e.fadeIn=function(args){return _98e._fade(_98d({end:1},args));};_98e.fadeOut=function(args){return _98e._fade(_98d({end:0},args));};_98e._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _9a7=function(_9a8){this._properties=_9a8;for(var p in _9a8){var prop=_9a8[p];if(prop.start instanceof _98a){prop.tempColor=new _98a();}}};_9a7.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_9a9=prop.start;if(_9a9 instanceof _98a){ret[p]=_98a.blendColors(_9a9,prop.end,r,prop.tempColor).toCss();}else{if(!lang.isArray(_9a9)){ret[p]=((prop.end-_9a9)*r)+_9a9+(p!="opacity"?prop.units||"px":0);}}}return ret;};_98e.animateProperty=function(args){var n=args.node=dom.byId(args.node);if(!args.easing){args.easing=dojo._defaultEasing;}var anim=new _991(args);_98b.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]=_98d({},(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 _9aa=(p.toLowerCase().indexOf("color")>=0);function _9ab(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=_98c.get(node,p);return (p=="opacity")?+v:(_9aa?v:parseFloat(v));};if(!("end" in prop)){prop.end=_9ab(n,p);}else{if(!("start" in prop)){prop.start=_9ab(n,p);}}if(_9aa){prop.start=new _98a(prop.start);prop.end=new _98a(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _9a7(pm);});_98b.connect(anim,"onAnimate",lang.hitch(_98c,"set",anim.node));return anim;};_98e.anim=function(node,_9ac,_9ad,_9ae,_9af,_9b0){return _98e.animateProperty({node:node,duration:_9ad||_991.prototype.duration,properties:_9ac,easing:_9ae,onEnd:_9af}).play(_9b0||0);};if(1){_98d(dojo,_98e);dojo._Animation=_991;}return _98e;});},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","./json","./lang","./array"],function(dojo,has,_9b1,_9b2,json,lang,_9b3){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 _9b4=function(id){return {src:_9b2.id,id:id};},_9b5=function(name){return name.replace(/\./g,"/");},_9b6=/\/\/>>built/,_9b7=[],_9b8=[],_9b9=function(mid,_9ba,_9bb){_9b7.push(_9bb);_9b3.forEach(mid.split(","),function(mid){var _9bc=_9bd(mid,_9ba.module);_9b8.push(_9bc);_9be(_9bc);});_9bf();},_9bf=(1?function(){var _9c0,mid;for(mid in _9c1){_9c0=_9c1[mid];if(_9c0.noReqPluginCheck===undefined){_9c0.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(!_9c0.executed&&!_9c0.noReqPluginCheck&&_9c0.injected==_9c2){return;}}_9c3(function(){var _9c4=_9b7;_9b7=[];_9b3.forEach(_9c4,function(cb){cb(1);});});}:(function(){var _9c5,_9c6=function(m){_9c5[m.mid]=1;for(var t,_9c7,deps=m.deps||[],i=0;i<deps.length;i++){_9c7=deps[i];if(!(t=_9c5[_9c7.mid])){if(t===0||!_9c6(_9c7)){_9c5[m.mid]=0;return false;}}}return true;};return function(){var _9c8,mid;_9c5={};for(mid in _9c1){_9c8=_9c1[mid];if(_9c8.executed||_9c8.noReqPluginCheck){_9c5[mid]=1;}else{if(_9c8.noReqPluginCheck!==0){_9c8.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(_9c8.noReqPluginCheck){_9c5[mid]=1;}else{if(_9c8.injected!==_9f4){_9c5[mid]=0;}}}}for(var t,i=0,end=_9b8.length;i<end;i++){_9c8=_9b8[i];if(!(t=_9c5[_9c8.mid])){if(t===0||!_9c6(_9c8)){return;}}}_9c3(function(){var _9c9=_9b7;_9b7=[];_9b3.forEach(_9c9,function(cb){cb(1);});});};})()),_9ca=function(mid,_9cb,_9cc){_9cb([mid],function(_9cd){_9cb(_9cd.names,function(){for(var _9ce="",args=[],i=0;i<arguments.length;i++){_9ce+="var "+_9cd.names[i]+"= arguments["+i+"]; ";args.push(arguments[i]);}eval(_9ce);var _9cf=_9cb.module,_9d0=[],_9d1,_9d2={provide:function(_9d3){_9d3=_9b5(_9d3);var _9d4=_9bd(_9d3,_9cf);if(_9d4!==_9cf){_9fa(_9d4);}},require:function(_9d5,_9d6){_9d5=_9b5(_9d5);_9d6&&(_9bd(_9d5,_9cf).result=_9f5);_9d0.push(_9d5);},requireLocalization:function(_9d7,_9d8,_9d9){if(!_9d1){_9d1=["dojo/i18n"];}_9d9=(_9d9||dojo.locale).toLowerCase();_9d7=_9b5(_9d7)+"/nls/"+(/root/i.test(_9d9)?"":_9d9+"/")+_9b5(_9d8);if(_9bd(_9d7,_9cf).isXd){_9d1.push("dojo/i18n!"+_9d7);}},loadInit:function(f){f();}},hold={},p;try{for(p in _9d2){hold[p]=dojo[p];dojo[p]=_9d2[p];}_9cd.def.apply(null,args);}catch(e){_9da("error",[_9b4("failedDojoLoadInit"),e]);}finally{for(p in _9d2){dojo[p]=hold[p];}}if(_9d1){_9d0=_9d0.concat(_9d1);}if(_9d0.length){_9b9(_9d0.join(","),_9cb,_9cc);}else{_9cc();}});});},_9db=function(text,_9dc,_9dd){var _9de=/\(|\)/g,_9df=1,_9e0;_9de.lastIndex=_9dc;while((_9e0=_9de.exec(text))){if(_9e0[0]==")"){_9df-=1;}else{_9df+=1;}if(_9df==0){break;}}if(_9df!=0){throw "unmatched paren around character "+_9de.lastIndex+" in: "+text;}return [dojo.trim(text.substring(_9dd,_9de.lastIndex))+";\n",_9de.lastIndex];},_9e1=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,_9e2=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,_9e3=/(^|\s)(require|define)\s*\(/m,_9e4=function(text,_9e5){var _9e6,_9e7,_9e8,_9e9,_9ea=[],_9eb=[],_9ec=[];_9e5=_9e5||text.replace(_9e1,function(_9ed){_9e2.lastIndex=_9e3.lastIndex=0;return (_9e2.test(_9ed)||_9e3.test(_9ed))?"":_9ed;});while((_9e6=_9e2.exec(_9e5))){_9e7=_9e2.lastIndex;_9e8=_9e7-_9e6[0].length;_9e9=_9db(_9e5,_9e7,_9e8);if(_9e6[2]=="loadInit"){_9ea.push(_9e9[0]);}else{_9eb.push(_9e9[0]);}_9e2.lastIndex=_9e9[1];}_9ec=_9ea.concat(_9eb);if(_9ec.length||!_9e3.test(_9e5)){return [text.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),_9ec.join(""),_9ec];}else{return 0;}},_9ee=function(_9ef,text){var _9f0,id,_9f1=[],_9f2=[];if(_9b6.test(text)||!(_9f0=_9e4(text))){return 0;}id=_9ef.mid+"-*loadInit";for(var p in _9bd("dojo",_9ef).result.scopeMap){_9f1.push(p);_9f2.push("\""+p+"\"");}return "// xdomain rewrite of "+_9ef.mid+"\n"+"define('"+id+"',{\n"+"\tnames:"+dojo.toJson(_9f1)+",\n"+"\tdef:function("+_9f1.join(",")+"){"+_9f0[1]+"}"+"});\n\n"+"define("+dojo.toJson(_9f1.concat(["dojo/loadInit!"+id]))+", function("+_9f1.join(",")+"){\n"+_9f0[0]+"});";},_9f3=_9b1.initSyncLoader(_9b9,_9bf,_9ee),sync=_9f3.sync,_9c2=_9f3.requested,_9f4=_9f3.arrived,_9f5=_9f3.nonmodule,_9f6=_9f3.executing,_9f7=_9f3.executed,_9f8=_9f3.syncExecStack,_9c1=_9f3.modules,_9f9=_9f3.execQ,_9bd=_9f3.getModule,_9be=_9f3.injectModule,_9fa=_9f3.setArrived,_9da=_9f3.signal,_9fb=_9f3.finishExec,_9fc=_9f3.execModule,_9fd=_9f3.getLegacyMode,_9c3=_9f3.guardCheckComplete;_9b9=_9f3.dojoRequirePlugin;dojo.provide=function(mid){var _9fe=_9f8[0],_9ff=lang.mixin(_9bd(_9b5(mid),_9b1.module),{executed:_9f6,result:lang.getObject(mid,true)});_9fa(_9ff);if(_9fe){(_9fe.provides||(_9fe.provides=[])).push(function(){_9ff.result=lang.getObject(mid);delete _9ff.provides;_9ff.executed!==_9f7&&_9fb(_9ff);});}return _9ff.result;};has.add("config-publishRequireResult",1,0,0);dojo.require=function(_a00,_a01){function _a02(mid,_a03){var _a04=_9bd(_9b5(mid),_9b1.module);if(_9f8.length&&_9f8[0].finish){_9f8[0].finish.push(mid);return undefined;}if(_a04.executed){return _a04.result;}_a03&&(_a04.result=_9f5);var _a05=_9fd();_9be(_a04);_a05=_9fd();if(_a04.executed!==_9f7&&_a04.injected===_9f4){_9f3.guardCheckComplete(function(){_9fc(_a04);});}if(_a04.executed){return _a04.result;}if(_a05==sync){if(_a04.cjs){_9f9.unshift(_a04);}else{_9f8.length&&(_9f8[0].finish=[mid]);}}else{_9f9.push(_a04);}return undefined;};var _a06=_a02(_a00,_a01);if(has("config-publishRequireResult")&&!lang.exists(_a00)&&_a06!==undefined){lang.setObject(_a00,_a06);}return _a06;};dojo.loadInit=function(f){f();};dojo.registerModulePath=function(_a07,_a08){var _a09={};_a09[_a07.replace(/\./g,"/")]=_a08;_9b1({paths:_a09});};dojo.platformRequire=function(_a0a){var _a0b=(_a0a.common||[]).concat(_a0a[dojo._name]||_a0a["default"]||[]),temp;while(_a0b.length){if(lang.isArray(temp=_a0b.shift())){dojo.require.apply(dojo,temp);}else{dojo.require(temp);}}};dojo.requireIf=dojo.requireAfterIf=function(_a0c,_a0d,_a0e){if(_a0c){dojo.require(_a0d,_a0e);}};dojo.requireLocalization=function(_a0f,_a10,_a11){_9b1(["../i18n"],function(i18n){i18n.getLocalization(_a0f,_a10,_a11);});};return {extractLegacyApiApplications:_9e4,require:_9b9,loadInit:_9ca};});},"*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 _a12=this.require;_a12({cache:{}});!_a12.async&&_a12(["dojo"]);_a12.boot&&_a12.apply(null,_a12.boot);})();