/*
	Copyright (c) 2004-2010, 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.window"]){
dojo._hasResource["dojo.window"]=true;
dojo.provide("dojo.window");
dojo.window.getBox=function(){
var _1=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _2=dojo._docScroll();
return {w:_1.clientWidth,h:_1.clientHeight,l:_2.x,t:_2.y};
};
dojo.window.get=function(_3){
if(dojo.isIE&&window!==document.parentWindow){
_3.parentWindow.execScript("document._parentWindow = window;","Javascript");
var _4=_3._parentWindow;
_3._parentWindow=null;
return _4;
}
return _3.parentWindow||_3.defaultView;
};
dojo.window.scrollIntoView=function(_5,_6){
try{
_5=dojo.byId(_5);
var _7=_5.ownerDocument||dojo.doc,_8=_7.body||dojo.body(),_9=_7.documentElement||_8.parentNode,_a=dojo.isIE,_b=dojo.isWebKit;
if((!(dojo.isMoz||_a||_b||dojo.isOpera)||_5==_8||_5==_9)&&(typeof _5.scrollIntoView!="undefined")){
_5.scrollIntoView(false);
return;
}
var _c=_7.compatMode=="BackCompat",_d=_c?_8:_9,_e=_b?_8:_d,_f=_d.clientWidth,_10=_d.clientHeight,rtl=!dojo._isBodyLtr(),_11=_6||dojo.position(_5),el=_5.parentNode,_12=function(el){
return ((_a<=6||(_a&&_c))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));
};
if(_12(_5)){
return;
}
while(el){
if(el==_8){
el=_e;
}
var _13=dojo.position(el),_14=_12(el);
if(el==_e){
_13.w=_f;
_13.h=_10;
if(_e==_9&&_a&&rtl){
_13.x+=_e.offsetWidth-_13.w;
}
if(_13.x<0||!_a){
_13.x=0;
}
if(_13.y<0||!_a){
_13.y=0;
}
}else{
var pb=dojo._getPadBorderExtents(el);
_13.w-=pb.w;
_13.h-=pb.h;
_13.x+=pb.l;
_13.y+=pb.t;
}
if(el!=_e){
var _15=el.clientWidth,_16=_13.w-_15;
if(_15>0&&_16>0){
_13.w=_15;
if(_a&&rtl){
_13.x+=_16;
}
}
_15=el.clientHeight;
_16=_13.h-_15;
if(_15>0&&_16>0){
_13.h=_15;
}
}
if(_14){
if(_13.y<0){
_13.h+=_13.y;
_13.y=0;
}
if(_13.x<0){
_13.w+=_13.x;
_13.x=0;
}
if(_13.y+_13.h>_10){
_13.h=_10-_13.y;
}
if(_13.x+_13.w>_f){
_13.w=_f-_13.x;
}
}
var l=_11.x-_13.x,t=_11.y-Math.max(_13.y,0),r=l+_11.w-_13.w,bot=t+_11.h-_13.h;
if(r*l>0){
var s=Math[l<0?"max":"min"](l,r);
_11.x+=el.scrollLeft;
el.scrollLeft+=(_a>=8&&!_c&&rtl)?-s:s;
_11.x-=el.scrollLeft;
}
if(bot*t>0){
_11.y+=el.scrollTop;
el.scrollTop+=Math[t<0?"max":"min"](t,bot);
_11.y-=el.scrollTop;
}
el=(el!=_e)&&!_14&&el.parentNode;
}
}
catch(error){
console.error("scrollIntoView: "+error);
_5.scrollIntoView(false);
}
};
}
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(_17){
if(this._hash[_17.id]){
throw new Error("Tried to register widget with id=="+_17.id+" but that id is already registered");
}
this._hash[_17.id]=_17;
this.length++;
},remove:function(id){
if(this._hash[id]){
delete this._hash[id];
this.length--;
}
},forEach:function(_18,_19){
_19=_19||dojo.global;
var i=0,id;
for(id in this._hash){
_18.call(_19,this._hash[id],i++,this._hash);
}
return this;
},filter:function(_1a,_1b){
_1b=_1b||dojo.global;
var res=new dijit.WidgetSet(),i=0,id;
for(id in this._hash){
var w=this._hash[id];
if(_1a.call(_1b,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,_1c;
for(id in this._hash){
_1c=this._hash[id];
if(_1c.declaredClass==cls){
res.add(_1c);
}
}
return res;
},toArray:function(){
var ar=[];
for(var id in this._hash){
ar.push(this._hash[id]);
}
return ar;
},map:function(_1d,_1e){
return dojo.map(this.toArray(),_1d,_1e);
},every:function(_1f,_20){
_20=_20||dojo.global;
var x=0,i;
for(i in this._hash){
if(!_1f.call(_20,this._hash[i],x++,this._hash)){
return false;
}
}
return true;
},some:function(_21,_22){
_22=_22||dojo.global;
var x=0,i;
for(i in this._hash){
if(_21.call(_22,this._hash[i],x++,this._hash)){
return true;
}
}
return false;
}});
(function(){
dijit.registry=new dijit.WidgetSet();
var _23=dijit.registry._hash,_24=dojo.attr,_25=dojo.hasAttr,_26=dojo.style;
dijit.byId=function(id){
return typeof id=="string"?_23[id]:id;
};
var _27={};
dijit.getUniqueId=function(_28){
var id;
do{
id=_28+"_"+(_28 in _27?++_27[_28]:_27[_28]=0);
}while(_23[id]);
return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;
};
dijit.findWidgets=function(_29){
var _2a=[];
function _2b(_2c){
for(var _2d=_2c.firstChild;_2d;_2d=_2d.nextSibling){
if(_2d.nodeType==1){
var _2e=_2d.getAttribute("widgetId");
if(_2e){
_2a.push(_23[_2e]);
}else{
_2b(_2d);
}
}
}
};
_2b(_29);
return _2a;
};
dijit._destroyAll=function(){
dijit._curFocus=null;
dijit._prevFocus=null;
dijit._activeStack=[];
dojo.forEach(dijit.findWidgets(dojo.body()),function(_2f){
if(!_2f._destroyed){
if(_2f.destroyRecursive){
_2f.destroyRecursive();
}else{
if(_2f.destroy){
_2f.destroy();
}
}
}
});
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit._destroyAll();
});
}
dijit.byNode=function(_30){
return _23[_30.getAttribute("widgetId")];
};
dijit.getEnclosingWidget=function(_31){
while(_31){
var id=_31.getAttribute&&_31.getAttribute("widgetId");
if(id){
return _23[id];
}
_31=_31.parentNode;
}
return null;
};
var _32=(dijit._isElementShown=function(_33){
var s=_26(_33);
return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_24(_33,"type")!="hidden");
});
dijit.hasDefaultTabStop=function(_34){
switch(_34.nodeName.toLowerCase()){
case "a":
return _25(_34,"href");
case "area":
case "button":
case "input":
case "object":
case "select":
case "textarea":
return true;
case "iframe":
if(dojo.isMoz){
try{
return _34.contentDocument.designMode=="on";
}
catch(err){
return false;
}
}else{
if(dojo.isWebKit){
var doc=_34.contentDocument,_35=doc&&doc.body;
return _35&&_35.contentEditable=="true";
}else{
try{
doc=_34.contentWindow.document;
_35=doc&&doc.body;
return _35&&_35.firstChild&&_35.firstChild.contentEditable=="true";
}
catch(e){
return false;
}
}
}
default:
return _34.contentEditable=="true";
}
};
var _36=(dijit.isTabNavigable=function(_37){
if(_24(_37,"disabled")){
return false;
}else{
if(_25(_37,"tabIndex")){
return _24(_37,"tabIndex")>=0;
}else{
return dijit.hasDefaultTabStop(_37);
}
}
});
dijit._getTabNavigable=function(_38){
var _39,_3a,_3b,_3c,_3d,_3e;
var _3f=function(_40){
dojo.query("> *",_40).forEach(function(_41){
if((dojo.isIE&&_41.scopeName!=="HTML")||!_32(_41)){
return;
}
if(_36(_41)){
var _42=_24(_41,"tabIndex");
if(!_25(_41,"tabIndex")||_42==0){
if(!_39){
_39=_41;
}
_3a=_41;
}else{
if(_42>0){
if(!_3b||_42<_3c){
_3c=_42;
_3b=_41;
}
if(!_3d||_42>=_3e){
_3e=_42;
_3d=_41;
}
}
}
}
if(_41.nodeName.toUpperCase()!="SELECT"){
_3f(_41);
}
});
};
if(_32(_38)){
_3f(_38);
}
return {first:_39,last:_3a,lowest:_3b,highest:_3d};
};
dijit.getFirstInTabbingOrder=function(_43){
var _44=dijit._getTabNavigable(dojo.byId(_43));
return _44.lowest?_44.lowest:_44.first;
};
dijit.getLastInTabbingOrder=function(_45){
var _46=dijit._getTabNavigable(dojo.byId(_45));
return _46.last?_46.last:_46.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
})();
}
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};
}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(_47){
var _48=dojo.doc,_49=_47.mark;
if(_49){
if(dojo.global.getSelection){
var sel=dojo.global.getSelection();
if(sel&&sel.removeAllRanges){
if(_49.pRange){
var r=_49;
var n=r.node;
n.selectionStart=r.start;
n.selectionEnd=r.end;
}else{
sel.removeAllRanges();
sel.addRange(_49);
}
}else{
console.warn("No idea how to restore selection for this browser!");
}
}else{
if(_48.selection&&_49){
var rg;
if(_49.pRange){
rg=_49.range;
}else{
if(dojo.isArray(_49)){
rg=_48.body.createControlRange();
dojo.forEach(_49,function(n){
rg.addElement(n);
});
}else{
rg=_48.body.createTextRange();
rg.moveToBookmark(_49);
}
}
rg.select();
}
}
}
},getFocus:function(_4a,_4b){
var _4c=!dijit._curFocus||(_4a&&dojo.isDescendant(dijit._curFocus,_4a.domNode))?dijit._prevFocus:dijit._curFocus;
return {node:_4c,bookmark:(_4c==dijit._curFocus)&&dojo.withGlobal(_4b||dojo.global,dijit.getBookmark),openedForWindow:_4b};
},focus:function(_4d){
if(!_4d){
return;
}
var _4e="node" in _4d?_4d.node:_4d,_4f=_4d.bookmark,_50=_4d.openedForWindow,_51=_4f?_4f.isCollapsed:false;
if(_4e){
var _52=(_4e.tagName.toLowerCase()=="iframe")?_4e.contentWindow:_4e;
if(_52&&_52.focus){
try{
_52.focus();
}
catch(e){
}
}
dijit._onFocusNode(_4e);
}
if(_4f&&dojo.withGlobal(_50||dojo.global,dijit.isCollapsed)&&!_51){
if(_50){
_50.focus();
}
try{
dojo.withGlobal(_50||dojo.global,dijit.moveToBookmark,null,[_4f]);
}
catch(e2){
}
}
},_activeStack:[],registerIframe:function(_53){
return dijit.registerWin(_53.contentWindow,_53);
},unregisterIframe:function(_54){
dijit.unregisterWin(_54);
},registerWin:function(_55,_56){
var _57=function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){
return;
}
dijit._onTouchNode(_56||evt.target||evt.srcElement,"mouse");
};
var doc=dojo.isIE?_55.document.documentElement:_55.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onmousedown",_57);
var _58=function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){
dijit._onFocusNode(_56||evt.srcElement);
}else{
dijit._onTouchNode(_56||evt.srcElement);
}
};
doc.attachEvent("onactivate",_58);
var _59=function(evt){
dijit._onBlurNode(_56||evt.srcElement);
};
doc.attachEvent("ondeactivate",_59);
return function(){
doc.detachEvent("onmousedown",_57);
doc.detachEvent("onactivate",_58);
doc.detachEvent("ondeactivate",_59);
doc=null;
};
}else{
doc.addEventListener("mousedown",_57,true);
var _5a=function(evt){
dijit._onFocusNode(_56||evt.target);
};
doc.addEventListener("focus",_5a,true);
var _5b=function(evt){
dijit._onBlurNode(_56||evt.target);
};
doc.addEventListener("blur",_5b,true);
return function(){
doc.removeEventListener("mousedown",_57,true);
doc.removeEventListener("focus",_5a,true);
doc.removeEventListener("blur",_5b,true);
doc=null;
};
}
}
},unregisterWin:function(_5c){
_5c&&_5c();
},_onBlurNode:function(_5d){
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(_5e,by){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _5f=[];
try{
while(_5e){
var _60=dojo.attr(_5e,"dijitPopupParent");
if(_60){
_5e=dijit.byId(_60).domNode;
}else{
if(_5e.tagName&&_5e.tagName.toLowerCase()=="body"){
if(_5e===dojo.body()){
break;
}
_5e=dojo.window.get(_5e.ownerDocument).frameElement;
}else{
var id=_5e.getAttribute&&_5e.getAttribute("widgetId"),_61=id&&dijit.byId(id);
if(_61&&!(by=="mouse"&&_61.get("disabled"))){
_5f.unshift(id);
}
_5e=_5e.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_5f,by);
},_onFocusNode:function(_62){
if(!_62){
return;
}
if(_62.nodeType==9){
return;
}
dijit._onTouchNode(_62);
if(_62==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_62;
dojo.publish("focusNode",[_62]);
},_setStack:function(_63,by){
var _64=dijit._activeStack;
dijit._activeStack=_63;
for(var _65=0;_65<Math.min(_64.length,_63.length);_65++){
if(_64[_65]!=_63[_65]){
break;
}
}
var _66;
for(var i=_64.length-1;i>=_65;i--){
_66=dijit.byId(_64[i]);
if(_66){
_66._focused=false;
_66._hasBeenBlurred=true;
if(_66._onBlur){
_66._onBlur(by);
}
dojo.publish("widgetBlur",[_66,by]);
}
}
for(i=_65;i<_63.length;i++){
_66=dijit.byId(_63[i]);
if(_66){
_66._focused=true;
if(_66._onFocus){
_66._onFocus(by);
}
dojo.publish("widgetFocus",[_66,by]);
}
}
}});
dojo.addOnLoad(function(){
var _67=dijit.registerWin(window);
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.unregisterWin(_67);
_67=null;
});
}
});
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_68){
this.pairs=[];
this.returnWrappers=_68||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(_69,_6a,_6b,_6c,_6d){
this.pairs[((_6d)?"unshift":"push")]([_69,_6a,_6b,_6c]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var _6e=this.pairs[i];
if(_6e[1].apply(this,arguments)){
if((_6e[3])||(this.returnWrappers)){
return _6e[2];
}else{
return _6e[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(_6f){
for(var i=0;i<this.pairs.length;i++){
var _70=this.pairs[i];
if(_70[0]==_6f){
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(_71,pos,_72,_73){
var _74=dojo.map(_72,function(_75){
var c={corner:_75,pos:{x:pos.x,y:pos.y}};
if(_73){
c.pos.x+=_75.charAt(1)=="L"?_73.x:-_73.x;
c.pos.y+=_75.charAt(0)=="T"?_73.y:-_73.y;
}
return c;
});
return dijit._place(_71,_74);
};
dijit._place=function(_76,_77,_78){
var _79=dojo.window.getBox();
if(!_76.parentNode||String(_76.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(_76);
}
var _7a=null;
dojo.some(_77,function(_7b){
var _7c=_7b.corner;
var pos=_7b.pos;
if(_78){
_78(_76,_7b.aroundCorner,_7c);
}
var _7d=_76.style;
var _7e=_7d.display;
var _7f=_7d.visibility;
_7d.visibility="hidden";
_7d.display="";
var mb=dojo.marginBox(_76);
_7d.display=_7e;
_7d.visibility=_7f;
var _80=Math.max(_79.l,_7c.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_81=Math.max(_79.t,_7c.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_82=Math.min(_79.l+_79.w,_7c.charAt(1)=="L"?(_80+mb.w):pos.x),_83=Math.min(_79.t+_79.h,_7c.charAt(0)=="T"?(_81+mb.h):pos.y),_84=_82-_80,_85=_83-_81,_86=(mb.w-_84)+(mb.h-_85);
if(_7a==null||_86<_7a.overflow){
_7a={corner:_7c,aroundCorner:_7b.aroundCorner,x:_80,y:_81,w:_84,h:_85,overflow:_86};
}
return !_86;
});
_76.style.left=_7a.x+"px";
_76.style.top=_7a.y+"px";
if(_7a.overflow&&_78){
_78(_76,_7a.aroundCorner,_7a.corner);
}
return _7a;
};
dijit.placeOnScreenAroundNode=function(_87,_88,_89,_8a){
_88=dojo.byId(_88);
var _8b=_88.style.display;
_88.style.display="";
var _8c=dojo.position(_88,true);
_88.style.display=_8b;
return dijit._placeOnScreenAroundRect(_87,_8c.x,_8c.y,_8c.w,_8c.h,_89,_8a);
};
dijit.placeOnScreenAroundRectangle=function(_8d,_8e,_8f,_90){
return dijit._placeOnScreenAroundRect(_8d,_8e.x,_8e.y,_8e.width,_8e.height,_8f,_90);
};
dijit._placeOnScreenAroundRect=function(_91,x,y,_92,_93,_94,_95){
var _96=[];
for(var _97 in _94){
_96.push({aroundCorner:_97,corner:_94[_97],pos:{x:x+(_97.charAt(1)=="L"?0:_92),y:y+(_97.charAt(0)=="T"?0:_93)}});
}
return dijit._place(_91,_96,_95);
};
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(_98,_99,_9a,_9b){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
dijit.getPopupAroundAlignment=function(_9c,_9d){
var _9e={};
dojo.forEach(_9c,function(pos){
switch(pos){
case "after":
_9e[_9d?"BR":"BL"]=_9d?"BL":"BR";
break;
case "before":
_9e[_9d?"BL":"BR"]=_9d?"BR":"BL";
break;
case "below":
_9e[_9d?"BL":"BR"]=_9d?"TL":"TR";
_9e[_9d?"BR":"BL"]=_9d?"TR":"TL";
break;
case "above":
default:
_9e[_9d?"TL":"TR"]=_9d?"BL":"BR";
_9e[_9d?"TR":"TL"]=_9d?"BR":"BL";
break;
}
});
return _9e;
};
}
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,moveOffScreen:function(_9f){
var _a0=_9f.declaredClass?_9f._popupWrapper:(dojo.hasClass(_9f.parentNode,"dijitPopup")&&_9f.parentNode),_a1=_9f.domNode||_9f;
if(_a0){
dojo.style(_a0,{visibility:"hidden",top:"-9999px"});
}else{
_a0=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"},role:"presentation"},dojo.body());
_a0.appendChild(_a1);
var s=_a1.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
if(_9f.declaredClass){
_9f._popupWrapper=_a0;
dojo.connect(_9f,"destroy",function(){
dojo.destroy(_a0);
delete _9f._popupWrapper;
});
}
}
},getTopPopup:function(){
var _a2=this._stack;
for(var pi=_a2.length-1;pi>0&&_a2[pi].parent===_a2[pi-1].widget;pi--){
}
return _a2[pi];
},open:function(_a3){
var _a4=this._stack,_a5=_a3.popup,_a6=_a3.orient||((_a3.parent?_a3.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_a7=_a3.around,id=(_a3.around&&_a3.around.id)?(_a3.around.id+"_dropdown"):("popup_"+this._idGen++);
if(!_a5._popupWrapper){
this.moveOffScreen(_a5);
}
var _a8=_a5._popupWrapper;
dojo.attr(_a8,{id:id,style:{zIndex:this._beginZIndex+_a4.length},"class":"dijitPopup "+(_a5.baseClass||_a5["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_a3.parent?_a3.parent.id:""});
if(dojo.isIE||dojo.isMoz){
if(!_a5.bgIframe){
_a5.bgIframe=new dijit.BackgroundIframe(_a8);
}
}
var _a9=_a7?dijit.placeOnScreenAroundElement(_a8,_a7,_a6,_a5.orient?dojo.hitch(_a5,"orient"):null):dijit.placeOnScreen(_a8,_a3,_a6=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_a3.padding);
_a8.style.visibility="visible";
_a5.domNode.style.visibility="visible";
var _aa=[];
_aa.push(dojo.connect(_a8,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&_a3.onCancel){
dojo.stopEvent(evt);
_a3.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _ab=this.getTopPopup();
if(_ab&&_ab.onCancel){
_ab.onCancel();
}
}
}
}));
if(_a5.onCancel){
_aa.push(dojo.connect(_a5,"onCancel",_a3.onCancel));
}
_aa.push(dojo.connect(_a5,_a5.onExecute?"onExecute":"onChange",this,function(){
var _ac=this.getTopPopup();
if(_ac&&_ac.onExecute){
_ac.onExecute();
}
}));
_a4.push({widget:_a5,parent:_a3.parent,onExecute:_a3.onExecute,onCancel:_a3.onCancel,onClose:_a3.onClose,handlers:_aa});
if(_a5.onOpen){
_a5.onOpen(_a9);
}
return _a9;
},close:function(_ad){
var _ae=this._stack;
while(dojo.some(_ae,function(_af){
return _af.widget==_ad;
})){
var top=_ae.pop(),_b0=top.widget,_b1=top.onClose;
if(_b0.onClose){
_b0.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(_b0&&_b0.domNode){
this.moveOffScreen(_b0);
}
if(_b1){
_b1();
}
}
}};
dijit._frames=new function(){
var _b2=[];
this.pop=function(){
var _b3;
if(_b2.length){
_b3=_b2.pop();
_b3.style.display="";
}else{
if(dojo.isIE){
var _b4=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var _b5="<iframe src='"+_b4+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_b3=dojo.doc.createElement(_b5);
}else{
_b3=dojo.create("iframe");
_b3.src="javascript:\"\"";
_b3.className="dijitBackgroundIframe";
dojo.style(_b3,"opacity",0.1);
}
_b3.tabIndex=-1;
dijit.setWaiRole(_b3,"presentation");
}
return _b3;
};
this.push=function(_b6){
_b6.style.display="none";
_b2.push(_b6);
};
}();
dijit.BackgroundIframe=function(_b7){
if(!_b7.id){
throw new Error("no id");
}
if(dojo.isIE||dojo.isMoz){
var _b8=dijit._frames.pop();
_b7.appendChild(_b8);
if(dojo.isIE<7){
this.resize(_b7);
this._conn=dojo.connect(_b7,"onresize",this,function(){
this.resize(_b7);
});
}else{
dojo.style(_b8,{width:"100%",height:"100%"});
}
this.iframe=_b8;
}
};
dojo.extend(dijit.BackgroundIframe,{resize:function(_b9){
if(this.iframe&&dojo.isIE<7){
dojo.style(this.iframe,{width:_b9.offsetWidth+"px",height:_b9.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(_ba,pos){
dojo.window.scrollIntoView(_ba,pos);
};
}
if(!dojo._hasResource["dojo.uacss"]){
dojo._hasResource["dojo.uacss"]=true;
dojo.provide("dojo.uacss");
(function(){
var d=dojo,_bb=d.doc.documentElement,ie=d.isIE,_bc=d.isOpera,maj=Math.floor,ff=d.isFF,_bd=d.boxModel.replace(/-/,""),_be={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_bc,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};
_be["dj_"+_bd]=true;
var _bf="";
for(var clz in _be){
if(_be[clz]){
_bf+=clz+" ";
}
}
_bb.className=d.trim(_bb.className+" "+_bf);
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
var _c0="dj_rtl dijitRtl "+_bf.replace(/ /g,"-rtl ");
_bb.className=d.trim(_bb.className+" "+_c0);
}
});
})();
}
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,_c1,_c2,_c3,obj,_c4,_c5,_c6){
if(obj!=this._obj){
this.stop();
this._initialDelay=_c5||500;
this._subsequentDelay=_c4||0.9;
this._minDelay=_c6||10;
this._obj=obj;
this._evt=evt;
this._node=_c2;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_c1,_c3);
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(_c7,_c8,_c9,_ca,_cb,_cc,_cd){
if(_c8.keyCode){
_c8.charOrCode=_c8.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_c8.charCode){
_c8.charOrCode=String.fromCharCode(_c8.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(_c7,"onkeypress",this,function(evt){
if(evt.charOrCode==_c8.charOrCode&&(_c8.ctrlKey===undefined||_c8.ctrlKey==evt.ctrlKey)&&(_c8.altKey===undefined||_c8.altKey==evt.altKey)&&(_c8.metaKey===undefined||_c8.metaKey==(evt.metaKey||false))&&(_c8.shiftKey===undefined||_c8.shiftKey==evt.shiftKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_c9,_c7,_ca,_c8,_cb,_cc,_cd);
}else{
if(dijit.typematic._obj==_c8){
dijit.typematic.stop();
}
}
}),dojo.connect(_c7,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_c8){
dijit.typematic.stop();
}
})];
},addMouseListener:function(_ce,_cf,_d0,_d1,_d2,_d3){
var dc=dojo.connect;
return [dc(_ce,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_cf,_ce,_d0,_ce,_d1,_d2,_d3);
}),dc(_ce,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(_ce,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(_ce,"mousemove",this,function(evt){
evt.preventDefault();
}),dc(_ce,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_cf,_ce,_d0,_ce,_d1,_d2,_d3);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_d4,_d5,_d6,_d7,_d8,_d9,_da,_db){
return this.addKeyListener(_d5,_d6,_d7,_d8,_d9,_da,_db).concat(this.addMouseListener(_d4,_d7,_d8,_d9,_da,_db));
}};
}
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 _dc=cs.backgroundImage;
var _dd=(cs.borderTopColor==cs.borderRightColor)||(_dc!=null&&(_dc=="none"||_dc=="url(invalid-url:)"));
dojo[_dd?"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,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(_de,_df){
var _e0=this.getWaiRole(_de);
return _df?(_e0.indexOf(_df)>-1):(_e0.length>0);
},getWaiRole:function(_e1){
return dojo.trim((dojo.attr(_e1,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(_e2,_e3){
var _e4=dojo.attr(_e2,"role")||"";
if(!this._XhtmlRoles.test(_e4)){
dojo.attr(_e2,"role",_e3);
}else{
if((" "+_e4+" ").indexOf(" "+_e3+" ")<0){
var _e5=dojo.trim(_e4.replace(this._XhtmlRoles,""));
var _e6=dojo.trim(_e4.replace(_e5,""));
dojo.attr(_e2,"role",_e6+(_e6?" ":"")+_e3);
}
}
},removeWaiRole:function(_e7,_e8){
var _e9=dojo.attr(_e7,"role");
if(!_e9){
return;
}
if(_e8){
var t=dojo.trim((" "+_e9+" ").replace(" "+_e8+" "," "));
dojo.attr(_e7,"role",t);
}else{
_e7.removeAttribute("role");
}
},hasWaiState:function(_ea,_eb){
return _ea.hasAttribute?_ea.hasAttribute("aria-"+_eb):!!_ea.getAttribute("aria-"+_eb);
},getWaiState:function(_ec,_ed){
return _ec.getAttribute("aria-"+_ed)||"";
},setWaiState:function(_ee,_ef,_f0){
_ee.setAttribute("aria-"+_ef,_f0);
},removeWaiState:function(_f1,_f2){
_f1.removeAttribute("aria-"+_f2);
}});
}
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.require("dijit._base");
dojo.connect(dojo,"_connect",function(_f3,_f4){
if(_f3&&dojo.isFunction(_f3._onConnect)){
_f3._onConnect(_f4);
}
});
dijit._connectOnUseEventHandler=function(_f5){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
(function(){
var _f6=function(evt){
dijit._lastKeyDownNode=evt.srcElement;
};
dojo.doc.attachEvent("onkeydown",_f6);
dojo.addOnWindowUnload(function(){
dojo.doc.detachEvent("onkeydown",_f6);
});
})();
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
var _f7={},_f8=function(_f9){
var dc=_f9.declaredClass;
if(!_f7[dc]){
var r=[],_fa,_fb=_f9.constructor.prototype;
for(var _fc in _fb){
if(dojo.isFunction(_fb[_fc])&&(_fa=_fc.match(/^_set([a-zA-Z]*)Attr$/))&&_fa[1]){
r.push(_fa[1].charAt(0).toLowerCase()+_fa[1].substr(1));
}
}
_f7[dc]=r;
}
return _f7[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_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,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_fd,_fe){
this.create(_fd,_fe);
},create:function(_ff,_100){
this.srcNodeRef=dojo.byId(_100);
this._connects=[];
this._subscribes=[];
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];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_ff){
this.params=_ff;
dojo.mixin(this,_ff);
}
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 _101=this.srcNodeRef;
if(_101&&_101.parentNode){
_101.parentNode.replaceChild(this.domNode,_101);
}
for(attr in this.params){
this._onConnect(attr);
}
}
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 _102=function(attr,_103){
if((_103.params&&attr in _103.params)||_103[attr]){
_103.set(attr,_103[attr]);
}
};
for(var attr in this.attributeMap){
_102(attr,this);
}
dojo.forEach(_f8(this),function(a){
if(!(a in this.attributeMap)){
_102(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
if(this.baseClass){
var _104=this.baseClass.split(" ");
if(!this.isLeftToRight()){
_104=_104.concat(dojo.map(_104,function(name){
return name+"Rtl";
}));
}
dojo.addClass(this.domNode,_104);
}
},startup:function(){
this._started=true;
},destroyRecursive:function(_105){
this._beingDestroyed=true;
this.destroyDescendants(_105);
this.destroy(_105);
},destroy:function(_106){
this._beingDestroyed=true;
this.uninitialize();
var d=dojo,dfe=d.forEach,dun=d.unsubscribe;
dfe(this._connects,function(_107){
dfe(_107,d.disconnect);
});
dfe(this._subscribes,function(_108){
dun(_108);
});
dfe(this._supportingWidgets||[],function(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
});
this.destroyRendering(_106);
dijit.registry.remove(this.id);
this._destroyed=true;
},destroyRendering:function(_109){
if(this.bgIframe){
this.bgIframe.destroy(_109);
delete this.bgIframe;
}
if(this.domNode){
if(_109){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_109){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_10a){
dojo.forEach(this.getChildren(),function(_10b){
if(_10b.destroyRecursive){
_10b.destroyRecursive(_10a);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_10c){
if(_10c in this._deferredConnects){
var _10d=this[this._deferredConnects[_10c]||"domNode"];
this.connect(_10d,_10c.toLowerCase(),_10c);
delete this._deferredConnects[_10c];
}
},_setClassAttr:function(_10e){
var _10f=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_10f,this["class"]);
this["class"]=_10e;
dojo.addClass(_10f,_10e);
},_setStyleAttr:function(_110){
var _111=this[this.attributeMap.style||"domNode"];
if(dojo.isObject(_110)){
dojo.style(_111,_110);
}else{
if(_111.style.cssText){
_111.style.cssText+="; "+_110;
}else{
_111.style.cssText=_110;
}
}
this.style=_110;
},setAttribute:function(attr,_112){
dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");
this.set(attr,_112);
},_attrToDom:function(attr,_113){
var _114=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_114)?_114:[_114],function(_115){
var _116=this[_115.node||_115||"domNode"];
var type=_115.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_113)){
_113=dojo.hitch(this,_113);
}
var _117=_115.attribute?_115.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);
dojo.attr(_116,_117,_113);
break;
case "innerText":
_116.innerHTML="";
_116.appendChild(dojo.doc.createTextNode(_113));
break;
case "innerHTML":
_116.innerHTML=_113;
break;
case "class":
dojo.removeClass(_116,this[attr]);
dojo.addClass(_116,_113);
break;
}
},this);
this[attr]=_113;
},attr:function(name,_118){
if(dojo.config.isDebug){
var _119=arguments.callee._ach||(arguments.callee._ach={}),_11a=(arguments.callee.caller||"unknown caller").toString();
if(!_119[_11a]){
dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_11a,"","2.0");
_119[_11a]=true;
}
}
var args=arguments.length;
if(args>=2||typeof name==="object"){
return this.set.apply(this,arguments);
}else{
return this.get(name);
}
},get:function(name){
var _11b=this._getAttrNames(name);
return this[_11b.g]?this[_11b.g]():this[name];
},set:function(name,_11c){
if(typeof name==="object"){
for(var x in name){
this.set(x,name[x]);
}
return this;
}
var _11d=this._getAttrNames(name);
if(this[_11d.s]){
var _11e=this[_11d.s].apply(this,Array.prototype.slice.call(arguments,1));
}else{
if(name in this.attributeMap){
this._attrToDom(name,_11c);
}
var _11f=this[name];
this[name]=_11c;
}
return _11e||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"});
},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):[];
},nodesWithKeyClick:["input","button"],connect:function(obj,_120,_121){
var d=dojo,dc=d._connect,_122=[];
if(_120=="ondijitclick"){
if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){
var m=d.hitch(this,_121);
_122.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;
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);
}
}));
}
_120="onclick";
}
_122.push(dc(obj,_120,this,_121));
this._connects.push(_122);
return _122;
},disconnect:function(_123){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_123){
dojo.forEach(_123,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},subscribe:function(_124,_125){
var d=dojo,_126=d.subscribe(_124,this,_125);
this._subscribes.push(_126);
return _126;
},unsubscribe:function(_127){
for(var i=0;i<this._subscribes.length;i++){
if(this._subscribes[i]==_127){
dojo.unsubscribe(_127);
this._subscribes.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_128,_129){
if(_128.declaredClass&&_128.addChild){
_128.addChild(this,_129);
}else{
dojo.place(this.domNode,_128,_129);
}
return this;
},_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.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(_12a,map,_12b,_12c){
_12c=_12c||dojo.global;
_12b=_12b?dojo.hitch(_12c,_12b):function(v){
return v;
};
return _12a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_12d,key,_12e){
var _12f=dojo.getObject(key,false,map);
if(_12e){
_12f=dojo.getObject(_12e,false,_12c).call(_12c,_12f,key);
}
return _12b(_12f,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.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_130,_131){
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 _132=dojo.date.stamp._isoRegExp.exec(_130),_133=null;
if(_132){
_132.shift();
if(_132[1]){
_132[1]--;
}
if(_132[6]){
_132[6]*=1000;
}
if(_131){
_131=new Date(_131);
dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _131["get"+prop]();
}),function(_134,_135){
_132[_135]=_132[_135]||_134;
});
}
_133=new Date(_132[0]||1970,_132[1]||0,_132[2]||1,_132[3]||0,_132[4]||0,_132[5]||0,_132[6]||0);
if(_132[0]<100){
_133.setFullYear(_132[0]||1970);
}
var _136=0,_137=_132[7]&&_132[7].charAt(0);
if(_137!="Z"){
_136=((_132[8]||0)*60)+(Number(_132[9])||0);
if(_137!="-"){
_136*=-1;
}
}
if(_137){
_136-=_133.getTimezoneOffset();
}
if(_136){
_133.setTime(_133.getTime()+_136*60000);
}
}
return _133;
};
dojo.date.stamp.toISOString=function(_138,_139){
var _13a=function(n){
return (n<10)?"0"+n:n;
};
_139=_139||{};
var _13b=[],_13c=_139.zulu?"getUTC":"get",date="";
if(_139.selector!="time"){
var year=_138[_13c+"FullYear"]();
date=["0000".substr((year+"").length)+year,_13a(_138[_13c+"Month"]()+1),_13a(_138[_13c+"Date"]())].join("-");
}
_13b.push(date);
if(_139.selector!="date"){
var time=[_13a(_138[_13c+"Hours"]()),_13a(_138[_13c+"Minutes"]()),_13a(_138[_13c+"Seconds"]())].join(":");
var _13d=_138[_13c+"Milliseconds"]();
if(_139.milliseconds){
time+="."+(_13d<100?"0":"")+_13a(_13d);
}
if(_139.zulu){
time+="Z";
}else{
if(_139.selector!="time"){
var _13e=_138.getTimezoneOffset();
var _13f=Math.abs(_13e);
time+=(_13e>0?"-":"+")+_13a(Math.floor(_13f/60))+":"+_13a(_13f%60);
}
}
_13b.push(time);
}
return _13b.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;
this._attrName=d._scopeName+"Type";
this._query="["+this._attrName+"]";
function _140(_141){
if(d.isString(_141)){
return "string";
}
if(typeof _141=="number"){
return "number";
}
if(typeof _141=="boolean"){
return "boolean";
}
if(d.isFunction(_141)){
return "function";
}
if(d.isArray(_141)){
return "array";
}
if(_141 instanceof Date){
return "date";
}
if(_141 instanceof d._Url){
return "url";
}
return "object";
};
function _142(_143,type){
switch(type){
case "string":
return _143;
case "number":
return _143.length?Number(_143):NaN;
case "boolean":
return typeof _143=="boolean"?_143:!(_143.toLowerCase()=="false");
case "function":
if(d.isFunction(_143)){
_143=_143.toString();
_143=d.trim(_143.substring(_143.indexOf("{")+1,_143.length-1));
}
try{
if(_143===""||_143.search(/[^\w\.]+/i)!=-1){
return new Function(_143);
}else{
return d.getObject(_143,false)||new Function(_143);
}
}
catch(e){
return new Function();
}
case "array":
return _143?_143.split(/\s*,\s*/):[];
case "date":
switch(_143){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_143);
}
case "url":
return d.baseUrl+_143;
default:
return d.fromJson(_143);
}
};
var _144={};
dojo.connect(dojo,"extend",function(){
_144={};
});
function _145(_146){
if(!_144[_146]){
var cls=d.getObject(_146);
if(!cls){
return null;
}
var _147=cls.prototype;
var _148={},_149={};
for(var name in _147){
if(name.charAt(0)=="_"){
continue;
}
if(name in _149){
continue;
}
var _14a=_147[name];
_148[name]=_140(_14a);
}
_144[_146]={cls:cls,params:_148};
}
return _144[_146];
};
this._functionFromScript=function(_14b){
var _14c="";
var _14d="";
var _14e=_14b.getAttribute("args");
if(_14e){
d.forEach(_14e.split(/\s*,\s*/),function(part,idx){
_14c+="var "+part+" = arguments["+idx+"]; ";
});
}
var _14f=_14b.getAttribute("with");
if(_14f&&_14f.length){
d.forEach(_14f.split(/\s*,\s*/),function(part){
_14c+="with("+part+"){";
_14d+="}";
});
}
return new Function(_14c+_14b.innerHTML+_14d);
};
this.instantiate=function(_150,_151,args){
var _152=[],dp=dojo.parser;
_151=_151||{};
args=args||{};
d.forEach(_150,function(obj){
if(!obj){
return;
}
var node,type,_153,_154,_155;
if(obj.node){
node=obj.node;
type=obj.type;
_153=obj.clsInfo||(type&&_145(type));
_154=_153&&_153.cls;
_155=obj.scripts;
}else{
node=obj;
type=dp._attrName in _151?_151[dp._attrName]:node.getAttribute(dp._attrName);
_153=type&&_145(type);
_154=_153&&_153.cls;
_155=(_154&&(_154._noScript||_154.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));
}
if(!_153){
throw new Error("Could not load class '"+type);
}
var _156={},_157=node.attributes;
if(args.defaults){
dojo.mixin(_156,args.defaults);
}
if(obj.inherited){
dojo.mixin(_156,obj.inherited);
}
for(var name in _153.params){
var item=name in _151?{value:_151[name],specified:true}:_157.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _158=item.value;
switch(name){
case "class":
_158="className" in _151?_151.className:node.className;
break;
case "style":
_158="style" in _151?_151.style:(node.style&&node.style.cssText);
}
var _159=_153.params[name];
if(typeof _158=="string"){
_156[name]=_142(_158,_159);
}else{
_156[name]=_158;
}
}
var _15a=[],_15b=[];
d.forEach(_155,function(_15c){
node.removeChild(_15c);
var _15d=_15c.getAttribute("event"),type=_15c.getAttribute("type"),nf=d.parser._functionFromScript(_15c);
if(_15d){
if(type=="dojo/connect"){
_15a.push({event:_15d,func:nf});
}else{
_156[_15d]=nf;
}
}else{
_15b.push(nf);
}
});
var _15e=_154.markupFactory||_154.prototype&&_154.prototype.markupFactory;
var _15f=_15e?_15e(_156,node,_154):new _154(_156,node);
_152.push(_15f);
var _160=node.getAttribute("jsId");
if(_160){
d.setObject(_160,_15f);
}
d.forEach(_15a,function(_161){
d.connect(_15f,_161.event,null,_161.func);
});
d.forEach(_15b,function(func){
func.call(_15f);
});
});
if(!_151._started){
d.forEach(_152,function(_162){
if(!args.noStart&&_162&&_162.startup&&!_162._started&&(!_162.getParent||!_162.getParent())){
_162.startup();
}
});
}
return _152;
};
this.parse=function(_163,args){
var root;
if(!args&&_163&&_163.rootNode){
args=_163;
root=args.rootNode;
}else{
root=_163;
}
var _164=this._attrName;
function scan(_165,list){
var _166=dojo.clone(_165.inherited);
dojo.forEach(["dir","lang"],function(name){
var val=_165.node.getAttribute(name);
if(val){
_166[name]=val;
}
});
var _167=_165.clsInfo&&!_165.clsInfo.cls.prototype._noScript?_165.scripts:null;
var _168=!_165.clsInfo||!_165.clsInfo.cls.prototype.stopParser;
for(var _169=_165.node.firstChild;_169;_169=_169.nextSibling){
if(_169.nodeType==1){
var type=_168&&_169.getAttribute(_164);
if(type){
var _16a={"type":type,clsInfo:_145(type),node:_169,scripts:[],inherited:_166};
list.push(_16a);
scan(_16a,list);
}else{
if(_167&&_169.nodeName.toLowerCase()=="script"){
type=_169.getAttribute("type");
if(type&&/^dojo\/\w/i.test(type)){
_167.push(_169);
}
}else{
if(_168){
scan({node:_169,inherited:_166},list);
}
}
}
}
}
};
var list=[];
scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);
return this.instantiate(list,null,args);
};
}();
(function(){
var _16b=function(){
if(dojo.config.parseOnLoad){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_16b);
}else{
dojo._loaders.unshift(_16b);
}
})();
}
if(!dojo._hasResource["dojo.cache"]){
dojo._hasResource["dojo.cache"]=true;
dojo.provide("dojo.cache");
(function(){
var _16c={};
dojo.cache=function(_16d,url,_16e){
if(typeof _16d=="string"){
var _16f=dojo.moduleUrl(_16d,url);
}else{
_16f=_16d;
_16e=url;
}
var key=_16f.toString();
var val=_16e;
if(_16e!=undefined&&!dojo.isString(_16e)){
val=("value" in _16e?_16e.value:undefined);
}
var _170=_16e&&_16e.sanitize?true:false;
if(typeof val=="string"){
val=_16c[key]=_170?dojo.cache._sanitize(val):val;
}else{
if(val===null){
delete _16c[key];
}else{
if(!(key in _16c)){
val=dojo._getText(key);
_16c[key]=_170?dojo.cache._sanitize(val):val;
}
val=_16c[key];
}
}
return val;
};
dojo.cache._sanitize=function(val){
if(val){
val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _171=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_171){
val=_171[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=[];
},_stringRepl:function(tmpl){
var _172=this.declaredClass,_173=this;
return dojo.string.substitute(tmpl,this,function(_174,key){
if(key.charAt(0)=="!"){
_174=dojo.getObject(key.substr(1),false,_173);
}
if(typeof _174=="undefined"){
throw new Error(_172+" template:"+key);
}
if(_174==null){
return "";
}
return key.charAt(0)=="!"?_174:_174.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _175=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_175)){
node=dojo._toDom(this._stringRepl(_175));
if(node.nodeType!=1){
throw new Error("Invalid template: "+_175);
}
}else{
node=_175.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var _176=dojo.parser,qry,attr;
if(_176._query!="[dojoType]"){
qry=_176._query;
attr=_176._attrName;
_176._query="[dojoType]";
_176._attrName="dojoType";
}
var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));
if(qry){
_176._query=qry;
_176._attrName=attr;
}
this._supportingWidgets=dijit.findWidgets(node);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_177){
var dest=this.containerNode;
if(_177&&dest){
while(_177.hasChildNodes()){
dest.appendChild(_177.firstChild);
}
}
},_attachTemplateNodes:function(_178,_179){
_179=_179||function(n,p){
return n.getAttribute(p);
};
var _17a=dojo.isArray(_178)?_178:(_178.all||_178.getElementsByTagName("*"));
var x=dojo.isArray(_178)?0:-1;
for(;x<_17a.length;x++){
var _17b=(x==-1)?_178:_17a[x];
if(this.widgetsInTemplate&&_179(_17b,"dojoType")){
continue;
}
var _17c=_179(_17b,"dojoAttachPoint");
if(_17c){
var _17d,_17e=_17c.split(/\s*,\s*/);
while((_17d=_17e.shift())){
if(dojo.isArray(this[_17d])){
this[_17d].push(_17b);
}else{
this[_17d]=_17b;
}
this._attachPoints.push(_17d);
}
}
var _17f=_179(_17b,"dojoAttachEvent");
if(_17f){
var _180,_181=_17f.split(/\s*,\s*/);
var trim=dojo.trim;
while((_180=_181.shift())){
if(_180){
var _182=null;
if(_180.indexOf(":")!=-1){
var _183=_180.split(":");
_180=trim(_183[0]);
_182=trim(_183[1]);
}else{
_180=trim(_180);
}
if(!_182){
_182=_180;
}
this.connect(_17b,_180,_182);
}
}
}
var role=_179(_17b,"waiRole");
if(role){
dijit.setWaiRole(_17b,role);
}
var _184=_179(_17b,"waiState");
if(_184){
dojo.forEach(_184.split(/\s*,\s*/),function(_185){
if(_185.indexOf("-")!=-1){
var pair=_185.split("-");
dijit.setWaiState(_17b,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(_186){
delete this[_186];
},this);
this._attachPoints=[];
this.inherited(arguments);
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_187,_188,_189){
var _18a=dijit._Templated._templateCache;
var key=_188||_187;
var _18b=_18a[key];
if(_18b){
try{
if(!_18b.ownerDocument||_18b.ownerDocument==dojo.doc){
return _18b;
}
}
catch(e){
}
dojo.destroy(_18b);
}
if(!_188){
_188=dojo.cache(_187,{sanitize:true});
}
_188=dojo.string.trim(_188);
if(_189||_188.match(/\$\{([^\}]+)\}/g)){
return (_18a[key]=_188);
}else{
var node=dojo._toDom(_188);
if(node.nodeType!=1){
throw new Error("Invalid template: "+_188);
}
return (_18a[key]=node);
}
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _18c=dijit._Templated._templateCache;
for(var key in _18c){
var _18d=_18c[key];
if(typeof _18d=="object"){
dojo.destroy(_18d);
}
delete _18c[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_18e){
if(_18e.reset){
_18e.reset();
}
});
},validate:function(){
var _18f=false;
return dojo.every(dojo.map(this.getDescendants(),function(_190){
_190._hasBeenBlurred=true;
var _191=_190.disabled||!_190.validate||_190.validate();
if(!_191&&!_18f){
dojo.window.scrollIntoView(_190.containerNode||_190.domNode);
_190.focus();
_18f=true;
}
return _191;
}),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(_192){
if(!_192.name){
return;
}
var _193=map[_192.name]||(map[_192.name]=[]);
_193.push(_192);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _194=map[name],_195=dojo.getObject(name,false,obj);
if(_195===undefined){
continue;
}
if(!dojo.isArray(_195)){
_195=[_195];
}
if(typeof _194[0].checked=="boolean"){
dojo.forEach(_194,function(w,i){
w.set("value",dojo.indexOf(_195,w.value)!=-1);
});
}else{
if(_194[0].multiple){
_194[0].set("value",_195);
}else{
dojo.forEach(_194,function(w,i){
w.set("value",_195[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(_196){
var name=_196.name;
if(!name||_196.disabled){
return;
}
var _197=_196.get("value");
if(typeof _196.checked=="boolean"){
if(/Radio/.test(_196.declaredClass)){
if(_197!==false){
dojo.setObject(name,_197,obj);
}else{
_197=dojo.getObject(name,false,obj);
if(_197===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_197!==false){
ary.push(_197);
}
}
}else{
var prev=dojo.getObject(name,false,obj);
if(typeof prev!="undefined"){
if(dojo.isArray(prev)){
prev.push(_197);
}else{
dojo.setObject(name,[prev,_197],obj);
}
}else{
dojo.setObject(name,_197,obj);
}
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_198){
return !_198.disabled&&_198.isValid&&!_198.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_199){
},_widgetChange:function(_19a){
var _19b=this._lastValidState;
if(!_19a||this._lastValidState===undefined){
_19b=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_19b;
}
}else{
if(_19a.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_19a);
},this);
if(!_19a.isValid()&&!_19a.get("disabled")){
this._invalidWidgets.push(_19a);
}
_19b=(this._invalidWidgets.length===0);
}
}
if(_19b!==this._lastValidState){
this._lastValidState=_19b;
this.onValidStateChange(_19b);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _19c=this;
var _19d=(this._changeConnections=[]);
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_19e){
_19d.push(_19c.connect(_19e,"validate",dojo.hitch(_19c,"_widgetChange",_19e)));
_19d.push(_19c.connect(_19e,"_setDisabledAttr",dojo.hitch(_19c,"_widgetChange",_19e)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit.form.Form"]){
dojo._hasResource["dijit.form.Form"]=true;
dojo.provide("dijit.form.Form");
dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},execute:function(_19f){
},onExecute:function(){
},_setEncTypeAttr:function(_1a0){
this.encType=_1a0;
dojo.attr(this.domNode,"encType",_1a0);
if(dojo.isIE){
this.domNode.encoding=_1a0;
}
},postCreate:function(){
if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){
var item=this.srcNodeRef.attributes.getNamedItem("encType");
if(item&&!item.specified&&(typeof item.value=="string")){
this.set("encType",item.value);
}
}
this.inherited(arguments);
},reset:function(e){
var faux={returnValue:true,preventDefault:function(){
this.returnValue=false;
},stopPropagation:function(){
},currentTarget:e?e.target:this.domNode,target:e?e.target:this.domNode};
if(!(this.onReset(faux)===false)&&faux.returnValue){
this.inherited(arguments,[]);
}
},onReset:function(e){
return true;
},_onReset:function(e){
this.reset(e);
dojo.stopEvent(e);
return false;
},_onSubmit:function(e){
var fp=dijit.form.Form.prototype;
if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){
dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");
this.onExecute();
this.execute(this.getValues());
}
if(this.onSubmit(e)===false){
dojo.stopEvent(e);
}
},onSubmit:function(e){
return this.isValid();
},submit:function(){
if(!(this.onSubmit()===false)){
this.containerNode.submit();
}
}});
}
if(!dojo._hasResource["dijit._CssStateMixin"]){
dojo._hasResource["dijit._CssStateMixin"]=true;
dojo.provide("dijit._CssStateMixin");
dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},postCreate:function(){
this.inherited(arguments);
dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){
this.connect(this.domNode,e,"_cssMouseEvent");
},this);
this.connect(this,"set",function(name,_1a1){
if(arguments.length>=2&&{disabled:true,readOnly:true,checked:true,selected:true}[name]){
this._setStateClass();
}
});
dojo.forEach(["_onFocus","_onBlur"],function(ap){
this.connect(this,ap,"_setStateClass");
},this);
for(var ap in this.cssStateNodes){
this._trackMouseState(this[ap],this.cssStateNodes[ap]);
}
this._setStateClass();
},_cssMouseEvent:function(_1a2){
if(!this.disabled){
switch(_1a2.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseleave":
case "mouseout":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _1a3=this.connect(dojo.body(),"onmouseup",function(){
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_1a3);
});
break;
}
this._setStateClass();
}
},_setStateClass:function(){
var _1a4=this.baseClass.split(" ");
function _1a5(_1a6){
_1a4=_1a4.concat(dojo.map(_1a4,function(c){
return c+_1a6;
}),"dijit"+_1a6);
};
if(!this.isLeftToRight()){
_1a5("Rtl");
}
if(this.checked){
_1a5("Checked");
}
if(this.state){
_1a5(this.state);
}
if(this.selected){
_1a5("Selected");
}
if(this.disabled){
_1a5("Disabled");
}else{
if(this.readOnly){
_1a5("ReadOnly");
}else{
if(this._active){
_1a5("Active");
}else{
if(this._hovering){
_1a5("Hover");
}
}
}
}
if(this._focused){
_1a5("Focused");
}
var tn=this.stateNode||this.domNode,_1a7={};
dojo.forEach(tn.className.split(" "),function(c){
_1a7[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _1a7[c];
});
}
dojo.forEach(_1a4,function(c){
_1a7[c]=true;
});
var _1a8=[];
for(var c in _1a7){
_1a8.push(c);
}
tn.className=_1a8.join(" ");
this._stateClasses=_1a4;
},_trackMouseState:function(node,_1a9){
var _1aa=false,_1ab=false,_1ac=false;
var self=this,cn=dojo.hitch(this,"connect",node);
function _1ad(){
var _1ae=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);
dojo.toggleClass(node,_1a9+"Hover",_1aa&&!_1ab&&!_1ae);
dojo.toggleClass(node,_1a9+"Active",_1ab&&!_1ae);
dojo.toggleClass(node,_1a9+"Focused",_1ac&&!_1ae);
};
cn("onmouseenter",function(){
_1aa=true;
_1ad();
});
cn("onmouseleave",function(){
_1aa=false;
_1ab=false;
_1ad();
});
cn("onmousedown",function(){
_1ab=true;
_1ad();
});
cn("onmouseup",function(){
_1ab=false;
_1ad();
});
cn("onfocus",function(){
_1ac=true;
_1ad();
});
cn("onblur",function(){
_1ac=false;
_1ad();
});
this.connect(this,"set",function(name,_1af){
if(name=="disabled"||name=="readOnly"){
_1ad();
}
});
}});
}
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(_1b0){
this.disabled=_1b0;
dojo.attr(this.focusNode,"disabled",_1b0);
if(this.valueNode){
dojo.attr(this.valueNode,"disabled",_1b0);
}
dijit.setWaiState(this.focusNode,"disabled",_1b0);
if(_1b0){
this._hovering=false;
this._active=false;
var _1b1="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";
dojo.forEach(dojo.isArray(_1b1)?_1b1:[_1b1],function(_1b2){
var node=this[_1b2];
if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){
node.setAttribute("tabIndex","-1");
}else{
node.removeAttribute("tabIndex");
}
},this);
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
},setDisabled:function(_1b3){
dojo.deprecated("setDisabled("+_1b3+") is deprecated. Use set('disabled',"+_1b3+") instead.","","2.0");
this.set("disabled",_1b3);
},_onFocus:function(e){
if(this.scrollOnFocus){
dojo.window.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
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(_1b4){
},_onChangeActive:false,_handleOnChange:function(_1b5,_1b6){
this._lastValue=_1b5;
if(this._lastValueReported==undefined&&(_1b6===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_1b5;
}
if((this.intermediateChanges||_1b6||_1b6===undefined)&&((typeof _1b5!=typeof this._lastValueReported)||this.compare(_1b5,this._lastValueReported)!=0)){
this._lastValueReported=_1b5;
if(this._onChangeActive){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
}
this._onChangeHandle=setTimeout(dojo.hitch(this,function(){
this._onChangeHandle=null;
this.onChange(_1b5);
}),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(_1b7){
dojo.deprecated("dijit.form._FormWidget:setValue("+_1b7+") is deprecated.  Use set('value',"+_1b7+") instead.","","2.0");
this.set("value",_1b7);
},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&&this.isFocusable()){
var _1b8=this.connect(dojo.body(),"onmouseup",function(){
if(this.isFocusable()){
this.focus();
}
this.disconnect(_1b8);
});
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1b9){
this.readOnly=_1b9;
dojo.attr(this.focusNode,"readOnly",_1b9);
dijit.setWaiState(this.focusNode,"readonly",_1b9);
},postCreate:function(){
this.inherited(arguments);
if(dojo.isIE){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_1ba,_1bb){
this.value=_1ba;
this._handleOnChange(_1ba,_1bb);
},_getValueAttr:function(){
return this._lastValue;
},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 _1bc=this.domNode;
var _1bd=_1bc.parentNode;
var _1be=_1bc.firstChild||_1bc;
var _1bf=_1be.style.filter;
var _1c0=this;
while(_1bd&&_1bd.clientHeight==0){
(function ping(){
var _1c1=_1c0.connect(_1bd,"onscroll",function(e){
_1c0.disconnect(_1c1);
_1be.style.filter=(new Date()).getMilliseconds();
setTimeout(function(){
_1be.style.filter=_1bf;
},0);
});
})();
_1bd=_1bd.parentNode;
}
}
}});
}
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}\" waiRole=\"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.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(_1c2,_1c3,_1c4){
var _1c5;
if(_1c2!==undefined){
_1c5=this.filter(_1c2);
if(typeof _1c4!="string"){
if(_1c5!==null&&((typeof _1c5!="number")||!isNaN(_1c5))){
_1c4=this.filter(this.format(_1c5,this.constraints));
}else{
_1c4="";
}
}
}
if(_1c4!=null&&_1c4!=undefined&&((typeof _1c4)!="number"||!isNaN(_1c4))&&this.textbox.value!=_1c4){
this.textbox.value=_1c4;
}
this._updatePlaceHolder();
this.inherited(arguments,[_1c5,_1c3]);
},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(_1c6){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");
this.set("displayedValue",_1c6);
},_setDisplayedValueAttr:function(_1c7){
if(_1c7===null||_1c7===undefined){
_1c7="";
}else{
if(typeof _1c7!="string"){
_1c7=String(_1c7);
}
}
this.textbox.value=_1c7;
this._setValueAttr(this.get("value"),undefined,_1c7);
},format:function(_1c8,_1c9){
return ((_1c8==null||_1c8==undefined)?"":(_1c8.toString?_1c8.toString():_1c8));
},parse:function(_1ca,_1cb){
return _1ca;
},_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 _1cc=this;
setTimeout(function(){
_1cc._handleOnChange(_1cc.get("value"),false);
},0);
}
this._refreshState();
},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 _1cd=this.domNode.getElementsByTagName("INPUT");
if(_1cd){
for(var i=0;i<_1cd.length;i++){
_1cd[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",this._onInput);
}else{
this.connect(this.textbox,"onkeydown",this._onInput);
this.connect(this.textbox,"onkeyup",this._onInput);
this.connect(this.textbox,"onpaste",this._onInput);
this.connect(this.textbox,"oncut",this._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 _1ce;
if(dojo.isIE){
var _1cf=dojo.doc.selection.createRange();
var _1d0=_1cf.parentElement();
_1ce=_1d0==this.textbox&&_1cf.text.length==0;
}else{
_1ce=this.textbox.selectionStart==this.textbox.selectionEnd;
}
if(_1ce){
dijit.selectInputText(this.textbox);
}
});
}
this._updatePlaceHolder();
this._refreshState();
this.inherited(arguments);
},reset:function(){
this.textbox.value="";
this.inherited(arguments);
}});
dijit.selectInputText=function(_1d1,_1d2,stop){
var _1d3=dojo.global;
var _1d4=dojo.doc;
_1d1=dojo.byId(_1d1);
if(isNaN(_1d2)){
_1d2=0;
}
if(isNaN(stop)){
stop=_1d1.value?_1d1.value.length:0;
}
dijit.focus(_1d1);
if(_1d4["selection"]&&dojo.body()["createTextRange"]){
if(_1d1.createTextRange){
var _1d5=_1d1.createTextRange();
with(_1d5){
collapse(true);
moveStart("character",-99999);
moveStart("character",_1d2);
moveEnd("character",stop-_1d2);
select();
}
}
}else{
if(_1d3["getSelection"]){
if(_1d1.setSelectionRange){
_1d1.setSelectionRange(_1d2,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);
},filter:function(_1d6){
if(_1d6){
_1d6=_1d6.replace(/\r/g,"");
}
return this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
if(dojo.isIE&&this.cols){
dojo.addClass(this.textbox,"dijitTextAreaCols");
}
},_previousValue:"",_onInput:function(e){
if(this.maxLength){
var _1d7=parseInt(this.maxLength);
var _1d8=this.textbox.value.replace(/\r/g,"");
var _1d9=_1d8.length-_1d7;
if(_1d9>0){
if(e){
dojo.stopEvent(e);
}
var _1da=this.textbox;
if(_1da.selectionStart){
var pos=_1da.selectionStart;
var cr=0;
if(dojo.isOpera){
cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;
}
this.textbox.value=_1d8.substring(0,pos-_1d9-cr)+_1d8.substring(pos-cr);
_1da.setSelectionRange(pos-_1d9,pos-_1d9);
}else{
if(dojo.doc.selection){
_1da.focus();
var _1db=dojo.doc.selection.createRange();
_1db.moveStart("character",-_1d9);
_1db.text="";
_1db.select();
}
}
}
this._previousValue=this.textbox.value;
}
this.inherited(arguments);
}});
}
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,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeight:function(_1dc){
var newH=_1dc.scrollHeight;
if(dojo.isIE){
newH+=_1dc.offsetHeight-_1dc.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_1dc).h:0);
}else{
if(dojo.isMoz){
newH+=_1dc.offsetHeight-_1dc.clientHeight;
}else{
if(dojo.isWebKit&&!(dojo.isSafari<4)){
newH+=dojo._getBorderExtents(_1dc).h;
}else{
newH+=dojo._getPadBorderExtents(_1dc).h;
}
}
}
return newH;
},_estimateHeight:function(_1dd){
_1dd.style.maxHeight="";
_1dd.style.height="auto";
_1dd.rows=(_1dd.value.match(/\n/g)||[]).length+1;
},_needsHelpShrinking:dojo.isMoz||dojo.isWebKit,_onInput:function(){
this.inherited(arguments);
if(this._busyResizing){
return;
}
this._busyResizing=true;
var _1de=this.textbox;
if(_1de.scrollHeight&&_1de.offsetHeight&&_1de.clientHeight){
var newH=this._getHeight(_1de)+"px";
if(_1de.style.height!=newH){
_1de.style.maxHeight=_1de.style.height=newH;
}
if(this._needsHelpShrinking){
if(this._setTimeoutHandle){
clearTimeout(this._setTimeoutHandle);
}
this._setTimeoutHandle=setTimeout(dojo.hitch(this,"_shrink"),0);
}
}else{
this._estimateHeight(_1de);
}
this._busyResizing=false;
},_busyResizing:false,_shrink:function(){
this._setTimeoutHandle=null;
if(this._needsHelpShrinking&&!this._busyResizing){
this._busyResizing=true;
var _1df=this.textbox;
var _1e0=false;
if(_1df.value==""){
_1df.value=" ";
_1e0=true;
}
var _1e1=_1df.scrollHeight;
if(!_1e1){
this._estimateHeight(_1df);
}else{
var _1e2=_1df.style.paddingBottom;
var _1e3=dojo._getPadExtents(_1df);
_1e3=_1e3.h-_1e3.t;
_1df.style.paddingBottom=_1e3+1+"px";
var newH=this._getHeight(_1df)-1+"px";
if(_1df.style.maxHeight!=newH){
_1df.style.paddingBottom=_1e3+_1e1+"px";
_1df.scrollTop=0;
_1df.style.maxHeight=this._getHeight(_1df)-_1e1+"px";
}
_1df.style.paddingBottom=_1e2;
}
if(_1e0){
_1df.value="";
}
this._busyResizing=false;
}
},resize:function(){
this._onInput();
},_setValueAttr:function(){
this.inherited(arguments);
this.resize();
},postCreate:function(){
this.inherited(arguments);
dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});
this.connect(this.textbox,"onscroll",this._onInput);
this.connect(this.textbox,"onresize",this._onInput);
this.connect(this.textbox,"onfocus",this._onInput);
this._setTimeoutHandle=setTimeout(dojo.hitch(this,"resize"),0);
},uninitialize:function(){
if(this._setTimeoutHandle){
clearTimeout(this._setTimeoutHandle);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_1e4,_1e5,_1e6){
_1e6=dojo.i18n.normalizeLocale(_1e6);
var _1e7=_1e6.split("-");
var _1e8=[_1e4,"nls",_1e5].join(".");
var _1e9=dojo._loadedModules[_1e8];
if(_1e9){
var _1ea;
for(var i=_1e7.length;i>0;i--){
var loc=_1e7.slice(0,i).join("_");
if(_1e9[loc]){
_1ea=_1e9[loc];
break;
}
}
if(!_1ea){
_1ea=_1e9.ROOT;
}
if(_1ea){
var _1eb=function(){
};
_1eb.prototype=_1ea;
return new _1eb();
}
}
throw new Error("Bundle not found: "+_1e5+" in "+_1e4+" , locale="+_1e6);
};
dojo.i18n.normalizeLocale=function(_1ec){
var _1ed=_1ec?_1ec.toLowerCase():dojo.locale;
if(_1ed=="root"){
_1ed="ROOT";
}
return _1ed;
};
dojo.i18n._requireLocalization=function(_1ee,_1ef,_1f0,_1f1){
var _1f2=dojo.i18n.normalizeLocale(_1f0);
var _1f3=[_1ee,"nls",_1ef].join(".");
var _1f4="";
if(_1f1){
var _1f5=_1f1.split(",");
for(var i=0;i<_1f5.length;i++){
if(_1f2["indexOf"](_1f5[i])==0){
if(_1f5[i].length>_1f4.length){
_1f4=_1f5[i];
}
}
}
if(!_1f4){
_1f4="ROOT";
}
}
var _1f6=_1f1?_1f4:_1f2;
var _1f7=dojo._loadedModules[_1f3];
var _1f8=null;
if(_1f7){
if(dojo.config.localizationComplete&&_1f7._built){
return;
}
var _1f9=_1f6.replace(/-/g,"_");
var _1fa=_1f3+"."+_1f9;
_1f8=dojo._loadedModules[_1fa];
}
if(!_1f8){
_1f7=dojo["provide"](_1f3);
var syms=dojo._getModuleSymbols(_1ee);
var _1fb=syms.concat("nls").join("/");
var _1fc;
dojo.i18n._searchLocalePath(_1f6,_1f1,function(loc){
var _1fd=loc.replace(/-/g,"_");
var _1fe=_1f3+"."+_1fd;
var _1ff=false;
if(!dojo._loadedModules[_1fe]){
dojo["provide"](_1fe);
var _200=[_1fb];
if(loc!="ROOT"){
_200.push(loc);
}
_200.push(_1ef);
var _201=_200.join("/")+".js";
_1ff=dojo._loadPath(_201,null,function(hash){
var _202=function(){
};
_202.prototype=_1fc;
_1f7[_1fd]=new _202();
for(var j in hash){
_1f7[_1fd][j]=hash[j];
}
});
}else{
_1ff=true;
}
if(_1ff&&_1f7[_1fd]){
_1fc=_1f7[_1fd];
}else{
_1f7[_1fd]=_1fc;
}
if(_1f1){
return true;
}
});
}
if(_1f1&&_1f2!=_1f4){
_1f7[_1f2.replace(/-/g,"_")]=_1f7[_1f4.replace(/-/g,"_")];
}
};
(function(){
var _203=dojo.config.extraLocale;
if(_203){
if(!_203 instanceof Array){
_203=[_203];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_204,_205){
req(m,b,_204,_205);
if(_204){
return;
}
for(var i=0;i<_203.length;i++){
req(m,b,_203[i],_205);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_206,down,_207){
_206=dojo.i18n.normalizeLocale(_206);
var _208=_206.split("-");
var _209=[];
for(var i=_208.length;i>0;i--){
_209.push(_208.slice(0,i).join("-"));
}
_209.push(false);
if(down){
_209.reverse();
}
for(var j=_209.length-1;j>=0;j--){
var loc=_209[j]||"ROOT";
var stop=_207(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_20a,_20b){
function _20c(_20d){
_20d=dojo.i18n.normalizeLocale(_20d);
dojo.i18n._searchLocalePath(_20d,true,function(loc){
for(var i=0;i<_20b.length;i++){
if(_20b[i]==loc){
dojo["require"](_20a+"_"+loc);
return true;
}
}
return false;
});
};
_20c();
var _20e=dojo.config.extraLocale||[];
for(var i=0;i<_20e.length;i++){
_20c(_20e[i]);
}
};
}
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\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></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(_20f,_210,_211,rtl){
if(this.aroundNode&&this.aroundNode===_210){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_20f;
var pos=dijit.placeOnScreenAroundElement(this.domNode,_210,dijit.getPopupAroundAlignment((_211&&_211.length)?_211:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_210;
},orient:function(node,_212,_213){
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"}[_212+"-"+_213];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_214){
if(this._onDeck&&this._onDeck[1]==_214){
this._onDeck=null;
}else{
if(this.aroundNode===_214){
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(_215,_216,_217,rtl){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_215,_216,_217,rtl);
};
dijit.hideTooltip=function(_218){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_218);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function(){
this._nodeConnectionsById={};
},_setConnectIdAttr:function(_219){
for(var _21a in this._nodeConnectionsById){
this.removeTarget(_21a);
}
dojo.forEach(dojo.isArrayLike(_219)?_219:[_219],this.addTarget,this);
},_getConnectIdAttr:function(){
var ary=[];
for(var id in this._nodeConnectionsById){
ary.push(id);
}
return ary;
},addTarget:function(id){
var node=dojo.byId(id);
if(!node){
return;
}
if(node.id in this._nodeConnectionsById){
return;
}
this._nodeConnectionsById[node.id]=[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")];
},removeTarget:function(node){
var id=node.id||node;
if(id in this._nodeConnectionsById){
dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);
delete this._nodeConnectionsById[id];
}
},postCreate:function(){
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 _21b=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_21b);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_21c){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_21c,this.position,!this.isLeftToRight());
this._connectNode=_21c;
this.onShow(_21c,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(_21d,_21e){
},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}\" waiRole=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&Chi; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"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_$",constraints:{},regExp:".*",regExpGen:function(_21f){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_220,_221){
return (new RegExp("^(?:"+this.regExpGen(_221)+")"+(this.required?"":"?")+"$")).test(_220)&&(!this.required||!this._isEmpty(_220))&&(this._isEmpty(_220)||this.parse(_220,_221)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_222){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_223){
return (this.trim?/^\s*$/:/^$/).test(_223);
},getErrorMessage:function(_224){
return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;
},getPromptMessage:function(_225){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_226){
var _227="";
var _228=this.disabled||this.isValid(_226);
if(_228){
this._maskValidSubsetError=true;
}
var _229=this._isEmpty(this.textbox.value);
var _22a=!_228&&!_229&&_226&&this._isValidSubset();
this.state=((_228||((!this._hasBeenBlurred||_226)&&_229)||_22a)&&this._maskValidSubsetError)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=_226;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_228?"false":"true");
if(_226){
if(this.state=="Error"){
_227=this.getErrorMessage(true);
}else{
_227=this.getPromptMessage(true);
}
this._maskValidSubsetError=true;
}
this.displayMessage(_227);
return _228;
},_message:"",displayMessage:function(_22b){
if(this._message==_22b){
return;
}
this._message=_22b;
dijit.hideTooltip(this.domNode);
if(_22b){
dijit.showTooltip(_22b,this.domNode,this.tooltipPosition,!this.isLeftToRight());
}
},_refreshState:function(){
this.validate(this._focused);
this.inherited(arguments);
},constructor:function(){
this.constraints={};
},_setConstraintsAttr:function(_22c){
if(!_22c.locale&&this.lang){
_22c.locale=this.lang;
}
this.constraints=_22c;
this._computePartialRE();
},_computePartialRE:function(){
var p=this.regExpGen(this.constraints);
this.regExp=p;
var _22d="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_22d+=re;
break;
case ")":
_22d+="|$)";
break;
default:
_22d+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_22d);
}
catch(e){
_22d=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_22d+")$";
},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(_22e){
this.inherited(arguments);
this._refreshState();
},_setRequiredAttr:function(_22f){
this.required=_22f;
dijit.setWaiState(this.focusNode,"required",_22f);
this._refreshState();
},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,_230){
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+"'":"")+">",this.textbox,"after");
},reset:function(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_231,_232){
return ("min" in _232?(this.compare(_231,_232.min)>=0):true)&&("max" in _232?(this.compare(_231,_232.max)<=0):true);
},isInRange:function(_233){
return this.rangeCheck(this.get("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.get("value");
var _234=false;
var _235=false;
if("min" in this.constraints){
var min=this.constraints.min;
min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_234=(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);
_235=(typeof max=="number")&&max>0;
}
return _234||_235;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_236){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_236));
},getErrorMessage:function(_237){
var v=this.get("value");
if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_237)){
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(_238){
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(_239,_23a){
dijit.setWaiState(this.focusNode,"valuenow",_239);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
var _23b=dijit.getEnclosingWidget(this.domNode.parentNode);
return _23b&&_23b.isContainer?_23b:null;
},_getSibling:function(_23c){
var node=this.domNode;
do{
node=node[_23c+"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(_23d,_23e){
var _23f=this.containerNode;
if(_23e&&typeof _23e=="number"){
var _240=this.getChildren();
if(_240&&_240.length>=_23e){
_23f=_240[_23e-1].domNode;
_23e="after";
}
}
dojo.place(_23d.domNode,_23f,_23e);
if(this._started&&!_23d._started){
_23d.startup();
}
},removeChild:function(_241){
if(typeof _241=="number"&&_241>0){
_241=this.getChildren()[_241];
}
if(_241){
var node=_241.domNode;
if(node&&node.parentNode){
node.parentNode.removeChild(node);
}
}
},hasChildren:function(){
return this.getChildren().length>0;
},destroyDescendants:function(_242){
dojo.forEach(this.getChildren(),function(_243){
_243.destroyRecursive(_242);
});
},_getSiblingOfChild:function(_244,dir){
var node=_244.domNode,_245=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_245];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node&&dijit.byNode(node);
},getIndexOfChild:function(_246){
return dojo.indexOf(this.getChildren(),_246);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_247){
_247.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,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
this.inherited(arguments);
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
var _248=this.getParent&&this.getParent();
if(!(_248&&_248.isLayoutContainer)){
this.resize();
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this.resize();
});
}
},resize:function(_249,_24a){
var node=this.domNode;
if(_249){
dojo.marginBox(node,_249);
if(_249.t){
node.style.top=_249.t+"px";
}
if(_249.l){
node.style.left=_249.l+"px";
}
}
var mb=_24a||{};
dojo.mixin(mb,_249||{});
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(_24b){
dojo.addClass(_24b.domNode,this.baseClass+"-child");
if(_24b.baseClass){
dojo.addClass(_24b.domNode,this.baseClass+"-"+_24b.baseClass);
}
},addChild:function(_24c,_24d){
this.inherited(arguments);
if(this._started){
this._setupChild(_24c);
}
},removeChild:function(_24e){
dojo.removeClass(_24e.domNode,this.baseClass+"-child");
if(_24e.baseClass){
dojo.removeClass(_24e.domNode,this.baseClass+"-"+_24e.baseClass);
}
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 _24f=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_250,dim){
_250.resize?_250.resize(dim):dojo.marginBox(_250.domNode,dim);
dojo.mixin(_250,dojo.marginBox(_250.domNode));
dojo.mixin(_250,dim);
};
dijit.layout.layoutChildren=function(_251,dim,_252){
dim=dojo.mixin({},dim);
dojo.addClass(_251,"dijitLayoutContainer");
_252=dojo.filter(_252,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_252,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_252,function(_253){
var elm=_253.domNode,pos=_253.layoutAlign;
var _254=elm.style;
_254.left=dim.l+"px";
_254.top=dim.t+"px";
_254.bottom=_254.right="auto";
dojo.addClass(elm,"dijitAlign"+_24f(pos));
if(pos=="top"||pos=="bottom"){
size(_253,{w:dim.w});
dim.h-=_253.h;
if(pos=="top"){
dim.t+=_253.h;
}else{
_254.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_253,{h:dim.h});
dim.w-=_253.w;
if(pos=="left"){
dim.l+=_253.w;
}else{
_254.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_253,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _255=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 _256=cont.length,i=0;i<cont.length;i=_256==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,constructor:function(_257,node){
dojo.mixin(this,_257||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_255++].join("_");
}
},set:function(cont,_258){
if(undefined!==cont){
this.content=cont;
}
if(_258){
this._mixin(_258);
}
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 _259=this.onContentError(e);
try{
node.innerHTML=_259;
}
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 _25a=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_25a){
cont=_25a[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(_25b){
var _25c={},key;
for(key in _25b){
if(key in _25c){
continue;
}
this[key]=_25b[key];
}
},_parse:function(){
var _25d=this.node;
try{
this.parseResults=dojo.parser.parse({rootNode:_25d,dir:this.dir,lang:this.lang});
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_25e){
var _25f=this["on"+type+"Error"].call(this,err);
if(_25e){
console.error(_25e,err);
}else{
if(_25f){
dojo.html._setNodeContent(this.node,_25f,true);
}
}
}});
dojo.html.set=function(node,cont,_260){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_260){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_260,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){
this.inherited(arguments);
var _261=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_261);
this.errorMessage=dojo.string.substitute(this.errorMessage,_261);
if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){
this.isLoaded=true;
}
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dojo.attr(this.domNode,"role")){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
var _262=dijit._Contained.prototype.getParent.call(this);
this._childOfLayoutWidget=_262&&_262.isLayoutContainer;
this._needLayout=!this._childOfLayoutWidget;
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_263){
_263.startup();
});
}
if(this._isShown()||this.preload){
this._onShow();
}
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _264=dojo.query("> *",this.containerNode).filter(function(node){
return node.tagName!=="SCRIPT";
}),_265=_264.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_266=dojo.filter(_265.map(dijit.byNode),function(_267){
return _267&&_267.domNode&&_267.resize;
});
if(_264.length==_265.length&&_266.length==1){
this._singleChild=_266[0];
}else{
delete this._singleChild;
}
dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);
},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.href=href;
if(this._created&&(this.preload||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.href="";
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
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(_268){
if(this._beingDestroyed){
return;
}
this.inherited(arguments);
},resize:function(_269,_26a){
if(!this._wasShown){
this._onShow();
}
this._resizeCalled=true;
if(_269){
dojo.marginBox(this.domNode,_269);
}
var cn=this.containerNode;
if(cn===this.domNode){
var mb=_26a||{};
dojo.mixin(mb,_269||{});
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();
},_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;
return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");
}
}
},_onShow:function(){
if(this.href){
if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){
this.refresh();
}
}else{
if(!this._childOfLayoutWidget&&this._needLayout){
this._layoutChildren();
}
}
this.inherited(arguments);
this._wasShown=true;
},refresh:function(){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._load();
return this.onLoadDeferred;
},_load:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _26b={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_26b,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_26b));
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.isLoaded=true;
try{
this.onLoadDeferred.callback(data);
this.onLoad(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
}
},_onUnloadHandler:function(){
this.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 _26c=this._contentSetter;
dojo.forEach(this.getChildren(),function(_26d){
if(_26d.destroyRecursive){
_26d.destroyRecursive();
}
});
if(_26c){
dojo.forEach(_26c.parseResults,function(_26e){
if(_26e.destroyRecursive&&_26e.domNode&&_26e.domNode.parentNode==dojo.body()){
_26e.destroyRecursive();
}
});
delete _26c.parseResults;
}
dojo.html._emptyNode(this.containerNode);
delete this._singleChild;
},_setContent:function(cont,_26f){
this.destroyDescendants();
var _270=this._contentSetter;
if(!(_270&&_270 instanceof dojo.html._ContentSetter)){
_270=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _271=this.onContentError(e);
try{
this.containerNode.innerHTML=_271;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _272=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,dir:this.dir,lang:this.lang},this._contentSetterParams||{});
dojo.mixin(_270,_272);
_270.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_26f){
dojo.forEach(this.getChildren(),function(_273){
if(!this.parseOnLoad||_273.getParent){
_273.startup();
}
},this);
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_274){
this.onLoadDeferred.errback(err);
var _275=this["on"+type+"Error"].call(this,err);
if(_274){
console.error(_274,err);
}else{
if(_275){
this._setContent(_275,true);
}
}
},_scheduleLayout:function(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_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(_276){
if(_276.resize){
_276.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_277){
},onDownloadError:function(_278){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_279){
var _27a={mv:5,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,"in":0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,sy:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};
var _27b=dojo.cldr.supplemental._region(_279);
var dow=_27a[_27b];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_27c){
_27c=dojo.i18n.normalizeLocale(_27c);
var tags=_27c.split("-");
var _27d=tags[1];
if(!_27d){
_27d={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];
}else{
if(_27d.length==4){
_27d=tags[2];
}
}
return _27d;
};
dojo.cldr.supplemental.getWeekend=function(_27e){
var _27f={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};
var _280={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};
var _281=dojo.cldr.supplemental._region(_27e);
var _282=_27f[_281];
var end=_280[_281];
if(_282===undefined){
_282=6;
}
if(end===undefined){
end=0;
}
return {start:_282,end:end};
};
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_283){
var _284=_283.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_284==1&&dojo.date.isLeapYear(_283)){
return 29;
}
return days[_284];
};
dojo.date.isLeapYear=function(_285){
var year=_285.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_286){
var str=_286.toString();
var tz="";
var _287;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_287=str.match(pat))){
tz=_287[1];
}else{
str=_286.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_287=str.match(pat))){
tz=_287[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_288,_289,_28a){
_288=new Date(+_288);
_289=new Date(+(_289||new Date()));
if(_28a=="date"){
_288.setHours(0,0,0,0);
_289.setHours(0,0,0,0);
}else{
if(_28a=="time"){
_288.setFullYear(0,0,0);
_289.setFullYear(0,0,0);
}
}
if(_288>_289){
return 1;
}
if(_288<_289){
return -1;
}
return 0;
};
dojo.date.add=function(date,_28b,_28c){
var sum=new Date(+date);
var _28d=false;
var _28e="Date";
switch(_28b){
case "day":
break;
case "weekday":
var days,_28f;
var mod=_28c%5;
if(!mod){
days=(_28c>0)?5:-5;
_28f=(_28c>0)?((_28c-5)/5):((_28c+5)/5);
}else{
days=mod;
_28f=parseInt(_28c/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_28c>0){
adj=1;
}else{
if(strt==0&&_28c<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_28c>0)?2:-2;
}
_28c=(7*_28f)+days+adj;
break;
case "year":
_28e="FullYear";
_28d=true;
break;
case "week":
_28c*=7;
break;
case "quarter":
_28c*=3;
case "month":
_28d=true;
_28e="Month";
break;
default:
_28e="UTC"+_28b.charAt(0).toUpperCase()+_28b.substring(1)+"s";
}
if(_28e){
sum["set"+_28e](sum["get"+_28e]()+_28c);
}
if(_28d&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_290,_291,_292){
_291=_291||new Date();
_292=_292||"day";
var _293=_291.getFullYear()-_290.getFullYear();
var _294=1;
switch(_292){
case "quarter":
var m1=_290.getMonth();
var m2=_291.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_293*4);
_294=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_290,_291,"day"));
var _295=parseInt(dojo.date.difference(_290,_291,"week"));
var mod=days%7;
if(mod==0){
days=_295*5;
}else{
var adj=0;
var aDay=_290.getDay();
var bDay=_291.getDay();
_295=parseInt(days/7);
mod=days%7;
var _296=new Date(_290);
_296.setDate(_296.getDate()+(_295*7));
var _297=_296.getDay();
if(days>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_297+mod)>5:
adj=-2;
}
}else{
if(days<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_297+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_295*2);
}
_294=days;
break;
case "year":
_294=_293;
break;
case "month":
_294=(_291.getMonth()-_290.getMonth())+(_293*12);
break;
case "week":
_294=parseInt(dojo.date.difference(_290,_291,"day")/7);
break;
case "day":
_294/=24;
case "hour":
_294/=60;
case "minute":
_294/=60;
case "second":
_294/=1000;
case "millisecond":
_294*=_291.getTime()-_290.getTime();
}
return Math.round(_294);
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_298){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_298&&_298.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_299){
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("|"),_299);
};
dojo.regexp.group=function(_29a,_29b){
return "("+(_29b?"?:":"")+_29a+")";
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function _29c(_29d,_29e,_29f,_2a0){
return _2a0.replace(/([a-z])\1*/ig,function(_2a1){
var s,pad,c=_2a1.charAt(0),l=_2a1.length,_2a2=["abbr","wide","narrow"];
switch(c){
case "G":
s=_29e[(l<4)?"eraAbbr":"eraNames"][_29d.getFullYear()<0?0:1];
break;
case "y":
s=_29d.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_29f.fullYear){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_29d.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_29d.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _2a3=["months","format",_2a2[l-3]].join("-");
s=_29e[_2a3][m];
}
break;
case "w":
var _2a4=0;
s=dojo.date.locale._getWeekOfYear(_29d,_2a4);
pad=true;
break;
case "d":
s=_29d.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_29d);
pad=true;
break;
case "E":
var d=_29d.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _2a5=["days","format",_2a2[l-3]].join("-");
s=_29e[_2a5][d];
}
break;
case "a":
var _2a6=(_29d.getHours()<12)?"am":"pm";
s=_29e["dayPeriods-format-wide-"+_2a6];
break;
case "h":
case "H":
case "K":
case "k":
var h=_29d.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_29d.getMinutes();
pad=true;
break;
case "s":
s=_29d.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_29d.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.locale._getZone(_29d,true,_29f);
if(s){
break;
}
l=4;
case "Z":
var _2a7=dojo.date.locale._getZone(_29d,false,_29f);
var tz=[(_2a7<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_2a7)/60),2),dojo.string.pad(Math.abs(_2a7)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
default:
throw new Error("dojo.date.locale.format: invalid pattern char: "+_2a0);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale._getZone=function(_2a8,_2a9,_2aa){
if(_2a9){
return dojo.date.getTimezoneName(_2a8);
}else{
return _2a8.getTimezoneOffset();
}
};
dojo.date.locale.format=function(_2ab,_2ac){
_2ac=_2ac||{};
var _2ad=dojo.i18n.normalizeLocale(_2ac.locale),_2ae=_2ac.formatLength||"short",_2af=dojo.date.locale._getGregorianBundle(_2ad),str=[],_2b0=dojo.hitch(this,_29c,_2ab,_2af,_2ac);
if(_2ac.selector=="year"){
return _2b1(_2af["dateFormatItem-yyyy"]||"yyyy",_2b0);
}
var _2b2;
if(_2ac.selector!="date"){
_2b2=_2ac.timePattern||_2af["timeFormat-"+_2ae];
if(_2b2){
str.push(_2b1(_2b2,_2b0));
}
}
if(_2ac.selector!="time"){
_2b2=_2ac.datePattern||_2af["dateFormat-"+_2ae];
if(_2b2){
str.push(_2b1(_2b2,_2b0));
}
}
return str.length==1?str[0]:_2af["dateTimeFormat-"+_2ae].replace(/\{(\d+)\}/g,function(_2b3,key){
return str[key];
});
};
dojo.date.locale.regexp=function(_2b4){
return dojo.date.locale._parseInfo(_2b4).regexp;
};
dojo.date.locale._parseInfo=function(_2b5){
_2b5=_2b5||{};
var _2b6=dojo.i18n.normalizeLocale(_2b5.locale),_2b7=dojo.date.locale._getGregorianBundle(_2b6),_2b8=_2b5.formatLength||"short",_2b9=_2b5.datePattern||_2b7["dateFormat-"+_2b8],_2ba=_2b5.timePattern||_2b7["timeFormat-"+_2b8],_2bb;
if(_2b5.selector=="date"){
_2bb=_2b9;
}else{
if(_2b5.selector=="time"){
_2bb=_2ba;
}else{
_2bb=_2b7["dateTimeFormat-"+_2b8].replace(/\{(\d+)\}/g,function(_2bc,key){
return [_2ba,_2b9][key];
});
}
}
var _2bd=[],re=_2b1(_2bb,dojo.hitch(this,_2be,_2bd,_2b7,_2b5));
return {regexp:re,tokens:_2bd,bundle:_2b7};
};
dojo.date.locale.parse=function(_2bf,_2c0){
var _2c1=/[\u200E\u200F\u202A\u202E]/g,info=dojo.date.locale._parseInfo(_2c0),_2c2=info.tokens,_2c3=info.bundle,re=new RegExp("^"+info.regexp.replace(_2c1,"")+"$",info.strict?"":"i"),_2c4=re.exec(_2bf&&_2bf.replace(_2c1,""));
if(!_2c4){
return null;
}
var _2c5=["abbr","wide","narrow"],_2c6=[1970,0,1,0,0,0,0],amPm="",_2c7=dojo.every(_2c4,function(v,i){
if(!i){
return true;
}
var _2c8=_2c2[i-1];
var l=_2c8.length;
switch(_2c8.charAt(0)){
case "y":
if(l!=2&&_2c0.strict){
_2c6[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear(),_2c9=year.substring(0,2)*100,_2ca=Math.min(Number(year.substring(2,4))+20,99),num=(v<_2ca)?_2c9+v:_2c9-100+v;
_2c6[0]=num;
}else{
if(_2c0.strict){
return false;
}
_2c6[0]=v;
}
}
break;
case "M":
if(l>2){
var _2cb=_2c3["months-format-"+_2c5[l-3]].concat();
if(!_2c0.strict){
v=v.replace(".","").toLowerCase();
_2cb=dojo.map(_2cb,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_2cb,v);
if(v==-1){
return false;
}
}else{
v--;
}
_2c6[1]=v;
break;
case "E":
case "e":
var days=_2c3["days-format-"+_2c5[l-3]].concat();
if(!_2c0.strict){
v=v.toLowerCase();
days=dojo.map(days,function(d){
return d.toLowerCase();
});
}
v=dojo.indexOf(days,v);
if(v==-1){
return false;
}
break;
case "D":
_2c6[1]=0;
case "d":
_2c6[2]=v;
break;
case "a":
var am=_2c0.am||_2c3["dayPeriods-format-wide-am"],pm=_2c0.pm||_2c3["dayPeriods-format-wide-pm"];
if(!_2c0.strict){
var _2cc=/\./g;
v=v.replace(_2cc,"").toLowerCase();
am=am.replace(_2cc,"").toLowerCase();
pm=pm.replace(_2cc,"").toLowerCase();
}
if(_2c0.strict&&v!=am&&v!=pm){
return false;
}
amPm=(v==pm)?"p":(v==am)?"a":"";
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
return false;
}
_2c6[3]=v;
break;
case "m":
_2c6[4]=v;
break;
case "s":
_2c6[5]=v;
break;
case "S":
_2c6[6]=v;
}
return true;
});
var _2cd=+_2c6[3];
if(amPm==="p"&&_2cd<12){
_2c6[3]=_2cd+12;
}else{
if(amPm==="a"&&_2cd==12){
_2c6[3]=0;
}
}
var _2ce=new Date(_2c6[0],_2c6[1],_2c6[2],_2c6[3],_2c6[4],_2c6[5],_2c6[6]);
if(_2c0.strict){
_2ce.setFullYear(_2c6[0]);
}
var _2cf=_2c2.join(""),_2d0=_2cf.indexOf("d")!=-1,_2d1=_2cf.indexOf("M")!=-1;
if(!_2c7||(_2d1&&_2ce.getMonth()>_2c6[1])||(_2d0&&_2ce.getDate()>_2c6[2])){
return null;
}
if((_2d1&&_2ce.getMonth()<_2c6[1])||(_2d0&&_2ce.getDate()<_2c6[2])){
_2ce=dojo.date.add(_2ce,"hour",1);
}
return _2ce;
};
function _2b1(_2d2,_2d3,_2d4,_2d5){
var _2d6=function(x){
return x;
};
_2d3=_2d3||_2d6;
_2d4=_2d4||_2d6;
_2d5=_2d5||_2d6;
var _2d7=_2d2.match(/(''|[^'])+/g),_2d8=_2d2.charAt(0)=="'";
dojo.forEach(_2d7,function(_2d9,i){
if(!_2d9){
_2d7[i]="";
}else{
_2d7[i]=(_2d8?_2d4:_2d3)(_2d9.replace(/''/g,"'"));
_2d8=!_2d8;
}
});
return _2d5(_2d7.join(""));
};
function _2be(_2da,_2db,_2dc,_2dd){
_2dd=dojo.regexp.escapeString(_2dd);
if(!_2dc.strict){
_2dd=_2dd.replace(" a"," ?a");
}
return _2dd.replace(/([a-z])\1*/ig,function(_2de){
var s,c=_2de.charAt(0),l=_2de.length,p2="",p3="";
if(_2dc.strict){
if(l>1){
p2="0"+"{"+(l-1)+"}";
}
if(l>2){
p3="0"+"{"+(l-2)+"}";
}
}else{
p2="0?";
p3="0{0,2}";
}
switch(c){
case "y":
s="\\d{2,4}";
break;
case "M":
s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";
break;
case "D":
s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";
break;
case "d":
s="3[01]|[12]\\d|"+p2+"[1-9]";
break;
case "w":
s=p2+"[1-9]|[1-4][0-9]|5[0-3]";
break;
case "E":
s="\\S+";
break;
case "h":
s=p2+"[1-9]|1[0-2]";
break;
case "k":
s=p2+"\\d|1[01]";
break;
case "H":
s=p2+"\\d|1\\d|2[0-3]";
break;
case "K":
s=p2+"[1-9]|1\\d|2[0-4]";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{"+l+"}";
break;
case "a":
var am=_2dc.am||_2db["dayPeriods-format-wide-am"],pm=_2dc.pm||_2db["dayPeriods-format-wide-pm"];
if(_2dc.strict){
s=am+"|"+pm;
}else{
s=am+"|"+pm;
if(am!=am.toLowerCase()){
s+="|"+am.toLowerCase();
}
if(pm!=pm.toLowerCase()){
s+="|"+pm.toLowerCase();
}
if(s.indexOf(".")!=-1){
s+="|"+s.replace(/\./g,"");
}
}
s=s.replace(/\./g,"\\.");
break;
default:
s=".*";
}
if(_2da){
_2da.push(_2de);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _2df=[];
dojo.date.locale.addCustomFormats=function(_2e0,_2e1){
_2df.push({pkg:_2e0,name:_2e1});
};
dojo.date.locale._getGregorianBundle=function(_2e2){
var _2e3={};
dojo.forEach(_2df,function(desc){
var _2e4=dojo.i18n.getLocalization(desc.pkg,desc.name,_2e2);
_2e3=dojo.mixin(_2e3,_2e4);
},this);
return _2e3;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,_2e5,_2e6){
var _2e7,_2e8=dojo.date.locale._getGregorianBundle(_2e6),_2e9=[item,_2e5,type];
if(_2e5=="standAlone"){
var key=_2e9.join("-");
_2e7=_2e8[key];
if(_2e7[0]==1){
_2e7=undefined;
}
}
_2e9[1]="format";
return (_2e7||_2e8[_2e9.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_2ea,_2eb){
var _2ec=dojo.cldr.supplemental.getWeekend(_2eb),day=(_2ea||new Date()).getDay();
if(_2ec.end<_2ec.start){
_2ec.end+=7;
if(day<_2ec.start){
day+=7;
}
}
return day>=_2ec.start&&day<=_2ec.end;
};
dojo.date.locale._getDayOfYear=function(_2ed){
return dojo.date.difference(new Date(_2ed.getFullYear(),0,1,_2ed.getHours()),_2ed)+1;
};
dojo.date.locale._getWeekOfYear=function(_2ee,_2ef){
if(arguments.length==1){
_2ef=0;
}
var _2f0=new Date(_2ee.getFullYear(),0,1).getDay(),adj=(_2f0-_2ef+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_2ee)+adj-1)/7);
if(_2f0==_2ef){
week++;
}
return week;
};
}
if(!dojo._hasResource["dijit.Calendar"]){
dojo._hasResource["dijit.Calendar"]=true;
dojo.provide("dijit.Calendar");
dojo.declare("dijit.Calendar",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\"/>\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div class=\"dijitVisible\">\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\"/>\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut, onmousedown: _onDayMouseDown, onmouseup: _onDayMouseUp\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"),value:new Date(),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",baseClass:"dijitCalendar",cssStateNodes:{"decrementMonth":"dijitCalendarArrow","incrementMonth":"dijitCalendarArrow","previousYearLabelNode":"dijitCalendarPreviousYear","nextYearLabelNode":"dijitCalendarNextYear"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{tabIndex:"domNode"}),setValue:function(_2f1){
dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");
this.set("value",_2f1);
},_getValueAttr:function(){
var _2f2=new this.dateClassObj(this.value);
_2f2.setHours(0,0,0,0);
if(_2f2.getDate()<this.value.getDate()){
_2f2=this.dateFuncObj.add(_2f2,"hour",1);
}
return _2f2;
},_setValueAttr:function(_2f3){
if(!this.value||this.dateFuncObj.compare(_2f3,this.value)){
_2f3=new this.dateClassObj(_2f3);
_2f3.setHours(1);
this.displayMonth=new this.dateClassObj(_2f3);
if(!this.isDisabledDate(_2f3,this.lang)){
this.value=_2f3;
this.onChange(this.get("value"));
}
dojo.attr(this.domNode,"aria-label",this.dateLocaleModule.format(_2f3,{selector:"date",formatLength:"full"}));
this._populateGrid();
}
},_setText:function(node,text){
while(node.firstChild){
node.removeChild(node.firstChild);
}
node.appendChild(dojo.doc.createTextNode(text));
},_populateGrid:function(){
var _2f4=this.displayMonth;
_2f4.setDate(1);
var _2f5=_2f4.getDay(),_2f6=this.dateFuncObj.getDaysInMonth(_2f4),_2f7=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_2f4,"month",-1)),_2f8=new this.dateClassObj(),_2f9=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
if(_2f9>_2f5){
_2f9-=7;
}
dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_2fa,i){
i+=_2f9;
var date=new this.dateClassObj(_2f4),_2fb,_2fc="dijitCalendar",adj=0;
if(i<_2f5){
_2fb=_2f7-_2f5+i+1;
adj=-1;
_2fc+="Previous";
}else{
if(i>=(_2f5+_2f6)){
_2fb=i-_2f5-_2f6+1;
adj=1;
_2fc+="Next";
}else{
_2fb=i-_2f5+1;
_2fc+="Current";
}
}
if(adj){
date=this.dateFuncObj.add(date,"month",adj);
}
date.setDate(_2fb);
if(!this.dateFuncObj.compare(date,_2f8,"date")){
_2fc="dijitCalendarCurrentDate "+_2fc;
}
if(this._isSelectedDate(date,this.lang)){
_2fc="dijitCalendarSelectedDate "+_2fc;
}
if(this.isDisabledDate(date,this.lang)){
_2fc="dijitCalendarDisabledDate "+_2fc;
}
var _2fd=this.getClassForDate(date,this.lang);
if(_2fd){
_2fc=_2fd+" "+_2fc;
}
_2fa.className=_2fc+"Month dijitCalendarDateTemplate";
_2fa.dijitDateValue=date.valueOf();
var _2fe=dojo.query(".dijitCalendarDateLabel",_2fa)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();
this._setText(_2fe,text);
},this);
var _2ff=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_2f4);
this._setText(this.monthLabelNode,_2ff[_2f4.getMonth()]);
dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){
dojo.toggleClass(node,"dijitHidden",!(i in _2ff));
this._setText(node,_2ff[i]);
},this);
var y=_2f4.getFullYear()-1;
var d=new this.dateClassObj();
dojo.forEach(["previous","current","next"],function(name){
d.setFullYear(y++);
this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));
},this);
},goToToday:function(){
this.set("value",new this.dateClassObj());
},constructor:function(args){
var _300=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";
this.dateClassObj=dojo.getObject(_300,false);
this.datePackage=args.datePackage||this.datePackage;
this.dateFuncObj=dojo.getObject(this.datePackage,false);
this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);
},postMixInProperties:function(){
if(isNaN(this.value)){
delete this.value;
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
var _301=dojo.hitch(this,function(_302,n){
var _303=dojo.query(_302,this.domNode)[0];
for(var i=0;i<n;i++){
_303.parentNode.appendChild(_303.cloneNode(true));
}
});
_301(".dijitCalendarDayLabelTemplate",6);
_301(".dijitCalendarDateTemplate",6);
_301(".dijitCalendarWeekTemplate",5);
var _304=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);
var _305=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_306,i){
this._setText(_306,_304[(i+_305)%7]);
},this);
var _307=new this.dateClassObj(this.value);
var _308=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_307);
_301(".dijitCalendarMonthLabelTemplate",_308.length-1);
dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){
dojo.attr(node,"month",i);
if(i in _308){
this._setText(node,_308[i]);
}
dojo.place(node.cloneNode(true),this.monthLabelSpacer);
},this);
this.value=null;
this.set("value",_307);
var _309=this;
var _30a=function(_30b,_30c,adj){
_309._connects.push(dijit.typematic.addMouseListener(_309[_30b],_309,function(_30d){
if(_30d>=0){
_309._adjustDisplay(_30c,adj);
}
},0.8,500));
};
_30a("incrementMonth","month",1);
_30a("decrementMonth","month",-1);
_30a("nextYearLabelNode","year",1);
_30a("previousYearLabelNode","year",-1);
},_onMenuHover:function(e){
dojo.stopEvent(e);
dojo.toggleClass(e.target,"dijitMenuItemHover");
},_adjustDisplay:function(part,_30e){
this.displayMonth=this.dateFuncObj.add(this.displayMonth,part,_30e);
this._populateGrid();
},_onMonthToggle:function(evt){
dojo.stopEvent(evt);
if(evt.type=="mousedown"){
var _30f=dojo.position(this.monthLabelNode);
var dim={width:_30f.w+"px",top:-this.displayMonth.getMonth()*_30f.h+"px"};
if((dojo.isIE&&dojo.isQuirks)||dojo.isIE<7){
dim.left=-_30f.w/2+"px";
}
dojo.style(this.monthDropDown,dim);
this._popupHandler=this.connect(document,"onmouseup","_onMonthToggle");
}else{
this.disconnect(this._popupHandler);
delete this._popupHandler;
}
dojo.toggleClass(this.monthDropDown,"dijitHidden");
dojo.toggleClass(this.monthLabelNode,"dijitVisible");
},_onMonthSelect:function(evt){
this._onMonthToggle(evt);
this.displayMonth.setMonth(dojo.attr(evt.target,"month"));
this._populateGrid();
},_onDayClick:function(evt){
dojo.stopEvent(evt);
for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){
}
if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){
this.set("value",node.dijitDateValue);
this.onValueSelected(this.get("value"));
}
},_onDayMouseOver:function(evt){
var node=dojo.hasClass(evt.target,"dijitCalendarDateLabel")?evt.target.parentNode:evt.target;
if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){
dojo.addClass(node,"dijitCalendarHoveredDate");
this._currentNode=node;
}
},_onDayMouseOut:function(evt){
if(!this._currentNode){
return;
}
if(evt.relatedTarget&&evt.relatedTarget.parentNode==this._currentNode){
return;
}
dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");
if(dojo.hasClass(this._currentNode,"dijitCalendarActiveDate")){
dojo.removeClass(this._currentNode,"dijitCalendarActiveDate");
}
this._currentNode=null;
},_onDayMouseDown:function(evt){
var node=evt.target.parentNode;
if(node&&node.dijitDateValue){
dojo.addClass(node,"dijitCalendarActiveDate");
this._currentNode=node;
}
},_onDayMouseUp:function(evt){
var node=evt.target.parentNode;
if(node&&node.dijitDateValue){
dojo.removeClass(node,"dijitCalendarActiveDate");
}
},_onKeyPress:function(evt){
var dk=dojo.keys,_310=-1,_311,_312=this.value;
switch(evt.keyCode){
case dk.RIGHT_ARROW:
_310=1;
case dk.LEFT_ARROW:
_311="day";
if(!this.isLeftToRight()){
_310*=-1;
}
break;
case dk.DOWN_ARROW:
_310=1;
case dk.UP_ARROW:
_311="week";
break;
case dk.PAGE_DOWN:
_310=1;
case dk.PAGE_UP:
_311=evt.ctrlKey?"year":"month";
break;
case dk.END:
_312=this.dateFuncObj.add(_312,"month",1);
_311="day";
case dk.HOME:
_312=new Date(_312).setDate(1);
break;
case dk.ENTER:
this.onValueSelected(this.get("value"));
break;
case dk.ESCAPE:
default:
return;
}
dojo.stopEvent(evt);
if(_311){
_312=this.dateFuncObj.add(_312,_311,_310);
}
this.set("value",_312);
},onValueSelected:function(date){
},onChange:function(date){
},_isSelectedDate:function(_313,_314){
return !this.dateFuncObj.compare(_313,this.value,"date");
},isDisabledDate:function(_315,_316){
},getClassForDate:function(_317,_318){
}});
}
if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){
dojo._hasResource["dijit.form._DateTimeTextBox"]=true;
dojo.provide("dijit.form._DateTimeTextBox");
new Date("X");
dojo.declare("dijit.form._DateTimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,datePackage:"dojo.date",compare:dojo.date.compare,format:function(_319,_31a){
if(!_319){
return "";
}
return this.dateLocaleModule.format(_319,_31a);
},parse:function(_31b,_31c){
return this.dateLocaleModule.parse(_31b,_31c)||(this._isEmpty(_31b)?null:undefined);
},serialize:function(val,_31d){
if(val.toGregorian){
val=val.toGregorian();
}
return dojo.date.stamp.toISOString(val,_31d);
},value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){
var _31e=args.datePackage?args.datePackage+".Date":"Date";
this.dateClassObj=dojo.getObject(_31e,false);
this.value=new this.dateClassObj("");
this.datePackage=args.datePackage||this.datePackage;
this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);
this.regExpGen=this.dateLocaleModule.regexp;
},_setConstraintsAttr:function(_31f){
_31f.selector=this._selector;
_31f.fullYear=true;
var _320=dojo.date.stamp.fromISOString;
if(typeof _31f.min=="string"){
_31f.min=_320(_31f.min);
}
if(typeof _31f.max=="string"){
_31f.max=_320(_31f.max);
}
this.inherited(arguments,[_31f]);
},_onFocus:function(evt){
this._open();
this.inherited(arguments);
},_setValueAttr:function(_321,_322,_323){
if(_321!==undefined){
if(!_321||_321.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){
_321=null;
}
if(_321 instanceof Date&&!(this.dateClassObj instanceof Date)){
_321=new this.dateClassObj(_321);
}
}
this.inherited(arguments,[_321,_322,_323]);
if(this._picker){
if(!_321){
_321=new this.dateClassObj();
}
this._picker.set("value",_321);
}
},_open:function(){
if(this.disabled||this.readOnly||!this.popupClass){
return;
}
var _324=this;
if(!this._picker){
var _325=dojo.getObject(this.popupClass,false);
this._picker=new _325({onValueSelected:function(_326){
if(_324._tabbingAway){
delete _324._tabbingAway;
}else{
_324.focus();
}
setTimeout(dojo.hitch(_324,"_close"),1);
dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_324,_326,true);
},id:this.id+"_popup",dir:_324.dir,lang:_324.lang,value:this.get("value")||new this.dateClassObj(),constraints:_324.constraints,datePackage:_324.datePackage,isDisabledDate:function(date){
var _327=dojo.date.compare;
var _328=_324.constraints;
return _328&&((_328.min&&_327(_328.min,date,_324._selector)>0)||(_328.max&&_327(_328.max,date,_324._selector)<0));
}});
}
if(!this._opened){
dijit.popup.open({parent:this,popup:this._picker,orient:{"BL":"TL","TL":"BL"},around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){
_324._opened=false;
}});
this._opened=true;
}
dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});
},_close:function(){
if(this._opened){
dijit.popup.close(this._picker);
this._opened=false;
}
},_onBlur:function(){
this._close();
if(this._picker){
this._picker.destroy();
delete this._picker;
}
this.inherited(arguments);
},_getDisplayedValueAttr:function(){
return this.textbox.value;
},_setDisplayedValueAttr:function(_329,_32a){
this._setValueAttr(this.parse(_329,this.constraints),_32a,_329);
},destroy:function(){
if(this._picker){
this._picker.destroy();
delete this._picker;
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this.connect(this.focusNode,"onkeypress",this._onKeyPress);
this.connect(this.focusNode,"onclick",this._open);
},_onKeyPress:function(e){
var p=this._picker,dk=dojo.keys;
if(p&&this._opened&&p.handleKey){
if(p.handleKey(e)===false){
return;
}
}
if(this._opened&&e.charOrCode==dk.ESCAPE&&!(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)){
this._close();
dojo.stopEvent(e);
}else{
if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){
this._open();
dojo.stopEvent(e);
}else{
if(e.charOrCode===dk.TAB){
this._tabbingAway=true;
}else{
if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){
setTimeout(dojo.hitch(this,function(){
if(this._picker&&this._opened){
dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);
}
}),1);
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.form.DateTextBox"]){
dojo._hasResource["dijit.form.DateTextBox"]=true;
dojo.provide("dijit.form.DateTextBox");
dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit.Calendar",_selector:"date",value:new Date("")});
}
if(!dojo._hasResource["dojo.data.util.filter"]){
dojo._hasResource["dojo.data.util.filter"]=true;
dojo.provide("dojo.data.util.filter");
dojo.data.util.filter.patternToRegExp=function(_32b,_32c){
var rxp="^";
var c=null;
for(var i=0;i<_32b.length;i++){
c=_32b.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_32b.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(_32c){
return new RegExp(rxp,"mi");
}else{
return new RegExp(rxp,"m");
}
};
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
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(_32d,_32e){
var _32f=[];
function _330(attr,dir,comp,s){
return function(_331,_332){
var a=s.getValue(_331,attr);
var b=s.getValue(_332,attr);
return dir*comp(a,b);
};
};
var _333;
var map=_32e.comparatorMap;
var bc=dojo.data.util.sorter.basicComparator;
for(var i=0;i<_32d.length;i++){
_333=_32d[i];
var attr=_333.attribute;
if(attr){
var dir=(_333.descending)?-1:1;
var comp=bc;
if(map){
if(typeof attr!=="string"&&("toString" in attr)){
attr=attr.toString();
}
comp=map[attr]||bc;
}
_32f.push(_330(attr,dir,comp,_32e));
}
}
return function(rowA,rowB){
var i=0;
while(i<_32f.length){
var ret=_32f[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.data.util.simpleFetch.fetch=function(_334){
_334=_334||{};
if(!_334.store){
_334.store=this;
}
var self=this;
var _335=function(_336,_337){
if(_337.onError){
var _338=_337.scope||dojo.global;
_337.onError.call(_338,_336,_337);
}
};
var _339=function(_33a,_33b){
var _33c=_33b.abort||null;
var _33d=false;
var _33e=_33b.start?_33b.start:0;
var _33f=(_33b.count&&(_33b.count!==Infinity))?(_33e+_33b.count):_33a.length;
_33b.abort=function(){
_33d=true;
if(_33c){
_33c.call(_33b);
}
};
var _340=_33b.scope||dojo.global;
if(!_33b.store){
_33b.store=self;
}
if(_33b.onBegin){
_33b.onBegin.call(_340,_33a.length,_33b);
}
if(_33b.sort){
_33a.sort(dojo.data.util.sorter.createSortFunction(_33b.sort,self));
}
if(_33b.onItem){
for(var i=_33e;(i<_33a.length)&&(i<_33f);++i){
var item=_33a[i];
if(!_33d){
_33b.onItem.call(_340,item,_33b);
}
}
}
if(_33b.onComplete&&!_33d){
var _341=null;
if(!_33b.onItem){
_341=_33a.slice(_33e,_33f);
}
_33b.onComplete.call(_340,_341,_33b);
}
};
this._fetchItems(_334,_339,_335);
return _334;
};
}
if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){
dojo._hasResource["dojo.data.ItemFileReadStore"]=true;
dojo.provide("dojo.data.ItemFileReadStore");
dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_342){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._jsonFileUrl=_342.url;
this._ccUrl=_342.url;
this.url=_342.url;
this._jsonData=_342.data;
this.data=null;
this._datatypeMap=_342.typeMap||{};
if(!this._datatypeMap["Date"]){
this._datatypeMap["Date"]={type:Date,deserialize:function(_343){
return dojo.date.stamp.fromISOString(_343);
}};
}
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
this._itemsByIdentity=null;
this._storeRefPropName="_S";
this._itemNumPropName="_0";
this._rootItemPropName="_RI";
this._reverseRefMap="_RRM";
this._loadInProgress=false;
this._queuedFetches=[];
if(_342.urlPreventCache!==undefined){
this.urlPreventCache=_342.urlPreventCache?true:false;
}
if(_342.hierarchical!==undefined){
this.hierarchical=_342.hierarchical?true:false;
}
if(_342.clearOnClose){
this.clearOnClose=true;
}
if("failOk" in _342){
this.failOk=_342.failOk?true:false;
}
},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");
}
},_assertIsAttribute:function(_344){
if(typeof _344!=="string"){
throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");
}
},getValue:function(item,_345,_346){
var _347=this.getValues(item,_345);
return (_347.length>0)?_347[0]:_346;
},getValues:function(item,_348){
this._assertIsItem(item);
this._assertIsAttribute(_348);
return (item[_348]||[]).slice(0);
},getAttributes:function(item){
this._assertIsItem(item);
var _349=[];
for(var key in item){
if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){
_349.push(key);
}
}
return _349;
},hasAttribute:function(item,_34a){
this._assertIsItem(item);
this._assertIsAttribute(_34a);
return (_34a in item);
},containsValue:function(item,_34b,_34c){
var _34d=undefined;
if(typeof _34c==="string"){
_34d=dojo.data.util.filter.patternToRegExp(_34c,false);
}
return this._containsValue(item,_34b,_34c,_34d);
},_containsValue:function(item,_34e,_34f,_350){
return dojo.some(this.getValues(item,_34e),function(_351){
if(_351!==null&&!dojo.isObject(_351)&&_350){
if(_351.toString().match(_350)){
return true;
}
}else{
if(_34f===_351){
return true;
}
}
});
},isItem:function(_352){
if(_352&&_352[this._storeRefPropName]===this){
if(this._arrayOfAllItems[_352[this._itemNumPropName]]===_352){
return true;
}
}
return false;
},isItemLoaded:function(_353){
return this.isItem(_353);
},loadItem:function(_354){
this._assertIsItem(_354.item);
},getFeatures:function(){
return this._features;
},getLabel:function(item){
if(this._labelAttr&&this.isItem(item)){
return this.getValue(item,this._labelAttr);
}
return undefined;
},getLabelAttributes:function(item){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},_fetchItems:function(_355,_356,_357){
var self=this,_358=function(_359,_35a){
var _35b=[],i,key;
if(_359.query){
var _35c,_35d=_359.queryOptions?_359.queryOptions.ignoreCase:false;
var _35e={};
for(key in _359.query){
_35c=_359.query[key];
if(typeof _35c==="string"){
_35e[key]=dojo.data.util.filter.patternToRegExp(_35c,_35d);
}else{
if(_35c instanceof RegExp){
_35e[key]=_35c;
}
}
}
for(i=0;i<_35a.length;++i){
var _35f=true;
var _360=_35a[i];
if(_360===null){
_35f=false;
}else{
for(key in _359.query){
_35c=_359.query[key];
if(!self._containsValue(_360,key,_35c,_35e[key])){
_35f=false;
}
}
}
if(_35f){
_35b.push(_360);
}
}
_356(_35b,_359);
}else{
for(i=0;i<_35a.length;++i){
var item=_35a[i];
if(item!==null){
_35b.push(item);
}
}
_356(_35b,_359);
}
};
if(this._loadFinished){
_358(_355,this._getItemsArray(_355.queryOptions));
}else{
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_355,filter:_358});
}else{
this._loadInProgress=true;
var _361={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _362=dojo.xhrGet(_361);
_362.addCallback(function(data){
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
_358(_355,self._getItemsArray(_355.queryOptions));
self._handleQueuedFetches();
}
catch(e){
self._loadFinished=true;
self._loadInProgress=false;
_357(e,_355);
}
});
_362.addErrback(function(_363){
self._loadInProgress=false;
_357(_363,_355);
});
var _364=null;
if(_355.abort){
_364=_355.abort;
}
_355.abort=function(){
var df=_362;
if(df&&df.fired===-1){
df.cancel();
df=null;
}
if(_364){
_364.call(_355);
}
};
}
}else{
if(this._jsonData){
try{
this._loadFinished=true;
this._getItemsFromLoadedData(this._jsonData);
this._jsonData=null;
_358(_355,this._getItemsArray(_355.queryOptions));
}
catch(e){
_357(e,_355);
}
}else{
_357(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_355);
}
}
}
},_handleQueuedFetches:function(){
if(this._queuedFetches.length>0){
for(var i=0;i<this._queuedFetches.length;i++){
var _365=this._queuedFetches[i],_366=_365.args,_367=_365.filter;
if(_367){
_367(_366,this._getItemsArray(_366.queryOptions));
}else{
this.fetchItemByIdentity(_366);
}
}
this._queuedFetches=[];
}
},_getItemsArray:function(_368){
if(_368&&_368.deep){
return this._arrayOfAllItems;
}
return this._arrayOfTopLevelItems;
},close:function(_369){
if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){
if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){
console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");
}
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._itemsByIdentity=null;
this._loadInProgress=false;
this._queuedFetches=[];
}
},_getItemsFromLoadedData:function(_36a){
var _36b=false,self=this;
function _36c(_36d){
var _36e=((_36d!==null)&&(typeof _36d==="object")&&(!dojo.isArray(_36d)||_36b)&&(!dojo.isFunction(_36d))&&(_36d.constructor==Object||dojo.isArray(_36d))&&(typeof _36d._reference==="undefined")&&(typeof _36d._type==="undefined")&&(typeof _36d._value==="undefined")&&self.hierarchical);
return _36e;
};
function _36f(_370){
self._arrayOfAllItems.push(_370);
for(var _371 in _370){
var _372=_370[_371];
if(_372){
if(dojo.isArray(_372)){
var _373=_372;
for(var k=0;k<_373.length;++k){
var _374=_373[k];
if(_36c(_374)){
_36f(_374);
}
}
}else{
if(_36c(_372)){
_36f(_372);
}
}
}
}
};
this._labelAttr=_36a.label;
var i,item;
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=_36a.items;
for(i=0;i<this._arrayOfTopLevelItems.length;++i){
item=this._arrayOfTopLevelItems[i];
if(dojo.isArray(item)){
_36b=true;
}
_36f(item);
item[this._rootItemPropName]=true;
}
var _375={},key;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
if(key!==this._rootItemPropName){
var _376=item[key];
if(_376!==null){
if(!dojo.isArray(_376)){
item[key]=[_376];
}
}else{
item[key]=[null];
}
}
_375[key]=key;
}
}
while(_375[this._storeRefPropName]){
this._storeRefPropName+="_";
}
while(_375[this._itemNumPropName]){
this._itemNumPropName+="_";
}
while(_375[this._reverseRefMap]){
this._reverseRefMap+="_";
}
var _377;
var _378=_36a.identifier;
if(_378){
this._itemsByIdentity={};
this._features["dojo.data.api.Identity"]=_378;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
_377=item[_378];
var _379=_377[0];
if(!this._itemsByIdentity[_379]){
this._itemsByIdentity[_379]=item;
}else{
if(this._jsonFileUrl){
throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_378+"].  Value collided: ["+_379+"]");
}else{
if(this._jsonData){
throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_378+"].  Value collided: ["+_379+"]");
}
}
}
}
}else{
this._features["dojo.data.api.Identity"]=Number;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
item[this._storeRefPropName]=this;
item[this._itemNumPropName]=i;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
_377=item[key];
for(var j=0;j<_377.length;++j){
_376=_377[j];
if(_376!==null&&typeof _376=="object"){
if(("_type" in _376)&&("_value" in _376)){
var type=_376._type;
var _37a=this._datatypeMap[type];
if(!_37a){
throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");
}else{
if(dojo.isFunction(_37a)){
_377[j]=new _37a(_376._value);
}else{
if(dojo.isFunction(_37a.deserialize)){
_377[j]=_37a.deserialize(_376._value);
}else{
throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
}
}
}
}
if(_376._reference){
var _37b=_376._reference;
if(!dojo.isObject(_37b)){
_377[j]=this._getItemByIdentity(_37b);
}else{
for(var k=0;k<this._arrayOfAllItems.length;++k){
var _37c=this._arrayOfAllItems[k],_37d=true;
for(var _37e in _37b){
if(_37c[_37e]!=_37b[_37e]){
_37d=false;
}
}
if(_37d){
_377[j]=_37c;
}
}
}
if(this.referenceIntegrity){
var _37f=_377[j];
if(this.isItem(_37f)){
this._addReferenceToMap(_37f,item,key);
}
}
}else{
if(this.isItem(_376)){
if(this.referenceIntegrity){
this._addReferenceToMap(_376,item,key);
}
}
}
}
}
}
}
},_addReferenceToMap:function(_380,_381,_382){
},getIdentity:function(item){
var _383=this._features["dojo.data.api.Identity"];
if(_383===Number){
return item[this._itemNumPropName];
}else{
var _384=item[_383];
if(_384){
return _384[0];
}
}
return null;
},fetchItemByIdentity:function(_385){
var item,_386;
if(!this._loadFinished){
var self=this;
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_385});
}else{
this._loadInProgress=true;
var _387={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _388=dojo.xhrGet(_387);
_388.addCallback(function(data){
var _389=_385.scope?_385.scope:dojo.global;
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
item=self._getItemByIdentity(_385.identity);
if(_385.onItem){
_385.onItem.call(_389,item);
}
self._handleQueuedFetches();
}
catch(error){
self._loadInProgress=false;
if(_385.onError){
_385.onError.call(_389,error);
}
}
});
_388.addErrback(function(_38a){
self._loadInProgress=false;
if(_385.onError){
var _38b=_385.scope?_385.scope:dojo.global;
_385.onError.call(_38b,_38a);
}
});
}
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
item=self._getItemByIdentity(_385.identity);
if(_385.onItem){
_386=_385.scope?_385.scope:dojo.global;
_385.onItem.call(_386,item);
}
}
}
}else{
item=this._getItemByIdentity(_385.identity);
if(_385.onItem){
_386=_385.scope?_385.scope:dojo.global;
_385.onItem.call(_386,item);
}
}
},_getItemByIdentity:function(_38c){
var item=null;
if(this._itemsByIdentity){
item=this._itemsByIdentity[_38c];
}else{
item=this._arrayOfAllItems[_38c];
}
if(item===undefined){
item=null;
}
return item;
},getIdentityAttributes:function(item){
var _38d=this._features["dojo.data.api.Identity"];
if(_38d===Number){
return null;
}else{
return [_38d];
}
},_forceLoad:function(){
var self=this;
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
var _38e={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};
var _38f=dojo.xhrGet(_38e);
_38f.addCallback(function(data){
try{
if(self._loadInProgress!==true&&!self._loadFinished){
self._getItemsFromLoadedData(data);
self._loadFinished=true;
}else{
if(self._loadInProgress){
throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}
}
}
catch(e){
console.log(e);
throw e;
}
});
_38f.addErrback(function(_390){
throw _390;
});
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
}
}
}});
dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["dijit.form.ComboBox"]){
dojo._hasResource["dijit.form.ComboBox"]=true;
dojo.provide("dijit.form.ComboBox");
dojo.declare("dijit.form.ComboBoxMixin",null,{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/ComboBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachPoint=\"comboNode\" waiRole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"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=\"&Chi; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"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\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{"downArrowNode":"dijitDownArrowButton"},_getCaretPos:function(_391){
var pos=0;
if(typeof (_391.selectionStart)=="number"){
pos=_391.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_391.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(_392,_393){
_393=parseInt(_393);
dijit.selectInputText(_392,_393,_393);
},_setDisabledAttr:function(_394){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_394);
},_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._onKeyPress({charOrCode:229});
}),100);
}
this.inherited(arguments);
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){
return;
}
var _395=false;
var _396="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _397=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(key);
_397=pw.getHighlightedOption();
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
_395=true;
_396="_startSearchAll";
}else{
this._announceOption(_397);
}
dojo.stopEvent(evt);
break;
case dk.ENTER:
if(_397){
if(_397==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_397==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
}
evt.preventDefault();
case dk.TAB:
var _398=this.get("displayedValue");
if(pw&&(_398==pw._messages["previousMessage"]||_398==pw._messages["nextMessage"])){
break;
}
if(_397){
this._selectOption();
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
if(_397){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_395=true;
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_395=true;
break;
default:
_395=typeof key=="string"||key==229;
}
if(_395){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_396),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _399=this.ignoreCase?"toLowerCase":"substr";
if(text[_399](0).indexOf(this.focusNode.value[_399](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(_39a,_39b){
this._fetchHandle=null;
if(this.disabled||this.readOnly||(_39b.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_39a.length&&!this._maxOptions){
this._hideResultList();
return;
}
_39b._maxOptions=this._maxOptions;
var _39c=this._popupWidget.createOptions(_39a,_39b,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_39b.direction){
if(1==_39b.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_39b.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}else{
if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_39b.query[this.searchAttr])){
this._announceOption(_39c[1]);
}
}
},_showResultList:function(){
this._hideResultList();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _39d=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_39d.h)&&(best.w==_39d.w))?"hidden":"auto";
var _39e=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_39e+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_39e,this.domNode.offsetWidth)});
if(_39e<this.domNode.offsetWidth){
this._popupWidget.domNode.parentNode.style.left=dojo.position(this.domNode,true).x+"px";
}
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
this._abortQuery();
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function(){
var _39f=this.get("displayedValue");
var pw=this._popupWidget;
if(pw&&(_39f==pw._messages["previousMessage"]||_39f==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
if(typeof this.item=="undefined"){
this.item=null;
this.set("displayedValue",_39f);
}else{
if(this.value!=this._lastValueReported){
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
}
this._refreshState();
}
}
},_onBlur:function(){
this._hideResultList();
this.inherited(arguments);
},_setItemAttr:function(item,_3a0,_3a1){
if(!_3a1){
_3a1=this.labelFunc(item,this.store);
}
this.value=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_3a1;
this.item=item;
dijit.form.ComboBox.superclass._setValueAttr.call(this,this.value,_3a0,_3a1);
},_announceOption:function(node){
if(!node){
return;
}
var _3a2;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_3a2=node.innerHTML;
this.item=undefined;
this.value="";
}else{
_3a2=this.labelFunc(node.item,this.store);
this.set("item",node.item,false,_3a2);
}
this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_3a2);
},_selectOption:function(evt){
if(evt){
this._announceOption(evt.target);
}
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearchAll();
}
},_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._popupWidget){
var _3a3=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_3a3,dir:this.dir});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_3a3);
}
var _3a4=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_3a4[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_3a5,_3a6){
this.searchTimer=null;
var _3a7={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_3a5,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_3a8){
_3a6._fetchHandle=null;
console.error("dijit.form.ComboBox: "+_3a8);
dojo.hitch(_3a6,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_3a7,_3a6.fetchProperties);
this._fetchHandle=_3a6.store.fetch(_3a7);
var _3a9=function(_3aa,_3ab){
_3aa.start+=_3aa.count*_3ab;
_3aa.direction=_3ab;
this._fetchHandle=this.store.fetch(_3aa);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_3a9,this._fetchHandle);
},_3a4,this),this.searchDelay);
},_setMaxOptions:function(size,_3ac){
this._maxOptions=size;
},_getValueField:function(){
return this.searchAttr;
},compositionend:function(evt){
this._onKeyPress({charOrCode:229});
},constructor:function(){
this.query={};
this.fetchProperties={};
},postMixInProperties:function(){
if(!this.store){
var _3ad=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_3ad);
if(!("value" in this.params)){
var item=this.store.fetchSelectedItem();
if(item){
var _3ae=this._getValueField();
this.value=_3ae!=this.searchAttr?this.store.getValue(item,_3ae):this.labelFunc(item,this.store);
}
}
}
this.inherited(arguments);
},postCreate:function(){
if(!this.hasDownArrow){
this.downArrowNode.style.display="none";
}
var _3af=dojo.query("label[for=\""+this.id+"\"]");
if(_3af.length){
_3af[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_3af[0].id);
}
this.inherited(arguments);
},uninitialize:function(){
if(this._popupWidget&&!this._popupWidget._destroyed){
this._hideResultList();
this._popupWidget.destroy();
}
this.inherited(arguments);
},_getMenuLabelFromItem:function(item){
var _3b0=this.labelAttr?this.store.getValue(item,this.labelAttr):this.labelFunc(item,this.store);
var _3b1=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_3b0=this.doHighlight(_3b0,this._escapeHtml(this._lastInput));
_3b1="html";
}
return {html:_3b1=="html",label:_3b0};
},doHighlight:function(_3b2,find){
var _3b3="i"+(this.highlightMatch=="all"?"g":"");
var _3b4=this._escapeHtml(_3b2);
find=dojo.regexp.escapeString(find);
var ret=_3b4.replace(new RegExp("(^|\\s)("+find+")",_3b3),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");
return ret;
},_escapeHtml:function(str){
str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
return str;
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
},labelFunc:function(item,_3b5){
return _3b5.getValue(item,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' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited(arguments);
},_setValueAttr:function(_3b6){
this.value=_3b6;
this.onChange(_3b6);
},onChange:function(_3b7){
},onPage:function(_3b8){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_3b9){
var _3ba=_3b9(item);
var _3bb=dojo.doc.createElement("li");
dijit.setWaiRole(_3bb,"option");
if(_3ba.html){
_3bb.innerHTML=_3ba.label;
}else{
_3bb.appendChild(dojo.doc.createTextNode(_3ba.label));
}
if(_3bb.innerHTML==""){
_3bb.innerHTML="&nbsp;";
}
_3bb.item=item;
return _3bb;
},createOptions:function(_3bc,_3bd,_3be){
this.previousButton.style.display=(_3bd.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_3bc,function(item,i){
var _3bf=this._createOption(item,_3be);
_3bf.className="dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl");
dojo.attr(_3bf,"id",this.id+i);
this.domNode.insertBefore(_3bf,this.nextButton);
},this);
var _3c0=false;
if(_3bd._maxOptions&&_3bd._maxOptions!=-1){
if((_3bd.start+_3bd.count)<_3bd._maxOptions){
_3c0=true;
}else{
if((_3bd.start+_3bd.count)>_3bd._maxOptions&&_3bd.count==_3bc.length){
_3c0=true;
}
}
}else{
if(_3bd.count==_3bc.length){
_3c0=true;
}
}
this.nextButton.style.display=_3c0?"":"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]);
}
},_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.onPage(-1);
}else{
if(evt.target==this.nextButton){
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 _3c1=this.domNode.firstChild;
var _3c2=_3c1.nextSibling;
this._focusOptionNode(_3c2.style.display=="none"?_3c1:_3c2);
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 _3c3=0;
var _3c4=this.domNode.scrollTop;
var _3c5=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_3c3<_3c5){
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 _3c6=this.domNode.scrollTop;
_3c3+=(_3c6-_3c4)*(up?-1:1);
_3c4=_3c6;
}
},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(key){
switch(key){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_3c7,_3c8,_3c9){
this.item=null;
if(!_3c7){
_3c7="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_3c7,_3c8,_3c9);
}});
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,_3ca,_3cb){
return (_3ca=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_3cc){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_3cd,_3ce){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _3cf=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_3d0=dojo.query("> option",this.root).filter(function(_3d1){
return (_3d1.innerText||_3d1.textContent||"").match(_3cf);
});
if(args.sort){
_3d0.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_3cd(_3d0,args);
},close:function(_3d2){
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],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){
return this._isvalid||(!this.required&&this.get("displayedValue")=="");
},_refreshState:function(){
if(!this.searchTimer){
this.inherited(arguments);
}
},_callbackSetLabel:function(_3d3,_3d4,_3d5){
if((_3d4&&_3d4.query[this.searchAttr]!=this._lastQuery)||(!_3d4&&_3d3.length&&this.store.getIdentity(_3d3[0])!=this._lastQuery)){
return;
}
if(!_3d3.length){
this.valueNode.value="";
dijit.form.TextBox.superclass._setValueAttr.call(this,"",_3d5||(_3d5===undefined&&!this._focused));
this._isvalid=false;
this.validate(this._focused);
this.item=null;
}else{
this.set("item",_3d3[0],_3d5);
}
},_openResultList:function(_3d6,_3d7){
if(_3d7.query[this.searchAttr]!=this._lastQuery){
return;
}
if(this.item===undefined){
this._isvalid=_3d6.length!=0||this._maxOptions!=0;
this.validate(true);
}
dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);
},_getValueAttr:function(){
return this.valueNode.value;
},_getValueField:function(){
return "value";
},_setValueAttr:function(_3d8,_3d9){
if(!this._onChangeActive){
_3d9=null;
}
this._lastQuery=_3d8;
if(_3d8===null||_3d8===""){
this._setDisplayedValueAttr("",_3d9);
return;
}
var self=this;
this.store.fetchItemByIdentity({identity:_3d8,onItem:function(item){
self._callbackSetLabel(item?[item]:[],undefined,_3d9);
}});
},_setItemAttr:function(item,_3da,_3db){
this._isvalid=true;
this.inherited(arguments);
this.valueNode.value=this.value;
this._lastDisplayedValue=this.textbox.value;
},_getDisplayQueryString:function(text){
return text.replace(/([\\\*\?])/g,"\\$1");
},_setDisplayedValueAttr:function(_3dc,_3dd){
if(!this._created){
_3dd=false;
}
if(this.store){
this._hideResultList();
var _3de=dojo.clone(this.query);
this._lastQuery=_3de[this.searchAttr]=this._getDisplayQueryString(_3dc);
this.textbox.value=_3dc;
this._lastDisplayedValue=_3dc;
var _3df=this;
var _3e0={query:_3de,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_3e1,_3e2){
_3df._fetchHandle=null;
dojo.hitch(_3df,"_callbackSetLabel")(_3e1,_3e2,_3dd);
},onError:function(_3e3){
_3df._fetchHandle=null;
console.error("dijit.form.FilteringSelect: "+_3e3);
dojo.hitch(_3df,"_callbackSetLabel")([],undefined,false);
}};
dojo.mixin(_3e0,this.fetchProperties);
this._fetchHandle=this.store.fetch(_3e0);
}
},postMixInProperties:function(){
this.inherited(arguments);
this._isvalid=!this.required;
},undo:function(){
this.set("displayedValue",this._lastDisplayedValue);
}});
}
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;
}
this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");
this.toggleDropDown();
},_onDropDownMouseUp:function(e){
if(e&&this._docHandler){
this.disconnect(this._docHandler);
}
var _3e4=this.dropDown,_3e5=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&&!_3e5){
if(dojo.hasClass(t,"dijitPopup")){
_3e5=true;
}else{
t=t.parentNode;
}
}
if(_3e5){
t=e.target;
if(_3e4.onItemClick){
var _3e6;
while(t&&!(_3e6=dijit.byNode(t))){
t=t.parentNode;
}
if(_3e6&&_3e6.onClick&&_3e6.getParent){
_3e6.getParent().onItemClick(_3e6,e);
}
}
return;
}
}
}
if(this._opened&&_3e4.focus&&_3e4.autoFocus!==false){
window.setTimeout(dojo.hitch(_3e4,"focus"),1);
}
},_onDropDownClick:function(e){
if(this._stopClickEvents){
dojo.stopEvent(e);
}
},_setupDropdown:function(){
this._buttonNode=this._buttonNode||this.focusNode||this.domNode;
this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;
this._aroundNode=this._aroundNode||this.domNode;
this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");
this.connect(this._buttonNode,"onclick","_onDropDownClick");
this.connect(this._buttonNode,"onkeydown","_onDropDownKeydown");
this.connect(this._buttonNode,"onkeyup","_onKey");
if(this._setStateClass){
this.connect(this,"openDropDown","_setStateClass");
this.connect(this,"closeDropDown","_setStateClass");
}
var _3e7={"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"+_3e7+"ArrowButton");
},postCreate:function(){
this._setupDropdown();
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
if(!this.dropDown._destroyed){
this.dropDown.destroyRecursive();
}
delete this.dropDown;
}
this.inherited(arguments);
},_onDropDownKeydown:function(e){
if(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.keyCode==dojo.keys.SPACE){
e.preventDefault();
}
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
var d=this.dropDown;
if(d&&this._opened&&d.handleKey){
if(d.handleKey(e)===false){
return;
}
}
if(d&&this._opened&&e.keyCode==dojo.keys.ESCAPE){
this.toggleDropDown();
}else{
if(d&&!this._opened&&(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.keyCode==dojo.keys.SPACE)){
this.toggleDropDown();
if(d.focus){
setTimeout(dojo.hitch(d,"focus"),1);
}
}
}
},_onBlur:function(){
this.closeDropDown();
this.inherited(arguments);
},isLoaded:function(){
return true;
},loadDropDown:function(_3e8){
_3e8();
},toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
this.focus();
var _3e9=this.dropDown;
if(!_3e9){
return;
}
if(!this._opened){
if(!this.isLoaded()){
this.loadDropDown(dojo.hitch(this,"openDropDown"));
return;
}else{
this.openDropDown();
}
}else{
this.closeDropDown();
}
},openDropDown:function(){
var _3ea=this.dropDown;
var _3eb=_3ea.domNode;
var self=this;
if(!this._preparedNode){
dijit.popup.moveOffScreen(_3ea);
this._preparedNode=true;
if(_3eb.style.width){
this._explicitDDWidth=true;
}
if(_3eb.style.height){
this._explicitDDHeight=true;
}
}
if(this.maxHeight||this.forceWidth||this.autoWidth){
var _3ec={display:"",visibility:"hidden"};
if(!this._explicitDDWidth){
_3ec.width="";
}
if(!this._explicitDDHeight){
_3ec.height="";
}
dojo.style(_3eb,_3ec);
var mb=dojo.marginBox(_3eb);
var _3ed=(this.maxHeight&&mb.h>this.maxHeight);
dojo.style(_3eb,{overflowX:"hidden",overflowY:_3ed?"auto":"hidden"});
if(_3ed){
mb.h=this.maxHeight;
if("w" in mb){
mb.w+=16;
}
}else{
delete mb.h;
}
delete mb.t;
delete mb.l;
if(this.forceWidth){
mb.w=this.domNode.offsetWidth;
}else{
if(this.autoWidth){
mb.w=Math.max(mb.w,this.domNode.offsetWidth);
}else{
delete mb.w;
}
}
if(dojo.isFunction(_3ea.resize)){
_3ea.resize(mb);
}else{
dojo.marginBox(_3eb,mb);
}
}
var _3ee=dijit.popup.open({parent:this,popup:_3ea,around:this._aroundNode,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;
self.state="";
}});
dojo.attr(this._popupStateNode,"popupActive","true");
dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");
this._opened=true;
this.state="Opened";
return _3ee;
},closeDropDown:function(_3ef){
if(this._opened){
if(_3ef){
this.focus();
}
dijit.popup.close(this.dropDown);
this._opened=false;
this.state="";
}
}});
}
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\twaiRole=\"button\" waiState=\"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\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode",iconClass:{node:"iconNode",type:"class"}}),_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 _3f0=dijit.byNode(node);
if(_3f0&&typeof _3f0._onSubmit=="function"){
_3f0._onSubmit(e);
break;
}
}
}else{
if(this.valueNode){
this.valueNode.click();
e.preventDefault();
}
}
}
},_fillContent:function(_3f1){
if(_3f1&&(!this.params||!("label" in this.params))){
this.set("label",_3f1.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},_setShowLabelAttr:function(val){
if(this.containerNode){
dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);
}
this.showLabel=val;
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_3f2){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");
this.set("label",_3f2);
},_setLabelAttr:function(_3f3){
this.containerNode.innerHTML=this.label=_3f3;
if(this.showLabel==false&&!this.params.title){
this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
}
}});
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\twaiRole=\"button\" waiState=\"haspopup-true,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\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){
if(this.srcNodeRef){
var _3f4=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_3f4[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _3f5=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_3f5);
delete this.dropDownContainer;
}
dijit.popup.moveOffScreen(this.dropDown);
this.inherited(arguments);
},isLoaded:function(){
var _3f6=this.dropDown;
return (!_3f6.href||_3f6.isLoaded);
},loadDropDown:function(){
var _3f7=this.dropDown;
if(!_3f7){
return;
}
if(!this.isLoaded()){
var _3f8=dojo.connect(_3f7,"onLoad",this,function(){
dojo.disconnect(_3f8);
this.openDropDown();
});
_3f7.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' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"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\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"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\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"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(_3f9){
dijit.focus(_3f9=="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(_3fa,_3fb){
this.checked=_3fa;
dojo.attr(this.focusNode||this.domNode,"checked",_3fa);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_3fa);
this._handleOnChange(_3fa,_3fb);
},setChecked:function(_3fc){
dojo.deprecated("setChecked("+_3fc+") is deprecated. Use set('checked',"+_3fc+") instead.","","2.0");
this.set("checked",_3fc);
},reset:function(){
this._hasBeenBlurred=false;
this.set("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_3fd,_3fe){
var c=document.cookie;
if(arguments.length==1){
var _3ff=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _3ff?decodeURIComponent(_3ff[1]):undefined;
}else{
_3fe=_3fe||{};
var exp=_3fe.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_3fe.expires=d;
}
if(exp&&exp.toUTCString){
_3fe.expires=exp.toUTCString();
}
_3fd=encodeURIComponent(_3fd);
var _400=name+"="+_3fd,_401;
for(_401 in _3fe){
_400+="; "+_401;
var _402=_3fe[_401];
if(_402!==true){
_400+="="+_402;
}
}
document.cookie=_400;
}
};
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.form.ToggleButton"]){
dojo._hasResource["dijit.form.ToggleButton"]=true;
dojo.provide("dijit.form.ToggleButton");
}
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 wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){
dijit.setWaiRole(this.domNode,"tablist");
this.pane2button={};
this.pane2handles={};
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,_403){
var cls=dojo.getObject(this.buttonWidget);
var _404=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(_404.focusNode,"selected","false");
this.pane2handles[page.id]=[this.connect(page,"set",function(name,_405){
var _406={title:"label",showTitle:"showLabel",iconClass:"iconClass",closable:"closeButton",tooltip:"title"}[name];
if(_406){
_404.set(_406,_405);
}
}),this.connect(_404,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_404,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];
this.addChild(_404,_403);
this.pane2button[page.id]=_404;
page.controlButton=_404;
if(!this._currentChild){
_404.focusNode.setAttribute("tabIndex","0");
dijit.setWaiState(_404.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.pane2handles[page.id],this.disconnect,this);
delete this.pane2handles[page.id];
var _407=this.pane2button[page.id];
if(_407){
this.removeChild(_407);
delete this.pane2button[page.id];
_407.destroy();
}
delete page.controlButton;
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _408=this.pane2button[this._currentChild.id];
_408.set("checked",false);
dijit.setWaiState(_408.focusNode,"selected","false");
_408.focusNode.setAttribute("tabIndex","-1");
}
var _409=this.pane2button[page.id];
_409.set("checked",true);
dijit.setWaiState(_409.focusNode,"selected","true");
this._currentChild=page;
_409.focusNode.setAttribute("tabIndex","0");
var _40a=dijit.byId(this.containerId);
dijit.setWaiState(_40a.containerNode,"labelledby",_409.id);
},onButtonClick:function(page){
var _40b=dijit.byId(this.containerId);
_40b.selectChild(page);
},onCloseButtonClick:function(page){
var _40c=dijit.byId(this.containerId);
_40c.closeChild(page);
if(this._currentChild){
var b=this.pane2button[this._currentChild.id];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
}
},adjacent:function(_40d){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_40d=!_40d;
}
var _40e=this.getChildren();
var _40f=dojo.indexOf(_40e,this.pane2button[this._currentChild.id]);
var _410=_40d?1:_40e.length-1;
return _40e[(_40f+_410)%_40e.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _411=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_411=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_411=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_411=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_411=true;
}
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(_411!==null){
this.adjacent(_411).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",postCreate:function(evt){
dijit.setWaiRole((this.focusNode||this.domNode),"tab");
this.inherited(arguments);
},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",postCreate:function(){
this.inherited(arguments);
dojo.addClass(this.domNode,"dijitLayoutContainer");
dijit.setWaiRole(this.containerNode,"tabpanel");
this.connect(this.domNode,"onkeypress",this._onKeyPress);
},startup:function(){
if(this._started){
return;
}
var _412=this.getChildren();
dojo.forEach(_412,this._setupChild,this);
if(this.persist){
this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));
}else{
dojo.some(_412,function(_413){
if(_413.selected){
this.selectedChildWidget=_413;
}
return _413.selected;
},this);
}
var _414=this.selectedChildWidget;
if(!_414&&_412[0]){
_414=this.selectedChildWidget=_412[0];
_414.selected=true;
}
dojo.publish(this.id+"-startup",[{children:_412,selected:_414}]);
this.inherited(arguments);
},resize:function(){
var _415=this.selectedChildWidget;
if(_415&&!this._hasBeenShown){
this._hasBeenShown=true;
this._showChild(_415);
}
this.inherited(arguments);
},_setupChild:function(_416){
this.inherited(arguments);
dojo.removeClass(_416.domNode,"dijitVisible");
dojo.addClass(_416.domNode,"dijitHidden");
_416.domNode.title="";
},addChild:function(_417,_418){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_417,_418]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_417);
}
}
},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 _419=this.getChildren();
if(_419.length){
this.selectChild(_419[0]);
}
}
}
if(this._started){
this.layout();
}
},selectChild:function(page,_41a){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget,_41a);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
if(this.persist){
dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);
}
}
},_transition:function(_41b,_41c){
if(_41c){
this._hideChild(_41c);
}
this._showChild(_41b);
if(_41b.resize){
if(this.doLayout){
_41b.resize(this._containerContentBox||this._contentBox);
}else{
_41b.resize();
}
}
},_adjacent:function(_41d){
var _41e=this.getChildren();
var _41f=dojo.indexOf(_41e,this.selectedChildWidget);
_41f+=_41d?1:_41e.length-1;
return _41e[_41f%_41e.length];
},forward:function(){
this.selectChild(this._adjacent(true),true);
},back:function(){
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 _420=this.getChildren();
page.isFirstChild=(page==_420[0]);
page.isLastChild=(page==_420[_420.length-1]);
page.selected=true;
dojo.removeClass(page.domNode,"dijitHidden");
dojo.addClass(page.domNode,"dijitVisible");
page._onShow();
},_hideChild:function(page){
page.selected=false;
dojo.removeClass(page.domNode,"dijitVisible");
dojo.addClass(page.domNode,"dijitHidden");
page.onHide();
},closeChild:function(page){
var _421=page.onClose(this,page);
if(_421){
this.removeChild(page);
page.destroyRecursive();
}
},destroyDescendants:function(_422){
dojo.forEach(this.getChildren(),function(_423){
this.removeChild(_423);
_423.destroyRecursive(_422);
},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);
},postCreate: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 _424=this.tabPosition.replace(/-h/,"");
this.tablist.layoutAlign=_424;
var _425=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_424},{domNode:this.containerNode,layoutAlign:"client"}];
dijit.layout.layoutChildren(this.domNode,this._contentBox,_425);
this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_425[2]);
if(sc&&sc.resize){
sc.resize(this._containerContentBox);
}
}else{
if(this.tablist.resize){
this.tablist.resize({w:dojo.contentBox(this.domNode).w});
}
if(sc&&sc.resize){
sc.resize();
}
}
},destroy:function(){
if(this.tablist){
this.tablist.destroy();
}
this.inherited(arguments);
}});
}
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(_426,_427){
var _428=(this._keyNavCodes={});
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_426,function(code){
_428[code]=prev;
});
dojo.forEach(_427,function(code){
_428[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_429,_42a){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_429);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
var _42b=this._getFirstFocusableChild();
if(_42b){
this.focusChild(_42b);
}
},focusNext:function(){
var _42c=this._getNextFocusableChild(this.focusedChild,1);
this.focusChild(_42c);
},focusPrev:function(){
var _42d=this._getNextFocusableChild(this.focusedChild,-1);
this.focusChild(_42d,true);
},focusChild:function(_42e,last){
if(this.focusedChild&&_42e!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
_42e.focus(last?"end":"start");
this.focusedChild=_42e;
},_startupChild:function(_42f){
_42f.set("tabIndex","-1");
this.connect(_42f,"_onFocus",function(){
_42f.set("tabIndex",this.tabIndex);
});
this.connect(_42f,"_onBlur",function(){
_42f.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(_430){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_431,dir){
if(_431){
_431=this._getSiblingOfChild(_431,dir);
}
var _432=this.getChildren();
for(var i=0;i<_432.length;i++){
if(!_431){
_431=_432[(dir>0)?0:(_432.length-1)];
}
if(_431.isFocusable()){
return _431;
}
_431=this._getSiblingOfChild(_431,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\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" waiRole=\"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\" waiRole=\"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(_433){
if(_433&&!("label" in this.params)){
this.set("label",_433.innerHTML);
}
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
var _434=this.id+"_text";
dojo.attr(this.containerNode,"id",_434);
if(this.accelKeyNode){
dojo.attr(this.accelKeyNode,"id",this.id+"_accel");
_434+=" "+this.id+"_accel";
}
dijit.setWaiState(this.domNode,"labelledby",_434);
},_onHover:function(){
this.getParent().onItemHover(this);
},_onUnhover:function(){
this.getParent().onItemUnhover(this);
this._hovering=false;
this._setStateClass();
},_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(_435){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_435);
},setLabel:function(_436){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");
this.set("label",_436);
},setDisabled:function(_437){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");
this.set("disabled",_437);
},_setDisabledAttr:function(_438){
this.disabled=_438;
dijit.setWaiState(this.focusNode,"disabled",_438?"true":"false");
},_setAccelKeyAttr:function(_439){
this.accelKey=_439;
this.accelKeyNode.style.display=_439?"":"none";
this.accelKeyNode.innerHTML=_439;
dojo.attr(this.containerNode,"colSpan",_439?"1":"2");
}});
}
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 _43a=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_43a[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\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" waiRole=\"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\" waiRole=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_43b){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_43b);
dijit.setWaiState(this.domNode,"checked",_43b);
this.checked=_43b;
},onChange:function(_43c){
},_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"),postCreate:function(){
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(_43d){
_43d.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_43e){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}else{
var _43f=this._getTopMenu();
if(_43f&&_43f._isMenuBar){
_43f.focusNext();
}
}
},_onPopupHover:function(evt){
if(this.currentPopup&&this.currentPopup._pendingClose_timer){
var _440=this.currentPopup.parentMenu;
if(_440.focusedChild){
_440.focusedChild._setSelected(false);
}
_440.focusedChild=this.currentPopup.from_item;
_440.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 _441=item.popup;
if(_441){
this._stopPendingCloseTimer(_441);
_441._pendingClose_timer=setTimeout(function(){
_441._pendingClose_timer=null;
if(_441.parentMenu){
_441.parentMenu.currentPopup=null;
}
dijit.popup.close(_441);
},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(_442){
if(_442._pendingClose_timer){
clearTimeout(_442._pendingClose_timer);
_442._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 _443=this.focusedChild;
if(!_443){
return;
}
var _444=_443.popup;
if(_444.isShowingNow){
return;
}
if(this.currentPopup){
this._stopPendingCloseTimer(this.currentPopup);
dijit.popup.close(this.currentPopup);
}
_444.parentMenu=this;
_444.from_item=_443;
var self=this;
dijit.popup.open({parent:this,popup:_444,around:_443.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(_443);
self._cleanUp();
_443._setSelected(true);
self.focusedChild=_443;
},onExecute:dojo.hitch(this,"_cleanUp")});
this.currentPopup=_444;
_444.connect(_444.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));
if(_444.focus){
_444._focus_timer=setTimeout(dojo.hitch(_444,function(){
this._focus_timer=null;
this.focus();
}),0);
}
},_markActive:function(){
this.isActive=true;
dojo.addClass(this.domNode,"dijitMenuActive");
dojo.removeClass(this.domNode,"dijitMenuPassive");
},onOpen:function(e){
this.isShowingNow=true;
this._markActive();
},_markInactive:function(){
this.isActive=false;
dojo.removeClass(this.domNode,"dijitMenuActive");
dojo.addClass(this.domNode,"dijitMenuPassive");
},onClose:function(){
this._stopFocusTimer();
this._markInactive();
this.isShowingNow=false;
this.parentMenu=null;
},_closeChild:function(){
this._stopPopupTimer();
if(this.focusedChild){
this.focusedChild._setSelected(false);
this.focusedChild._onUnhover();
this.focusedChild=null;
}
if(this.currentPopup){
dijit.popup.close(this.currentPopup);
this.currentPopup=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\" waiRole=\"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(_445){
var win=dojo.window.get(this._iframeContentDocument(_445))||this._iframeContentDocument(_445)["__parent__"]||(_445.name&&dojo.doc.frames[_445.name])||null;
return win;
},_iframeContentDocument:function(_446){
var doc=_446.contentDocument||(_446.contentWindow&&_446.contentWindow.document)||(_446.name&&dojo.doc.frames[_446.name]&&dojo.doc.frames[_446.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var cn;
if(node.tagName.toLowerCase()=="iframe"){
var _447=node,win=this._iframeContentWindow(_447);
cn=dojo.withGlobal(win,dojo.body);
}else{
cn=(node==dojo.body()?dojo.doc.documentElement:node);
}
var _448={node:node,iframe:_447};
dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_448));
var _449=dojo.hitch(this,function(cn){
return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){
dojo.stopEvent(evt);
this._scheduleOpen(evt.target,_447,{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,_447);
}
})];
});
_448.connects=cn?_449(cn):[];
if(_447){
_448.onloadHandler=dojo.hitch(this,function(){
var win=this._iframeContentWindow(_447);
cn=dojo.withGlobal(win,dojo.body);
_448.connects=_449(cn);
});
if(_447.addEventListener){
_447.addEventListener("load",_448.onloadHandler,false);
}else{
_447.attachEvent("onload",_448.onloadHandler);
}
}
},unBindDomNode:function(_44a){
var node;
try{
node=dojo.byId(_44a);
}
catch(e){
return;
}
var _44b="_dijitMenu"+this.id;
if(node&&dojo.hasAttr(node,_44b)){
var bid=dojo.attr(node,_44b)-1,b=this._bindings[bid];
dojo.forEach(b.connects,dojo.disconnect);
var _44c=b.iframe;
if(_44c){
if(_44c.removeEventListener){
_44c.removeEventListener("load",b.onloadHandler,false);
}else{
_44c.detachEvent("onload",b.onloadHandler);
}
}
dojo.removeAttr(node,_44b);
delete this._bindings[bid];
}
},_scheduleOpen:function(_44d,_44e,_44f){
if(!this._openTimer){
this._openTimer=setTimeout(dojo.hitch(this,function(){
delete this._openTimer;
this._openMyself({target:_44d,iframe:_44e,coords:_44f});
}),1);
}
},_openMyself:function(args){
var _450=args.target,_451=args.iframe,_452=args.coords;
if(_452){
if(_451){
var od=_450.ownerDocument,ifc=dojo.position(_451,true),win=this._iframeContentWindow(_451),_453=dojo.withGlobal(win,"_docScroll",dojo);
var cs=dojo.getComputedStyle(_451),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_451,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_451,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_451,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_451,cs.borderTopWidth):0);
_452.x+=ifc.x+left-_453.x;
_452.y+=ifc.y+top-_453.y;
}
}else{
_452=dojo.position(_450,true);
_452.x+=10;
_452.y+=10;
}
var self=this;
var _454=dijit.getFocus(this);
function _455(){
if(self.refocus){
dijit.focus(_454);
}
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:_452.x,y:_452.y,onExecute:_455,onCancel:_455,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.layout.TabController"]){
dojo._hasResource["dijit.layout.TabController"]=true;
dojo.provide("dijit.layout.TabController");
dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='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 _456=0;
for(var pane in this.pane2button){
var ow=this.pane2button[pane].innerDiv.scrollWidth;
_456=Math.max(_456,ow);
}
for(pane in this.pane2button){
this.pane2button[pane].innerDiv.style.width=_456+"px";
}
}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div waiRole=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n        \t<div waiRole=\"presentation\" dojoAttachPoint='focusNode'>\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon\" 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' waiRole=\"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,postMixInProperties:function(){
if(!this.iconClass){
this.iconClass="dijitTabButtonIcon";
}
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.containerNode,false);
if(this.iconNode.className=="dijitTabButtonIcon"){
dojo.style(this.iconNode,"width","1px");
}
},startup:function(){
this.inherited(arguments);
var n=this.domNode;
setTimeout(function(){
n.className=n.className;
},1);
},_setCloseButtonAttr:function(disp){
this.closeButton=disp;
dojo.toggleClass(this.innerDiv,"dijitClosable",disp);
this.closeNode.style.display=disp?"":"none";
if(disp){
var _457=dojo.i18n.getLocalization("dijit","common");
if(this.closeNode){
dojo.attr(this.closeNode,"title",_457.itemClose);
}
var _457=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:_457.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));
}else{
if(this._closeMenu){
this._closeMenu.destroyRecursive();
delete this._closeMenu;
}
}
},_setLabelAttr:function(_458){
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._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_menuBtn\" iconClass=\"dijitTabStripMenuIcon\"\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 wairole='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"}),postCreate: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,_459){
this.inherited(arguments);
var _45a;
if(this.useMenu){
var _45b=this.containerId;
_45a=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,dir:page.dir,lang:page.lang,onClick:dojo.hitch(this,function(){
var _45c=dijit.byId(_45b);
_45c.selectChild(page);
})});
this._menuChildren[page.id]=_45a;
this._menu.addChild(_45a,_459);
}
this.pane2handles[page.id].push(this.connect(this.pane2button[page.id],"set",function(name,_45d){
if(this._postStartup){
if(name=="label"){
if(_45a){
_45a.set(name,_45d);
}
if(this._dim){
this.resize(this._dim);
}
}
}
}));
dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");
},onRemoveChild:function(page,_45e){
var _45f=this.pane2button[page.id];
if(this._selectedTab===_45f.domNode){
this._selectedTab=null;
}
if(this.useMenu&&page&&page.id&&this._menuChildren[page.id]){
this._menu.removeChild(this._menuChildren[page.id]);
this._menuChildren[page.id].destroy();
delete this._menuChildren[page.id];
}
this.inherited(arguments);
},_initButtons:function(){
this._menuChildren={};
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.marginBox(btn).w;
return true;
}else{
dojo.style(btn,"display","none");
return false;
}
},this);
if(this.useMenu){
this._menu=new dijit.Menu({id:this.id+"_menu",dir:this.dir,lang:this.lang,targetNodeIds:[this._menuBtn.domNode],leftClickToOpen:true,refocus:false});
this._supportingWidgets.push(this._menu);
}
},_getTabsWidth:function(){
var _460=this.getChildren();
if(_460.length){
var _461=_460[this.isLeftToRight()?0:_460.length-1].domNode,_462=_460[this.isLeftToRight()?_460.length-1:0].domNode;
return _462.offsetLeft+dojo.style(_462,"width")-_461.offsetLeft;
}else{
return 0;
}
},_enableBtn:function(_463){
var _464=this._getTabsWidth();
_463=_463||dojo.style(this.scrollNode,"width");
return _464>0&&_463<_464;
},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 _465=this._enableBtn(this._contentBox.w);
this._buttons.style("display",_465?"":"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;
},_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 _466=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");
return (dojo.isIE==8?-1:1)*(val-_466);
}
},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 _467=this.getChildren(),_468=dojo.style(this.scrollNode,"width"),_469=dojo.style(this.containerNode,"width"),_46a=_469-_468,_46b=this._getTabsWidth();
if(_467.length&&_46b>_468){
return {min:this.isLeftToRight()?0:_467[_467.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_467[_467.length-1].domNode.offsetLeft+dojo.style(_467[_467.length-1].domNode,"width"))-_468:_46a};
}else{
var _46c=this.isLeftToRight()?0:_46a;
return {min:_46c,max:_46c};
}
},_getScrollForSelectedTab:function(){
var w=this.scrollNode,n=this._selectedTab,_46d=dojo.style(this.scrollNode,"width"),_46e=this._getScrollBounds();
var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_46d/2;
pos=Math.min(Math.max(pos,_46e.min),_46e.max);
return pos;
},createSmoothScroll:function(x){
if(arguments.length>0){
var _46f=this._getScrollBounds();
x=Math.min(Math.max(x,_46f.min),_46f.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(_470,node){
if(node&&dojo.hasClass(node,"dijitTabDisabled")){
return;
}
var _471=dojo.style(this.scrollNode,"width");
var d=(_471*0.75)*_470;
var to=this._getScroll()+d;
this._setButtonClass(to);
this.createSmoothScroll(to).play();
},_setButtonClass:function(_472){
var _473=this._getScrollBounds();
this._leftBtn.set("disabled",_472<=_473.min);
this._rightBtn.set("disabled",_472>=_473.max);
}});
dojo.declare("dijit.layout._ScrollingTabControllerButton",dijit.form.Button,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\n\t<div waiRole=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div waiRole=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img waiRole=\"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:"-1"});
}
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(_474){
var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_475=dojo.getObject(this.controllerWidget);
return new _475({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},_474);
},postMixInProperties:function(){
this.inherited(arguments);
if(!this.controllerWidget){
this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";
}
}});
}
if(!dojo._hasResource["dojo.io.iframe"]){
dojo._hasResource["dojo.io.iframe"]=true;
dojo.provide("dojo.io.iframe");
dojo.io.iframe={create:function(_476,_477,uri){
if(window[_476]){
return window[_476];
}
if(window.frames[_476]){
return window.frames[_476];
}
var _478=null;
var turi=uri;
if(!turi){
if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){
console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");
}
turi=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));
}
var _479=dojo.isIE?"<iframe name=\""+_476+"\" src=\""+turi+"\" onload=\""+_477+"\">":"iframe";
_478=dojo.doc.createElement(_479);
with(_478){
name=_476;
setAttribute("name",_476);
id=_476;
}
dojo.body().appendChild(_478);
window[_476]=_478;
with(_478.style){
if(!(dojo.isSafari<3)){
position="absolute";
}
left=top="1px";
height=width="1px";
visibility="hidden";
}
if(!dojo.isIE){
this.setSrc(_478,turi,true);
_478.onload=new Function(_477);
}
return _478;
},setSrc:function(_47a,src,_47b){
try{
if(!_47b){
if(dojo.isWebKit){
_47a.location=src;
}else{
frames[_47a.name].location=src;
}
}else{
var idoc;
if(dojo.isIE||dojo.isWebKit>521){
idoc=_47a.contentWindow.document;
}else{
if(dojo.isSafari){
idoc=_47a.document;
}else{
idoc=_47a.contentWindow;
}
}
if(!idoc){
_47a.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
console.log("dojo.io.iframe.setSrc: ",e);
}
},doc:function(_47c){
var doc=_47c.contentDocument||(((_47c.name)&&(_47c.document)&&(dojo.doc.getElementsByTagName("iframe")[_47c.name].contentWindow)&&(dojo.doc.getElementsByTagName("iframe")[_47c.name].contentWindow.document)))||((_47c.name)&&(dojo.doc.frames[_47c.name])&&(dojo.doc.frames[_47c.name].document))||null;
return doc;
},send:function(args){
if(!this["_frame"]){
this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");
}
var dfd=dojo._ioSetArgs(args,function(dfd){
dfd.canceled=true;
dfd.ioArgs._callNext();
},function(dfd){
var _47d=null;
try{
var _47e=dfd.ioArgs;
var dii=dojo.io.iframe;
var ifd=dii.doc(dii._frame);
var _47f=_47e.handleAs;
_47d=ifd;
if(_47f!="html"){
if(_47f=="xml"){
if(dojo.isIE){
dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();
var _480=(dii._frame.contentWindow.document).documentElement.innerText;
_480=_480.replace(/>\s+</g,"><");
_480=dojo.trim(_480);
var _481={responseText:_480};
_47d=dojo._contentHandlers["xml"](_481);
}
}else{
_47d=ifd.getElementsByTagName("textarea")[0].value;
if(_47f=="json"){
_47d=dojo.fromJson(_47d);
}else{
if(_47f=="javascript"){
_47d=dojo.eval(_47d);
}
}
}
}
}
catch(e){
_47d=e;
}
finally{
_47e._callNext();
}
return _47d;
},function(_482,dfd){
dfd.ioArgs._hasError=true;
dfd.ioArgs._callNext();
return _482;
});
dfd.ioArgs._callNext=function(){
if(!this["_calledNext"]){
this._calledNext=true;
dojo.io.iframe._currentDfd=null;
dojo.io.iframe._fireNextRequest();
}
};
this._dfdQueue.push(dfd);
this._fireNextRequest();
dojo._ioWatch(dfd,function(dfd){
return !dfd.ioArgs["_hasError"];
},function(dfd){
return (!!dfd.ioArgs["_finished"]);
},function(dfd){
if(dfd.ioArgs._finished){
dfd.callback(dfd);
}else{
dfd.errback(new Error("Invalid dojo.io.iframe request state"));
}
});
return dfd;
},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){
try{
if((this._currentDfd)||(this._dfdQueue.length==0)){
return;
}
do{
var dfd=this._currentDfd=this._dfdQueue.shift();
}while(dfd&&dfd.canceled&&this._dfdQueue.length);
if(!dfd||dfd.canceled){
this._currentDfd=null;
return;
}
var _483=dfd.ioArgs;
var args=_483.args;
_483._contentToClean=[];
var fn=dojo.byId(args["form"]);
var _484=args["content"]||{};
if(fn){
if(_484){
var _485=function(name,_486){
var tn;
if(dojo.isIE){
tn=dojo.doc.createElement("<input type='hidden' name='"+name+"'>");
}else{
tn=dojo.doc.createElement("input");
tn.type="hidden";
tn.name=name;
}
tn.value=_486;
fn.appendChild(tn);
_483._contentToClean.push(name);
};
for(var x in _484){
var val=_484[x];
if(dojo.isArray(val)&&val.length>1){
var i;
for(i=0;i<val.length;i++){
_485(x,val[i]);
}
}else{
if(!fn[x]){
_485(x,val);
}else{
fn[x].value=val;
}
}
}
}
var _487=fn.getAttributeNode("action");
var _488=fn.getAttributeNode("method");
var _489=fn.getAttributeNode("target");
if(args["url"]){
_483._originalAction=_487?_487.value:null;
if(_487){
_487.value=args.url;
}else{
fn.setAttribute("action",args.url);
}
}
if(!_488||!_488.value){
if(_488){
_488.value=(args["method"])?args["method"]:"post";
}else{
fn.setAttribute("method",(args["method"])?args["method"]:"post");
}
}
_483._originalTarget=_489?_489.value:null;
if(_489){
_489.value=this._iframeName;
}else{
fn.setAttribute("target",this._iframeName);
}
fn.target=this._iframeName;
dojo._ioNotifyStart(dfd);
fn.submit();
}else{
var _48a=args.url+(args.url.indexOf("?")>-1?"&":"?")+_483.query;
dojo._ioNotifyStart(dfd);
this.setSrc(this._frame,_48a,true);
}
}
catch(e){
dfd.errback(e);
}
},_iframeOnload:function(){
var dfd=this._currentDfd;
if(!dfd){
this._fireNextRequest();
return;
}
var _48b=dfd.ioArgs;
var args=_48b.args;
var _48c=dojo.byId(args.form);
if(_48c){
var _48d=_48b._contentToClean;
for(var i=0;i<_48d.length;i++){
var key=_48d[i];
for(var j=0;j<_48c.childNodes.length;j++){
var _48e=_48c.childNodes[j];
if(_48e.name==key){
dojo.destroy(_48e);
break;
}
}
}
if(_48b["_originalAction"]){
_48c.setAttribute("action",_48b._originalAction);
}
if(_48b["_originalTarget"]){
_48c.setAttribute("target",_48b._originalTarget);
_48c.target=_48b._originalTarget;
}
}
_48b._finished=true;
}};
}
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(args){
var _48f=this;
dojo.mixin(_48f,args);
_48f.node=args.node;
_48f._showArgs=dojo.mixin({},args);
_48f._showArgs.node=_48f.node;
_48f._showArgs.duration=_48f.showDuration;
_48f.showAnim=_48f.showFunc(_48f._showArgs);
_48f._hideArgs=dojo.mixin({},args);
_48f._hideArgs.node=_48f.node;
_48f._hideArgs.duration=_48f.hideDuration;
_48f.hideAnim=_48f.hideFunc(_48f._hideArgs);
dojo.connect(_48f.showAnim,"beforeBegin",dojo.hitch(_48f.hideAnim,"stop",true));
dojo.connect(_48f.hideAnim,"beforeBegin",dojo.hitch(_48f.showAnim,"stop",true));
},show:function(_490){
return this.showAnim.play(_490||0);
},hide:function(_491){
return this.hideAnim.play(_491||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_492={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _493=function(_494){
this._index=-1;
this._animations=_494||[];
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(_493,{_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(_495,_496){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_496&&this._current.status()=="playing"){
return this;
}
var _497=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_498=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_499=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_497);
d.disconnect(_498);
d.disconnect(_499);
});
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(_49a,_49b){
this.pause();
var _49c=this.duration*_49a;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_49c){
this._current=a;
return true;
}
_49c-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_49c/this._current.duration,_49b);
}
return this;
},stop:function(_49d){
if(this._current){
if(_49d){
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(_493,_492);
dojo.fx.chain=function(_49e){
return new _493(_49e);
};
var _49f=function(_4a0){
this._animations=_4a0||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_4a0,function(a){
var _4a1=a.duration;
if(a.delay){
_4a1+=a.delay;
}
if(this.duration<_4a1){
this.duration=_4a1;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});
var self=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){
self._connects.push(d.connect(self._pseudoAnimation,evt,function(){
self._fire(evt,arguments);
}));
});
};
d.extend(_49f,{_doAction:function(_4a2,args){
d.forEach(this._animations,function(a){
a[_4a2].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished>this._animations.length){
this._fire("onEnd");
}
},_call:function(_4a3,args){
var t=this._pseudoAnimation;
t[_4a3].apply(t,args);
},play:function(_4a4,_4a5){
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(_4a6,_4a7){
var ms=this.duration*_4a6;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_4a7);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_4a8){
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(_49f,_492);
dojo.fx.combine=function(_4a9){
return new _49f(_4a9);
};
dojo.fx.wipeIn=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=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 _4aa=d.style(node,"height");
return Math.max(_4aa,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));
d.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=args.node=d.byId(args.node),top=null,left=null;
var init=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.position(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));
d.connect(anim,"beforeBegin",anim,init);
return anim;
};
})();
}
if(!dojo._hasResource["dojox.widget.Toaster"]){
dojo._hasResource["dojox.widget.Toaster"]=true;
dojo.provide("dojox.widget.Toaster");
dojo.declare("dojox.widget.Toaster",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToasterClip\" dojoAttachPoint=\"clipNode\"><div class=\"dijitToasterContainer\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onclick:onSelect\"><div class=\"dijitToasterContent\" dojoAttachPoint=\"contentNode\"></div></div></div>",messageTopic:"",messageTypes:{MESSAGE:"message",WARNING:"warning",ERROR:"error",FATAL:"fatal"},defaultType:"message",positionDirection:"br-up",positionDirectionTypes:["br-up","br-left","bl-up","bl-right","tr-down","tr-left","tl-down","tl-right"],duration:2000,slideDuration:500,separator:"<hr></hr>",postCreate:function(){
this.inherited(arguments);
this.hide();
dojo.body().appendChild(this.domNode);
if(this.messageTopic){
dojo.subscribe(this.messageTopic,this,"_handleMessage");
}
},_handleMessage:function(_4ab){
if(dojo.isString(_4ab)){
this.setContent(_4ab);
}else{
this.setContent(_4ab.message,_4ab.type,_4ab.duration);
}
},_capitalize:function(w){
return w.substring(0,1).toUpperCase()+w.substring(1);
},setContent:function(_4ac,_4ad,_4ae){
_4ae=_4ae||this.duration;
if(this.slideAnim){
if(this.slideAnim.status()!="playing"){
this.slideAnim.stop();
}
if(this.slideAnim.status()=="playing"||(this.fadeAnim&&this.fadeAnim.status()=="playing")){
setTimeout(dojo.hitch(this,function(){
this.setContent(_4ac,_4ad,_4ae);
}),50);
return;
}
}
for(var type in this.messageTypes){
dojo.removeClass(this.containerNode,"dijitToaster"+this._capitalize(this.messageTypes[type]));
}
dojo.style(this.containerNode,"opacity",1);
this._setContent(_4ac);
dojo.addClass(this.containerNode,"dijitToaster"+this._capitalize(_4ad||this.defaultType));
this.show();
var _4af=dojo.marginBox(this.containerNode);
this._cancelHideTimer();
if(this.isVisible){
this._placeClip();
if(!this._stickyMessage){
this._setHideTimer(_4ae);
}
}else{
var _4b0=this.containerNode.style;
var pd=this.positionDirection;
if(pd.indexOf("-up")>=0){
_4b0.left=0+"px";
_4b0.top=_4af.h+10+"px";
}else{
if(pd.indexOf("-left")>=0){
_4b0.left=_4af.w+10+"px";
_4b0.top=0+"px";
}else{
if(pd.indexOf("-right")>=0){
_4b0.left=0-_4af.w-10+"px";
_4b0.top=0+"px";
}else{
if(pd.indexOf("-down")>=0){
_4b0.left=0+"px";
_4b0.top=0-_4af.h-10+"px";
}else{
throw new Error(this.id+".positionDirection is invalid: "+pd);
}
}
}
}
this.slideAnim=dojo.fx.slideTo({node:this.containerNode,top:0,left:0,duration:this.slideDuration});
this.connect(this.slideAnim,"onEnd",function(_4b1,anim){
this.fadeAnim=dojo.fadeOut({node:this.containerNode,duration:1000});
this.connect(this.fadeAnim,"onEnd",function(evt){
this.isVisible=false;
this.hide();
});
this._setHideTimer(_4ae);
this.connect(this,"onSelect",function(evt){
this._cancelHideTimer();
this._stickyMessage=false;
this.fadeAnim.play();
});
this.isVisible=true;
});
this.slideAnim.play();
}
},_setContent:function(_4b2){
if(dojo.isFunction(_4b2)){
_4b2(this);
return;
}
if(_4b2&&this.isVisible){
_4b2=this.contentNode.innerHTML+this.separator+_4b2;
}
this.contentNode.innerHTML=_4b2;
},_cancelHideTimer:function(){
if(this._hideTimer){
clearTimeout(this._hideTimer);
this._hideTimer=null;
}
},_setHideTimer:function(_4b3){
this._cancelHideTimer();
if(_4b3>0){
this._cancelHideTimer();
this._hideTimer=setTimeout(dojo.hitch(this,function(evt){
if(this.bgIframe&&this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
this._hideTimer=null;
this._stickyMessage=false;
this.fadeAnim.play();
}),_4b3);
}else{
this._stickyMessage=true;
}
},_placeClip:function(){
var view=dojo.window.getBox();
var _4b4=dojo.marginBox(this.containerNode);
var _4b5=this.clipNode.style;
_4b5.height=_4b4.h+"px";
_4b5.width=_4b4.w+"px";
var pd=this.positionDirection;
if(pd.match(/^t/)){
_4b5.top=view.t+"px";
}else{
if(pd.match(/^b/)){
_4b5.top=(view.h-_4b4.h-2+view.t)+"px";
}
}
if(pd.match(/^[tb]r-/)){
_4b5.left=(view.w-_4b4.w-1-view.l)+"px";
}else{
if(pd.match(/^[tb]l-/)){
_4b5.left=0+"px";
}
}
_4b5.clip="rect(0px, "+_4b4.w+"px, "+_4b4.h+"px, 0px)";
if(dojo.isIE){
if(!this.bgIframe){
this.clipNode.id=dijit.getUniqueId("dojox_widget_Toaster_clipNode");
this.bgIframe=new dijit.BackgroundIframe(this.clipNode);
}
var _4b6=this.bgIframe.iframe;
if(_4b6){
_4b6.style.display="block";
}
}
},onSelect:function(e){
},show:function(){
dojo.style(this.domNode,"display","block");
this._placeClip();
if(!this._scrollConnected){
this._scrollConnected=dojo.connect(window,"onscroll",this,this._placeClip);
}
},hide:function(){
dojo.style(this.domNode,"display","none");
if(this._scrollConnected){
dojo.disconnect(this._scrollConnected);
this._scrollConnected=false;
}
dojo.style(this.containerNode,"opacity",1);
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.iwecustom",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);

