webui-aria2/js/libs/dijit/dijit.js
2012-05-01 19:52:07 +08:00

15 lines
73 KiB
JavaScript

/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
/*
This is an optimized version of Dojo, built for deployment and not for
development. To get sources and documentation, please visit:
http://dojotoolkit.org
*/
//>>built
require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla"),"dj_ff3":_8(ff)==3};_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_e,_f,_10,_11,_12,_13,has,win){if(has("ie")||has("mozilla")){_13(90,function(){var div=_11.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_f.blankGif||_e.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_12.getComputedStyle(div);if(cs){var _14=cs.backgroundImage;var _15=(cs.borderTopColor==cs.borderRightColor)||(_14!=null&&(_14=="none"||_14=="url(invalid-url:)"));if(_15){_10.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_16,_17){return _16("dijit._Contained",null,{_getSibling:function(_18){var _19=this.domNode;do{_19=_19[_18+"Sibling"];}while(_19&&_19.nodeType!=1);return _19&&_17.byNode(_19);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojo/parser":function(){define(["./_base/kernel","./_base/lang","./_base/array","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./query","./on","./ready"],function(_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22,_23,don){new Date("X");var _24={"dom-attributes-explicit":document.createElement("div").attributes.length<40};function has(_25){return _24[_25];};_1a.parser=new function(){var _26={};function _27(_28){var map={};for(var _29 in _28){if(_29.charAt(0)=="_"){continue;}map[_29.toLowerCase()]=_29;}return map;};_21.after(_1b,"extend",function(){_26={};},true);var _2a={};this._functionFromScript=function(_2b,_2c){var _2d="";var _2e="";var _2f=(_2b.getAttribute(_2c+"args")||_2b.getAttribute("args"));if(_2f){_1c.forEach(_2f.split(/\s*,\s*/),function(_30,idx){_2d+="var "+_30+" = arguments["+idx+"]; ";});}var _31=_2b.getAttribute("with");if(_31&&_31.length){_1c.forEach(_31.split(/\s*,\s*/),function(_32){_2d+="with("+_32+"){";_2e+="}";});}return new Function(_2d+_2b.innerHTML+_2e);};this.instantiate=function(_33,_34,_35){var _36=[],_34=_34||{};_35=_35||{};var _37=(_35.scope||_1a._scopeName)+"Type",_38="data-"+(_35.scope||_1a._scopeName)+"-",_39=_38+"type",_3a=_38+"props",_3b=_38+"attach-point",_3c=_38+"attach-event",_3d=_38+"id";var _3e={};_1c.forEach([_3a,_39,_37,_3d,"jsId",_3b,_3c,"dojoAttachPoint","dojoAttachEvent","class","style"],function(_3f){_3e[_3f.toLowerCase()]=_3f.replace(_35.scope,"dojo");});_1c.forEach(_33,function(obj){if(!obj){return;}var _40=obj.node||obj,_41=_37 in _34?_34[_37]:obj.node?obj.type:(_40.getAttribute(_39)||_40.getAttribute(_37)),_42=_2a[_41]||(_2a[_41]=_1b.getObject(_41)),_43=_42&&_42.prototype;if(!_42){throw new Error("Could not load class '"+_41);}var _44={};if(_35.defaults){_1b.mixin(_44,_35.defaults);}if(obj.inherited){_1b.mixin(_44,obj.inherited);}var _45;if(has("dom-attributes-explicit")){_45=_40.attributes;}else{var _46=/^input$|^img$/i.test(_40.nodeName)?_40:_40.cloneNode(false),_47=_46.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*/,"").replace(/>.*$/,"");_45=_1c.map(_47.split(/\s+/),function(_48){var _49=_48.toLowerCase();return {name:_48,value:(_40.nodeName=="LI"&&_48=="value")||_49=="enctype"?_40.getAttribute(_49):_40.getAttributeNode(_49).value,specified:true};});}var i=0,_4a;while(_4a=_45[i++]){if(!_4a||!_4a.specified){continue;}var _4b=_4a.name,_4c=_4b.toLowerCase(),_4d=_4a.value;if(_4c in _3e){switch(_3e[_4c]){case "data-dojo-props":var _4e=_4d;break;case "data-dojo-id":case "jsId":var _4f=_4d;break;case "data-dojo-attach-point":case "dojoAttachPoint":_44.dojoAttachPoint=_4d;break;case "data-dojo-attach-event":case "dojoAttachEvent":_44.dojoAttachEvent=_4d;break;case "class":_44["class"]=_40.className;break;case "style":_44["style"]=_40.style&&_40.style.cssText;break;}}else{if(!(_4b in _43)){var map=(_26[_41]||(_26[_41]=_27(_43)));_4b=map[_4c]||_4b;}if(_4b in _43){switch(typeof _43[_4b]){case "string":_44[_4b]=_4d;break;case "number":_44[_4b]=_4d.length?Number(_4d):NaN;break;case "boolean":_44[_4b]=_4d.toLowerCase()!="false";break;case "function":if(_4d===""||_4d.search(/[^\w\.]+/i)!=-1){_44[_4b]=new Function(_4d);}else{_44[_4b]=_1b.getObject(_4d,false)||new Function(_4d);}break;default:var _50=_43[_4b];_44[_4b]=(_50&&"length" in _50)?(_4d?_4d.split(/\s*,\s*/):[]):(_50 instanceof Date)?(_4d==""?new Date(""):_4d=="now"?new Date():_22.fromISOString(_4d)):(_50 instanceof _1a._Url)?(_1a.baseUrl+_4d):_20.fromJson(_4d);}}else{_44[_4b]=_4d;}}}if(_4e){try{_4e=_20.fromJson.call(_35.propsThis,"{"+_4e+"}");_1b.mixin(_44,_4e);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_4e+"'");}}_1b.mixin(_44,_34);var _51=obj.node?obj.scripts:(_42&&(_42._noScript||_43._noScript)?[]:_23("> script[type^='dojo/']",_40));var _52=[],_53=[],_54=[],on=[];if(_51){for(i=0;i<_51.length;i++){var _55=_51[i];_40.removeChild(_55);var _56=(_55.getAttribute(_38+"event")||_55.getAttribute("event")),_57=_55.getAttribute(_38+"prop"),_41=_55.getAttribute("type"),nf=this._functionFromScript(_55,_38);if(_56){if(_41=="dojo/connect"){_52.push({event:_56,func:nf});}else{if(_41=="dojo/on"){on.push({event:_56,func:nf});}else{_44[_56]=nf;}}}else{if(_41=="dojo/watch"){_54.push({prop:_57,func:nf});}else{_53.push(nf);}}}}var _58=_42.markupFactory||_43.markupFactory;var _59=_58?_58(_44,_40,_42):new _42(_44,_40);_36.push(_59);if(_4f){_1b.setObject(_4f,_59);}for(i=0;i<_52.length;i++){_21.after(_59,_52[i].event,_1a.hitch(_59,_52[i].func),true);}for(i=0;i<_53.length;i++){_53[i].call(_59);}for(i=0;i<_54.length;i++){_59.watch(_54[i].prop,_54[i].func);}for(i=0;i<on.length;i++){don(_59,on[i].event,on[i].func);}},this);if(!_34._started){_1c.forEach(_36,function(_5a){if(!_35.noStart&&_5a&&_1b.isFunction(_5a.startup)&&!_5a._started){_5a.startup();}});}return _36;};this.parse=function(_5b,_5c){var _5d;if(!_5c&&_5b&&_5b.rootNode){_5c=_5b;_5d=_5c.rootNode;}else{_5d=_5b;}_5d=_5d?_1d.byId(_5d):_1e.body();_5c=_5c||{};var _5e=(_5c.scope||_1a._scopeName)+"Type",_5f="data-"+(_5c.scope||_1a._scopeName)+"-",_60=_5f+"type",_61=_5f+"textdir";var _62=[];var _63=_5d.firstChild;var _64=_5c&&_5c.inherited;if(!_64){function _65(_66,_67){return (_66.getAttribute&&_66.getAttribute(_67))||(_66!==_1e.doc&&_66!==_1e.doc.documentElement&&_66.parentNode?_65(_66.parentNode,_67):null);};_64={dir:_65(_5d,"dir"),lang:_65(_5d,"lang"),textDir:_65(_5d,_61)};for(var key in _64){if(!_64[key]){delete _64[key];}}}var _68={inherited:_64};var _69;var _6a;function _6b(_6c){if(!_6c.inherited){_6c.inherited={};var _6d=_6c.node,_6e=_6b(_6c.parent);var _6f={dir:_6d.getAttribute("dir")||_6e.dir,lang:_6d.getAttribute("lang")||_6e.lang,textDir:_6d.getAttribute(_61)||_6e.textDir};for(var key in _6f){if(_6f[key]){_6c.inherited[key]=_6f[key];}}}return _6c.inherited;};while(true){if(!_63){if(!_68||!_68.node){break;}_63=_68.node.nextSibling;_69=_68.scripts;_6a=false;_68=_68.parent;continue;}if(_63.nodeType!=1){_63=_63.nextSibling;continue;}if(_69&&_63.nodeName.toLowerCase()=="script"){_70=_63.getAttribute("type");if(_70&&/^dojo\/\w/i.test(_70)){_69.push(_63);}_63=_63.nextSibling;continue;}if(_6a){_63=_63.nextSibling;continue;}var _70=_63.getAttribute(_60)||_63.getAttribute(_5e);var _71=_63.firstChild;if(!_70&&(!_71||(_71.nodeType==3&&!_71.nextSibling))){_63=_63.nextSibling;continue;}var _72={node:_63,scripts:_69,parent:_68};var _73=_70&&(_2a[_70]||(_2a[_70]=_1b.getObject(_70))),_74=_73&&!_73.prototype._noScript?[]:null;if(_70){_62.push({"type":_70,node:_63,scripts:_74,inherited:_6b(_72)});}_63=_71;_69=_74;_6a=_73&&_73.prototype.stopParser&&!(_5c&&_5c.template);_68=_72;}var _75=_5c&&_5c.template?{template:true}:null;return this.instantiate(_62,_75,_5c);};}();if(_1a.config.parseOnLoad){_1a.ready(100,_1a.parser,"parse");}return _1a.parser;});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_76,_77,_78,_79){return _77("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_7a,_7b){var _7c=this.containerNode;if(_7b&&typeof _7b=="number"){var _7d=this.getChildren();if(_7d&&_7d.length>=_7b){_7c=_7d[_7b-1].domNode;_7b="after";}}_78.place(_7a.domNode,_7c,_7b);if(this._started&&!_7a._started){_7a.startup();}},removeChild:function(_7e){if(typeof _7e=="number"){_7e=this.getChildren()[_7e];}if(_7e){var _7f=_7e.domNode;if(_7f&&_7f.parentNode){_7f.parentNode.removeChild(_7f);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_80,dir){var _81=_80.domNode,_82=(dir>0?"nextSibling":"previousSibling");do{_81=_81[_82];}while(_81&&(_81.nodeType!=1||!_79.byNode(_81)));return _81&&_79.byNode(_81);},getIndexOfChild:function(_83){return _76.indexOf(this.getChildren(),_83);}});});},"dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(_84,_85){_85.scrollIntoView=function(_86,pos){_84.scrollIntoView(_86,pos);};});},"dijit/layout/_LayoutWidget":function(){define("dijit/layout/_LayoutWidget",["dojo/_base/lang","../_Widget","../_Container","../_Contained","dojo/_base/declare","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/sniff","dojo/_base/window"],function(_87,_88,_89,_8a,_8b,_8c,_8d,_8e,has,win){return _8b("dijit.layout._LayoutWidget",[_88,_89,_8a],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);_8c.add(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _8f=this.getParent&&this.getParent();if(!(_8f&&_8f.isLayoutContainer)){this.resize();this.connect(win.global,"onresize",function(){this.resize();});}},resize:function(_90,_91){var _92=this.domNode;if(_90){_8d.setMarginBox(_92,_90);}var mb=_91||{};_87.mixin(mb,_90||{});if(!("h" in mb)||!("w" in mb)){mb=_87.mixin(_8d.getMarginBox(_92),mb);}var cs=_8e.getComputedStyle(_92);var me=_8d.getMarginExtents(_92,cs);var be=_8d.getBorderExtents(_92,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_8d.getPadExtents(_92,cs);this._contentBox={l:_8e.toPixelValue(_92,cs.paddingLeft),t:_8e.toPixelValue(_92,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_93){var cls=this.baseClass+"-child "+(_93.baseClass?this.baseClass+"-"+_93.baseClass:"");_8c.add(_93.domNode,cls);},addChild:function(_94,_95){this.inherited(arguments);if(this._started){this._setupChild(_94);}},removeChild:function(_96){var cls=this.baseClass+"-child"+(_96.baseClass?" "+this.baseClass+"-"+_96.baseClass:"");_8c.remove(_96.domNode,cls);this.inherited(arguments);}});});},"dijit/_base":function(){define("dijit/_base",[".","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_97){return _97._base;});},"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/_base/sniff","dojo/_base/window","dojo/window","../a11y"],function(_98,_99,_9a,_9b,_9c,_9d,has,win,_9e,_9f){return _99("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_a0){this._set("disabled",_a0);_9a.set(this.focusNode,"disabled",_a0);if(this.valueNode){_9a.set(this.valueNode,"disabled",_a0);}this.focusNode.setAttribute("aria-disabled",_a0);if(_a0){this._set("hovering",false);this._set("active",false);var _a1="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_98.forEach(_9c.isArray(_a1)?_a1:[_a1],function(_a2){var _a3=this[_a2];if(has("webkit")||_9f.hasDefaultTabStop(_a3)){_a3.setAttribute("tabIndex","-1");}else{_a3.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(e){if(this.scrollOnFocus){_9e.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_9b.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(_a4,_a5){if(typeof _a4=="number"&&typeof _a5=="number"){return (isNaN(_a4)&&isNaN(_a5))?0:_a4-_a5;}else{if(_a4>_a5){return 1;}else{if(_a4<_a5){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_a6,_a7){if(this._lastValueReported==undefined&&(_a7===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_a6;}this._pendingOnChange=this._pendingOnChange||(typeof _a6!=typeof this._lastValueReported)||(this.compare(_a6,this._lastValueReported)!=0);if((this.intermediateChanges||_a7||_a7===undefined)&&this._pendingOnChange){this._lastValueReported=_a6;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(_9c.hitch(this,function(){this._onChangeHandle=null;this.onChange(_a6);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},_onMouseDown:function(e){if((!this.focused||!has("ie"))&&!e.ctrlKey&&_9d.isLeft(e)&&this.isFocusable()){var _a8=this.connect(win.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_a8);});}}});});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require",".","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window"],function(_a9,_aa,_ab,_ac,_ad,_ae,on,has,win){var _af=new function(){var _b0=[];this.pop=function(){var _b1;if(_b0.length){_b1=_b0.pop();_b1.style.display="";}else{if(has("ie")<9){var _b2=_ab["dojoBlankHtmlUrl"]||_a9.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var _b3="<iframe src='"+_b2+"' role='presentation'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_b1=win.doc.createElement(_b3);}else{_b1=_ac.create("iframe");_b1.src="javascript:\"\"";_b1.className="dijitBackgroundIframe";_b1.setAttribute("role","presentation");_ad.set(_b1,"opacity",0.1);}_b1.tabIndex=-1;}return _b1;};this.push=function(_b4){_b4.style.display="none";_b0.push(_b4);};}();_aa.BackgroundIframe=function(_b5){if(!_b5.id){throw new Error("no id");}if(has("ie")||has("mozilla")){var _b6=(this.iframe=_af.pop());_b5.appendChild(_b6);if(has("ie")<7||has("quirks")){this.resize(_b5);this._conn=on(_b5,"resize",_ae.hitch(this,function(){this.resize(_b5);}));}else{_ad.set(_b6,{width:"100%",height:"100%"});}}};_ae.extend(_aa.BackgroundIframe,{resize:function(_b7){if(this.iframe){_ad.set(this.iframe,{width:_b7.offsetWidth+"px",height:_b7.offsetHeight+"px"});}},destroy:function(){if(this._conn){this._conn.remove();this._conn=null;}if(this.iframe){_af.push(this.iframe);delete this.iframe;}}});return _aa.BackgroundIframe;});},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/sniff","./_FormWidgetMixin"],function(_b8,_b9,_ba,has,_bb){return _b8("dijit.form._FormValueMixin",_bb,{readOnly:false,_setReadOnlyAttr:function(_bc){_b9.set(this.focusNode,"readOnly",_bc);this.focusNode.setAttribute("aria-readonly",_bc);this._set("readOnly",_bc);},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(_bd,_be){this._handleOnChange(_bd,_be);},_handleOnChange:function(_bf,_c0){this._set("value",_bf);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==_ba.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(has("ie")<9||(has("ie")&&has("quirks"))){e.preventDefault();te=document.createEventObject();te.keyCode=_ba.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}}});});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(_c1,_c2,_c3,_c4){return _c1.declare("dojo.Stateful",null,{postscript:function(_c5){if(_c5){_c3.mixin(this,_c5);}},get:function(_c6){return this[_c6];},set:function(_c7,_c8){if(typeof _c7==="object"){for(var x in _c7){this.set(x,_c7[x]);}return this;}var _c9=this[_c7];this[_c7]=_c8;if(this._watchCallbacks){this._watchCallbacks(_c7,_c9,_c8);}return this;},watch:function(_ca,_cb){var _cc=this._watchCallbacks;if(!_cc){var _cd=this;_cc=this._watchCallbacks=function(_ce,_cf,_d0,_d1){var _d2=function(_d3){if(_d3){_d3=_d3.slice();for(var i=0,l=_d3.length;i<l;i++){try{_d3[i].call(_cd,_ce,_cf,_d0);}catch(e){console.error(e);}}}};_d2(_cc["_"+_ce]);if(!_d1){_d2(_cc["*"]);}};}if(!_cb&&typeof _ca==="function"){_cb=_ca;_ca="*";}else{_ca="_"+_ca;}var _d4=_cc[_ca];if(typeof _d4!=="object"){_d4=_cc[_ca]=[];}_d4.push(_cb);return {unwatch:function(){_d4.splice(_c4.indexOf(_d4,_cb),1);}};}});});},"dojo/touch":function(){define(["./_base/kernel","./on","./has","./mouse"],function(_d5,on,has,_d6){function _d7(_d8){return function(_d9,_da){return on(_d9,_d8,_da);};};var _db=has("touch");_d5.touch={press:_d7(_db?"touchstart":"mousedown"),move:_d7(_db?"touchmove":"mousemove"),release:_d7(_db?"touchend":"mouseup"),cancel:_db?_d7("touchcancel"):_d6.leave};return _d5.touch;});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/touch","dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/_base/lang","dojo/_base/window"],function(_dc,_dd,_de,_df,_e0,win){return _de("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_dd.forEach(["onmouseenter","onmouseleave",_dc.press],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);_dd.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(_e1){this.watch(_e1,_e0.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_e2){if(!this.disabled){switch(_e2.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchpress":this._set("active",true);this._mouseDown=true;var _e3=this.connect(win.body(),_dc.release,function(){this._mouseDown=false;this._set("active",false);this.disconnect(_e3);});break;}}},_setStateClass:function(){var _e4=this.baseClass.split(" ");function _e5(_e6){_e4=_e4.concat(_dd.map(_e4,function(c){return c+_e6;}),"dijit"+_e6);};if(!this.isLeftToRight()){_e5("Rtl");}var _e7=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_e5(_e7);}if(this.state){_e5(this.state);}if(this.selected){_e5("Selected");}if(this.disabled){_e5("Disabled");}else{if(this.readOnly){_e5("ReadOnly");}else{if(this.active){_e5("Active");}else{if(this.hovering){_e5("Hover");}}}}if(this.focused){_e5("Focused");}var tn=this.stateNode||this.domNode,_e8={};_dd.forEach(tn.className.split(" "),function(c){_e8[c]=true;});if("_stateClasses" in this){_dd.forEach(this._stateClasses,function(c){delete _e8[c];});}_dd.forEach(_e4,function(c){_e8[c]=true;});var _e9=[];for(var c in _e8){_e9.push(c);}tn.className=_e9.join(" ");this._stateClasses=_e4;},_trackMouseState:function(_ea,_eb){var _ec=false,_ed=false,_ee=false;var _ef=this,cn=_e0.hitch(this,"connect",_ea);function _f0(){var _f1=("disabled" in _ef&&_ef.disabled)||("readonly" in _ef&&_ef.readonly);_df.toggle(_ea,_eb+"Hover",_ec&&!_ed&&!_f1);_df.toggle(_ea,_eb+"Active",_ed&&!_f1);_df.toggle(_ea,_eb+"Focused",_ee&&!_f1);};cn("onmouseenter",function(){_ec=true;_f0();});cn("onmouseleave",function(){_ec=false;_ed=false;_f0();});cn(_dc.press,function(){_ed=true;_f0();});cn(_dc.release,function(){_ed=false;_f0();});cn("onfocus",function(){_ee=true;_f0();});cn("onblur",function(){_ee=false;_f0();});this.watch("disabled",_f0);this.watch("readOnly",_f0);}});});},"dojo/_base/url":function(){define(["./kernel"],function(_f2){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_f3=function(){var n=null,_f4=arguments,uri=[_f4[0]];for(var i=1;i<_f4.length;i++){if(!_f4[i]){continue;}var _f5=new _f3(_f4[i]+""),_f6=new _f3(uri[0]+"");if(_f5.path==""&&!_f5.scheme&&!_f5.authority&&!_f5.query){if(_f5.fragment!=n){_f6.fragment=_f5.fragment;}_f5=_f6;}else{if(!_f5.scheme){_f5.scheme=_f6.scheme;if(!_f5.authority){_f5.authority=_f6.authority;if(_f5.path.charAt(0)!="/"){var _f7=_f6.path.substring(0,_f6.path.lastIndexOf("/")+1)+_f5.path;var _f8=_f7.split("/");for(var j=0;j<_f8.length;j++){if(_f8[j]=="."){if(j==_f8.length-1){_f8[j]="";}else{_f8.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_f8[0]=="")&&_f8[j]==".."&&_f8[j-1]!=".."){if(j==(_f8.length-1)){_f8.splice(j,1);_f8[j-1]="";}else{_f8.splice(j-1,2);j-=2;}}}}_f5.path=_f8.join("/");}}}}uri=[];if(_f5.scheme){uri.push(_f5.scheme,":");}if(_f5.authority){uri.push("//",_f5.authority);}uri.push(_f5.path);if(_f5.query){uri.push("?",_f5.query);}if(_f5.fragment){uri.push("#",_f5.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;}};_f3.prototype.toString=function(){return this.uri;};return _f2._Url=_f3;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_f9,_fa){_fa.getObject("string",true,_f9);_f9.string.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("");};_f9.string.pad=function(_fb,_fc,ch,end){if(!ch){ch="0";}var out=String(_fb),pad=_f9.string.rep(ch,Math.ceil((_fc-out.length)/ch.length));return end?out+pad:pad+out;};_f9.string.substitute=function(_fd,map,_fe,_ff){_ff=_ff||_f9.global;_fe=_fe?_fa.hitch(_ff,_fe):function(v){return v;};return _fd.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_100,key,_101){var _102=_fa.getObject(key,false,map);if(_101){_102=_fa.getObject(_101,false,_ff).call(_ff,_102,key);}return _fe(_102,key).toString();});};_f9.string.trim=String.prototype.trim?_fa.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 _f9.string;});},"dijit/form/_FormValueWidget":function(){define("dijit/form/_FormValueWidget",["dojo/_base/declare","dojo/_base/sniff","./_FormWidget","./_FormValueMixin"],function(_103,has,_104,_105){return _103("dijit.form._FormValueWidget",[_104,_105],{_layoutHackIE7:function(){if(has("ie")==7){var _106=this.domNode;var _107=_106.parentNode;var _108=_106.firstChild||_106;var _109=_108.style.filter;var _10a=this;while(_107&&_107.clientHeight==0){(function ping(){var _10b=_10a.connect(_107,"onscroll",function(){_10a.disconnect(_10b);_108.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_108.style.filter=_109;},0);});})();_107=_107.parentNode;}}}});});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_10c,has,_10d,win,_10e){var _10f={},hash={};var _110={length:0,add:function(_111){if(hash[_111.id]){throw new Error("Tried to register widget with id=="+_111.id+" but that id is already registered");}hash[_111.id]=_111;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(_112){var id;do{id=_112+"_"+(_112 in _10f?++_10f[_112]:_10f[_112]=0);}while(hash[id]);return _10e._scopeName=="dijit"?id:_10e._scopeName+"_"+id;},findWidgets:function(root){var _113=[];function _114(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _115=node.getAttribute("widgetId");if(_115){var _116=hash[_115];if(_116){_113.push(_116);}}else{_114(node);}}}};_114(root);return _113;},_destroyAll:function(){_10e._curFocus=null;_10e._prevFocus=null;_10e._activeStack=[];_10c.forEach(_110.findWidgets(win.body()),function(_117){if(!_117._destroyed){if(_117.destroyRecursive){_117.destroyRecursive();}else{if(_117.destroy){_117.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};if(has("ie")){_10d.addOnWindowUnload(function(){_110._destroyAll();});}_10e.registry=_110;return _110;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_118,_119,_11a,_11b){_118.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_11b[name]=_11a[name];});_11b.defaultDuration=_119["defaultDuration"]||200;return _11b;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place",".."],function(_11c,lang,_11d,_11e,_11f){_11f.getViewport=function(){return _11d.getBox();};_11f.placeOnScreen=_11e.at;_11f.placeOnScreenAroundElement=function(node,_120,_121,_122){var _123;if(lang.isArray(_121)){_123=_121;}else{_123=[];for(var key in _121){_123.push({aroundCorner:key,corner:_121[key]});}}return _11e.around(node,_120,_123,true,_122);};_11f.placeOnScreenAroundNode=_11f.placeOnScreenAroundElement;_11f.placeOnScreenAroundRectangle=_11f.placeOnScreenAroundElement;_11f.getPopupAroundAlignment=function(_124,_125){var _126={};_11c.forEach(_124,function(pos){var ltr=_125;switch(pos){case "after":_126[_125?"BR":"BL"]=_125?"BL":"BR";break;case "before":_126[_125?"BL":"BR"]=_125?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_126[ltr?"BL":"BR"]=ltr?"TL":"TR";_126[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_126[ltr?"TL":"TR"]=ltr?"BL":"BR";_126[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _126;};return _11f;});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","./registry"],function(_127,_128,win,_129){var _12a=_128("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_12b){if(this._hash[_12b.id]){throw new Error("Tried to register widget with id=="+_12b.id+" but that id is already registered");}this._hash[_12b.id]=_12b;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_12c){_12c=_12c||win.global;var i=0,id;for(id in this._hash){func.call(_12c,this._hash[id],i++,this._hash);}return this;},filter:function(_12d,_12e){_12e=_12e||win.global;var res=new _12a(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_12d.call(_12e,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _12a(),id,_12f;for(id in this._hash){_12f=this._hash[id];if(_12f.declaredClass==cls){res.add(_12f);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_130){return _127.map(this.toArray(),func,_130);},every:function(func,_131){_131=_131||win.global;var x=0,i;for(i in this._hash){if(!func.call(_131,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_132){_132=_132||win.global;var x=0,i;for(i in this._hash){if(func.call(_132,this._hash[i],x++,this._hash)){return true;}}return false;}});_127.forEach(["forEach","filter","byClass","map","every","some"],function(func){_129[func]=_12a.prototype[func];});return _12a;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_133,_134,_135,dom,_136,_137,has,_138,_139){var _13a=(_139._isElementShown=function(elem){var s=_137.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_136.get(elem,"type")!="hidden");});_139.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _136.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _13b=elem.contentDocument;if("designMode" in _13b&&_13b.designMode=="on"){return true;}body=_13b.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 _13c=(_139.isTabNavigable=function(elem){if(_136.get(elem,"disabled")){return false;}else{if(_136.has(elem,"tabIndex")){return _136.get(elem,"tabIndex")>=0;}else{return _139.hasDefaultTabStop(elem);}}});_139._getTabNavigable=function(root){var _13d,last,_13e,_13f,_140,_141,_142={};function _143(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _144=function(_145){for(var _146=_145.firstChild;_146;_146=_146.nextSibling){if(_146.nodeType!=1||(has("ie")&&_146.scopeName!=="HTML")||!_13a(_146)){continue;}if(_13c(_146)){var _147=_136.get(_146,"tabIndex");if(!_136.has(_146,"tabIndex")||_147==0){if(!_13d){_13d=_146;}last=_146;}else{if(_147>0){if(!_13e||_147<_13f){_13f=_147;_13e=_146;}if(!_140||_147>=_141){_141=_147;_140=_146;}}}var rn=_143(_146);if(_136.get(_146,"checked")&&rn){_142[rn]=_146;}}if(_146.nodeName.toUpperCase()!="SELECT"){_144(_146);}}};if(_13a(root)){_144(root);}function rs(node){return _142[_143(node)]||node;};return {first:rs(_13d),last:rs(last),lowest:rs(_13e),highest:rs(_140)};};_139.getFirstInTabbingOrder=function(root){var _148=_139._getTabNavigable(dom.byId(root));return _148.lowest?_148.lowest:_148.first;};_139.getLastInTabbingOrder=function(root){var _149=_139._getTabNavigable(dom.byId(root));return _149.last?_149.last:_149.highest;};return {hasDefaultTabStop:_139.hasDefaultTabStop,isTabNavigable:_139.isTabNavigable,_getTabNavigable:_139._getTabNavigable,getFirstInTabbingOrder:_139.getFirstInTabbingOrder,getLastInTabbingOrder:_139.getLastInTabbingOrder};});},"dijit/typematic":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/_base/sniff","."],function(_14a,_14b,_14c,_14d,lang,on,has,_14e){var _14f=(_14e.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(lang.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_150,node,_151,obj,_152,_153,_154){if(obj!=this._obj){this.stop();this._initialDelay=_153||500;this._subsequentDelay=_152||0.9;this._minDelay=_154||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_150,_151);this._fireEventAndReload();this._evt=lang.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_155,_156,_157,_158,_159,_15a){if(_155.keyCode){_155.charOrCode=_155.keyCode;_14d.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_155.charCode){_155.charOrCode=String.fromCharCode(_155.charCode);_14d.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _15b=[on(node,_14b._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_155.charOrCode&&(_155.ctrlKey===undefined||_155.ctrlKey==evt.ctrlKey)&&(_155.altKey===undefined||_155.altKey==evt.altKey)&&(_155.metaKey===undefined||_155.metaKey==(evt.metaKey||false))&&(_155.shiftKey===undefined||_155.shiftKey==evt.shiftKey)){_14c.stop(evt);_14f.trigger(evt,_156,node,_157,_155,_158,_159,_15a);}else{if(_14f._obj==_155){_14f.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_14f._obj==_155){_14f.stop();}}))];return {remove:function(){_14a.forEach(_15b,function(h){h.remove();});}};},addMouseListener:function(node,_15c,_15d,_15e,_15f,_160){var _161=[on(node,"mousedown",lang.hitch(this,function(evt){_14c.stop(evt);_14f.trigger(evt,_15c,node,_15d,node,_15e,_15f,_160);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){_14c.stop(evt);}_14f.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){_14c.stop(evt);_14f.stop();})),on(node,"mousemove",lang.hitch(this,function(evt){evt.preventDefault();})),on(node,"dblclick",lang.hitch(this,function(evt){_14c.stop(evt);if(has("ie")){_14f.trigger(evt,_15c,node,_15d,node,_15e,_15f,_160);setTimeout(lang.hitch(this,_14f.stop),50);}}))];return {remove:function(){_14a.forEach(_161,function(h){h.remove();});}};},addListener:function(_162,_163,_164,_165,_166,_167,_168,_169){var _16a=[this.addKeyListener(_163,_164,_165,_166,_167,_168,_169),this.addMouseListener(_162,_165,_166,_167,_168,_169)];return {remove:function(){_14a.forEach(_16a,function(h){h.remove();});}};}});return _14f;});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus",".."],function(_16b,dom,lang,_16c,win,_16d,_16e){lang.mixin(_16e,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _16e.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_16d.curNode;if(win.global.getSelection){sel=win.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_16f){var _170=win.doc,mark=_16f.mark;if(mark){if(win.global.getSelection){var sel=win.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var n=mark.node;n.selectionStart=mark.start;n.selectionEnd=mark.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_170.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(lang.isArray(mark)){rg=_170.body.createControlRange();_16b.forEach(mark,function(n){rg.addElement(n);});}else{rg=_170.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_171){var node=!_16d.curNode||(menu&&dom.isDescendant(_16d.curNode,menu.domNode))?_16e._prevFocus:_16d.curNode;return {node:node,bookmark:node&&(node==_16d.curNode)&&win.withGlobal(_171||win.global,_16e.getBookmark),openedForWindow:_171};},_activeStack:[],registerIframe:function(_172){return _16d.registerIframe(_172);},unregisterIframe:function(_173){_173&&_173.remove();},registerWin:function(_174,_175){return _16d.registerWin(_174,_175);},unregisterWin:function(_176){_176&&_176.remove();}});_16d.focus=function(_177){if(!_177){return;}var node="node" in _177?_177.node:_177,_178=_177.bookmark,_179=_177.openedForWindow,_17a=_178?_178.isCollapsed:false;if(node){var _17b=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_17b&&_17b.focus){try{_17b.focus();}catch(e){}}_16d._onFocusNode(node);}if(_178&&win.withGlobal(_179||win.global,_16e.isCollapsed)&&!_17a){if(_179){_179.focus();}try{win.withGlobal(_179||win.global,_16e.moveToBookmark,null,[_178]);}catch(e2){}}};_16d.watch("curNode",function(name,_17c,_17d){_16e._curFocus=_17d;_16e._prevFocus=_17c;if(_17d){_16c.publish("focusNode",_17d);}});_16d.watch("activeStack",function(name,_17e,_17f){_16e._activeStack=_17f;});_16d.on("widget-blur",function(_180,by){_16c.publish("widgetBlur",_180,by);});_16d.on("widget-focus",function(_181,by){_16c.publish("widgetFocus",_181,by);});return _16e;});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","dojo/window","."],function(_182,_183,_184,_185,win,_186,_187){function _188(node,_189,_18a,_18b){var view=_186.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body().appendChild(node);}var best=null;_182.some(_189,function(_18c){var _18d=_18c.corner;var pos=_18c.pos;var _18e=0;var _18f={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_18d.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_18d.charAt(0)]};if(_18a){var res=_18a(node,_18c.aroundCorner,_18d,_18f,_18b);_18e=typeof res=="undefined"?0:res;}var _190=node.style;var _191=_190.display;var _192=_190.visibility;if(_190.display=="none"){_190.visibility="hidden";_190.display="";}var mb=_183.getMarginBox(node);_190.display=_191;_190.visibility=_192;var _193={"L":pos.x,"R":pos.x-mb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(mb.w>>1))-mb.w)}[_18d.charAt(1)],_194={"T":pos.y,"B":pos.y-mb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(mb.h>>1))-mb.h)}[_18d.charAt(0)],_195=Math.max(view.l,_193),_196=Math.max(view.t,_194),endX=Math.min(view.l+view.w,_193+mb.w),endY=Math.min(view.t+view.h,_194+mb.h),_197=endX-_195,_198=endY-_196;_18e+=(mb.w-_197)+(mb.h-_198);if(best==null||_18e<best.overflow){best={corner:_18d,aroundCorner:_18c.aroundCorner,x:_195,y:_196,w:_197,h:_198,overflow:_18e,spaceAvailable:_18f};}return !_18e;});if(best.overflow&&_18a){_18a(node,best.aroundCorner,best.corner,best.spaceAvailable,_18b);}var l=_183.isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};return (_187.place={at:function(node,pos,_199,_19a){var _19b=_182.map(_199,function(_19c){var c={corner:_19c,pos:{x:pos.x,y:pos.y}};if(_19a){c.pos.x+=_19c.charAt(1)=="L"?_19a.x:-_19a.x;c.pos.y+=_19c.charAt(0)=="T"?_19a.y:-_19a.y;}return c;});return _188(node,_19b);},around:function(node,_19d,_19e,_19f,_1a0){var _1a1=(typeof _19d=="string"||"offsetWidth" in _19d)?_183.position(_19d,true):_19d;if(_19d.parentNode){var _1a2=_19d.parentNode;while(_1a2&&_1a2.nodeType==1&&_1a2.nodeName!="BODY"){var _1a3=_183.position(_1a2,true);var _1a4=_184.getComputedStyle(_1a2).overflow;if(_1a4=="hidden"||_1a4=="auto"||_1a4=="scroll"){var _1a5=Math.min(_1a1.y+_1a1.h,_1a3.y+_1a3.h);var _1a6=Math.min(_1a1.x+_1a1.w,_1a3.x+_1a3.w);_1a1.x=Math.max(_1a1.x,_1a3.x);_1a1.y=Math.max(_1a1.y,_1a3.y);_1a1.h=_1a5-_1a1.y;_1a1.w=_1a6-_1a1.x;}_1a2=_1a2.parentNode;}}var x=_1a1.x,y=_1a1.y,_1a7="w" in _1a1?_1a1.w:(_1a1.w=_1a1.width),_1a8="h" in _1a1?_1a1.h:(_185.deprecated("place.around: dijit.place.__Rectangle: { x:"+x+", y:"+y+", height:"+_1a1.height+", width:"+_1a7+" } has been deprecated. Please use { x:"+x+", y:"+y+", h:"+_1a1.height+", w:"+_1a7+" }","","2.0"),_1a1.h=_1a1.height);var _1a9=[];function push(_1aa,_1ab){_1a9.push({aroundCorner:_1aa,corner:_1ab,pos:{x:{"L":x,"R":x+_1a7,"M":x+(_1a7>>1)}[_1aa.charAt(1)],y:{"T":y,"B":y+_1a8,"M":y+(_1a8>>1)}[_1aa.charAt(0)]}});};_182.forEach(_19e,function(pos){var ltr=_19f;switch(pos){case "above-centered":push("TM","BM");break;case "below-centered":push("BM","TM");break;case "after-centered":ltr=!ltr;case "before-centered":push(ltr?"ML":"MR",ltr?"MR":"ML");break;case "after":ltr=!ltr;case "before":push(ltr?"TL":"TR",ltr?"TR":"TL");push(ltr?"BL":"BR",ltr?"BR":"BL");break;case "below-alt":ltr=!ltr;case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;case "above-alt":ltr=!ltr;case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;default:push(pos.aroundCorner,pos.corner);}});var _1ac=_188(node,_1a9,_1a0,{w:_1a7,h:_1a8});_1ac.aroundNodePos=_1a1;return _1ac;}});});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_1ad,_1ae,_1af,_1b0,_1b1,lang,_1b2,_1b3,_1b4,_1b5,_1b6,_1b7){function _1b8(){};function _1b9(_1ba){return function(obj,_1bb,_1bc,_1bd){if(obj&&typeof _1bb=="string"&&obj[_1bb]==_1b8){return obj.on(_1bb.substring(2).toLowerCase(),lang.hitch(_1bc,_1bd));}return _1ba.apply(_1af,arguments);};};_1ad.around(_1af,"connect",_1b9);if(_1b1.connect){_1ad.around(_1b1,"connect",_1b9);}var _1be=_1b0("dijit._Widget",[_1b5,_1b6,_1b7],{onClick:_1b8,onDblClick:_1b8,onKeyDown:_1b8,onKeyPress:_1b8,onKeyUp:_1b8,onMouseDown:_1b8,onMouseMove:_1b8,onMouseOut:_1b8,onMouseOver:_1b8,onMouseLeave:_1b8,onMouseEnter:_1b8,onMouseUp:_1b8,constructor:function(_1bf){this._toConnect={};for(var name in _1bf){if(this[name]===_1b8){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_1bf[name];delete _1bf[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)]===_1b8){return _1af.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_1c0){_1b1.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_1c0);},attr:function(name,_1c1){if(_1ae.isDebug){var _1c2=arguments.callee._ach||(arguments.callee._ach={}),_1c3=(arguments.callee.caller||"unknown caller").toString();if(!_1c2[_1c3]){_1b1.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_1c3,"","2.0");_1c2[_1c3]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_1b1.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_1b2("[widgetId]",this.containerNode).map(_1b4.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_1b1.isAsync){_1b3(0,function(){var _1c4=["dijit/_base"];require(_1c4);});}return _1be;});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo,text){return dojo.cache;});},"dijit/_FocusMixin":function(){define(["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_1c5,_1c6,_1c7,lang){lang.extend(_1c6,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _1c7("dijit._FocusMixin",null,{_focusManager:_1c5});});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_1c8,keys,_1c9,has,_1ca,win){var _1cb=null;if(has("ie")){(function(){var _1cc=function(evt){_1cb=evt.srcElement;};win.doc.attachEvent("onkeydown",_1cc);_1ca.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_1cc);});})();}else{win.doc.addEventListener("keydown",function(evt){_1cb=evt.target;},true);}var _1cd=function(node,_1ce){if(/input|button/i.test(node.nodeName)){return on(node,"click",_1ce);}else{function _1cf(e){return (e.keyCode==keys.ENTER||e.keyCode==keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _1d0=[on(node,"keypress",function(e){if(_1cf(e)){_1cb=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_1cf(e)&&e.target==_1cb){_1cb=null;_1ce.call(this,e);}}),on(node,"click",function(e){_1ce.call(this,e);})];return {remove:function(){_1c8.forEach(_1d0,function(h){h.remove();});}};}};return _1c9("dijit._OnDijitClickMixin",null,{connect:function(obj,_1d1,_1d2){return this.inherited(arguments,[obj,_1d1=="ondijitclick"?_1cd:_1d1,_1d2]);}});});},"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/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_1d3,_1d4,dom,_1d5,_1d6,_1d7,lang,on,_1d8,has,_1d9,_1da,win,_1db,a11y,_1dc,_1dd){var _1de=_1d4([_1d9,_1d7],{curNode:null,activeStack:[],constructor:function(){var _1df=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);}});_1d3.before(_1d6,"empty",_1df);_1d3.before(_1d6,"destroy",_1df);},registerIframe:function(_1e0){return this.registerWin(_1e0.contentWindow,_1e0);},registerWin:function(_1e1,_1e2){var _1e3=this;var _1e4=function(evt){_1e3._justMouseDowned=true;setTimeout(function(){_1e3._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_1e3._onTouchNode(_1e2||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_1e1.document.documentElement:_1e1.document;if(doc){if(has("ie")){_1e1.document.body.attachEvent("onmousedown",_1e4);var _1e5=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_1e3._onFocusNode(_1e2||evt.srcElement);}else{_1e3._onTouchNode(_1e2||evt.srcElement);}};doc.attachEvent("onactivate",_1e5);var _1e6=function(evt){_1e3._onBlurNode(_1e2||evt.srcElement);};doc.attachEvent("ondeactivate",_1e6);return {remove:function(){_1e1.document.detachEvent("onmousedown",_1e4);doc.detachEvent("onactivate",_1e5);doc.detachEvent("ondeactivate",_1e6);doc=null;}};}else{doc.body.addEventListener("mousedown",_1e4,true);doc.body.addEventListener("touchstart",_1e4,true);var _1e7=function(evt){_1e3._onFocusNode(_1e2||evt.target);};doc.addEventListener("focus",_1e7,true);var _1e8=function(evt){_1e3._onBlurNode(_1e2||evt.target);};doc.addEventListener("blur",_1e8,true);return {remove:function(){doc.body.removeEventListener("mousedown",_1e4,true);doc.body.removeEventListener("touchstart",_1e4,true);doc.removeEventListener("focus",_1e7,true);doc.removeEventListener("blur",_1e8,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _1e9=[];try{while(node){var _1ea=_1d5.get(node,"dijitPopupParent");if(_1ea){node=_1dc.byId(_1ea).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_1db.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_1eb=id&&_1dc.byId(id);if(_1eb&&!(by=="mouse"&&_1eb.get("disabled"))){_1e9.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_1e9,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_1ec,by){var _1ed=this.activeStack;this.set("activeStack",_1ec);for(var _1ee=0;_1ee<Math.min(_1ed.length,_1ec.length);_1ee++){if(_1ed[_1ee]!=_1ec[_1ee]){break;}}var _1ef;for(var i=_1ed.length-1;i>=_1ee;i--){_1ef=_1dc.byId(_1ed[i]);if(_1ef){_1ef._hasBeenBlurred=true;_1ef.set("focused",false);if(_1ef._focusManager==this){_1ef._onBlur(by);}this.emit("widget-blur",_1ef,by);}}for(i=_1ee;i<_1ec.length;i++){_1ef=_1dc.byId(_1ec[i]);if(_1ef){_1ef.set("focused",true);if(_1ef._focusManager==this){_1ef._onFocus(by);}this.emit("widget-focus",_1ef,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _1f0=new _1de();_1d8(function(){var _1f1=_1f0.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_1da.addOnWindowUnload(function(){_1f1.remove();_1f1=null;});}});_1dd.focus=function(node){_1f0.focus(node);};for(var attr in _1f0){if(!/^_/.test(attr)){_1dd.focus[attr]=typeof _1f0[attr]=="function"?lang.hitch(_1f0,attr):_1f0[attr];}}_1f0.watch(function(attr,_1f2,_1f3){_1dd.focus[attr]=_1f3;});return _1f0;});},"dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/date/stamp":function(){define(["../_base/kernel","../_base/lang","../_base/array"],function(dojo,lang,_1f4){lang.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1f5,_1f6){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _1f7=dojo.date.stamp._isoRegExp.exec(_1f5),_1f8=null;if(_1f7){_1f7.shift();if(_1f7[1]){_1f7[1]--;}if(_1f7[6]){_1f7[6]*=1000;}if(_1f6){_1f6=new Date(_1f6);_1f4.forEach(_1f4.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _1f6["get"+prop]();}),function(_1f9,_1fa){_1f7[_1fa]=_1f7[_1fa]||_1f9;});}_1f8=new Date(_1f7[0]||1970,_1f7[1]||0,_1f7[2]||1,_1f7[3]||0,_1f7[4]||0,_1f7[5]||0,_1f7[6]||0);if(_1f7[0]<100){_1f8.setFullYear(_1f7[0]||1970);}var _1fb=0,_1fc=_1f7[7]&&_1f7[7].charAt(0);if(_1fc!="Z"){_1fb=((_1f7[8]||0)*60)+(Number(_1f7[9])||0);if(_1fc!="-"){_1fb*=-1;}}if(_1fc){_1fb-=_1f8.getTimezoneOffset();}if(_1fb){_1f8.setTime(_1f8.getTime()+_1fb*60000);}}return _1f8;};dojo.date.stamp.toISOString=function(_1fd,_1fe){var _1ff=function(n){return (n<10)?"0"+n:n;};_1fe=_1fe||{};var _200=[],_201=_1fe.zulu?"getUTC":"get",date="";if(_1fe.selector!="time"){var year=_1fd[_201+"FullYear"]();date=["0000".substr((year+"").length)+year,_1ff(_1fd[_201+"Month"]()+1),_1ff(_1fd[_201+"Date"]())].join("-");}_200.push(date);if(_1fe.selector!="date"){var time=[_1ff(_1fd[_201+"Hours"]()),_1ff(_1fd[_201+"Minutes"]()),_1ff(_1fd[_201+"Seconds"]())].join(":");var _202=_1fd[_201+"Milliseconds"]();if(_1fe.milliseconds){time+="."+(_202<100?"0":"")+_1ff(_202);}if(_1fe.zulu){time+="Z";}else{if(_1fe.selector!="time"){var _203=_1fd.getTimezoneOffset();var _204=Math.abs(_203);time+=(_203>0?"-":"+")+_1ff(Math.floor(_204/60))+":"+_1ff(_204%60);}}_200.push(time);}return _200.join("T");};return dojo.date.stamp;});},"dijit/form/_FormWidget":function(){define("dijit/form/_FormWidget",["dojo/_base/declare","dojo/_base/kernel","dojo/ready","../_Widget","../_CssStateMixin","../_TemplatedMixin","./_FormWidgetMixin"],function(_205,_206,_207,_208,_209,_20a,_20b){if(!_206.isAsync){_207(0,function(){var _20c=["dijit/form/_FormValueWidget"];require(_20c);});}return _205("dijit.form._FormWidget",[_208,_20a,_209,_20b],{setDisabled:function(_20d){_206.deprecated("setDisabled("+_20d+") is deprecated. Use set('disabled',"+_20d+") instead.","","2.0");this.set("disabled",_20d);},setValue:function(_20e){_206.deprecated("dijit.form._FormWidget:setValue("+_20e+") is deprecated. Use set('value',"+_20e+") instead.","","2.0");this.set("value",_20e);},getValue:function(){_206.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/_base/typematic":function(){define(["../typematic"],function(){});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","../popup","../BackgroundIframe"],function(_20f,_210){var _211=_210._createWrapper;_210._createWrapper=function(_212){if(!_212.declaredClass){_212={_popupWrapper:(_212.parentNode&&_20f.contains(_212.parentNode,"dijitPopup"))?_212.parentNode:null,domNode:_212,destroy:function(){}};}return _211.call(this,_212);};var _213=_210.open;_210.open=function(args){if(args.orient&&typeof args.orient!="string"&&!("length" in args.orient)){var ary=[];for(var key in args.orient){ary.push({aroundCorner:key,corner:args.orient[key]});}args.orient=ary;}return _213.call(this,args);};return _210;});},"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/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(lang,_214,_215,_216,_217,_218,_219,_21a,has,_21b,win){var _21c=_219("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _21d=this.declaredClass,_21e=this;return _216.substitute(tmpl,this,function(_21f,key){if(key.charAt(0)=="!"){_21f=lang.getObject(key.substr(1),false,_21e);}if(typeof _21f=="undefined"){throw new Error(_21d+" template:"+key);}if(_21f==null){return "";}return key.charAt(0)=="!"?_21f:_21f.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_217(this.templatePath,{sanitize:true});}var _220=_21c.getCachedTemplate(this.templateString,this._skipNodeCache);var node;if(lang.isString(_220)){node=_21a.toDom(this._stringRepl(_220));if(node.nodeType!=1){throw new Error("Invalid template: "+_220);}}else{node=_220.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(_221){var dest=this.containerNode;if(_221&&dest){while(_221.hasChildNodes()){dest.appendChild(_221.firstChild);}}},_attachTemplateNodes:function(_222,_223){var _224=lang.isArray(_222)?_222:(_222.all||_222.getElementsByTagName("*"));var x=lang.isArray(_222)?0:-1;for(;x<_224.length;x++){var _225=(x==-1)?_222:_224[x];if(this.widgetsInTemplate&&(_223(_225,"dojoType")||_223(_225,"data-dojo-type"))){continue;}var _226=_223(_225,"dojoAttachPoint")||_223(_225,"data-dojo-attach-point");if(_226){var _227,_228=_226.split(/\s*,\s*/);while((_227=_228.shift())){if(lang.isArray(this[_227])){this[_227].push(_225);}else{this[_227]=_225;}this._attachPoints.push(_227);}}var _229=_223(_225,"dojoAttachEvent")||_223(_225,"data-dojo-attach-event");if(_229){var _22a,_22b=_229.split(/\s*,\s*/);var trim=lang.trim;while((_22a=_22b.shift())){if(_22a){var _22c=null;if(_22a.indexOf(":")!=-1){var _22d=_22a.split(":");_22a=trim(_22d[0]);_22c=trim(_22d[1]);}else{_22a=trim(_22a);}if(!_22c){_22c=_22a;}this._attachEvents.push(this.connect(_225,_214[_22a]||_22a,_22c));}}}}},destroyRendering:function(){_218.forEach(this._attachPoints,function(_22e){delete this[_22e];},this);this._attachPoints=[];_218.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_21c._templateCache={};_21c.getCachedTemplate=function(_22f,_230){var _231=_21c._templateCache;var key=_22f;var _232=_231[key];if(_232){try{if(!_232.ownerDocument||_232.ownerDocument==win.doc){return _232;}}catch(e){}_21a.destroy(_232);}_22f=_216.trim(_22f);if(_230||_22f.match(/\$\{([^\}]+)\}/g)){return (_231[key]=_22f);}else{var node=_21a.toDom(_22f);if(node.nodeType!=1){throw new Error("Invalid template: "+_22f);}return (_231[key]=node);}};if(has("ie")){_21b.addOnWindowUnload(function(){var _233=_21c._templateCache;for(var key in _233){var _234=_233[key];if(typeof _234=="object"){_21a.destroy(_234);}delete _233[key];}});}lang.extend(_215,{dojoAttachEvent:"",dojoAttachPoint:""});return _21c;});},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","..","../hccss"],function(_235,lang,_236){lang.mixin(_236,{hasWaiRole:function(elem,role){var _237=this.getWaiRole(elem);return role?(_237.indexOf(role)>-1):(_237.length>0);},getWaiRole:function(elem){return lang.trim((_235.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_235.set(elem,"role",role);},removeWaiRole:function(elem,role){var _238=_235.get(elem,"role");if(!_238){return;}if(role){var t=lang.trim((" "+_238+" ").replace(" "+role+" "," "));_235.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_239){return elem.hasAttribute?elem.hasAttribute("aria-"+_239):!!elem.getAttribute("aria-"+_239);},getWaiState:function(elem,_23a){return elem.getAttribute("aria-"+_23a)||"";},setWaiState:function(elem,_23b,_23c){elem.setAttribute("aria-"+_23b,_23c);},removeWaiState:function(elem,_23d){elem.removeAttribute("aria-"+_23d);}});return _236;});},"dojo/window":function(){define(["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_23e,dom,geom,_23f){var _240=lang.getObject("dojo.window",true);_240.getBox=function(){var _241=(_23e.doc.compatMode=="BackCompat")?_23e.body():_23e.doc.documentElement,_242=geom.docScroll(),w,h;if(has("touch")){var _243=_23e.doc.parentWindow||_23e.doc.defaultView;w=_243.innerWidth||_241.clientWidth;h=_243.innerHeight||_241.clientHeight;}else{w=_241.clientWidth;h=_241.clientHeight;}return {l:_242.x,t:_242.y,w:w,h:h};};_240.get=function(doc){if(has("ie")&&_240!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_240.scrollIntoView=function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_23e.doc,body=doc.body||_23e.body(),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 _244=doc.compatMode=="BackCompat",_245=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_244?body:html),_246=isWK?body:_245,_247=_245.clientWidth,_248=_245.clientHeight,rtl=!geom.isBodyLtr(),_249=pos||geom.position(node),el=node.parentNode,_24a=function(el){return ((isIE<=6||(isIE&&_244))?false:(_23f.get(el,"position").toLowerCase()=="fixed"));};if(_24a(node)){return;}while(el){if(el==body){el=_246;}var _24b=geom.position(el),_24c=_24a(el);if(el==_246){_24b.w=_247;_24b.h=_248;if(_246==html&&isIE&&rtl){_24b.x+=_246.offsetWidth-_24b.w;}if(_24b.x<0||!isIE){_24b.x=0;}if(_24b.y<0||!isIE){_24b.y=0;}}else{var pb=geom.getPadBorderExtents(el);_24b.w-=pb.w;_24b.h-=pb.h;_24b.x+=pb.l;_24b.y+=pb.t;var _24d=el.clientWidth,_24e=_24b.w-_24d;if(_24d>0&&_24e>0){_24b.w=_24d;_24b.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_24e:0;}_24d=el.clientHeight;_24e=_24b.h-_24d;if(_24d>0&&_24e>0){_24b.h=_24d;}}if(_24c){if(_24b.y<0){_24b.h+=_24b.y;_24b.y=0;}if(_24b.x<0){_24b.w+=_24b.x;_24b.x=0;}if(_24b.y+_24b.h>_248){_24b.h=_248-_24b.y;}if(_24b.x+_24b.w>_247){_24b.w=_247-_24b.x;}}var l=_249.x-_24b.x,t=_249.y-Math.max(_24b.y,0),r=l+_249.w-_24b.w,bot=t+_249.h-_24b.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_244)||isIE>=9)){s=-s;}_249.x+=el.scrollLeft;el.scrollLeft+=s;_249.x-=el.scrollLeft;}if(bot*t>0){_249.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_249.y-=el.scrollTop;}el=(el!=_246)&&!_24c&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};return _240;});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window","./place","./BackgroundIframe","."],function(_24f,_250,_251,_252,dom,_253,_254,_255,_256,_257,keys,lang,on,has,win,_258,_259,_25a){var _25b=_252(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_25c){var _25d=_25c._popupWrapper,node=_25c.domNode;if(!_25d){_25d=_254.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},win.body());_25d.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_25c._popupWrapper=_25d;_250.after(_25c,"destroy",function(){_254.destroy(_25d);delete _25c._popupWrapper;});}return _25d;},moveOffScreen:function(_25e){var _25f=this._createWrapper(_25e);_256.set(_25f,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_260){var _261=this._createWrapper(_260);_256.set(_261,"display","none");},getTopPopup:function(){var _262=this._stack;for(var pi=_262.length-1;pi>0&&_262[pi].parent===_262[pi-1].widget;pi--){}return _262[pi];},open:function(args){var _263=this._stack,_264=args.popup,_265=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_255.isBodyLtr(),_266=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_263.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_263[_263.length-1].widget.domNode))){this.close(_263[_263.length-1].widget);}var _267=this._createWrapper(_264);_253.set(_267,{id:id,style:{zIndex:this._beginZIndex+_263.length},"class":"dijitPopup "+(_264.baseClass||_264["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("ie")||has("mozilla")){if(!_264.bgIframe){_264.bgIframe=new _259(_267);}}var best=_266?_258.around(_267,_266,_265,ltr,_264.orient?lang.hitch(_264,"orient"):null):_258.at(_267,args,_265=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_267.style.display="";_267.style.visibility="visible";_264.domNode.style.visibility="visible";var _268=[];_268.push(on(_267,_251._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_257.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_257.stop(evt);var _269=this.getTopPopup();if(_269&&_269.onCancel){_269.onCancel();}}}})));if(_264.onCancel&&args.onCancel){_268.push(_264.on("cancel",args.onCancel));}_268.push(_264.on(_264.onExecute?"execute":"change",lang.hitch(this,function(){var _26a=this.getTopPopup();if(_26a&&_26a.onExecute){_26a.onExecute();}})));_263.push({widget:_264,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_268});if(_264.onOpen){_264.onOpen(best);}return best;},close:function(_26b){var _26c=this._stack;while((_26b&&_24f.some(_26c,function(elem){return elem.widget==_26b;}))||(!_26b&&_26c.length)){var top=_26c.pop(),_26d=top.widget,_26e=top.onClose;if(_26d.onClose){_26d.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_26d&&_26d.domNode){this.hide(_26d);}if(_26e){_26e();}}}});return (_25a.popup=new _25b());});},"dijit/_base/window":function(){define("dijit/_base/window",["dojo/window",".."],function(_26f,_270){_270.getDocumentWindow=function(doc){return _26f.get(doc);};});},"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/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_271,_272,_273,_274,_275,_276,dom,_277,_278,_279,_27a,_27b,_27c,lang,on,_27d,_27e,_27f,win,_280){if(!_27c.isAsync){_27d(0,function(){var _281=["dijit/_base/manager"];_271(_281);});}var _282={};function _283(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _284(attr){return function(val){_277[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _276("dijit._WidgetBase",_27e,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_284("lang"),dir:"",_setDirAttr:_284("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_274.blankGif||_271.toUrl("dojo/resources/blank.gif"),postscript:function(_285,_286){this.create(_285,_286);},create:function(_287,_288){this.srcNodeRef=dom.byId(_288);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_287){this.params=_287;lang.mixin(this,_287);}this.postMixInProperties();if(!this.id){this.id=_280.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_280.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _289=this.srcNodeRef;if(_289&&_289.parentNode&&this.domNode!==_289){_289.parentNode.replaceChild(this.domNode,_289);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){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 _28a=ctor.prototype;for(var _28b in _28a){if(_28b in this.attributeMap){continue;}var _28c="_set"+_28b.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_28c in _28a){list.push(_28b);}}}_272.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _28d in this.params){this.set(_28d,this[_28d]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_279.create("div");}if(this.baseClass){var _28e=this.baseClass.split(" ");if(!this.isLeftToRight()){_28e=_28e.concat(_272.map(_28e,function(name){return name+"Rtl";}));}_278.add(this.domNode,_28e);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_272.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_28f){this._beingDestroyed=true;this.destroyDescendants(_28f);this.destroy(_28f);},destroy:function(_290){this._beingDestroyed=true;this.uninitialize();var c;while(c=this._connects.pop()){c.remove();}var w;while(w=this._supportingWidgets.pop()){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_290);_280.remove(this.id);this._destroyed=true;},destroyRendering:function(_291){if(this.bgIframe){this.bgIframe.destroy(_291);delete this.bgIframe;}if(this.domNode){if(_291){_277.remove(this.domNode,"widgetId");}else{_279.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_291){_279.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_292){_272.forEach(this.getChildren(),function(_293){if(_293.destroyRecursive){_293.destroyRecursive(_292);}});},uninitialize:function(){return false;},_setStyleAttr:function(_294){var _295=this.domNode;if(lang.isObject(_294)){_27b.set(_295,_294);}else{if(_295.style.cssText){_295.style.cssText+="; "+_294;}else{_295.style.cssText=_294;}}this._set("style",_294);},_attrToDom:function(attr,_296,_297){_297=arguments.length>=3?_297:this.attributeMap[attr];_272.forEach(lang.isArray(_297)?_297:[_297],function(_298){var _299=this[_298.node||_298||"domNode"];var type=_298.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_296)){_296=lang.hitch(this,_296);}var _29a=_298.attribute?_298.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_277.set(_299,_29a,_296);break;case "innerText":_299.innerHTML="";_299.appendChild(win.doc.createTextNode(_296));break;case "innerHTML":_299.innerHTML=_296;break;case "class":_278.replace(_299,_296,this[attr]);break;}},this);},get:function(name){var _29b=this._getAttrNames(name);return this[_29b.g]?this[_29b.g]():this[name];},set:function(name,_29c){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _29d=this._getAttrNames(name),_29e=this[_29d.s];if(lang.isFunction(_29e)){var _29f=_29e.apply(this,Array.prototype.slice.call(arguments,1));}else{var _2a0=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_2a0].tagName,_2a1=_282[tag]||(_282[tag]=_283(this[_2a0])),map=name in this.attributeMap?this.attributeMap[name]:_29d.s in this?this[_29d.s]:((_29d.l in _2a1&&typeof _29c!="function")||/^aria-|^data-|^role$/.test(name))?_2a0:null;if(map!=null){this._attrToDom(name,_29c,map);}this._set(name,_29c);}return _29f||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,_2a2){var _2a3=this[name];this[name]=_2a2;if(this._watchCallbacks&&this._created&&_2a2!==_2a3){this._watchCallbacks(name,_2a3,_2a2);}},on:function(type,func){return _273.after(this,this._onMap(type),func,true);},_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[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_280.findWidgets(this.containerNode):[];},getParent:function(){return _280.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_2a4,_2a5){var _2a6=_275.connect(obj,_2a4,this,_2a5);this._connects.push(_2a6);return _2a6;},disconnect:function(_2a7){var i=_272.indexOf(this._connects,_2a7);if(i!=-1){_2a7.remove();this._connects.splice(i,1);}},subscribe:function(t,_2a8){var _2a9=_27f.subscribe(t,lang.hitch(this,_2a8));this._connects.push(_2a9);return _2a9;},unsubscribe:function(_2aa){this.disconnect(_2aa);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_27a.isBodyLtr();},isFocusable:function(){return this.focus&&(_27b.get(this.domNode,"display")!="none");},placeAt:function(_2ab,_2ac){if(_2ab.declaredClass&&_2ab.addChild){_2ab.addChild(this,_2ac);}else{_279.place(this.domNode,_2ab,_2ac);}return this;},getTextDir:function(text,_2ad){return _2ad;},applyTextDir:function(){}});});}}});require(["dojo/i18n"],function(i18n){i18n._preloadLocalizations("dijit/nls/dijit",[]);});define("dijit/dijit",[".","./_base","dojo/parser","./_Widget","./_TemplatedMixin","./_Container","./layout/_LayoutWidget","./form/_FormWidget","./form/_FormValueWidget"],function(_2ae){return _2ae;});