/*
	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
*/

if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){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 _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _5f=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _60=dojo._docScroll();return {w:_5f.clientWidth,h:_5f.clientHeight,l:_60.x,t:_60.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_61,pos){_61=dojo.byId(_61);var _62,doc=_61.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){_62=dojo.body();var _63=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_62,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_63,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_63.removeChild(div);_62.removeChild(_63);}if(!("position_fixed_support" in dojo.window)){_62=dojo.body();var _64=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_62,"last"),_65=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_64,"last");dojo.window.position_fixed_support=dojo.position(_65).x!=dojo.position(_64).x;_64.removeChild(_65);_62.removeChild(_64);}try{_62=doc.body||doc.getElementsByTagName("body")[0];var _66=doc.documentElement||_62.parentNode,_67=dojo.isIE,_68=dojo.isWebKit;if(_61==_62||_61==_66){return;}if(!(dojo.isMozilla||_67||_68||dojo.isOpera)&&("scrollIntoView" in _61)){_61.scrollIntoView(false);return;}var _69=doc.compatMode=="BackCompat",_6a=Math.min(_62.clientWidth||_66.clientWidth,_66.clientWidth||_62.clientWidth),_6b=Math.min(_62.clientHeight||_66.clientHeight,_66.clientHeight||_62.clientHeight),_6c=(_68||_69)?_62:_66,_6d=pos||dojo.position(_61),el=_61.parentNode,_6e=function(el){return (_67<=6||(_67==7&&_69))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_6e(_61)){return;}while(el){if(el==_62){el=_6c;}var _6f=dojo.position(el),_70=_6e(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_6c){_6f.w=_6a;_6f.h=_6b;if(_6c==_66&&_67&&rtl){_6f.x+=_6c.offsetWidth-_6f.w;}if(_6f.x<0||!_67||_67>=9){_6f.x=0;}if(_6f.y<0||!_67||_67>=9){_6f.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_6f.w-=pb.w;_6f.h-=pb.h;_6f.x+=pb.l;_6f.y+=pb.t;var _71=el.clientWidth,_72=_6f.w-_71;if(_71>0&&_72>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_6f.x+=_72;}_6f.w=_71;}_71=el.clientHeight;_72=_6f.h-_71;if(_71>0&&_72>0){_6f.h=_71;}}if(_70){if(_6f.y<0){_6f.h+=_6f.y;_6f.y=0;}if(_6f.x<0){_6f.w+=_6f.x;_6f.x=0;}if(_6f.y+_6f.h>_6b){_6f.h=_6b-_6f.y;}if(_6f.x+_6f.w>_6a){_6f.w=_6a-_6f.x;}}var l=_6d.x-_6f.x,t=_6d.y-_6f.y,r=l+_6d.w-_6f.w,bot=t+_6d.h-_6f.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_6c||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_67==8&&!_69)||_67>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_6d.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_6c||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_6d.y-=s;}el=(el!=_6c)&&!_70&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_61.scrollIntoView(false);}};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _73=n.scrollLeft,_74=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_73!=n.scrollLeft||_74!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_75,e,_76){this.node=dojo.byId(_75);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=_76),d=_75.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_77,_78){this.node=dojo.byId(_77);if(!_78){_78={};}this.handle=_78.handle?dojo.byId(_78.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_78.delay>0?_78.delay:0;this.skip=_78.skip;this.mover=_78.mover?_78.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_79,_7a){return new dojo.dnd.Moveable(_7a,_79);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_7b){dojo.publish("/dnd/move/start",[_7b]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_7c){dojo.publish("/dnd/move/stop",[_7c]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_7d,e){},onMove:function(_7e,_7f,e){this.onMoving(_7e,_7f);var s=_7e.node.style;s.left=_7f.l+"px";s.top=_7f.t+"px";this.onMoved(_7e,_7f);},onMoving:function(_80,_81){},onMoved:function(_82,_83){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_84,_85){return new dojo.dnd.move.constrainedMoveable(_85,_84);},constructor:function(_86,_87){if(!_87){_87={};}this.constraints=_87.constraints;this.within=_87.within;},onFirstMove:function(_88){var c=this.constraintBox=this.constraints.call(this,_88);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_88.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_89,_8a){var c=this.constraintBox,s=_89.node.style;this.onMoving(_89,_8a);_8a.l=_8a.l<c.l?c.l:c.r<_8a.l?c.r:_8a.l;_8a.t=_8a.t<c.t?c.t:c.b<_8a.t?c.b:_8a.t;s.left=_8a.l+"px";s.top=_8a.t+"px";this.onMoved(_89,_8a);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_8b,_8c){return new dojo.dnd.move.boxConstrainedMoveable(_8c,_8b);},constructor:function(_8d,_8e){var box=_8e&&_8e.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_8f,_90){return new dojo.dnd.move.parentConstrainedMoveable(_90,_8f);},constructor:function(_91,_92){var _93=_92&&_92.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_93=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_93=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_93=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _94=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_95,_96){if(!_96){_96={};}if(_96.timeout&&typeof _96.timeout=="number"&&_96.timeout>=0){this.timeout=_96.timeout;}},markupFactory:function(_97,_98){return new dojo.dnd.TimedMoveable(_98,_97);},onMoveStop:function(_99){if(_99._timer){clearTimeout(_99._timer);_94.call(this,_99,_99._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_9a,_9b){_9a._leftTop=_9b;if(!_9a._timer){var _9c=this;_9a._timer=setTimeout(function(){_9a._timer=null;_94.call(_9c,_9a,_9a._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(_9d){var _9e=this;dojo.mixin(_9e,_9d);_9e.node=_9d.node;_9e._showArgs=dojo.mixin({},_9d);_9e._showArgs.node=_9e.node;_9e._showArgs.duration=_9e.showDuration;_9e.showAnim=_9e.showFunc(_9e._showArgs);_9e._hideArgs=dojo.mixin({},_9d);_9e._hideArgs.node=_9e.node;_9e._hideArgs.duration=_9e.hideDuration;_9e.hideAnim=_9e.hideFunc(_9e._hideArgs);dojo.connect(_9e.showAnim,"beforeBegin",dojo.hitch(_9e.hideAnim,"stop",true));dojo.connect(_9e.hideAnim,"beforeBegin",dojo.hitch(_9e.showAnim,"stop",true));},show:function(_9f){return this.showAnim.play(_9f||0);},hide:function(_a0){return this.hideAnim.play(_a0||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_a1={_fire:function(evt,_a2){if(this[evt]){this[evt].apply(this,_a2||[]);}return this;}};var _a3=function(_a4){this._index=-1;this._animations=_a4||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_a3,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_a5,_a6){if(!this._current){this._current=this._animations[this._index=0];}if(!_a6&&this._current.status()=="playing"){return this;}var _a7=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_a8=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_a9=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_a7);d.disconnect(_a8);d.disconnect(_a9);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_aa,_ab){this.pause();var _ac=this.duration*_aa;this._current=null;d.some(this._animations,function(a){if(a.duration<=_ac){this._current=a;return true;}_ac-=a.duration;return false;});if(this._current){this._current.gotoPercent(_ac/this._current.duration,_ab);}return this;},stop:function(_ad){if(this._current){if(_ad){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_a3,_a1);dojo.fx.chain=function(_ae){return new _a3(_ae);};var _af=function(_b0){this._animations=_b0||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_b0,function(a){var _b1=a.duration;if(a.delay){_b1+=a.delay;}if(this.duration<_b1){this.duration=_b1;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _b2=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_b2._connects.push(d.connect(_b2._pseudoAnimation,evt,function(){_b2._fire(evt,arguments);}));});};d.extend(_af,{_doAction:function(_b3,_b4){d.forEach(this._animations,function(a){a[_b3].apply(a,_b4);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_b5,_b6){var t=this._pseudoAnimation;t[_b5].apply(t,_b6);},play:function(_b7,_b8){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_b9,_ba){var ms=this.duration*_b9;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_ba);});this._call("gotoPercent",arguments);return this;},stop:function(_bb){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_af,_a1);dojo.fx.combine=function(_bc){return new _af(_bc);};dojo.fx.wipeIn=function(_bd){var _be=_bd.node=d.byId(_bd.node),s=_be.style,o;var _bf=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _c0=d.style(_be,"height");return Math.max(_c0,1);}},end:function(){return _be.scrollHeight;}}}},_bd));d.connect(_bf,"onEnd",function(){s.height="auto";s.overflow=o;});return _bf;};dojo.fx.wipeOut=function(_c1){var _c2=_c1.node=d.byId(_c1.node),s=_c2.style,o;var _c3=d.animateProperty(d.mixin({properties:{height:{end:1}}},_c1));d.connect(_c3,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_c3,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _c3;};dojo.fx.slideTo=function(_c4){var _c5=_c4.node=d.byId(_c4.node),top=null,_c6=null;var _c7=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_c6=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_c6=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_c6+"px";}};})(_c5);_c7();var _c8=d.animateProperty(d.mixin({properties:{top:_c4.top||0,left:_c4.left||0}},_c4));d.connect(_c8,"beforeBegin",_c8,_c7);return _c8;};})();}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_c9){if(this._hash[_c9.id]){throw new Error("Tried to register widget with id=="+_c9.id+" but that id is already registered");}this._hash[_c9.id]=_c9;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_ca,_cb){_cb=_cb||dojo.global;var i=0,id;for(id in this._hash){_ca.call(_cb,this._hash[id],i++,this._hash);}return this;},filter:function(_cc,_cd){_cd=_cd||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_cc.call(_cd,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_ce;for(id in this._hash){_ce=this._hash[id];if(_ce.declaredClass==cls){res.add(_ce);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_cf,_d0){return dojo.map(this.toArray(),_cf,_d0);},every:function(_d1,_d2){_d2=_d2||dojo.global;var x=0,i;for(i in this._hash){if(!_d1.call(_d2,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_d3,_d4){_d4=_d4||dojo.global;var x=0,i;for(i in this._hash){if(_d3.call(_d4,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _d5=dijit.registry._hash,_d6=dojo.attr,_d7=dojo.hasAttr,_d8=dojo.style;dijit.byId=function(id){return typeof id=="string"?_d5[id]:id;};var _d9={};dijit.getUniqueId=function(_da){var id;do{id=_da+"_"+(_da in _d9?++_d9[_da]:_d9[_da]=0);}while(_d5[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_db){var _dc=[];function _dd(_de){for(var _df=_de.firstChild;_df;_df=_df.nextSibling){if(_df.nodeType==1){var _e0=_df.getAttribute("widgetId");if(_e0){var _e1=_d5[_e0];if(_e1){_dc.push(_e1);}}else{_dd(_df);}}}};_dd(_db);return _dc;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_e2){if(!_e2._destroyed){if(_e2.destroyRecursive){_e2.destroyRecursive();}else{if(_e2.destroy){_e2.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_e3){return _d5[_e3.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_e4){while(_e4){var id=_e4.getAttribute&&_e4.getAttribute("widgetId");if(id){return _d5[id];}_e4=_e4.parentNode;}return null;};var _e5=(dijit._isElementShown=function(_e6){var s=_d8(_e6);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_d6(_e6,"type")!="hidden");});dijit.hasDefaultTabStop=function(_e7){switch(_e7.nodeName.toLowerCase()){case "a":return _d7(_e7,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _e8;try{var _e9=_e7.contentDocument;if("designMode" in _e9&&_e9.designMode=="on"){return true;}_e8=_e9.body;}catch(e1){try{_e8=_e7.contentWindow.document.body;}catch(e2){return false;}}return _e8.contentEditable=="true"||(_e8.firstChild&&_e8.firstChild.contentEditable=="true");default:return _e7.contentEditable=="true";}};var _ea=(dijit.isTabNavigable=function(_eb){if(_d6(_eb,"disabled")){return false;}else{if(_d7(_eb,"tabIndex")){return _d6(_eb,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_eb);}}});dijit._getTabNavigable=function(_ec){var _ed,_ee,_ef,_f0,_f1,_f2,_f3={};function _f4(_f5){return _f5&&_f5.tagName.toLowerCase()=="input"&&_f5.type&&_f5.type.toLowerCase()=="radio"&&_f5.name&&_f5.name.toLowerCase();};var _f6=function(_f7){dojo.query("> *",_f7).forEach(function(_f8){if((dojo.isIE<=9&&_f8.scopeName!=="HTML")||!_e5(_f8)){return;}if(_ea(_f8)){var _f9=_d6(_f8,"tabIndex");if(!_d7(_f8,"tabIndex")||_f9==0){if(!_ed){_ed=_f8;}_ee=_f8;}else{if(_f9>0){if(!_ef||_f9<_f0){_f0=_f9;_ef=_f8;}if(!_f1||_f9>=_f2){_f2=_f9;_f1=_f8;}}}var rn=_f4(_f8);if(dojo.attr(_f8,"checked")&&rn){_f3[rn]=_f8;}}if(_f8.nodeName.toUpperCase()!="SELECT"){_f6(_f8);}});};if(_e5(_ec)){_f6(_ec);}function rs(_fa){return _f3[_f4(_fa)]||_fa;};return {first:rs(_ed),last:rs(_ee),lowest:rs(_ef),highest:rs(_f1)};};dijit.getFirstInTabbingOrder=function(_fb){var _fc=dijit._getTabNavigable(dojo.byId(_fb));return _fc.lowest?_fc.lowest:_fc.first;};dijit.getLastInTabbingOrder=function(_fd){var _fe=dijit._getTabNavigable(dojo.byId(_fd));return _fe.last?_fe.last:_fe.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_ff){if(_ff){dojo.mixin(this,_ff);}},get:function(name){return this[name];},set:function(name,_100){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _101=this[name];this[name]=_100;if(this._watchCallbacks){this._watchCallbacks(name,_101,_100);}return this;},watch:function(name,_102){var _103=this._watchCallbacks;if(!_103){var self=this;_103=this._watchCallbacks=function(name,_104,_105,_106){var _107=function(_108){if(_108){_108=_108.slice();for(var i=0,l=_108.length;i<l;i++){try{_108[i].call(self,name,_104,_105);}catch(e){console.error(e);}}}};_107(_103["_"+name]);if(!_106){_107(_103["*"]);}};}if(!_102&&typeof name==="function"){_102=name;name="*";}else{name="_"+name;}var _109=_103[name];if(typeof _109!=="object"){_109=_103[name]=[];}_109.push(_102);return {unwatch:function(){_109.splice(dojo.indexOf(_109,_102),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){function _10a(a,b){return a===b||(a!==a&&b!==b);};dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_10b,_10c){this.create(_10b,_10c);},create:function(_10d,_10e){this.srcNodeRef=dojo.byId(_10e);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_10d){this.params=_10d;dojo._mixin(this,_10d);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _10f=this.srcNodeRef;if(_10f&&_10f.parentNode&&this.domNode!==_10f){_10f.parentNode.replaceChild(this.domNode,_10f);}}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 _110=function(attr,_111){if((_111.params&&attr in _111.params)||_111[attr]){_111.set(attr,_111[attr]);}};for(var attr in this.attributeMap){_110(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_110(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_112,_113=ctor.prototype;for(var _114 in _113){if(dojo.isFunction(_113[_114])&&(_112=_114.match(/^_set([a-zA-Z]*)Attr$/))&&_112[1]){r.push(_112[1].charAt(0).toLowerCase()+_112[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _115=this.baseClass.split(" ");if(!this.isLeftToRight()){_115=_115.concat(dojo.map(_115,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_115);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_116){this._beingDestroyed=true;this.destroyDescendants(_116);this.destroy(_116);},destroy:function(_117){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_118){dfe(_118,d.disconnect);});dfe(this._subscribes,function(_119){dun(_119);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_117);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_11a){if(this.bgIframe){this.bgIframe.destroy(_11a);delete this.bgIframe;}if(this.domNode){if(_11a){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_11a){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_11b){dojo.forEach(this.getChildren(),function(_11c){if(_11c.destroyRecursive){_11c.destroyRecursive(_11b);}});},uninitialize:function(){return false;},_setClassAttr:function(_11d){var _11e=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_11e,_11d,this["class"]);this._set("class",_11d);},_setStyleAttr:function(_11f){var _120=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_11f)){dojo.style(_120,_11f);}else{if(_120.style.cssText){_120.style.cssText+="; "+_11f;}else{_120.style.cssText=_11f;}}this._set("style",_11f);},_attrToDom:function(attr,_121){var _122=this.attributeMap[attr];dojo.forEach(dojo.isArray(_122)?_122:[_122],function(_123){var _124=this[_123.node||_123||"domNode"];var type=_123.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_121)){_121=dojo.hitch(this,_121);}var _125=_123.attribute?_123.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_124,_125,_121);break;case "innerText":_124.innerHTML="";_124.appendChild(dojo.doc.createTextNode(_121));break;case "innerHTML":_124.innerHTML=_121;break;case "class":dojo.replaceClass(_124,_121,this[attr]);break;}},this);},get:function(name){var _126=this._getAttrNames(name);return this[_126.g]?this[_126.g]():this[name];},set:function(name,_127){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _128=this._getAttrNames(name);if(this[_128.s]){var _129=this[_128.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_127);}this._set(name,_127);}return _129||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_12a){var _12b=this[name];this[name]=_12a;if(this._watchCallbacks&&this._created&&!_10a(_12a,_12b)){this._watchCallbacks(name,_12b,_12a);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_12c,_12d){var _12e=[dojo._connect(obj,_12c,this,_12d)];this._connects.push(_12e);return _12e;},disconnect:function(_12f){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_12f){dojo.forEach(_12f,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_130,_131){var _132=dojo.subscribe(_130,this,_131);this._subscribes.push(_132);return _132;},unsubscribe:function(_133){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_133){dojo.unsubscribe(_133);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_134,_135){if(_134.declaredClass&&_134.addChild){_134.addChild(this,_135);}else{dojo.place(this.domNode,_134,_135);}return this;},defer:function(fcn,_136){var _137=setTimeout(dojo.hitch(this,function(){_137=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_136||0);return {remove:function(){if(_137){clearTimeout(_137);_137=null;}return null;}};}});})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.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(_138){var _139=dojo.doc,mark=_138.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_139.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_139.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_139.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_13a){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_13a||dojo.global,dijit.getBookmark),openedForWindow:_13a};},focus:function(_13b){if(!_13b){return;}var node="node" in _13b?_13b.node:_13b,_13c=_13b.bookmark,_13d=_13b.openedForWindow,_13e=_13c?_13c.isCollapsed:false;if(node){var _13f=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_13f&&_13f.focus){try{_13f.focus();}catch(e){}}dijit._onFocusNode(node);}if(_13c&&dojo.withGlobal(_13d||dojo.global,dijit.isCollapsed)&&!_13e){if(_13d){_13d.focus();}try{dojo.withGlobal(_13d||dojo.global,dijit.moveToBookmark,null,[_13c]);}catch(e2){}}},_activeStack:[],registerIframe:function(_140){return dijit.registerWin(_140.contentWindow,_140);},unregisterIframe:function(_141){dijit.unregisterWin(_141);},registerWin:function(_142,_143){var _144=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_143||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_142.document.documentElement:_142.document;if(doc){if(dojo.isIE){_142.document.body.attachEvent("onmousedown",_144);var _145=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_143||evt.srcElement);}else{dijit._onTouchNode(_143||evt.srcElement);}};doc.attachEvent("onactivate",_145);var _146=function(evt){dijit._onBlurNode(_143||evt.srcElement);};doc.attachEvent("ondeactivate",_146);return function(){_142.document.detachEvent("onmousedown",_144);doc.detachEvent("onactivate",_145);doc.detachEvent("ondeactivate",_146);doc=null;};}else{doc.body.addEventListener("mousedown",_144,true);var _147=function(evt){dijit._onFocusNode(_143||evt.target);};doc.addEventListener("focus",_147,true);var _148=function(evt){dijit._onBlurNode(_143||evt.target);};doc.addEventListener("blur",_148,true);return function(){doc.body.removeEventListener("mousedown",_144,true);doc.removeEventListener("focus",_147,true);doc.removeEventListener("blur",_148,true);doc=null;};}}},unregisterWin:function(_149){_149&&_149();},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _14a=[];try{while(node){var _14b=dojo.attr(node,"dijitPopupParent");if(_14b){node=dijit.byId(_14b).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_14c=id&&dijit.byId(id);if(_14c&&!(by=="mouse"&&_14c.get("disabled"))){_14a.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_14a,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_14d,by){var _14e=dijit._activeStack;dijit._activeStack=_14d;for(var _14f=0;_14f<Math.min(_14e.length,_14d.length);_14f++){if(_14e[_14f]!=_14d[_14f]){break;}}var _150;for(var i=_14e.length-1;i>=_14f;i--){_150=dijit.byId(_14e[i]);if(_150){_150._focused=false;_150.set("focused",false);_150._hasBeenBlurred=true;if(_150._onBlur){_150._onBlur(by);}dojo.publish("widgetBlur",[_150,by]);}}for(i=_14f;i<_14d.length;i++){_150=dijit.byId(_14d[i]);if(_150){_150._focused=true;_150.set("focused",true);if(_150._onFocus){_150._onFocus(by);}dojo.publish("widgetFocus",[_150,by]);}}}});dojo.addOnLoad(function(){var _151=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_151);_151=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_152){this.pairs=[];this.returnWrappers=_152||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_153,wrap,_154,_155){this.pairs[((_155)?"unshift":"push")]([name,_153,wrap,_154]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_156,_157){var _158=dojo.map(_156,function(_159){var c={corner:_159,pos:{x:pos.x,y:pos.y}};if(_157){c.pos.x+=_159.charAt(1)=="L"?_157.x:-_157.x;c.pos.y+=_159.charAt(0)=="T"?_157.y:-_157.y;}return c;});return dijit._place(node,_158);};dijit._place=function(node,_15a,_15b,_15c){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_15a,function(_15d){var _15e=_15d.corner;var pos=_15d.pos;var _15f=0;var _160={w:_15e.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_15e.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_15b){var res=_15b(node,_15d.aroundCorner,_15e,_160,_15c);_15f=typeof res=="undefined"?0:res;}var _161=node.style;var _162=_161.display;var _163=_161.visibility;_161.visibility="hidden";_161.display="";var mb=dojo.marginBox(node);_161.display=_162;_161.visibility=_163;var _164=Math.max(view.l,_15e.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_165=Math.max(view.t,_15e.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_15e.charAt(1)=="L"?(_164+mb.w):pos.x),endY=Math.min(view.t+view.h,_15e.charAt(0)=="T"?(_165+mb.h):pos.y),_166=endX-_164,_167=endY-_165;_15f+=(mb.w-_166)+(mb.h-_167);if(best==null||_15f<best.overflow){best={corner:_15e,aroundCorner:_15d.aroundCorner,x:_164,y:_165,w:_166,h:_167,overflow:_15f,spaceAvailable:_160};}return !_15f;});if(best.overflow&&_15b){_15b(node,best.aroundCorner,best.corner,best.spaceAvailable,_15c);}var l=dojo._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;};dijit.placeOnScreenAroundNode=function(node,_168,_169,_16a){_168=dojo.byId(_168);var _16b=dojo.position(_168,true);return dijit._placeOnScreenAroundRect(node,_16b.x,_16b.y,_16b.w,_16b.h,_169,_16a);};dijit.placeOnScreenAroundRectangle=function(node,_16c,_16d,_16e){return dijit._placeOnScreenAroundRect(node,_16c.x,_16c.y,_16c.width,_16c.height,_16d,_16e);};dijit._placeOnScreenAroundRect=function(node,x,y,_16f,_170,_171,_172){var _173=[];for(var _174 in _171){_173.push({aroundCorner:_174,corner:_171[_174],pos:{x:x+(_174.charAt(1)=="L"?0:_16f),y:y+(_174.charAt(0)=="T"?0:_170)}});}return dijit._place(node,_173,_172,{w:_16f,h:_170});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_175,_176,_177){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_178,_179){var _17a={};dojo.forEach(_178,function(pos){switch(pos){case "after":_17a[_179?"BR":"BL"]=_179?"BL":"BR";break;case "before":_17a[_179?"BL":"BR"]=_179?"BR":"BL";break;case "below-alt":_179=!_179;case "below":_17a[_179?"BL":"BR"]=_179?"TL":"TR";_17a[_179?"BR":"BL"]=_179?"TR":"TL";break;case "above-alt":_179=!_179;case "above":default:_17a[_179?"TL":"TR"]=_179?"BL":"BR";_17a[_179?"TR":"TL"]=_179?"BR":"BL";break;}});return _17a;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_17b){var node=_17b.domNode||_17b,_17c=_17b.declaredClass?_17b._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_17c){_17c=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_17c.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_17b.declaredClass){_17b._popupWrapper=_17c;dojo.connect(_17b,"destroy",function(){dojo.destroy(_17c);delete _17b._popupWrapper;});}}return _17c;},moveOffScreen:function(_17d){var _17e=this._createWrapper(_17d);dojo.style(_17e,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_17f){var _180=this._createWrapper(_17f);dojo.style(_180,"display","none");},getTopPopup:function(){var _181=this._stack;for(var pi=_181.length-1;pi>0&&_181[pi].parent===_181[pi-1].widget;pi--){}return _181[pi];},open:function(args){var _182=this._stack,_183=args.popup,_184=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_185=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_182.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_182[_182.length-1].widget.domNode))){dijit.popup.close(_182[_182.length-1].widget);}var _186=this._createWrapper(_183);dojo.attr(_186,{id:id,style:{zIndex:this._beginZIndex+_182.length},"class":"dijitPopup "+(_183.baseClass||_183["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_183.bgIframe){_183.bgIframe=new dijit.BackgroundIframe(_186);}}var best=_185?dijit.placeOnScreenAroundElement(_186,_185,_184,_183.orient?dojo.hitch(_183,"orient"):null):dijit.placeOnScreen(_186,args,_184=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_186.style.display="";_186.style.visibility="visible";_183.domNode.style.visibility="visible";var _187=[];_187.push(dojo.connect(_186,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _188=this.getTopPopup();if(_188&&_188.onCancel){_188.onCancel();}}}}));if(_183.onCancel){_187.push(dojo.connect(_183,"onCancel",args.onCancel));}_187.push(dojo.connect(_183,_183.onExecute?"onExecute":"onChange",this,function(){var _189=this.getTopPopup();if(_189&&_189.onExecute){_189.onExecute();}}));_182.push({widget:_183,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_187});if(_183.onOpen){_183.onOpen(best);}return best;},close:function(_18a){var _18b=this._stack;while((_18a&&dojo.some(_18b,function(elem){return elem.widget==_18a;}))||(!_18a&&_18b.length)){var top=_18b.pop(),_18c=top.widget,_18d=top.onClose;if(_18c.onClose){_18c.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_18c&&_18c.domNode){this.hide(_18c);}if(_18d){_18d();}}}};dijit._frames=new function(){var _18e=[];this.pop=function(){var _18f;if(_18e.length){_18f=_18e.pop();_18f.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_18f=dojo.doc.createElement(html);}else{_18f=dojo.create("iframe");_18f.src="javascript:\"\"";_18f.className="dijitBackgroundIframe";dojo.style(_18f,"opacity",0.1);}_18f.tabIndex=-1;dijit.setWaiRole(_18f,"presentation");}return _18f;};this.push=function(_190){_190.style.display="none";_18e.push(_190);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _191=(this.iframe=dijit._frames.pop());node.appendChild(_191);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_191,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_192=d.isOpera,maj=Math.floor,ff=d.isFF,_193=d.boxModel.replace(/-/,""),_194={dj_quirks:d.isQuirks,dj_opera:_192,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_194["dj_ie"]=true;_194["dj_ie"+maj(ie)]=true;_194["dj_iequirks"]=d.isQuirks;}if(ff){_194["dj_ff"+maj(ff)]=true;}_194["dj_"+_193]=true;var _195="";for(var clz in _194){if(_194[clz]){_195+=clz+" ";}}html.className=d.trim(html.className+" "+_195);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _196="dj_rtl dijitRtl "+_195.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_196);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.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(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_197,node,_198,obj,_199,_19a,_19b){if(obj!=this._obj){this.stop();this._initialDelay=_19a||500;this._subsequentDelay=_199||0.9;this._minDelay=_19b||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_197,_198);this._fireEventAndReload();this._evt=dojo.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,_19c,_19d,_19e,_19f,_1a0,_1a1){if(_19c.keyCode){_19c.charOrCode=_19c.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_19c.charCode){_19c.charOrCode=String.fromCharCode(_19c.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_19c.charOrCode&&(_19c.ctrlKey===undefined||_19c.ctrlKey==evt.ctrlKey)&&(_19c.altKey===undefined||_19c.altKey==evt.altKey)&&(_19c.metaKey===undefined||_19c.metaKey==(evt.metaKey||false))&&(_19c.shiftKey===undefined||_19c.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_19d,node,_19e,_19c,_19f,_1a0,_1a1);}else{if(dijit.typematic._obj==_19c){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_19c){dijit.typematic.stop();}})];},addMouseListener:function(node,_1a2,_1a3,_1a4,_1a5,_1a6){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1a2,node,_1a3,node,_1a4,_1a5,_1a6);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_1a2,node,_1a3,node,_1a4,_1a5,_1a6);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_1a7,_1a8,_1a9,_1aa,_1ab,_1ac,_1ad,_1ae){return this.addKeyListener(_1a8,_1a9,_1aa,_1ab,_1ac,_1ad,_1ae).concat(this.addMouseListener(_1a7,_1aa,_1ab,_1ac,_1ad,_1ae));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _1af=cs.backgroundImage;var _1b0=(cs.borderTopColor==cs.borderRightColor)||(_1af!=null&&(_1af=="none"||_1af=="url(invalid-url:)"));dojo[_1b0?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem,role){var _1b1=this.getWaiRole(elem);return role?(_1b1.indexOf(role)>-1):(_1b1.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _1b2=dojo.attr(elem,"role");if(!_1b2){return;}if(role){var t=dojo.trim((" "+_1b2+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1b3){return elem.hasAttribute?elem.hasAttribute("aria-"+_1b3):!!elem.getAttribute("aria-"+_1b3);},getWaiState:function(elem,_1b4){return elem.getAttribute("aria-"+_1b4)||"";},setWaiState:function(elem,_1b5,_1b6){elem.setAttribute("aria-"+_1b5,_1b6);},removeWaiState:function(elem,_1b7){elem.removeAttribute("aria-"+_1b7);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_1b8,_1b9){if(_1b8&&dojo.isFunction(_1b8._onConnect)){_1b8._onConnect(_1b9);}});dijit._connectOnUseEventHandler=function(_1ba){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _1bb=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_1bb);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_1bb);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(_1bc,_1bd){this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_1be){if(_1be in this._deferredConnects){var _1bf=this[this._deferredConnects[_1be]||"domNode"];this.connect(_1bf,_1be.toLowerCase(),_1be);delete this._deferredConnects[_1be];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_1c0){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_1c0);},attr:function(name,_1c1){if(dojo.config.isDebug){var _1c2=arguments.callee._ach||(arguments.callee._ach={}),_1c3=(arguments.callee.caller||"unknown caller").toString();if(!_1c2[_1c3]){dojo.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);}},nodesWithKeyClick:["input","button"],connect:function(obj,_1c4,_1c5){var d=dojo,dc=d._connect,_1c6=this.inherited(arguments,[obj,_1c4=="ondijitclick"?"onclick":_1c4,_1c5]);if(_1c4=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_1c5);_1c6.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _1c6;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.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("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1c7,map,_1c8,_1c9){_1c9=_1c9||dojo.global;_1c8=_1c8?dojo.hitch(_1c9,_1c8):function(v){return v;};return _1c7.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1ca,key,_1cb){var _1cc=dojo.getObject(key,false,map);if(_1cb){_1cc=dojo.getObject(_1cb,false,_1c9).call(_1c9,_1cc,key);}return _1c8(_1cc,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.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;};}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_1cd,url,_1ce){if(typeof _1cd=="string"){var _1cf=dojo.moduleUrl(_1cd,url);}else{_1cf=_1cd;_1ce=url;}var key=_1cf.toString();var val=_1ce;if(_1ce!=undefined&&!dojo.isString(_1ce)){val=("value" in _1ce?_1ce.value:undefined);}var _1d0=_1ce&&_1ce.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_1d0?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_1d0?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1d1=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1d1){val=_1d1[1];}}else{val="";}return val;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _1d2=this.declaredClass,_1d3=this;return dojo.string.substitute(tmpl,this,function(_1d4,key){if(key.charAt(0)=="!"){_1d4=dojo.getObject(key.substr(1),false,_1d3);}if(typeof _1d4=="undefined"){throw new Error(_1d2+" template:"+key);}if(_1d4==null){return "";}return key.charAt(0)=="!"?_1d4:_1d4.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1d5=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1d5)){node=dojo._toDom(this._stringRepl(_1d5));if(node.nodeType!=1){throw new Error("Invalid template: "+_1d5);}}else{node=_1d5.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1d6){var dest=this.containerNode;if(_1d6&&dest){while(_1d6.hasChildNodes()){dest.appendChild(_1d6.firstChild);}}},_attachTemplateNodes:function(_1d7,_1d8){_1d8=_1d8||function(n,p){return n.getAttribute(p);};var _1d9=dojo.isArray(_1d7)?_1d7:(_1d7.all||_1d7.getElementsByTagName("*"));var x=dojo.isArray(_1d7)?0:-1;for(;x<_1d9.length;x++){var _1da=(x==-1)?_1d7:_1d9[x];if(this.widgetsInTemplate&&(_1d8(_1da,"dojoType")||_1d8(_1da,"data-dojo-type"))){continue;}var _1db=_1d8(_1da,"dojoAttachPoint")||_1d8(_1da,"data-dojo-attach-point");if(_1db){var _1dc,_1dd=_1db.split(/\s*,\s*/);while((_1dc=_1dd.shift())){if(dojo.isArray(this[_1dc])){this[_1dc].push(_1da);}else{this[_1dc]=_1da;}this._attachPoints.push(_1dc);}}var _1de=_1d8(_1da,"dojoAttachEvent")||_1d8(_1da,"data-dojo-attach-event");if(_1de){var _1df,_1e0=_1de.split(/\s*,\s*/);var trim=dojo.trim;while((_1df=_1e0.shift())){if(_1df){var _1e1=null;if(_1df.indexOf(":")!=-1){var _1e2=_1df.split(":");_1df=trim(_1e2[0]);_1e1=trim(_1e2[1]);}else{_1df=trim(_1df);}if(!_1e1){_1e1=_1df;}this._attachEvents.push(this.connect(_1da,_1df,_1e1));}}}var role=_1d8(_1da,"waiRole");if(role){dijit.setWaiRole(_1da,role);}var _1e3=_1d8(_1da,"waiState");if(_1e3){dojo.forEach(_1e3.split(/\s*,\s*/),function(_1e4){if(_1e4.indexOf("-")!=-1){var pair=_1e4.split("-");dijit.setWaiState(_1da,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_1e5){delete this[_1e5];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1e6,_1e7,_1e8){var _1e9=dijit._Templated._templateCache;var key=_1e7||_1e6;var _1ea=_1e9[key];if(_1ea){try{if(!_1ea.ownerDocument||_1ea.ownerDocument==dojo.doc){return _1ea;}}catch(e){}dojo.destroy(_1ea);}if(!_1e7){_1e7=dojo.cache(_1e6,{sanitize:true});}_1e7=dojo.string.trim(_1e7);if(_1e8||_1e7.match(/\$\{([^\}]+)\}/g)){return (_1e9[key]=_1e7);}else{var node=dojo._toDom(_1e7);if(node.nodeType!=1){throw new Error("Invalid template: "+_1e7);}return (_1e9[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1eb=dijit._Templated._templateCache;for(var key in _1eb){var _1ec=_1eb[key];if(typeof _1ec=="object"){dojo.destroy(_1ec);}delete _1eb[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1ed){if(!this.disabled){switch(_1ed.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":this._set("active",true);this._mouseDown=true;var _1ee=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1ee);});break;}}},_setStateClass:function(){var _1ef=this.baseClass.split(" ");function _1f0(_1f1){_1ef=_1ef.concat(dojo.map(_1ef,function(c){return c+_1f1;}),"dijit"+_1f1);};if(!this.isLeftToRight()){_1f0("Rtl");}if(this.checked){_1f0("Checked");}if(this.state){_1f0(this.state);}if(this.selected){_1f0("Selected");}if(this.disabled){_1f0("Disabled");}else{if(this.readOnly){_1f0("ReadOnly");}else{if(this.active){_1f0("Active");}else{if(this.hovering){_1f0("Hover");}}}}if(this._focused){_1f0("Focused");}var tn=this.stateNode||this.domNode,_1f2={};dojo.forEach(tn.className.split(" "),function(c){_1f2[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1f2[c];});}dojo.forEach(_1ef,function(c){_1f2[c]=true;});var _1f3=[];for(var c in _1f2){_1f3.push(c);}tn.className=_1f3.join(" ");this._stateClasses=_1ef;},_trackMouseState:function(node,_1f4){var _1f5=false,_1f6=false,_1f7=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1f8(){var _1f9=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1f4+"Hover",_1f5&&!_1f6&&!_1f9);dojo.toggleClass(node,_1f4+"Active",_1f6&&!_1f9);dojo.toggleClass(node,_1f4+"Focused",_1f7&&!_1f9);};cn("onmouseenter",function(){_1f5=true;_1f8();});cn("onmouseleave",function(){_1f5=false;_1f6=false;_1f8();});cn("onmousedown",function(){_1f6=true;_1f8();});cn("onmouseup",function(){_1f6=false;_1f8();});cn("onfocus",function(){_1f7=true;_1f8();});cn("onblur",function(){_1f7=false;_1f8();});this.watch("disabled",_1f8);this.watch("readOnly",_1f8);}});}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){dojo.forEach(this.getDescendants(),function(_1fa){if(_1fa.reset){_1fa.reset();}});},validate:function(){var _1fb=false;return dojo.every(dojo.map(this.getDescendants(),function(_1fc){_1fc._hasBeenBlurred=true;var _1fd=_1fc.disabled||!_1fc.validate||_1fc.validate();if(!_1fd&&!_1fb){dojo.window.scrollIntoView(_1fc.containerNode||_1fc.domNode);_1fc.focus();_1fb=true;}return _1fd;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_1fe){if(!_1fe.name){return;}var _1ff=map[_1fe.name]||(map[_1fe.name]=[]);_1ff.push(_1fe);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _200=map[name],_201=dojo.getObject(name,false,obj);if(_201===undefined){continue;}if(!dojo.isArray(_201)){_201=[_201];}if(typeof _200[0].checked=="boolean"){dojo.forEach(_200,function(w,i){w.set("value",dojo.indexOf(_201,w.value)!=-1);});}else{if(_200[0].multiple){_200[0].set("value",_201);}else{dojo.forEach(_200,function(w,i){w.set("value",_201[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_202){var name=_202.name;if(!name||_202.disabled){return;}var _203=_202.get("value");if(typeof _202.checked=="boolean"){if(/Radio/.test(_202.declaredClass)){if(_203!==false){dojo.setObject(name,_203,obj);}else{_203=dojo.getObject(name,false,obj);if(_203===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_203!==false){ary.push(_203);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_203);}else{dojo.setObject(name,[prev,_203],obj);}}else{dojo.setObject(name,_203,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_204){},_getState:function(){var _205=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_205,"Error")>=0?"Error":dojo.indexOf(_205,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_206){var _207=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_206?function(name,val){_207[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _208=(this._childConnections=[]),_209=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_20a){dojo.forEach(["state","disabled"],function(attr){_209.push(_20a.watch(attr,function(attr,_20b,_20c){_207.set("state",_207._getState());}));});});var _20d=function(){if(_207._onChangeDelayTimer){clearTimeout(_207._onChangeDelayTimer);}_207._onChangeDelayTimer=setTimeout(function(){delete _207._onChangeDelayTimer;_207._set("value",_207.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_20e){_208.push(_207.connect(_20e,"onChange",_20d));_209.push(_20e.watch("disabled",_20d));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_20f,_210){this.onValidStateChange(_210=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_211){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _212=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_212.lowest||_212.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_212.last||_212.highest||this._firstFocusItem;}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_213){this.node.className="dijitDialogUnderlay "+_213;this._set("class",_213);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _214=dojo.window.getBox();os.top=_214.t+"px";os.left=_214.l+"px";is.width=_214.w+"px";is.height=_214.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _215=dijit.getEnclosingWidget(this.domNode.parentNode);return _215&&_215.isContainer?_215:null;},_getSibling:function(_216){var node=this.domNode;do{node=node[_216+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},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);}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_217,_218){var _219=this.containerNode;if(_218&&typeof _218=="number"){var _21a=this.getChildren();if(_21a&&_21a.length>=_218){_219=_21a[_218-1].domNode;_218="after";}}dojo.place(_217.domNode,_219,_218);if(this._started&&!_217._started){_217.startup();}},removeChild:function(_21b){if(typeof _21b=="number"){_21b=this.getChildren()[_21b];}if(_21b){var node=_21b.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_21c){dojo.forEach(this.getChildren(),function(_21d){_21d.destroyRecursive(_21c);});},_getSiblingOfChild:function(_21e,dir){var node=_21e.domNode,_21f=(dir>0?"nextSibling":"previousSibling");do{node=node[_21f];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_220){return dojo.indexOf(this.getChildren(),_220);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_221){_221.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _222=this.getParent&&this.getParent();if(!(_222&&_222.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_223,_224){var node=this.domNode;if(_223){dojo.marginBox(node,_223);if(_223.t){node.style.top=_223.t+"px";}if(_223.l){node.style.left=_223.l+"px";}}var mb=_224||{};dojo.mixin(mb,_223||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_225){var cls=this.baseClass+"-child "+(_225.baseClass?this.baseClass+"-"+_225.baseClass:"");dojo.addClass(_225.domNode,cls);},addChild:function(_226,_227){this.inherited(arguments);if(this._started){this._setupChild(_226);}},removeChild:function(_228){var cls=this.baseClass+"-child"+(_228.baseClass?" "+this.baseClass+"-"+_228.baseClass:"");dojo.removeClass(_228.domNode,cls);this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _229=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_22a,dim){var _22b=_22a.resize?_22a.resize(dim):dojo.marginBox(_22a.domNode,dim);if(_22b){dojo.mixin(_22a,_22b);}else{dojo.mixin(_22a,dojo.marginBox(_22a.domNode));dojo.mixin(_22a,dim);}};dijit.layout.layoutChildren=function(_22c,dim,_22d,_22e,_22f){dim=dojo.mixin({},dim);dojo.addClass(_22c,"dijitLayoutContainer");_22d=dojo.filter(_22d,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_22d,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_22d,function(_230){var elm=_230.domNode,pos=(_230.region||_230.layoutAlign);var _231=elm.style;_231.left=dim.l+"px";_231.top=dim.t+"px";_231.position="absolute";dojo.addClass(elm,"dijitAlign"+_229(pos));var _232={};if(_22e&&_22e==_230.id){_232[_230.region=="top"||_230.region=="bottom"?"h":"w"]=_22f;}if(pos=="top"||pos=="bottom"){_232.w=dim.w;size(_230,_232);dim.h-=_230.h;if(pos=="top"){dim.t+=_230.h;}else{_231.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_232.h=dim.h;size(_230,_232);dim.w-=_230.w;if(pos=="left"){dim.l+=_230.w;}else{_231.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_230,dim);}}}});};})();}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_233){_233.startup();_233._started=true;});},startup:function(){if(this._started){return;}var _234=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_234&&_234.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _235=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_236=_235.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_237=dojo.filter(_236.map(dijit.byNode),function(_238){return _238&&_238.domNode&&_238.resize;});if(_235.length==_236.length&&_237.length==1){this._singleChild=_237[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_239,_23a){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_239,_23a);},_scheduleLayout:function(_23b,_23c){if(this._isShown()){this._layout(_23b,_23c);}else{this._needLayout=true;this._changeSize=_23b;this._resultSize=_23c;}},_layout:function(_23d,_23e){if(_23d){dojo.marginBox(this.domNode,_23d);}var cn=this.containerNode;if(cn===this.domNode){var mb=_23e||{};dojo.mixin(mb,_23d||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_23f){if(_23f.resize){_23f.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_240=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_240&&_240.style&&(_240.style.display!="none");}}},_onShow:function(){this._wasShown=true;if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _241=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _242=cont.length,i=0;i<cont.length;i=_242==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_243,node){dojo.mixin(this,_243||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_241++].join("_");}},set:function(cont,_244){if(undefined!==cont){this.content=cont;}if(_244){this._mixin(_244);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _245=this.onContentError(e);try{node.innerHTML=_245;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _246=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_246){cont=_246[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_247){var _248={},key;for(key in _247){if(key in _248){continue;}this[key]=_247[key];}},_parse:function(){var _249=this.node;try{var _24a={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_24a[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_249,noStart:!this.startup,inherited:_24a,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_24b){var _24c=this["on"+type+"Error"].call(this,err);if(_24b){console.error(_24b,err);}else{if(_24c){dojo.html._setNodeContent(this.node,_24c,true);}}}});dojo.html.set=function(node,cont,_24d){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_24d){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_24d,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_24e,_24f,_250){_250=dojo.i18n.normalizeLocale(_250);var _251=_250.split("-");var _252=[_24e,"nls",_24f].join(".");var _253=dojo._loadedModules[_252];if(_253){var _254;for(var i=_251.length;i>0;i--){var loc=_251.slice(0,i).join("_");if(_253[loc]){_254=_253[loc];break;}}if(!_254){_254=_253.ROOT;}if(_254){var _255=function(){};_255.prototype=_254;return new _255();}}throw new Error("Bundle not found: "+_24f+" in "+_24e+" , locale="+_250);};dojo.i18n.normalizeLocale=function(_256){var _257=(_256?_256:dojo.locale).toLowerCase();if(_257=="root"){_257="ROOT";}return _257;};dojo.i18n._requireLocalization=function(_258,_259,_25a,_25b){var _25c=dojo.i18n.normalizeLocale(_25a);var _25d=[_258,"nls",_259].join(".");var _25e="";if(_25b){var _25f=_25b.split(",");for(var i=0;i<_25f.length;i++){if(_25c["indexOf"](_25f[i])==0){if(_25f[i].length>_25e.length){_25e=_25f[i];}}}if(!_25e){_25e="ROOT";}}var _260=_25b?_25e:_25c;var _261=dojo._loadedModules[_25d];var _262=null;if(_261){if(dojo.config.localizationComplete&&_261._built){return;}var _263=_260.replace(/-/g,"_");var _264=_25d+"."+_263;_262=dojo._loadedModules[_264];}if(!_262){_261=dojo["provide"](_25d);var syms=dojo._getModuleSymbols(_258);var _265=syms.concat("nls").join("/");var _266;dojo.i18n._searchLocalePath(_260,_25b,function(loc){var _267=loc.replace(/-/g,"_");var _268=_25d+"."+_267;var _269=false;if(!dojo._loadedModules[_268]){dojo["provide"](_268);var _26a=[_265];if(loc!="ROOT"){_26a.push(loc);}_26a.push(_259);var _26b=_26a.join("/")+".js";_269=dojo._loadPath(_26b,null,function(hash){hash=hash.root||hash;var _26c=function(){};_26c.prototype=_266;_261[_267]=new _26c();for(var j in hash){_261[_267][j]=hash[j];}});}else{_269=true;}if(_269&&_261[_267]){_266=_261[_267];}else{_261[_267]=_266;}if(_25b){return true;}});}if(_25b&&_25c!=_25e){_261[_25c.replace(/-/g,"_")]=_261[_25e.replace(/-/g,"_")];}};(function(){var _26d=dojo.config.extraLocale;if(_26d){if(!_26d instanceof Array){_26d=[_26d];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_26e,_26f){req(m,b,_26e,_26f);if(_26e){return;}for(var i=0;i<_26d.length;i++){req(m,b,_26d[i],_26f);}};}})();dojo.i18n._searchLocalePath=function(_270,down,_271){_270=dojo.i18n.normalizeLocale(_270);var _272=_270.split("-");var _273=[];for(var i=_272.length;i>0;i--){_273.push(_272.slice(0,i).join("-"));}_273.push(false);if(down){_273.reverse();}for(var j=_273.length-1;j>=0;j--){var loc=_273[j]||"ROOT";var stop=_271(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_274,_275){function _276(_277){_277=dojo.i18n.normalizeLocale(_277);dojo.i18n._searchLocalePath(_277,true,function(loc){for(var i=0;i<_275.length;i++){if(_275[i]==loc){dojo["require"](_274+"_"+loc);return true;}}return false;});};_276();var _278=dojo.config.extraLocale||[];for(var i=0;i<_278.length;i++){_276(_278[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_279,_27a){if((!_279||!_279.template)&&_27a&&!("href" in _279)&&!("content" in _279)){var df=dojo.doc.createDocumentFragment();_27a=dojo.byId(_27a);while(_27a.firstChild){df.appendChild(_27a.firstChild);}_279=dojo.delegate(_279,{content:df});}this.inherited(arguments,[_279,_27a]);},postMixInProperties:function(){this.inherited(arguments);var _27b=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_27b);this.errorMessage=dojo.string.substitute(this.errorMessage,_27b);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_27c){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _27d={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_27d,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_27d));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _27e=this._contentSetter;dojo.forEach(this.getChildren(),function(_27f){if(_27f.destroyRecursive){_27f.destroyRecursive();}});if(_27e){dojo.forEach(_27e.parseResults,function(_280){if(_280.destroyRecursive&&_280.domNode&&_280.domNode.parentNode==dojo.body()){_280.destroyRecursive();}});delete _27e.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_281){this.destroyDescendants();var _282=this._contentSetter;if(!(_282&&_282 instanceof dojo.html._ContentSetter)){_282=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _283=this.onContentError(e);try{this.containerNode.innerHTML=_283;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _284=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_282.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_284);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_281){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_285){this.onLoadDeferred.errback(err);var _286=this["on"+type+"Error"].call(this,err);if(_285){console.error(_285,err);}else{if(_286){this._setContent(_286,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_287){},onDownloadError:function(_288){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_289){this.containerNode.title=_289;this._set("title",_289);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_28a,_28b){var newC="dijitTooltipAB"+(_28b.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_28b.charAt(0)=="T"?"Below":"Above");dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _28c=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_28c){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_28c){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _28d=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_28d);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=dojo.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});this._dndListener=dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo._getMarginSize(this.domNode);var _28e=dojo.window.getBox();if(mb.w>=_28e.w||mb.h>=_28e.h){var w=Math.min(mb.w,Math.floor(_28e.w*0.75)),h=Math.min(mb.h,Math.floor(_28e.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_28f=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_28f.l+(p?p.x:(_28f.w-bb.w)/2)),t=Math.floor(_28f.t+(p?p.y:(_28f.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _290=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_290){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_290){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();dijit._DialogLevelManager.hide(this);}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _291=dojo.window.getBox();if(!this._oldViewport||_291.h!=this._oldViewport.h||_291.w!=this._oldViewport.w){this.layout();this._oldViewport=_291;}}));this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _292;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_292.stop();delete this._fadeInDeferred;}));_292=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){dijit._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:dojo.hitch(this,function(){if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized||!this.open){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _293;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_293.stop();delete this._fadeOutDeferred;}));_293=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";dijit._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){dojo.unsubscribe(this._dndListener);}dojo.forEach(this._modalconnects,dojo.disconnect);dijit._DialogLevelManager.hide(this);this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._DialogLevelManager={show:function(_294,_295){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_294);var _296=dijit._underlay;if(!_296||_296._destroyed){_296=dijit._underlay=new dijit.DialogUnderlay(_295);}else{_296.set(_294.underlayAttrs);}var _297=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_296.show();}dojo.style(dijit._underlay.domNode,"zIndex",_297-1);dojo.style(_294.domNode,"zIndex",_297);ds.push({dialog:_294,underlayAttrs:_295,zIndex:_297});},hide:function(_298){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_298){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!dijit._underlay._destroyed){dijit._underlay.hide();}}else{dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);dijit._underlay.set(pd.underlayAttrs);}if(_298.refocus){var _299=pd.focus;if(!_299||(pd.dialog&&!dojo.isDescendant(_299.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_299=pd.dialog._firstFocusItem;}try{dijit.focus(_299);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_298);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_29a){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_29a;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_29b){this._set("disabled",_29b);dojo.attr(this.focusNode,"disabled",_29b);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_29b);}dijit.setWaiState(this.focusNode,"disabled",_29b);if(_29b){this._set("hovering",false);this._set("active",false);var _29c="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_29c)?_29c:[_29c],function(_29d){var node=this[_29d];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_29e){dojo.deprecated("setDisabled("+_29e+") is deprecated. Use set('disabled',"+_29e+") instead.","","2.0");this.set("disabled",_29e);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},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(_29f){},_onChangeActive:false,_handleOnChange:function(_2a0,_2a1){if(this._lastValueReported==undefined&&(_2a1===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_2a0;}this._pendingOnChange=this._pendingOnChange||(typeof _2a0!=typeof this._lastValueReported)||(this.compare(_2a0,this._lastValueReported)!=0);if((this.intermediateChanges||_2a1||_2a1===undefined)&&this._pendingOnChange){this._lastValueReported=_2a0;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_2a0);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_2a2){dojo.deprecated("dijit.form._FormWidget:setValue("+_2a2+") is deprecated.  Use set('value',"+_2a2+") instead.","","2.0");this.set("value",_2a2);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _2a3=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_2a3);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_2a4){dojo.attr(this.focusNode,"readOnly",_2a4);dijit.setWaiState(this.focusNode,"readonly",_2a4);this._set("readOnly",_2a4);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_2a5,_2a6){this._handleOnChange(_2a5,_2a6);},_handleOnChange:function(_2a7,_2a8){this._set("value",_2a7);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==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _2a9=this.domNode;var _2aa=_2a9.parentNode;var _2ab=_2a9.firstChild||_2a9;var _2ac=_2ab.style.filter;var _2ad=this;while(_2aa&&_2aa.clientHeight==0){(function ping(){var _2ae=_2ad.connect(_2aa,"onscroll",function(e){_2ad.disconnect(_2ae);_2ab.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_2ab.style.filter=_2ac;},0);});})();_2aa=_2aa.parentNode;}}}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _2af=this.dropDown,_2b0=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_2b0){if(dojo.hasClass(t,"dijitPopup")){_2b0=true;}else{t=t.parentNode;}}if(_2b0){t=e.target;if(_2af.onItemClick){var _2b1;while(t&&!(_2b1=dijit.byNode(t))){t=t.parentNode;}if(_2b1&&_2b1.onClick&&_2b1.getParent){_2b1.getParent().onItemClick(_2b1,e);}}return;}}}if(this._opened&&_2af.focus&&_2af.autoFocus!==false){window.setTimeout(dojo.hitch(_2af,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _2b2={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_2b2+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_2b3=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_2b3.tagName||"").toLowerCase()!=="input"||(_2b3.type&&_2b3.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _2b4=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_2b4);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_2b5){_2b5();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _2b6=this.dropDown,_2b7=_2b6.domNode,_2b8=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_2b7.style.width){this._explicitDDWidth=true;}if(_2b7.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _2b9={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_2b9.width="";}if(!this._explicitDDHeight){_2b9.height="";}dojo.style(_2b7,_2b9);var _2ba=this.maxHeight;if(_2ba==-1){var _2bb=dojo.window.getBox(),_2bc=dojo.position(_2b8,false);_2ba=Math.floor(Math.max(_2bc.y,_2bb.h-(_2bc.y+_2bc.h)));}if(_2b6.startup&&!_2b6._started){_2b6.startup();}dijit.popup.moveOffScreen(_2b6);var mb=dojo._getMarginSize(_2b7);var _2bd=(_2ba&&mb.h>_2ba);dojo.style(_2b7,{overflowX:"hidden",overflowY:_2bd?"auto":"hidden"});if(_2bd){mb.h=_2ba;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_2b8.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_2b8.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_2b6.resize)){_2b6.resize(mb);}else{dojo.marginBox(_2b7,mb);}}var _2be=dijit.popup.open({parent:this,popup:_2b6,around:_2b8,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _2be;},closeDropDown:function(_2bf){if(this._opened){if(_2bf){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"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\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _2c0=dijit.byNode(node);if(_2c0&&typeof _2c0._onSubmit=="function"){_2c0._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_2c1){if(_2c1&&(!this.params||!("label" in this.params))){this.set("label",_2c1.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_2c2){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_2c2);},_setLabelAttr:function(_2c3){this._set("label",_2c3);this.containerNode.innerHTML=_2c3;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _2c4=this.iconClass||"dijitNoIcon",_2c5=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_2c5,_2c4);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _2c6=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_2c6[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _2c7=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_2c7);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _2c8=this.dropDown;return (!!_2c8&&(!_2c8.href||_2c8.isLoaded));},loadDropDown:function(){var _2c9=this.dropDown;if(!_2c9){return;}if(!this.isLoaded()){var _2ca=dojo.connect(_2c9,"onLoad",this,function(){dojo.disconnect(_2ca);this.openDropDown();});_2c9.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_2cb){if(!this.disabled){dijit.focus(_2cb=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_2cc,_2cd){this._set("checked",_2cc);dojo.attr(this.focusNode||this.domNode,"checked",_2cc);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_2cc);this._handleOnChange(_2cc,_2cd);},setChecked:function(_2ce){dojo.deprecated("setChecked("+_2ce+") is deprecated. Use set('checked',"+_2ce+") instead.","","2.0");this.set("checked",_2ce);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:dojo.cache("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\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" dojoAttachPoint=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:dojo.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==dijit.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this._focused&&!this.textbox.value)?"":"none";}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_2cf,_2d0,_2d1){var _2d2;if(_2cf!==undefined){_2d2=this.filter(_2cf);if(typeof _2d1!="string"){if(_2d2!==null&&((typeof _2d2!="number")||!isNaN(_2d2))){_2d1=this.filter(this.format(_2d2,this.constraints));}else{_2d1="";}}}if(_2d1!=null&&_2d1!=undefined&&((typeof _2d1)!="number"||!isNaN(_2d1))&&this.textbox.value!=_2d1){this.textbox.value=_2d1;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_2d2,_2d0]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_2d3){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_2d3);},_setDisplayedValueAttr:function(_2d4){if(_2d4===null||_2d4===undefined){_2d4="";}else{if(typeof _2d4!="string"){_2d4=String(_2d4);}}this.textbox.value=_2d4;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_2d5,_2d6){return ((_2d5==null||_2d5==undefined)?"":(_2d5.toString?_2d5.toString():_2d5));},parse:function(_2d7,_2d8){return _2d7;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _2d9=this;setTimeout(function(){_2d9._handleOnChange(_2d9.get("value"),false);},0);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){if(dojo.isIE){setTimeout(dojo.hitch(this,function(){var s=dojo.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _2da=this.domNode.getElementsByTagName("INPUT");if(_2da){for(var i=0;i<_2da.length;i++){_2da[i].style.fontFamily=ff;}}}}}),0);}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput","_onInput");}else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput");}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.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);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&dojo.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}this._updatePlaceHolder();},_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);var _2db;if(dojo.isIE){var _2dc=dojo.doc.selection.createRange();var _2dd=_2dc.parentElement();_2db=_2dd==this.textbox&&_2dc.text.length==0;}else{_2db=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_2db){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_2de,_2df,stop){var _2e0=dojo.global;var _2e1=dojo.doc;_2de=dojo.byId(_2de);if(isNaN(_2df)){_2df=0;}if(isNaN(stop)){stop=_2de.value?_2de.value.length:0;}dijit.focus(_2de);if(_2e1["selection"]&&dojo.body()["createTextRange"]){if(_2de.createTextRange){var r=_2de.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_2df);r.moveEnd("character",stop-_2df);r.select();}}else{if(_2e0["getSelection"]){if(_2de.setSelectionRange){_2de.setSelectionRange(_2df,stop);}}}};}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextBox dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.textbox,"dijitTextAreaCols");}},filter:function(_2e2){if(_2e2){_2e2=_2e2.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _2e3=parseInt(this.maxLength);var _2e4=this.textbox.value.replace(/\r/g,"");var _2e5=_2e4.length-_2e3;if(_2e5>0){if(e){dojo.stopEvent(e);}var _2e6=this.textbox;if(_2e6.selectionStart){var pos=_2e6.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_2e4.substring(0,pos-_2e5-cr)+_2e4.substring(pos-cr);_2e6.setSelectionRange(pos-_2e5,pos-_2e5);}else{if(dojo.doc.selection){_2e6.focus();var _2e7=dojo.doc.selection.createRange();_2e7.moveStart("character",-_2e5);_2e7.text="";_2e7.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]){dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]=true;dojo.provide("dijit.form._ExpandingTextAreaMixin");var needsHelpShrinking;dojo.declare("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);var _2e8=this.textbox;if(needsHelpShrinking==undefined){var te=dojo.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},dojo.body(),"last");needsHelpShrinking=te.scrollHeight>=te.clientHeight;dojo.body().removeChild(te);}this.connect(_2e8,"onresize","_resizeLater");this.connect(_2e8,"onfocus","_resizeLater");_2e8.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _2e9=this.textbox;_2e9.rows=(_2e9.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _2ea=this.textbox;function _2eb(){var _2ec=false;if(_2ea.value===""){_2ea.value=" ";_2ec=true;}var sh=_2ea.scrollHeight;if(_2ec){_2ea.value="";}return sh;};if(_2ea.style.overflowY=="hidden"){_2ea.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_2eb()||_2ea.offsetHeight){var newH=_2eb()+Math.max(_2ea.offsetHeight-_2ea.clientHeight,0);var _2ed=newH+"px";if(_2ed!=_2ea.style.height){_2ea.style.height=_2ed;_2ea.rows=1;}if(needsHelpShrinking){var _2ee=_2eb(),_2ef=_2ee,_2f0=_2ea.style.minHeight,_2f1=4,_2f2,_2f3=_2ea.scrollTop;_2ea.style.minHeight=_2ed;_2ea.style.height="auto";while(newH>0){_2ea.style.minHeight=Math.max(newH-_2f1,4)+"px";_2f2=_2eb();var _2f4=_2ef-_2f2;newH-=_2f4;if(_2f4<_2f1){break;}_2ef=_2f2;_2f1<<=1;}_2ea.style.height=newH+"px";_2ea.style.minHeight=_2f0;_2ea.scrollTop=_2f3;}_2ea.style.overflowY=_2eb()>_2ea.clientHeight?"auto":"hidden";if(_2ea.style.overflowY=="hidden"){_2ea.scrollTop=0;}}else{this._estimateHeight();}this.busyResizing=false;}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",[dijit.form.SimpleTextarea,dijit.form._ExpandingTextAreaMixin],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_2f5){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_2f5&&_2f5.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_2f6){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_2f6);};dojo.regexp.group=function(_2f7,_2f8){return "("+(_2f8?"?:":"")+_2f7+")";};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_2f9,_2fa){var _2fb=[];function _2fc(attr,dir,comp,s){return function(_2fd,_2fe){var a=s.getValue(_2fd,attr);var b=s.getValue(_2fe,attr);return dir*comp(a,b);};};var _2ff;var map=_2fa.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_2f9.length;i++){_2ff=_2f9[i];var attr=_2ff.attribute;if(attr){var dir=(_2ff.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_2fb.push(_2fc(attr,dir,comp,_2fa));}}return function(rowA,rowB){var i=0;while(i<_2fb.length){var ret=_2fb[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_300){_300=_300||{};if(!_300.store){_300.store=this;}var self=this;var _301=function(_302,_303){if(_303.onError){var _304=_303.scope||dojo.global;_303.onError.call(_304,_302,_303);}};var _305=function(_306,_307){var _308=_307.abort||null;var _309=false;var _30a=_307.start?_307.start:0;var _30b=(_307.count&&(_307.count!==Infinity))?(_30a+_307.count):_306.length;_307.abort=function(){_309=true;if(_308){_308.call(_307);}};var _30c=_307.scope||dojo.global;if(!_307.store){_307.store=self;}if(_307.onBegin){_307.onBegin.call(_30c,_306.length,_307);}if(_307.sort){_306.sort(dojo.data.util.sorter.createSortFunction(_307.sort,self));}if(_307.onItem){for(var i=_30a;(i<_306.length)&&(i<_30b);++i){var item=_306[i];if(!_309){_307.onItem.call(_30c,item,_307);}}}if(_307.onComplete&&!_309){var _30d=null;if(!_307.onItem){_30d=_306.slice(_30a,_30b);}_307.onComplete.call(_30c,_30d,_307);}};this._fetchItems(_300,_305,_301);return _300;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_30e,_30f){var rxp="^";var c=null;for(var i=0;i<_30e.length;i++){c=_30e.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_30e.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_30f){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_310,_311,_312,rtl){if(this.aroundNode&&this.aroundNode===_311){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_310;var pos=dijit.placeOnScreenAroundElement(this.domNode,_311,dijit.getPopupAroundAlignment((_312&&_312.length)?_312:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_311;},orient:function(node,_313,_314,_315,_316){this.connectorNode.style.top="";var _317=_315.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_313+"-"+_314];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _318=Math.min((Math.max(_317,1)),size.w);var _319=_318<size.w;this.domNode.style.width=_318+"px";if(_319){this.containerNode.style.overflow="auto";var _31a=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_31a>_318){_31a=_31a+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_31a+"px";}}if(_314.charAt(0)=="B"&&_313.charAt(0)=="B"){var mb=dojo.marginBox(node);var _31b=this.connectorNode.offsetHeight;if(mb.h>_315.h){var _31c=_315.h-(_316.h/2)-(_31b/2);this.connectorNode.style.top=_31c+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_316.h/2-_31b/2,0),mb.h-_31b)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_317);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_31d){if(this._onDeck&&this._onDeck[1]==_31d){this._onDeck=null;}else{if(this.aroundNode===_31d){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_31e,_31f,_320,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_31e,_31f,_320,rtl);};dijit.hideTooltip=function(_321){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_321);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_322){dojo.forEach(this._connections||[],function(_323){dojo.forEach(_323,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_322)?_322:(_322?[_322]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_322);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _324=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_324);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_325){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_325,this.position,!this.isLeftToRight());this._connectNode=_325;this.onShow(_325,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_326,_327){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_328){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_329,_32a){return (new RegExp("^(?:"+this.regExpGen(_32a)+")"+(this.required?"":"?")+"$")).test(_329)&&(!this.required||!this._isEmpty(_329))&&(this._isEmpty(_329)||this.parse(_329,_32a)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_32b){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_32c){return (this.trim?/^\s*$/:/^$/).test(_32c);},getErrorMessage:function(_32d){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_32e){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_32f){var _330="";var _331=this.disabled||this.isValid(_32f);if(_331){this._maskValidSubsetError=true;}var _332=this._isEmpty(this.textbox.value);var _333=!_331&&_32f&&this._isValidSubset();this._set("state",_331?"":(((((!this._hasBeenBlurred||_32f)&&_332)||_333)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_331?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_32f&&_333;_330=this.getErrorMessage(_32f);}else{if(this.state=="Incomplete"){_330=this.getPromptMessage(_32f);this._maskValidSubsetError=!this._hasBeenBlurred||_32f;}else{if(_332){_330=this.getPromptMessage(_32f);}}}this.set("message",_330);return _331;},displayMessage:function(_334){dijit.hideTooltip(this.domNode);if(_334&&this._focused){dijit.showTooltip(_334,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_335){if(!_335.locale&&this.lang){_335.locale=this.lang;}this._set("constraints",_335);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _336="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_336+=re;break;case ")":_336+="|$)";break;default:_336+="(?:"+re+"|$)";break;}});}try{"".search(_336);}catch(e){_336=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_336+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_337){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_338){this._set("required",_338);dijit.setWaiState(this.focusNode,"required",_338);this._refreshState();},_setMessageAttr:function(_339){this._set("message",_339);this.displayMessage(_339);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_33a){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_33b,_33c){return ("min" in _33c?(this.compare(_33b,_33c.min)>=0):true)&&("max" in _33c?(this.compare(_33b,_33c.max)<=0):true);},isInRange:function(_33d){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _33e=false;var _33f=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_33e=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_33f=(typeof max=="number")&&max>0;}return _33e||_33f;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_340){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_340));},getErrorMessage:function(_341){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_341)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_342){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{dijit.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{dijit.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_343,_344){dijit.setWaiState(this.focusNode,"valuenow",_343);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_345){var pos=0;if(typeof (_345.selectionStart)=="number"){pos=_345.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_345.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_346,_347){_347=parseInt(_347);dijit.selectInputText(_346,_347,_347);},_setDisabledAttr:function(_348){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_348);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(dojo.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _349=false;var pw=this.dropDown;var dk=dojo.keys;var _34a=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_34a=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_34a);}dojo.stopEvent(evt);break;case dk.ENTER:if(_34a){if(_34a==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_34a==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _34b=this.get("displayedValue");if(pw&&(_34b==pw._messages["previousMessage"]||_34b==pw._messages["nextMessage"])){break;}if(_34a){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_34a){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_349=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_349=true;break;default:_349=typeof key=="string"||key==229;}if(_349){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _34c=this.ignoreCase?"toLowerCase":"substr";if(text[_34c](0).indexOf(this.focusNode.value[_34c](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_34d,_34e){this._fetchHandle=null;if(this.disabled||this.readOnly||(_34e.query[this.searchAttr]!=this._lastQuery)){return;}var _34f=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_34d.length&&!this._maxOptions){this.closeDropDown();return;}_34e._maxOptions=this._maxOptions;var _350=this.dropDown.createOptions(_34d,_34e,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_34e.direction){if(1==_34e.direction){this.dropDown.highlightFirstOption();}else{if(-1==_34e.direction){this.dropDown.highlightLastOption();}}if(_34f){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_34e.query[this.searchAttr])){this._announceOption(_350[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_351){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _352=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_352==pw._messages["previousMessage"]||_352==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_352);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_353,_354){if(!_354){_354=this.store.getValue(item,this.searchAttr);}var _355=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_354;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_355,_353,_354);},_announceOption:function(node){if(!node){return;}var _356;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_356=node.innerHTML;this.item=undefined;this.value="";}else{_356=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_356);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_356);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _357=this.id+"_popup",_358=dojo.getObject(this.dropDownClass,false);this.dropDown=new _358({onChange:dojo.hitch(this,this._selectOption),id:_357,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_357);}var _359=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_359[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_35a,_35b){this.searchTimer=null;var _35c={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_35a,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_35d){_35b._fetchHandle=null;console.error("dijit.form.ComboBox: "+_35d);_35b.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_35c,_35b.fetchProperties);this._fetchHandle=_35b.store.fetch(_35c);var _35e=function(_35f,_360){_35f.start+=_35f.count*_360;_35f.direction=_360;this._fetchHandle=this.store.fetch(_35f);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_35e,this._fetchHandle);},_359,this),this.searchDelay);},_setMaxOptions:function(size,_361){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _362=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_362);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _363=this._getValueField();this.value=this.store.getValue(item,_363);}}}this.inherited(arguments);},postCreate:function(){var _364=dojo.query("label[for=\""+this.id+"\"]");if(_364.length){_364[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_364[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _365=this.labelFunc(item,this.store),_366=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_365=this.doHighlight(_365,this._escapeHtml(this._lastInput));_366="html";}return {html:_366=="html",label:_365};},doHighlight:function(_367,find){var _368=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_367).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_368),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_369){return _369.getValue(item,this.labelAttr||this.searchAttr).toString();}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_36a){this.value=_36a;this.onChange(_36a);},onChange:function(_36b){},onPage:function(_36c){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_36d){var _36e=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _36f=_36d(item);if(_36f.html){_36e.innerHTML=_36f.label;}else{_36e.appendChild(dojo.doc.createTextNode(_36f.label));}if(_36e.innerHTML==""){_36e.innerHTML="&nbsp;";}_36e.item=item;return _36e;},createOptions:function(_370,_371,_372){this.previousButton.style.display=(_371.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_370,function(item,i){var _373=this._createOption(item,_372);dojo.attr(_373,"id",this.id+i);this.domNode.insertBefore(_373,this.nextButton);},this);var _374=false;if(_371._maxOptions&&_371._maxOptions!=-1){if((_371.start+_371.count)<_371._maxOptions){_374=true;}else{if((_371.start+_371.count)>_371._maxOptions&&_371.count==_370.length){_374=true;}}}else{if(_371.count==_370.length){_374=true;}}this.nextButton.style.display=_374?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}dojo.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _375=this.domNode.firstChild;var _376=_375.nextSibling;this._focusOptionNode(_376.style.display=="none"?_375:_376);dojo.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dojo.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}dojo.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _377=0;var _378=this.domNode.scrollTop;var _379=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_377<_379){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _37a=this.domNode.scrollTop;_377+=(_37a-_378)*(up?-1:1);_378=_37a;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_37b,_37c,_37d){this._set("item",null);if(!_37b){_37b="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_37b,_37c,_37d);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=dojo.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_37e,_37f){return (_37e=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_380){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_381,_382){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _383=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_384=dojo.query("> option",this.root).filter(function(_385){return (_385.innerText||_385.textContent||"").match(_383);});if(args.sort){_384.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_381(_384,args);},close:function(_386){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{required:true,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened;},isValid:function(){return this.item||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_387,_388,_389){if((_388&&_388.query[this.searchAttr]!=this._lastQuery)||(!_388&&_387.length&&this.store.getIdentity(_387[0])!=this._lastQuery)){return;}if(!_387.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_389||(_389===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_387[0],_389);}},_openResultList:function(_38a,_38b){if(_38b.query[this.searchAttr]!=this._lastQuery){return;}dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);if(this.item===undefined){this.validate(true);}},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_38c,_38d){if(!this._onChangeActive){_38d=null;}this._lastQuery=_38c;if(_38c===null||_38c===""){this._setDisplayedValueAttr("",_38d);return;}var self=this;this.store.fetchItemByIdentity({identity:_38c,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_38d);}});},_setItemAttr:function(item,_38e,_38f){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_390,_391){if(_390==null){_390="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_391=false;}if(this.store){this.closeDropDown();var _392=dojo.clone(this.query);this._lastQuery=_392[this.searchAttr]=this._getDisplayQueryString(_390);this.textbox.value=_390;this._lastDisplayedValue=_390;this._set("displayedValue",_390);var _393=this;var _394={query:_392,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_395,_396){_393._fetchHandle=null;dojo.hitch(_393,"_callbackSetLabel")(_395,_396,_391);},onError:function(_397){_393._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_397);dojo.hitch(_393,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_394,this.fetchProperties);this._fetchHandle=this.store.fetch(_394);}},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form._FormSelectWidget"]){dojo._hasResource["dijit.form._FormSelectWidget"]=true;dojo.provide("dijit.form._FormSelectWidget");dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_398){var _399=_398,opts=this.options||[],l=opts.length;if(_399===undefined){return opts;}if(dojo.isArray(_399)){return dojo.map(_399,"return this.getOptions(item);",this);}if(dojo.isObject(_398)){if(!dojo.some(this.options,function(o,idx){if(o===_399||(o.value&&o.value===_399.value)){_399=idx;return true;}return false;})){_399=-1;}}if(typeof _399=="string"){for(var i=0;i<l;i++){if(opts[i].value===_399){_399=i;break;}}}if(typeof _399=="number"&&_399>=0&&_399<l){return this.options[_399];}return null;},addOption:function(_39a){if(!dojo.isArray(_39a)){_39a=[_39a];}dojo.forEach(_39a,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_39b){if(!dojo.isArray(_39b)){_39b=[_39b];}var _39c=this.getOptions(_39b);dojo.forEach(_39c,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_39d){if(!dojo.isArray(_39d)){_39d=[_39d];}dojo.forEach(_39d,function(i){var _39e=this.getOptions(i),k;if(_39e){for(k in i){_39e[k]=i[k];}}},this);this._loadChildren();},setStore:function(_39f,_3a0,_3a1){var _3a2=this.store;_3a1=_3a1||{};if(_3a2!==_39f){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_39f&&_39f.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_39f,"onNew",this,"_onNewItem"),dojo.connect(_39f,"onDelete",this,"_onDeleteItem"),dojo.connect(_39f,"onSet",this,"_onSetItem")];}this._set("store",_39f);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_39f){this._loadingStore=true;_39f.fetch(dojo.delegate(_3a1,{onComplete:function(_3a3,opts){if(this.sortByLabel&&!_3a1.sort&&_3a3.length){_3a3.sort(dojo.data.util.sorter.createSortFunction([{attribute:_39f.getLabelAttributes(_3a3[0])[0]}],_39f));}if(_3a1.onFetch){_3a3=_3a1.onFetch.call(this,_3a3,opts);}dojo.forEach(_3a3,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_3a0);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_3a3);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _3a2;},_setValueAttr:function(_3a4,_3a5){if(this._loadingStore){this._pendingValue=_3a4;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_3a4)){_3a4=[_3a4];}dojo.forEach(_3a4,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_3a4[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_3a4=dojo.filter(_3a4,function(i){return i&&i.value;});if(!this.multiple&&(!_3a4[0]||!_3a4[0].value)&&opts.length){_3a4[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_3a4,function(v){return v.value===i.value;});});var val=dojo.map(_3a4,function(i){return i.value;}),disp=dojo.map(_3a4,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_3a5);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!dojo.isArray(val)){val=[val];}var ret=dojo.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_3a6){_3a6.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_3a7){var _3a8=dojo.some(val,function(v){return _3a7.option&&(v===_3a7.option.value);});dojo.toggleClass(_3a7.domNode,this.baseClass+"SelectedOption",_3a8);dijit.setWaiState(_3a7.domNode,"selected",_3a8);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=dojo.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return dojo.map(dojo.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_3a9){if(!_3a9||!_3a9.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _3aa=this.store;this.removeOption(_3aa.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _3ab=this.store,_3ac=_3ab.getLabel(item),_3ad=(_3ac?_3ab.getIdentity(item):null);return {value:_3ad,label:_3ac,item:item};},_addOptionForItem:function(item){var _3ae=this.store;if(!_3ae.isItemLoaded(item)){_3ae.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _3af=this._getOptionObjForItem(item);this.addOption(_3af);},constructor:function(_3b0){this._oValue=(_3b0||{}).value||null;},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+dojo._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this._set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _3b1=this.store,_3b2={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_3b2[i]=this[i];}delete this[i];},this);if(_3b1&&_3b1.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_3b1,this._oValue,_3b2);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_3b3){},_removeOptionItem:function(_3b4){},_setDisplay:function(_3b5){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_3b6){},onSetStore:function(){}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_3b7,_3b8){var _3b9=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_3b7,function(code){_3b9[code]=prev;});dojo.forEach(_3b8,function(code){_3b9[code]=next;});_3b9[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_3b9[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_3ba,_3bb){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_3ba);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _3bc=this._getFirstFocusableChild();if(_3bc){this.focusChild(_3bc);}},focusLastChild:function(){var _3bd=this._getLastFocusableChild();if(_3bd){this.focusChild(_3bd);}},focusNext:function(){var _3be=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_3be);},focusPrev:function(){var _3bf=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_3bf,true);},focusChild:function(_3c0,last){if(this.focusedChild&&_3c0!==this.focusedChild){this._onChildBlur(this.focusedChild);}_3c0.set("tabIndex",this.tabIndex);_3c0.focus(last?"end":"start");this._set("focusedChild",_3c0);},_startupChild:function(_3c1){_3c1.set("tabIndex","-1");this.connect(_3c1,"_onFocus",function(){_3c1.set("tabIndex",this.tabIndex);});this.connect(_3c1,"_onBlur",function(){_3c1.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_3c2){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_3c3,dir){if(_3c3){_3c3=this._getSiblingOfChild(_3c3,dir);}var _3c4=this.getChildren();for(var i=0;i<_3c4.length;i++){if(!_3c3){_3c3=_3c4[(dir>0)?0:(_3c4.length-1)];}if(_3c3.isFocusable()){return _3c3;}_3c3=this._getSiblingOfChild(_3c3,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_3c5){if(_3c5&&!("label" in this.params)){this.set("label",_3c5.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _3c6=this.id+"_text";dojo.attr(this.containerNode,"id",_3c6);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_3c6+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_3c6);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_3c7){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_3c7);},setLabel:function(_3c8){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_3c8);},setDisabled:function(_3c9){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_3c9);},_setDisabledAttr:function(_3ca){dijit.setWaiState(this.focusNode,"disabled",_3ca?"true":"false");this._set("disabled",_3ca);},_setAccelKeyAttr:function(_3cb){this.accelKeyNode.style.display=_3cb?"":"none";this.accelKeyNode.innerHTML=_3cb;dojo.attr(this.containerNode,"colSpan",_3cb?"1":"2");this._set("accelKey",_3cb);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _3cc=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_3cc[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_3cd){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_3cd);dijit.setWaiState(this.domNode,"checked",_3cd);this._set("checked",_3cd);},onChange:function(_3ce){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_3cf){_3cf.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_3d0){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _3d1=this._getTopMenu();if(_3d1&&_3d1._isMenuBar){_3d1.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _3d2=this.currentPopup.parentMenu;if(_3d2.focusedChild){_3d2.focusedChild._setSelected(false);}_3d2.focusedChild=this.currentPopup.from_item;_3d2.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _3d3=item.popup;if(_3d3){this._stopPendingCloseTimer(_3d3);_3d3._pendingClose_timer=setTimeout(function(){_3d3._pendingClose_timer=null;if(_3d3.parentMenu){_3d3.parentMenu.currentPopup=null;}dijit.popup.close(_3d3);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_3d4){if(_3d4._pendingClose_timer){clearTimeout(_3d4._pendingClose_timer);_3d4._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _3d5=this.focusedChild;if(!_3d5){return;}var _3d6=_3d5.popup;if(_3d6.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_3d6.parentMenu=this;_3d6.from_item=_3d5;var self=this;dijit.popup.open({parent:this,popup:_3d6,around:_3d5.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_3d5);self._cleanUp();_3d5._setSelected(true);self.focusedChild=_3d5;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_3d6;_3d6.connect(_3d6.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_3d6.focus){_3d6._focus_timer=setTimeout(dojo.hitch(_3d6,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _3d7=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_3d8){var win=dojo.window.get(this._iframeContentDocument(_3d8))||this._iframeContentDocument(_3d8)["__parent__"]||(_3d8.name&&dojo.doc.frames[_3d8.name])||null;return win;},_iframeContentDocument:function(_3d9){var doc=_3d9.contentDocument||(_3d9.contentWindow&&_3d9.contentWindow.document)||(_3d9.name&&dojo.doc.frames[_3d9.name]&&dojo.doc.frames[_3d9.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _3da=node,win=this._iframeContentWindow(_3da);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _3db={node:node,iframe:_3da};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_3db));var _3dc=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_3da,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_3da);}})];});_3db.connects=cn?_3dc(cn):[];if(_3da){_3db.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_3da);cn=dojo.withGlobal(win,dojo.body);_3db.connects=_3dc(cn);});if(_3da.addEventListener){_3da.addEventListener("load",_3db.onloadHandler,false);}else{_3da.attachEvent("onload",_3db.onloadHandler);}}},unBindDomNode:function(_3dd){var node;try{node=dojo.byId(_3dd);}catch(e){return;}var _3de="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_3de)){var bid=dojo.attr(node,_3de)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _3df=b.iframe;if(_3df){if(_3df.removeEventListener){_3df.removeEventListener("load",b.onloadHandler,false);}else{_3df.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_3de);delete this._bindings[bid];}},_scheduleOpen:function(_3e0,_3e1,_3e2){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_3e0,iframe:_3e1,coords:_3e2});}),1);}},_openMyself:function(args){var _3e3=args.target,_3e4=args.iframe,_3e5=args.coords;if(_3e5){if(_3e4){var od=_3e3.ownerDocument,ifc=dojo.position(_3e4,true),win=this._iframeContentWindow(_3e4),_3e6=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_3e4),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_3e4,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_3e4,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_3e4,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_3e4,cs.borderTopWidth):0);_3e5.x+=ifc.x+left-_3e6.x;_3e5.y+=ifc.y+top-_3e6.y;}}else{_3e5=dojo.position(_3e3,true);_3e5.x+=10;_3e5.y+=10;}var self=this;var _3e7=dijit.getFocus(this);function _3e8(){if(self.refocus){dijit.focus(_3e7);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_3e5.x,y:_3e5.y,onExecute:_3e8,onCancel:_3e8,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Select"]){dojo._hasResource["dijit.form.Select"]=true;dojo.provide("dijit.form.Select");dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){this.inherited(arguments);var o=(this.menuTableNode=this.domNode);var n=(this.domNode=dojo.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}}));if(o.parentNode){o.parentNode.replaceChild(n,o);}dojo.removeClass(o,"dijitMenuTable");n.className=o.className+" dijitSelectMenu";o.className="dijitReset dijitMenuTable";dijit.setWaiRole(o,"listbox");dijit.setWaiRole(n,"presentation");n.appendChild(o);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},resize:function(mb){if(mb){dojo.marginBox(this.domNode,mb);if("w" in mb){this.menuTableNode.style.width="100%";}}}});dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\n\trole=\"combobox\" aria-haspopup=\"true\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" role=\"presentation\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" aria-hidden=\"true\"\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" role=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex||0;this.value=this.options[si>=0?si:0].value;}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_3e9){if(!_3e9.value&&!_3e9.label){return new dijit.MenuSeparator();}else{var _3ea=dojo.hitch(this,"_setValueAttr",_3e9);var item=new dijit.MenuItem({option:_3e9,label:_3e9.label||this.emptyLabel,onClick:_3ea,disabled:_3e9.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_3eb){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_3eb));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_3ec){if(_3ec===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_3ed){_3ed.destroyRecursive();});var item=new dijit.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_3ee){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_3ef){var lbl=_3ef||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_3f0){var _3f1=this.isValid(_3f0);this._set("state",_3f1?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_3f1?"false":"true");var _3f2=_3f1?"":this._missingMsg;if(this.message!==_3f2){this._set("message",_3f2);dijit.hideTooltip(this.domNode);if(_3f2){dijit.showTooltip(_3f2,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _3f1;},isValid:function(_3f3){return (!this.required||this.value===0||!(/^\s*$/.test(this.value||"")));},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);this._set("state","");this._set("message","");},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},_setStyleAttr:function(_3f4){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_3f5){this._loadChildren(true);this._isLoaded=true;_3f5();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_3f6){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_3f6);delete this.dropDown;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:dojo.cache("dijit.form","templates/Spinner.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitButtonNode dijitSpinnerButtonContainer\"\n\t\t><input class=\"dijitReset dijitInputField dijitSpinnerButtonInner\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t/><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9650;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9660;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\trole=\"spinbutton\" autocomplete=\"off\" ${!nameAttrSetting}\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(val,_3f7){return val;},_arrowPressed:function(_3f8,_3f9,_3fa){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_3f9*_3fa),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_3fb,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_3fb==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _3fc=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_3fc!==0){var node=this[(_3fc>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_3fc,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));}});}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.getObject("number",true,dojo);dojo.number.format=function(_3fd,_3fe){_3fe=dojo.mixin({},_3fe||{});var _3ff=dojo.i18n.normalizeLocale(_3fe.locale),_400=dojo.i18n.getLocalization("dojo.cldr","number",_3ff);_3fe.customs=_400;var _401=_3fe.pattern||_400[(_3fe.type||"decimal")+"Format"];if(isNaN(_3fd)||Math.abs(_3fd)==Infinity){return null;}return dojo.number._applyPattern(_3fd,_401,_3fe);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_402,_403,_404){_404=_404||{};var _405=_404.customs.group,_406=_404.customs.decimal,_407=_403.split(";"),_408=_407[0];_403=_407[(_402<0)?1:0]||("-"+_408);if(_403.indexOf("%")!=-1){_402*=100;}else{if(_403.indexOf("‰")!=-1){_402*=1000;}else{if(_403.indexOf("¤")!=-1){_405=_404.customs.currencyGroup||_405;_406=_404.customs.currencyDecimal||_406;_403=_403.replace(/\u00a4{1,3}/,function(_409){var prop=["symbol","currency","displayName"][_409.length-1];return _404[prop]||_404.currency||"";});}else{if(_403.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _40a=dojo.number._numberPatternRE;var _40b=_408.match(_40a);if(!_40b){throw new Error("unable to find a number expression in pattern: "+_403);}if(_404.fractional===false){_404.places=0;}return _403.replace(_40a,dojo.number._formatAbsolute(_402,_40b[0],{decimal:_406,group:_405,places:_404.places,round:_404.round}));};dojo.number.round=function(_40c,_40d,_40e){var _40f=10/(_40e||10);return (_40f*+_40c).toFixed(_40d)/_40f;};if((0.9).toFixed()==0){(function(){var _410=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _410(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_411,_412,_413){_413=_413||{};if(_413.places===true){_413.places=0;}if(_413.places===Infinity){_413.places=6;}var _414=_412.split("."),_415=typeof _413.places=="string"&&_413.places.indexOf(","),_416=_413.places;if(_415){_416=_413.places.substring(_415+1);}else{if(!(_416>=0)){_416=(_414[1]||[]).length;}}if(!(_413.round<0)){_411=dojo.number.round(_411,_416,_413.round);}var _417=String(Math.abs(_411)).split("."),_418=_417[1]||"";if(_414[1]||_413.places){if(_415){_413.places=_413.places.substring(0,_415);}var pad=_413.places!==undefined?_413.places:(_414[1]&&_414[1].lastIndexOf("0")+1);if(pad>_418.length){_417[1]=dojo.string.pad(_418,pad,"0",true);}if(_416<_418.length){_417[1]=_418.substr(0,_416);}}else{if(_417[1]){_417.pop();}}var _419=_414[0].replace(",","");pad=_419.indexOf("0");if(pad!=-1){pad=_419.length-pad;if(pad>_417[0].length){_417[0]=dojo.string.pad(_417[0],pad);}if(_419.indexOf("#")==-1){_417[0]=_417[0].substr(_417[0].length-pad);}}var _41a=_414[0].lastIndexOf(","),_41b,_41c;if(_41a!=-1){_41b=_414[0].length-_41a-1;var _41d=_414[0].substr(0,_41a);_41a=_41d.lastIndexOf(",");if(_41a!=-1){_41c=_41d.length-_41a-1;}}var _41e=[];for(var _41f=_417[0];_41f;){var off=_41f.length-_41b;_41e.push((off>0)?_41f.substr(off):_41f);_41f=(off>0)?_41f.slice(0,off):"";if(_41c){_41b=_41c;delete _41c;}}_417[0]=_41e.reverse().join(_413.group||",");return _417.join(_413.decimal||".");};dojo.number.regexp=function(_420){return dojo.number._parseInfo(_420).regexp;};dojo.number._parseInfo=function(_421){_421=_421||{};var _422=dojo.i18n.normalizeLocale(_421.locale),_423=dojo.i18n.getLocalization("dojo.cldr","number",_422),_424=_421.pattern||_423[(_421.type||"decimal")+"Format"],_425=_423.group,_426=_423.decimal,_427=1;if(_424.indexOf("%")!=-1){_427/=100;}else{if(_424.indexOf("‰")!=-1){_427/=1000;}else{var _428=_424.indexOf("¤")!=-1;if(_428){_425=_423.currencyGroup||_425;_426=_423.currencyDecimal||_426;}}}var _429=_424.split(";");if(_429.length==1){_429.push("-"+_429[0]);}var re=dojo.regexp.buildGroupRE(_429,function(_42a){_42a="(?:"+dojo.regexp.escapeString(_42a,".")+")";return _42a.replace(dojo.number._numberPatternRE,function(_42b){var _42c={signed:false,separator:_421.strict?_425:[_425,""],fractional:_421.fractional,decimal:_426,exponent:false},_42d=_42b.split("."),_42e=_421.places;if(_42d.length==1&&_427!=1){_42d[1]="###";}if(_42d.length==1||_42e===0){_42c.fractional=false;}else{if(_42e===undefined){_42e=_421.pattern?_42d[1].lastIndexOf("0")+1:Infinity;}if(_42e&&_421.fractional==undefined){_42c.fractional=true;}if(!_421.places&&(_42e<_42d[1].length)){_42e+=","+_42d[1].length;}_42c.places=_42e;}var _42f=_42d[0].split(",");if(_42f.length>1){_42c.groupSize=_42f.pop().length;if(_42f.length>1){_42c.groupSize2=_42f.pop().length;}}return "("+dojo.number._realNumberRegexp(_42c)+")";});},true);if(_428){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_430,_431,_432,_433){var prop=["symbol","currency","displayName"][_432.length-1],_434=dojo.regexp.escapeString(_421[prop]||_421.currency||"");_431=_431?"[\\s\\xa0]":"";_433=_433?"[\\s\\xa0]":"";if(!_421.strict){if(_431){_431+="*";}if(_433){_433+="*";}return "(?:"+_431+_434+_433+")?";}return _431+_434+_433;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_425,decimal:_426,factor:_427};};dojo.number.parse=function(_435,_436){var info=dojo.number._parseInfo(_436),_437=(new RegExp("^"+info.regexp+"$")).exec(_435);if(!_437){return NaN;}var _438=_437[1];if(!_437[1]){if(!_437[2]){return NaN;}_438=_437[2];info.factor*=-1;}_438=_438.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _438*info.factor;};dojo.number._realNumberRegexp=function(_439){_439=_439||{};if(!("places" in _439)){_439.places=Infinity;}if(typeof _439.decimal!="string"){_439.decimal=".";}if(!("fractional" in _439)||/^0/.test(_439.places)){_439.fractional=[true,false];}if(!("exponent" in _439)){_439.exponent=[true,false];}if(!("eSigned" in _439)){_439.eSigned=[true,false];}var _43a=dojo.number._integerRegexp(_439),_43b=dojo.regexp.buildGroupRE(_439.fractional,function(q){var re="";if(q&&(_439.places!==0)){re="\\"+_439.decimal;if(_439.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_439.places+"}";}}return re;},true);var _43c=dojo.regexp.buildGroupRE(_439.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_439.eSigned})+")";}return "";});var _43d=_43a+_43b;if(_43b){_43d="(?:(?:"+_43d+")|(?:"+_43b+"))";}return _43d+_43c;};dojo.number._integerRegexp=function(_43e){_43e=_43e||{};if(!("signed" in _43e)){_43e.signed=[true,false];}if(!("separator" in _43e)){_43e.separator="";}else{if(!("groupSize" in _43e)){_43e.groupSize=3;}}var _43f=dojo.regexp.buildGroupRE(_43e.signed,function(q){return q?"[-+]":"";},true);var _440=dojo.regexp.buildGroupRE(_43e.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_43e.groupSize,grp2=_43e.groupSize2;if(grp2){var _441="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_441+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_441;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _43f+_440;};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,_setConstraintsAttr:function(_442){var _443=typeof _442.places=="number"?_442.places:0;if(_443){_443++;}if(typeof _442.max!="number"){_442.max=9*Math.pow(10,15-_443);}if(typeof _442.min!="number"){_442.min=-9*Math.pow(10,15-_443);}this.inherited(arguments,[_442]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}},_onFocus:function(){if(this.disabled){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _444=this.format(val,this.constraints);if(_444!==undefined){this.textbox.value=_444;}}this.inherited(arguments);},format:function(_445,_446){var _447=String(_445);if(typeof _445!="number"){return _447;}if(isNaN(_445)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_445,_446))&&_446.exponent!==false&&/\de[-+]?\d/i.test(_447)){return _447;}if(this.editOptions&&this._focused){_446=dojo.mixin({},_446,this.editOptions);}return this._formatter(_445,_446);},_parser:dojo.number.parse,parse:function(_448,_449){var v=this._parser(_448,dojo.mixin({},_449,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_448,_449);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_44a){return (_44a===null||_44a===""||_44a===undefined)?NaN:this.inherited(arguments);},serialize:function(_44b,_44c){return (typeof _44b!="number"||isNaN(_44b))?"":this.inherited(arguments);},_setBlurValue:function(){var val=dojo.hitch(dojo.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_44d,_44e,_44f){if(_44d!==undefined&&_44f===undefined){_44f=String(_44d);if(typeof _44d=="number"){if(isNaN(_44d)){_44f="";}else{if(("rangeCheck" in this&&this.rangeCheck(_44d,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_44f)){_44f=undefined;}}}else{if(!_44d){_44f="";_44d=NaN;}else{_44d=undefined;}}}this.inherited(arguments,[_44d,_44e,_44f]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+dojo.number._realNumberRegexp(dojo.mixin({},this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_450){if(!this._focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}}});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{baseClass:"dijitTextBox dijitNumberTextBox"});}if(!dojo._hasResource["dijit.form.NumberSpinner"]){dojo._hasResource["dijit.form.NumberSpinner"]=true;dojo.provide("dijit.form.NumberSpinner");dojo.declare("dijit.form.NumberSpinner",[dijit.form._Spinner,dijit.form.NumberTextBoxMixin],{adjust:function(val,_451){var tc=this.constraints,v=isNaN(val),_452=!isNaN(tc.max),_453=!isNaN(tc.min);if(v&&_451!=0){val=(_451>0)?_453?tc.min:_452?tc.max:0:_452?this.constraints.max:_453?tc.min:0;}var _454=val+_451;if(v||isNaN(_454)){return val;}if(_452&&(_454>tc.max)){_454=tc.max;}if(_453&&(_454<tc.min)){_454=tc.min;}return _454;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!(e.ctrlKey||e.altKey||e.metaKey)&&typeof this.get("value")!="undefined"){var _455=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _455=="number"){this._setValueAttr(_455,false);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_456){this._set("readOnly",_456);dojo.attr(this.focusNode,"readOnly",_456);dijit.setWaiState(this.focusNode,"readonly",_456);},_setValueAttr:function(_457,_458){if(typeof _457=="string"){this._set("value",_457);dojo.attr(this.focusNode,"value",_457);_457=true;}if(this._created){this.set("checked",_457,_458);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_459){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this._set("value",this.params.value||"on");dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);},_onClick:function(e){if(this.readOnly){dojo.stopEvent(e);return false;}return this.inherited(arguments);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_45a){this.inherited(arguments);if(!this._created){return;}if(_45a){var _45b=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_45c){if(_45c.name==_45b.name&&_45c!=_45b.focusNode&&_45c.form==_45b.focusNode.form){var _45d=dijit.getEnclosingWidget(_45c);if(_45d&&_45d.checked){_45d.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!dojo._hasResource["dojox.html._base"]){dojo._hasResource["dojox.html._base"]=true;dojo.provide("dojox.html._base");(function(){if(dojo.isIE){var _45e=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _45f=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _460=dojox.html._adjustCssPaths=function(_461,_462){if(!_462||!_461){return;}if(_45e){_462=_462.replace(_45e,function(_463,pre,_464,url,post){return pre+(new dojo._Url(_461,"./"+url).toString())+post;});}return _462.replace(_45f,function(_465,_466,_467,_468,_469,_46a){if(_467){return "@import \""+(new dojo._Url(_461,"./"+_467).toString())+"\""+_46a;}else{return "url("+(new dojo._Url(_461,"./"+_469).toString())+")"+_46a;}});};var _46b=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _46c=dojox.html._adjustHtmlPaths=function(_46d,cont){var url=_46d||"./";return cont.replace(_46b,function(tag,_46e,name,_46f,_470,_471,_472,end){return _46e+(name?(name+"="+_46f+(new dojo._Url(url,_470).toString())+_46f):("style="+_471+_460(url,_472)+_471))+end;});};var _473=dojox.html._snarfStyles=function(_474,cont,_475){_475.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_476,_477,_478,_479,_47a,href){var i,attr=(_477||_479||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_478){i=_475.push(_474?_460(_474,_478):_478);}else{i=_475.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _47b={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_47b[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_475.attributes[i-1]=_47b;}return "";});};var _47c=dojox.html._snarfScripts=function(cont,_47d){_47d.code="";cont=cont.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_47e){return _47e.replace(/<(\/?)script\b/ig,"&lt;$1Script");});function _47f(src){if(_47d.downloadRemote){src=src.replace(/&([a-z0-9#]+);/g,function(m,name){switch(name){case "amp":return "&";case "gt":return ">";case "lt":return "<";default:return name.charAt(0)=="#"?String.fromCharCode(name.substring(1)):"&"+name+";";}});dojo.xhrGet({url:src,sync:true,load:function(code){_47d.code+=code+";";},error:_47d.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_480,_481,src,code){if(src){_47f(src);}else{_47d.code+=code;}return "";});};var _482=dojox.html.evalInGlobal=function(code,_483){_483=_483||dojo.doc.body;var n=_483.ownerDocument.createElement("script");n.type="text/javascript";_483.appendChild(n);n.text=code;};dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_484){this._styleNodes=[];var st,att,_485,doc=this.node.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_484.length;i<e;i++){_485=_484[i];att=_484.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_485;}else{st.appendChild(doc.createTextNode(_485));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var cont=this.content,node=this.node;var _486=this._styles;if(dojo.isString(cont)){if(this.adjustPaths&&this.referencePath){cont=_46c(this.referencePath,cont);}if(this.renderStyles||this.cleanContent){cont=_473(this.referencePath,cont,_486);}if(this.executeScripts){var _487=this;var _488={downloadRemote:true,errBack:function(e){_487._onError.call(_487,"Exec","Error downloading remote script in \""+_487.id+"\"",e);}};cont=_47c(cont,_488);this._code=_488.code;}}this.content=cont;},onEnd:function(){var code=this._code,_489=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}if(this.renderStyles&&_489&&_489.length){this._renderStyles(_489);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_482(code,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}delete this._styleNodes;dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);}});dojox.html.set=function(node,cont,_48a){if(!_48a){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_48a,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;},onExecError:function(e){},_setContent:function(cont){var _48b=this._contentSetter;if(!(_48b&&_48b instanceof dojox.html._ContentSetter)){_48b=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _48c=this.onContentError(e);try{this.containerNode.innerHTML=_48c;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);}});}if(!dojo._hasResource["dojox.layout.ResizeHandle"]){dojo._hasResource["dojox.layout.ResizeHandle"]=true;dojo.provide("dojox.layout.ResizeHandle");dojo.experimental("dojox.layout.ResizeHandle");dojo.declare("dojox.layout.ResizeHandle",[dijit._Widget,dijit._Templated],{targetId:"",targetContainer:null,resizeAxis:"xy",activeResize:false,activeResizeClass:"dojoxResizeHandleClone",animateSizing:true,animateMethod:"chain",animateDuration:225,minHeight:100,minWidth:100,constrainMax:false,maxHeight:0,maxWidth:0,fixedAspect:false,intermediateChanges:false,startTopic:"/dojo/resize/start",endTopic:"/dojo/resize/stop",templateString:"<div dojoAttachPoint=\"resizeHandle\" class=\"dojoxResizeHandle\"><div></div></div>",postCreate:function(){this.connect(this.resizeHandle,"onmousedown","_beginSizing");if(!this.activeResize){this._resizeHelper=dijit.byId("dojoxGlobalResizeHelper");if(!this._resizeHelper){this._resizeHelper=new dojox.layout._ResizeHelper({id:"dojoxGlobalResizeHelper"}).placeAt(dojo.body());dojo.addClass(this._resizeHelper.domNode,this.activeResizeClass);}}else{this.animateSizing=false;}if(!this.minSize){this.minSize={w:this.minWidth,h:this.minHeight};}if(this.constrainMax){this.maxSize={w:this.maxWidth,h:this.maxHeight};}this._resizeX=this._resizeY=false;var _48d=dojo.partial(dojo.addClass,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;_48d("dojoxResizeNW");break;case "x":this._resizeX=true;_48d("dojoxResizeW");break;case "y":this._resizeY=true;_48d("dojoxResizeN");break;}},_beginSizing:function(e){if(this._isSizing){return false;}dojo.publish(this.startTopic,[this]);this.targetWidget=dijit.byId(this.targetId);this.targetDomNode=this.targetWidget?this.targetWidget.domNode:dojo.byId(this.targetId);if(this.targetContainer){this.targetDomNode=this.targetContainer;}if(!this.targetDomNode){return false;}if(!this.activeResize){var c=dojo.position(this.targetDomNode,true);this._resizeHelper.resize({l:c.x,t:c.y,w:c.w,h:c.h});this._resizeHelper.show();}this._isSizing=true;this.startPoint={x:e.clientX,y:e.clientY};var mb=this.targetWidget?dojo.marginBox(this.targetDomNode):dojo.contentBox(this.targetDomNode);this.startSize={w:mb.w,h:mb.h};if(this.fixedAspect){var max,val;if(mb.w>mb.h){max="w";val=mb.w/mb.h;}else{max="h";val=mb.h/mb.w;}this._aspect={prop:max};this._aspect[max]=val;}this._pconnects=[];this._pconnects.push(dojo.connect(dojo.doc,"onmousemove",this,"_updateSizing"));this._pconnects.push(dojo.connect(dojo.doc,"onmouseup",this,"_endSizing"));dojo.stopEvent(e);},_updateSizing:function(e){if(this.activeResize){this._changeSizing(e);}else{var tmp=this._getNewCoords(e);if(tmp===false){return;}this._resizeHelper.resize(tmp);}e.preventDefault();},_getNewCoords:function(e){try{if(!e.clientX||!e.clientY){return false;}}catch(e){return false;}this._activeResizeLastEvent=e;var dx=(this.isLeftToRight()?this.startPoint.x-e.clientX:e.clientX-this.startPoint.x),dy=this.startPoint.y-e.clientY,newW=this.startSize.w-(this._resizeX?dx:0),newH=this.startSize.h-(this._resizeY?dy:0);return this._checkConstraints(newW,newH);},_checkConstraints:function(newW,newH){if(this.minSize){var tm=this.minSize;if(newW<tm.w){newW=tm.w;}if(newH<tm.h){newH=tm.h;}}if(this.constrainMax&&this.maxSize){var ms=this.maxSize;if(newW>ms.w){newW=ms.w;}if(newH>ms.h){newH=ms.h;}}if(this.fixedAspect){var ta=this._aspect[this._aspect.prop];if(newW<newH){newH=newW*ta;}else{if(newH<newW){newW=newH*ta;}}}return {w:newW,h:newH};},_changeSizing:function(e){var tmp=this._getNewCoords(e);if(tmp===false){return;}if(this.targetWidget&&dojo.isFunction(this.targetWidget.resize)){this.targetWidget.resize(tmp);}else{if(this.animateSizing){var anim=dojo.fx[this.animateMethod]([dojo.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:tmp.w}},duration:this.animateDuration}),dojo.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:tmp.h}},duration:this.animateDuration})]);anim.play();}else{dojo.style(this.targetDomNode,{width:tmp.w+"px",height:tmp.h+"px"});}}if(this.intermediateChanges){this.onResize(e);}},_endSizing:function(e){dojo.forEach(this._pconnects,dojo.disconnect);var pub=dojo.partial(dojo.publish,this.endTopic,[this]);if(!this.activeResize){this._resizeHelper.hide();this._changeSizing(e);setTimeout(pub,this.animateDuration+15);}else{pub();}this._isSizing=false;this.onResize(e);},onResize:function(e){}});dojo.declare("dojox.layout._ResizeHelper",dijit._Widget,{show:function(){dojo.fadeIn({node:this.domNode,duration:120,beforeBegin:function(n){dojo.style(n,"display","");}}).play();},hide:function(){dojo.fadeOut({node:this.domNode,duration:250,onEnd:function(n){dojo.style(n,"display","none");}}).play();},resize:function(dim){dojo.marginBox(this.domNode,dim);}});}if(!dojo._hasResource["dojox.layout.FloatingPane"]){dojo._hasResource["dojox.layout.FloatingPane"]=true;dojo.provide("dojox.layout.FloatingPane");dojo.experimental("dojox.layout.FloatingPane");dojo.declare("dojox.layout.FloatingPane",[dojox.layout.ContentPane,dijit._Templated],{closable:true,dockable:true,resizable:false,maxable:false,resizeAxis:"xy",title:"",dockTo:"",duration:400,contentClass:"dojoxFloatingPaneContent",_showAnim:null,_hideAnim:null,_dockNode:null,_restoreState:{},_allFPs:[],_startZ:100,templateString:dojo.cache("dojox.layout","resources/FloatingPane.html","<div class=\"dojoxFloatingPane\" id=\"${id}\">\n\t<div tabindex=\"0\" role=\"button\" class=\"dojoxFloatingPaneTitle\" dojoAttachPoint=\"focusNode\">\n\t\t<span dojoAttachPoint=\"closeNode\" dojoAttachEvent=\"onclick: close\" class=\"dojoxFloatingCloseIcon\"></span>\n\t\t<span dojoAttachPoint=\"maxNode\" dojoAttachEvent=\"onclick: maximize\" class=\"dojoxFloatingMaximizeIcon\">&thinsp;</span>\n\t\t<span dojoAttachPoint=\"restoreNode\" dojoAttachEvent=\"onclick: _restore\" class=\"dojoxFloatingRestoreIcon\">&thinsp;</span>\t\n\t\t<span dojoAttachPoint=\"dockNode\" dojoAttachEvent=\"onclick: minimize\" class=\"dojoxFloatingMinimizeIcon\">&thinsp;</span>\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dijitInline dijitTitleNode\"></span>\n\t</div>\n\t<div dojoAttachPoint=\"canvas\" class=\"dojoxFloatingPaneCanvas\">\n\t\t<div dojoAttachPoint=\"containerNode\" role=\"region\" tabindex=\"-1\" class=\"${contentClass}\">\n\t\t</div>\n\t\t<span dojoAttachPoint=\"resizeHandle\" class=\"dojoxFloatingResizeHandle\"></span>\n\t</div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:{type:"innerHTML",node:"titleNode"}}),postCreate:function(){this.inherited(arguments);new dojo.dnd.Moveable(this.domNode,{handle:this.focusNode});if(!this.dockable){this.dockNode.style.display="none";}if(!this.closable){this.closeNode.style.display="none";}if(!this.maxable){this.maxNode.style.display="none";this.restoreNode.style.display="none";}if(!this.resizable){this.resizeHandle.style.display="none";}else{this.domNode.style.width=dojo.marginBox(this.domNode).w+"px";}this._allFPs.push(this);this.domNode.style.position="absolute";this.bgIframe=new dijit.BackgroundIframe(this.domNode);this._naturalState=dojo.coords(this.domNode);},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.resizable){if(dojo.isIE){this.canvas.style.overflow="auto";}else{this.containerNode.style.overflow="auto";}this._resizeHandle=new dojox.layout.ResizeHandle({targetId:this.id,resizeAxis:this.resizeAxis},this.resizeHandle);}if(this.dockable){var _48e=this.dockTo;if(this.dockTo){this.dockTo=dijit.byId(this.dockTo);}else{this.dockTo=dijit.byId("dojoxGlobalFloatingDock");}if(!this.dockTo){var _48f,_490;if(_48e){_48f=_48e;_490=dojo.byId(_48e);}else{_490=dojo.create("div",null,dojo.body());dojo.addClass(_490,"dojoxFloatingDockDefault");_48f="dojoxGlobalFloatingDock";}this.dockTo=new dojox.layout.Dock({id:_48f,autoPosition:"south"},_490);this.dockTo.startup();}if((this.domNode.style.display=="none")||(this.domNode.style.visibility=="hidden")){this.minimize();}}this.connect(this.focusNode,"onmousedown","bringToTop");this.connect(this.domNode,"onmousedown","bringToTop");this.resize(dojo.coords(this.domNode));this._started=true;},setTitle:function(_491){dojo.deprecated("pane.setTitle","Use pane.set('title', someTitle)","2.0");this.set("title",_491);},close:function(){if(!this.closable){return;}dojo.unsubscribe(this._listener);this.hide(dojo.hitch(this,function(){this.destroyRecursive();}));},hide:function(_492){dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";this.domNode.style.visibility="hidden";if(this.dockTo&&this.dockable){this.dockTo._positionDock(null);}if(_492){_492();}})}).play();},show:function(_493){var anim=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){this.domNode.style.display="";this.domNode.style.visibility="visible";if(this.dockTo&&this.dockable){this.dockTo._positionDock(null);}if(typeof _493=="function"){_493();}this._isDocked=false;if(this._dockNode){this._dockNode.destroy();this._dockNode=null;}})}).play();this.resize(dojo.coords(this.domNode));this._onShow();},minimize:function(){if(!this._isDocked){this.hide(dojo.hitch(this,"_dock"));}},maximize:function(){if(this._maximized){return;}this._naturalState=dojo.position(this.domNode);if(this._isDocked){this.show();setTimeout(dojo.hitch(this,"maximize"),this.duration);}dojo.addClass(this.focusNode,"floatingPaneMaximized");this.resize(dojo.window.getBox());this._maximized=true;},_restore:function(){if(this._maximized){this.resize(this._naturalState);dojo.removeClass(this.focusNode,"floatingPaneMaximized");this._maximized=false;}},_dock:function(){if(!this._isDocked&&this.dockable){this._dockNode=this.dockTo.addNode(this);this._isDocked=true;}},resize:function(dim){dim=dim||this._naturalState;this._naturalState=dim;var dns=this.domNode.style;if("t" in dim){dns.top=dim.t+"px";}if("l" in dim){dns.left=dim.l+"px";}dns.width=dim.w+"px";dns.height=dim.h+"px";var _494={l:0,t:0,w:dim.w,h:(dim.h-this.focusNode.offsetHeight)};dojo.marginBox(this.canvas,_494);this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(_494);}},bringToTop:function(){var _495=dojo.filter(this._allFPs,function(i){return i!==this;},this);_495.sort(function(a,b){return a.domNode.style.zIndex-b.domNode.style.zIndex;});_495.push(this);dojo.forEach(_495,function(w,x){w.domNode.style.zIndex=this._startZ+(x*2);dojo.removeClass(w.domNode,"dojoxFloatingPaneFg");},this);dojo.addClass(this.domNode,"dojoxFloatingPaneFg");},destroy:function(){this._allFPs.splice(dojo.indexOf(this._allFPs,this),1);if(this._resizeHandle){this._resizeHandle.destroy();}this.inherited(arguments);}});dojo.declare("dojox.layout.Dock",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dojoxDock\"><ul dojoAttachPoint=\"containerNode\" class=\"dojoxDockList\"></ul></div>",_docked:[],_inPositioning:false,autoPosition:false,addNode:function(_496){var div=dojo.create("li",null,this.containerNode),node=new dojox.layout._DockNode({title:_496.title,paneRef:_496},div);node.startup();return node;},startup:function(){if(this.id=="dojoxGlobalFloatingDock"||this.isFixedDock){this.connect(window,"onresize","_positionDock");this.connect(window,"onscroll","_positionDock");if(dojo.isIE){this.connect(this.domNode,"onresize","_positionDock");}}this._positionDock(null);this.inherited(arguments);},_positionDock:function(e){if(!this._inPositioning){if(this.autoPosition=="south"){setTimeout(dojo.hitch(this,function(){this._inPositiononing=true;var _497=dojo.window.getBox();var s=this.domNode.style;s.left=_497.l+"px";s.width=(_497.w-2)+"px";s.top=(_497.h+_497.t)-this.domNode.offsetHeight+"px";this._inPositioning=false;}),125);}}}});dojo.declare("dojox.layout._DockNode",[dijit._Widget,dijit._Templated],{title:"",paneRef:null,templateString:"<li dojoAttachEvent=\"onclick: restore\" class=\"dojoxDockNode\">"+"<span dojoAttachPoint=\"restoreNode\" class=\"dojoxDockRestoreButton\" dojoAttachEvent=\"onclick: restore\"></span>"+"<span class=\"dojoxDockTitleNode\" dojoAttachPoint=\"titleNode\">${title}</span>"+"</li>",restore:function(){this.paneRef.show();this.paneRef.bringToTop();this.destroy();}});}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_498,_499){var c=document.cookie;if(arguments.length==1){var _49a=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _49a?decodeURIComponent(_49a[1]):undefined;}else{_499=_499||{};var exp=_499.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_499.expires=d;}if(exp&&exp.toUTCString){_499.expires=exp.toUTCString();}_498=encodeURIComponent(_498);var _49b=name+"="+_498,_49c;for(_49c in _499){_49b+="; "+_49c;var _49d=_499[_49c];if(_49d!==true){_49b+="="+_49d;}}document.cookie=_49b;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={};},buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(dijit.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_49e){var cls=dojo.getObject(this.buttonWidget);var _49f=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});dijit.setWaiState(_49f.focusNode,"selected","false");var _4a0=["title","showTitle","iconClass","closable","tooltip"],_4a1=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_4a0,function(_4a2,idx){return page.watch(_4a2,function(name,_4a3,_4a4){_49f.set(_4a1[idx],_4a4);});});this.pane2connects[page.id]=[this.connect(_49f,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_49f,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_49f,_49e);this.pane2button[page.id]=_49f;page.controlButton=_49f;if(!this._currentChild){_49f.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_49f.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2connects[page.id],dojo.hitch(this,"disconnect"));delete this.pane2connects[page.id];dojo.forEach(this.pane2watches[page.id],function(w){w.unwatch();});delete this.pane2watches[page.id];var _4a5=this.pane2button[page.id];if(_4a5){this.removeChild(_4a5);delete this.pane2button[page.id];_4a5.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _4a6=this.pane2button[this._currentChild.id];_4a6.set("checked",false);dijit.setWaiState(_4a6.focusNode,"selected","false");_4a6.focusNode.setAttribute("tabIndex","-1");}var _4a7=this.pane2button[page.id];_4a7.set("checked",true);dijit.setWaiState(_4a7.focusNode,"selected","true");this._currentChild=page;_4a7.focusNode.setAttribute("tabIndex","0");var _4a8=dijit.byId(this.containerId);dijit.setWaiState(_4a8.containerNode,"labelledby",_4a7.id);},onButtonClick:function(page){var _4a9=dijit.byId(this.containerId);_4a9.selectChild(page);},onCloseButtonClick:function(page){var _4aa=dijit.byId(this.containerId);_4aa.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_4ab){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_4ab=!_4ab;}var _4ac=this.getChildren();var _4ad=dojo.indexOf(_4ac,this.pane2button[this._currentChild.id]);var _4ae=_4ab?1:_4ac.length-1;return _4ac[(_4ad+_4ae)%_4ac.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _4af=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_4af=false;}break;case k.PAGE_UP:if(e.ctrlKey){_4af=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_4af=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_4af=true;}break;case k.HOME:case k.END:var _4b0=this.getChildren();if(_4b0&&_4b0.length){_4b0[e.charOrCode==k.HOME?0:_4b0.length-1].onClick();}dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_4af!==null){this.adjacent(_4af).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",buildRendering:function(evt){this.inherited(arguments);dijit.setWaiRole((this.focusNode||this.domNode),"tab");},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _4b1=this.getChildren();dojo.forEach(_4b1,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_4b1,function(_4b2){if(_4b2.selected){this.selectedChildWidget=_4b2;}return _4b2.selected;},this);}var _4b3=this.selectedChildWidget;if(!_4b3&&_4b1[0]){_4b3=this.selectedChildWidget=_4b1[0];_4b3.selected=true;}dojo.publish(this.id+"-startup",[{children:_4b1,selected:_4b3}]);this.inherited(arguments);},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=true;var _4b4=this.selectedChildWidget;if(_4b4){this._showChild(_4b4);}}this.inherited(arguments);},_setupChild:function(_4b5){this.inherited(arguments);dojo.replaceClass(_4b5.domNode,"dijitHidden","dijitVisible");_4b5.domNode.title="";},addChild:function(_4b6,_4b7){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_4b6,_4b7]);this.layout();if(!this.selectedChildWidget){this.selectChild(_4b6);}}},removeChild:function(page){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _4b8=this.getChildren();if(_4b8.length){this.selectChild(_4b8[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_4b9){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_4b9);this._set("selectedChildWidget",page);dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}return d;},_transition:function(_4ba,_4bb,_4bc){if(_4bb){this._hideChild(_4bb);}var d=this._showChild(_4ba);if(_4ba.resize){if(this.doLayout){_4ba.resize(this._containerContentBox||this._contentBox);}else{_4ba.resize();}}return d;},_adjacent:function(_4bd){var _4be=this.getChildren();var _4bf=dojo.indexOf(_4be,this.selectedChildWidget);_4bf+=_4bd?1:_4be.length-1;return _4be[_4bf%_4be.length];},forward:function(){return this.selectChild(this._adjacent(true),true);},back:function(){return this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _4c0=this.getChildren();page.isFirstChild=(page==_4c0[0]);page.isLastChild=(page==_4c0[_4c0.length-1]);page._set("selected",true);dojo.replaceClass(page.domNode,"dijitVisible","dijitHidden");return page._onShow()||true;},_hideChild:function(page){page._set("selected",false);dojo.replaceClass(page.domNode,"dijitHidden","dijitVisible");page.onHide();},closeChild:function(page){var _4c1=page.onClose(this,page);if(_4c1){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_4c2){dojo.forEach(this.getChildren(),function(_4c3){this.removeChild(_4c3);_4c3.destroyRecursive(_4c2);},this);}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!dojo._hasResource["dijit.layout._TabContainerBase"]){dojo._hasResource["dijit.layout._TabContainerBase"]=true;dojo.provide("dijit.layout._TabContainerBase");dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _4c4=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_4c4;var _4c5=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_4c4},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_4c5);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_4c5[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _4c6=dojo.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_4c6});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _4c7=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_4c7=Math.max(_4c7,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_4c7+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div role=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div role=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div role=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n        \t<div role=\"presentation\" dojoAttachPoint='focusNode'>\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" dojoAttachPoint='iconNode' />\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' role=\"presentation\">\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>[x]</span\n\t\t        ></span>\n\t\t\t</div>\n        </div>\n    </div>\n</div>\n"),scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},startup:function(){this.inherited(arguments);var n=this.domNode;setTimeout(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(disp){this._set("closeButton",disp);dojo.toggleClass(this.innerDiv,"dijitClosable",disp);this.closeNode.style.display=disp?"":"none";if(disp){var _4c8=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_4c8.itemClose);}var _4c8=dojo.i18n.getLocalization("dijit","common");this._closeMenu=new dijit.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new dijit.MenuItem({label:_4c8.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_4c9){this.inherited(arguments);if(this.showLabel==false&&!this.params.title){this.iconNode.alt=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){dojo._hasResource["dijit.layout.ScrollingTabController"]=true;dojo.provide("dijit.layout.ScrollingTabController");dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerMenuButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_menuBtn\" containerId=\"${containerId}\" iconClass=\"dijitTabStripMenuIcon\"\n\t\t\tdropDownPosition=\"below-alt, above-alt\"\n\t\t\tdojoAttachPoint=\"_menuBtn\" showLabel=\"false\">&#9660;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_leftBtn\" iconClass=\"dijitTabStripSlideLeftIcon\"\n\t\t\tdojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=\"false\">&#9664;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_rightBtn\" iconClass=\"dijitTabStripSlideRightIcon\"\n\t\t\tdojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=\"false\">&#9654;</div>\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\n\t\t<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'></div>\n\t</div>\n</div>\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),buildRendering:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";dojo.addClass(n,"tabStrip-disabled");}dojo.addClass(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);dojo.style(this.domNode,"visibility","visible");this._postStartup=true;},onAddChild:function(page,_4ca){this.inherited(arguments);dojo.forEach(["label","iconClass"],function(attr){this.pane2watches[page.id].push(this.pane2button[page.id].watch(attr,dojo.hitch(this,function(name,_4cb,_4cc){if(this._postStartup&&this._dim){this.resize(this._dim);}})));},this);dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");},onRemoveChild:function(page,_4cd){var _4ce=this.pane2button[page.id];if(this._selectedTab===_4ce.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=dojo._getMarginSize(btn).w;return true;}else{dojo.style(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _4cf=this.getChildren();if(_4cf.length){var _4d0=_4cf[this.isLeftToRight()?0:_4cf.length-1].domNode,_4d1=_4cf[this.isLeftToRight()?_4cf.length-1:0].domNode;return _4d1.offsetLeft+dojo.style(_4d1,"width")-_4d0.offsetLeft;}else{return 0;}},_enableBtn:function(_4d2){var _4d3=this._getTabsWidth();_4d2=_4d2||dojo.style(this.scrollNode,"width");return _4d3>0&&_4d2<_4d3;},resize:function(dim){if(this.domNode.offsetWidth==0){return;}this._dim=dim;this.scrollNode.style.height="auto";this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});this._contentBox.h=this.scrollNode.offsetHeight;dojo.contentBox(this.domNode,this._contentBox);var _4d4=this._enableBtn(this._contentBox.w);this._buttons.style("display",_4d4?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());w.scrollLeft=sl;}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){var sl=(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;return sl;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit){return val;}else{var _4d5=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_4d5);}},onSelectChild:function(page){var tab=this.pane2button[page.id];if(!tab||!page){return;}var node=tab.domNode;if(this._postResize&&node!=this._selectedTab){this._selectedTab=node;var sl=this._getScroll();if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){this.createSmoothScroll().play();}}this.inherited(arguments);},_getScrollBounds:function(){var _4d6=this.getChildren(),_4d7=dojo.style(this.scrollNode,"width"),_4d8=dojo.style(this.containerNode,"width"),_4d9=_4d8-_4d7,_4da=this._getTabsWidth();if(_4d6.length&&_4da>_4d7){return {min:this.isLeftToRight()?0:_4d6[_4d6.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_4d6[_4d6.length-1].domNode.offsetLeft+dojo.style(_4d6[_4d6.length-1].domNode,"width"))-_4d7:_4d9};}else{var _4db=this.isLeftToRight()?0:_4d9;return {min:_4db,max:_4db};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_4dc=dojo.style(this.scrollNode,"width"),_4dd=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_4dc/2;pos=Math.min(Math.max(pos,_4dd.min),_4dd.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _4de=this._getScrollBounds();x=Math.min(Math.max(x,_4de.min),_4de.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);anim.curve=new dojo._Line(oldS,newS);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=anim;this._setButtonClass(x);return anim;},_getBtnNode:function(e){var n=e.target;while(n&&!dojo.hasClass(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_4df,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _4e0=dojo.style(this.scrollNode,"width");var d=(_4e0*0.75)*_4df;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_4e1){var _4e2=this._getScrollBounds();this._leftBtn.set("disabled",_4e1<=_4e2.min);this._rightBtn.set("disabled",_4e1>=_4e2.max);}});dojo.declare("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\n\t<div role=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div role=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img role=\"presentation\" alt=\"\" src=\"${_blankGif}\" class=\"dijitTabStripIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\n\t\t</div>\n\t</div>\n</div>\n"),tabIndex:"",isFocusable:function(){return false;}});dojo.declare("dijit.layout._ScrollingTabControllerButton",[dijit.form.Button,dijit.layout._ScrollingTabControllerButtonMixin]);dojo.declare("dijit.layout._ScrollingTabControllerMenuButton",[dijit.form.Button,dijit._HasDropDown,dijit.layout._ScrollingTabControllerButtonMixin],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_4e3){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _4e4=dijit.byId(this.containerId);dojo.forEach(_4e4.getChildren(),function(page){var _4e5=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_4e4.selectChild(page);}});this.dropDown.addChild(_4e5);},this);_4e3();},closeDropDown:function(_4e6){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_4e7){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_4e8=dojo.getObject(this.controllerWidget);return new _4e8({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_4e7);},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget){this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";}}});}dojo.i18n._preloadLocalizations("dojo.nls.siteconfig",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
