if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
dojo.dnd._lmb=dojo.isIE?1:0;
dojo.dnd._isLmbPressed=dojo.isIE?function(e){
return e.button&1;
}:function(e){
return e.button===0;
};
}
if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isWebKit||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _1a=n.scrollLeft,_1b=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_1a!=n.scrollLeft||_1b!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}
if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Mover",null,{constructor:function(_1c,e,_1e){
this.node=dojo.byId(_1c);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=_1e,d=_1c.ownerDocument,_21=dojo.connect(d,"onmousemove",this,"onFirstMove");
this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_21];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
var b=dojo.doc.body;
var bs=dojo.getComputedStyle(b);
var bm=dojo._getMarginBox(b,bs);
var bc=dojo._getContentBox(b,bs);
l=m.l-(bc.l-bm.l);
t=m.t-(bc.t-bm.t);
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
if(h&&h.onFirstMove){
h.onFirstMove(this);
}
dojo.disconnect(this.events.pop());
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=this.host=null;
}});
}
if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_2f,_30){
this.node=dojo.byId(_2f);
if(!_30){
_30={};
}
this.handle=_30.handle?dojo.byId(_30.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_30.delay>0?_30.delay:0;
this.skip=_30.skip;
this.mover=_30.mover?_30.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function(_31,_32){
return new dojo.dnd.Moveable(_32,_31);
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
this.events=this.node=this.handle=null;
},onMouseDown:function(e){
if(this.skip&&dojo.dnd.isFormElement(e)){
return;
}
if(this.delay){
this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
this._lastX=e.pageX;
this._lastY=e.pageY;
}else{
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseMove:function(e){
if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
this.onMouseUp(e);
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseUp:function(e){
for(var i=0;i<2;++i){
dojo.disconnect(this.events.pop());
}
dojo.stopEvent(e);
},onSelectStart:function(e){
if(!this.skip||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onDragDetected:function(e){
new this.mover(this.node,e,this);
},onMoveStart:function(_39){
dojo.publish("/dnd/move/start",[_39]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_3a){
dojo.publish("/dnd/move/stop",[_3a]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_3b){
},onMove:function(_3c,_3d){
this.onMoving(_3c,_3d);
var s=_3c.node.style;
s.left=_3d.l+"px";
s.top=_3d.t+"px";
this.onMoved(_3c,_3d);
},onMoving:function(_3f,_40){
},onMoved:function(_41,_42){
}});
}
if(!dojo._hasResource["dojo.dnd.move"]){
dojo._hasResource["dojo.dnd.move"]=true;
dojo.provide("dojo.dnd.move");
dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){
},within:false,markupFactory:function(_43,_44){
return new dojo.dnd.move.constrainedMoveable(_44,_43);
},constructor:function(_45,_46){
if(!_46){
_46={};
}
this.constraints=_46.constraints;
this.within=_46.within;
},onFirstMove:function(_47){
var c=this.constraintBox=this.constraints.call(this,_47);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_47.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_4a,_4b){
var c=this.constraintBox,s=_4a.node.style;
s.left=(_4b.l<c.l?c.l:c.r<_4b.l?c.r:_4b.l)+"px";
s.top=(_4b.t<c.t?c.t:c.b<_4b.t?c.b:_4b.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4e,_4f){
return new dojo.dnd.move.boxConstrainedMoveable(_4f,_4e);
},constructor:function(_50,_51){
var box=_51&&_51.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_53,_54){
return new dojo.dnd.move.parentConstrainedMoveable(_54,_53);
},constructor:function(_55,_56){
var _57=_56&&_56.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_57=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_57=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_57=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
}});
dojo.dnd.move.constrainedMover=function(fun,_5d){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _5e=function(_5f,e,_61){
dojo.dnd.Mover.call(this,_5f,e,_61);
};
dojo.extend(_5e,dojo.dnd.Mover.prototype);
dojo.extend(_5e,{onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;
l=l<c.l?c.l:c.r<l?c.r:l;
t=t<c.t?c.t:c.b<t?c.b:t;
this.host.onMove(this,{l:l,t:t});
},onFirstMove:function(){
dojo.dnd.Mover.prototype.onFirstMove.call(this);
var c=this.constraintBox=fun.call(this);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(_5d){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _5e;
};
dojo.dnd.move.boxConstrainedMover=function(box,_6a){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_6a);
};
dojo.dnd.move.parentConstrainedMover=function(_6b,_6c){
dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
var fun=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_6b=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_6b=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_6b=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
return dojo.dnd.move.constrainedMover(fun,_6c);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _72=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_73,_74){
if(!_74){
_74={};
}
if(_74.timeout&&typeof _74.timeout=="number"&&_74.timeout>=0){
this.timeout=_74.timeout;
}
},markupFactory:function(_75,_76){
return new dojo.dnd.TimedMoveable(_76,_75);
},onMoveStop:function(_77){
if(_77._timer){
clearTimeout(_77._timer);
_72.call(this,_77,_77._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_78,_79){
_78._leftTop=_79;
if(!_78._timer){
var _t=this;
_78._timer=setTimeout(function(){
_78._timer=null;
_72.call(_t,_78,_78._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{constructor:function(_7b){
var _t=this;
dojo.mixin(_t,_7b);
_t.node=_7b.node;
_t._showArgs=dojo.mixin({},_7b);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},_7b);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_7d){
return this.showAnim.play(_7d||0);
},hide:function(_7e){
return this.hideAnim.play(_7e||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_80={_fire:function(evt,_82){
if(this[evt]){
this[evt].apply(this,_82||[]);
}
return this;
}};
var _83=function(_84){
this._index=-1;
this._animations=_84||[];
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(_83,{_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(_86,_87){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_87&&this._current.status()=="playing"){
return this;
}
var _88=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_89=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_8b=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_88);
d.disconnect(_89);
d.disconnect(_8b);
});
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(_8f,_90){
this.pause();
var _91=this.duration*_8f;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_91){
this._current=a;
return true;
}
_91-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_91/this._current.duration,_90);
}
return this;
},stop:function(_93){
if(this._current){
if(_93){
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(_83,_80);
dojo.fx.chain=function(_96){
return new _83(_96);
};
var _97=function(_98){
this._animations=_98||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_98,function(a){
var _9a=a.duration;
if(a.delay){
_9a+=a.delay;
}
if(this.duration<_9a){
this.duration=_9a;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
var _9b=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
_9b._connects.push(d.connect(_9b._pseudoAnimation,evt,function(){
_9b._fire(evt,arguments);
}));
});
};
d.extend(_97,{_doAction:function(_9d,_9e){
d.forEach(this._animations,function(a){
a[_9d].apply(a,_9e);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_a0,_a1){
var t=this._pseudoAnimation;
t[_a0].apply(t,_a1);
},play:function(_a3,_a4){
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(_a5,_a6){
var ms=this.duration*_a5;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_a6);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_a9){
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(_97,_80);
dojo.fx.combine=function(_aa){
return new _97(_aa);
};
dojo.fx.wipeIn=function(_ab){
_ab.node=d.byId(_ab.node);
var _ac=_ab.node,s=_ac.style,o;
var _af=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 _b0=d.style(_ac,"height");
return Math.max(_b0,1);
}
},end:function(){
return _ac.scrollHeight;
}}}},_ab));
d.connect(_af,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return _af;
};
dojo.fx.wipeOut=function(_b1){
var _b2=_b1.node=d.byId(_b1.node),s=_b2.style,o;
var _b5=d.animateProperty(d.mixin({properties:{height:{end:1}}},_b1));
d.connect(_b5,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(_b5,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return _b5;
};
dojo.fx.slideTo=function(_b6){
var _b7=_b6.node=d.byId(_b6.node),top=null,_b9=null;
var _ba=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
_b9=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.coords(n,true);
top=ret.y;
_b9=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=_b9+"px";
}
};
})(_b7);
_ba();
var _bf=d.animateProperty(d.mixin({properties:{top:_b6.top||0,left:_b6.left||0}},_b6));
d.connect(_bf,"beforeBegin",_bf,_ba);
return _bf;
};
})();
}
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(){
var _c0=dojo.doc;
if(_c0.selection){
var s=_c0.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _c2=dojo.global;
var _c3=_c2.getSelection();
if(dojo.isString(_c3)){
return !_c3;
}else{
return !_c3||_c3.isCollapsed||!_c3.toString();
}
}
},getBookmark:function(){
var _c4,_c5=dojo.doc.selection;
if(_c5){
var _c6=_c5.createRange();
if(_c5.type.toUpperCase()=="CONTROL"){
if(_c6.length){
_c4=[];
var i=0,len=_c6.length;
while(i<len){
_c4.push(_c6.item(i++));
}
}else{
_c4=null;
}
}else{
_c4=_c6.getBookmark();
}
}else{
if(window.getSelection){
_c5=dojo.global.getSelection();
if(_c5){
_c6=_c5.getRangeAt(0);
_c4=_c6.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _c4;
},moveToBookmark:function(_c9){
var _ca=dojo.doc;
if(_ca.selection){
var _cb;
if(dojo.isArray(_c9)){
_cb=_ca.body.createControlRange();
dojo.forEach(_c9,function(n){
_cb.addElement(n);
});
}else{
_cb=_ca.selection.createRange();
_cb.moveToBookmark(_c9);
}
_cb.select();
}else{
var _cd=dojo.global.getSelection&&dojo.global.getSelection();
if(_cd&&_cd.removeAllRanges){
_cd.removeAllRanges();
_cd.addRange(_c9);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_ce,_cf){
return {node:_ce&&dojo.isDescendant(dijit._curFocus,_ce.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_cf||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_cf||dojo.global,dijit.getBookmark):null,openedForWindow:_cf};
},focus:function(_d0){
if(!_d0){
return;
}
var _d1="node" in _d0?_d0.node:_d0,_d2=_d0.bookmark,_d3=_d0.openedForWindow;
if(_d1){
var _d4=(_d1.tagName.toLowerCase()=="iframe")?_d1.contentWindow:_d1;
if(_d4&&_d4.focus){
try{
_d4.focus();
}
catch(e){
}
}
dijit._onFocusNode(_d1);
}
if(_d2&&dojo.withGlobal(_d3||dojo.global,dijit.isCollapsed)){
if(_d3){
_d3.focus();
}
try{
dojo.withGlobal(_d3||dojo.global,dijit.moveToBookmark,null,[_d2]);
}
catch(e){
}
}
},_activeStack:[],registerIframe:function(_d5){
dijit.registerWin(_d5.contentWindow,_d5);
},registerWin:function(_d6,_d7){
dojo.connect(_d6.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_d7||evt.target||evt.srcElement);
});
var doc=_d6.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(_d7||evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(_d7||evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(_d7||evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(_d7||evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(_de){
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(_df){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _e0=[];
try{
while(_df){
if(_df.dijitPopupParent){
_df=dijit.byId(_df.dijitPopupParent).domNode;
}else{
if(_df.tagName&&_df.tagName.toLowerCase()=="body"){
if(_df===dojo.body()){
break;
}
_df=dijit.getDocumentWindow(_df.ownerDocument).frameElement;
}else{
var id=_df.getAttribute&&_df.getAttribute("widgetId");
if(id){
_e0.unshift(id);
}
_df=_df.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_e0);
},_onFocusNode:function(_e2){
if(!_e2){
return;
}
if(_e2.nodeType==9){
return;
}
dijit._onTouchNode(_e2);
if(_e2==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_e2;
dojo.publish("focusNode",[_e2]);
},_setStack:function(_e3){
var _e4=dijit._activeStack;
dijit._activeStack=_e3;
for(var _e5=0;_e5<Math.min(_e4.length,_e3.length);_e5++){
if(_e4[_e5]!=_e3[_e5]){
break;
}
}
for(var i=_e4.length-1;i>=_e5;i--){
var _e7=dijit.byId(_e4[i]);
if(_e7){
_e7._focused=false;
_e7._hasBeenBlurred=true;
if(_e7._onBlur){
_e7._onBlur();
}
if(_e7._setStateClass){
_e7._setStateClass();
}
dojo.publish("widgetBlur",[_e7]);
}
}
for(i=_e5;i<_e3.length;i++){
_e7=dijit.byId(_e3[i]);
if(_e7){
_e7._focused=true;
if(_e7._onFocus){
_e7._onFocus();
}
if(_e7._setStateClass){
_e7._setStateClass();
}
dojo.publish("widgetFocus",[_e7]);
}
}
}});
dojo.addOnLoad(function(){
dijit.registerWin(window);
});
}
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={};
},add:function(_e8){
if(this._hash[_e8.id]){
throw new Error("Tried to register widget with id=="+_e8.id+" but that id is already registered");
}
this._hash[_e8.id]=_e8;
},remove:function(id){
delete this._hash[id];
},forEach:function(_ea){
for(var id in this._hash){
_ea(this._hash[id]);
}
},filter:function(_ec){
var res=new dijit.WidgetSet();
this.forEach(function(_ee){
if(_ec(_ee)){
res.add(_ee);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_f1){
return _f1.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_f2){
var id;
do{
id=_f2+"_"+(_f2 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_f2]:dijit._widgetTypeCtr[_f2]=0);
}while(dijit.byId(id));
return id;
};
dijit.findWidgets=function(_f4){
var _f5=[];
function _f6(_f7){
var _f8=dojo.isIE?_f7.children:_f7.childNodes,i=0,_fa;
while(_fa=_f8[i++]){
if(_fa.nodeType!=1){
continue;
}
var _fb=_fa.getAttribute("widgetId");
if(_fb){
var _fc=dijit.byId(_fb);
_f5.push(_fc);
}else{
_f6(_fa);
}
}
};
_f6(_f4);
return _f5;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dojo.forEach(dijit.findWidgets(dojo.body()),function(_fd){
if(_fd.destroyRecursive){
_fd.destroyRecursive();
}else{
if(_fd.destroy){
_fd.destroy();
}
}
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(_ff){
return dijit.registry.byId(_ff.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
if(node.getAttribute&&node.getAttribute("widgetId")){
return dijit.registry.byId(node.getAttribute("widgetId"));
}
node=node.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(elem){
var _102=dojo.style(elem);
return (_102.visibility!="hidden")&&(_102.visibility!="collapsed")&&(_102.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _104=dojo.hasAttr(elem,"tabindex");
var _105=dojo.attr(elem,"tabindex");
if(_104&&_105>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_104||_105>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _108,last,_10a,_10b,_10c,_10d;
var _10e=function(_10f){
dojo.query("> *",_10f).forEach(function(_110){
var _111=dijit._isElementShown(_110);
if(_111&&dijit.isTabNavigable(_110)){
var _112=dojo.attr(_110,"tabindex");
if(!dojo.hasAttr(_110,"tabindex")||_112==0){
if(!_108){
_108=_110;
}
last=_110;
}else{
if(_112>0){
if(!_10a||_112<_10b){
_10b=_112;
_10a=_110;
}
if(!_10c||_112>=_10d){
_10d=_112;
_10c=_110;
}
}
}
}
if(_111&&_110.nodeName.toUpperCase()!="SELECT"){
_10e(_110);
}
});
};
if(dijit._isElementShown(root)){
_10e(root);
}
return {first:_108,last:last,lowest:_10a,highest:_10c};
};
dijit.getFirstInTabbingOrder=function(root){
var _114=dijit._getTabNavigable(dojo.byId(root));
return _114.lowest?_114.lowest:_114.first;
};
dijit.getLastInTabbingOrder=function(root){
var _116=dijit._getTabNavigable(dojo.byId(root));
return _116.last?_116.last:_116.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_117){
this.pairs=[];
this.returnWrappers=_117||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_119,wrap,_11b,_11c){
this.pairs[((_11c)?"unshift":"push")]([name,_119,wrap,_11b]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _122=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _123=dojo._docScroll();
return {w:_122.clientWidth,h:_122.clientHeight,l:_123.x,t:_123.y};
};
dijit.placeOnScreen=function(node,pos,_126,_127){
var _128=dojo.map(_126,function(_129){
var c={corner:_129,pos:{x:pos.x,y:pos.y}};
if(_127){
c.pos.x+=_129.charAt(1)=="L"?_127.x:-_127.x;
c.pos.y+=_129.charAt(0)=="T"?_127.y:-_127.y;
}
return c;
});
return dijit._place(node,_128);
};
dijit._place=function(node,_12c,_12d){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_12c,function(_130){
var _131=_130.corner;
var pos=_130.pos;
if(_12d){
_12d(node,_130.aroundCorner,_131);
}
var _133=node.style;
var _134=_133.display;
var _135=_133.visibility;
_133.visibility="hidden";
_133.display="";
var mb=dojo.marginBox(node);
_133.display=_134;
_133.visibility=_135;
var _137=(_131.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_138=(_131.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_131.charAt(1)=="L"?Math.min(view.l+view.w,_137+mb.w):pos.x),endY=(_131.charAt(0)=="T"?Math.min(view.t+view.h,_138+mb.h):pos.y),_13b=endX-_137,_13c=endY-_138,_13d=(mb.w-_13b)+(mb.h-_13c);
if(best==null||_13d<best.overflow){
best={corner:_131,aroundCorner:_130.aroundCorner,x:_137,y:_138,w:_13b,h:_13c,overflow:_13d};
}
return !_13d;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_12d){
_12d(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_13f,_140,_141){
_13f=dojo.byId(_13f);
var _142=_13f.style.display;
_13f.style.display="";
var _143=_13f.offsetWidth;
var _144=_13f.offsetHeight;
var _145=dojo.coords(_13f,true);
_13f.style.display=_142;
return dijit._placeOnScreenAroundRect(node,_145.x,_145.y,_143,_144,_140,_141);
};
dijit.placeOnScreenAroundRectangle=function(node,_147,_148,_149){
return dijit._placeOnScreenAroundRect(node,_147.x,_147.y,_147.width,_147.height,_148,_149);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_14d,_14e,_14f,_150){
var _151=[];
for(var _152 in _14f){
_151.push({aroundCorner:_152,corner:_14f[_152],pos:{x:x+(_152.charAt(1)=="L"?0:_14d),y:y+(_152.charAt(0)=="T"?0:_14e)}});
}
return dijit._place(node,_151,_150);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(node,_158,_159,_15a){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _15d=[],_15e=1000,_15f=1;
this.prepare=function(node){
var s=node.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(node);
};
this.open=function(args){
var _163=args.popup,_164=args.orient||{"BL":"TL","TL":"BL"},_165=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_15f++);
var _167=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_15e+_15d.length,visibility:"hidden"}},dojo.body());
dijit.setWaiRole(_167,"presentation");
_167.style.left=_167.style.top="0px";
if(args.parent){
_167.dijitPopupParent=args.parent.id;
}
var s=_163.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_167.appendChild(_163.domNode);
var _169=new dijit.BackgroundIframe(_167);
var best=_165?dijit.placeOnScreenAroundElement(_167,_165,_164,_163.orient?dojo.hitch(_163,"orient"):null):dijit.placeOnScreen(_167,args,_164=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_167.style.visibility="visible";
var _16b=[];
var _16c=function(){
for(var pi=_15d.length-1;pi>0&&_15d[pi].parent===_15d[pi-1].widget;pi--){
}
return _15d[pi];
};
_16b.push(dojo.connect(_167,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _16f=_16c();
if(_16f&&_16f.onCancel){
_16f.onCancel();
}
}
}
}));
if(_163.onCancel){
_16b.push(dojo.connect(_163,"onCancel",null,args.onCancel));
}
_16b.push(dojo.connect(_163,_163.onExecute?"onExecute":"onChange",null,function(){
var _170=_16c();
if(_170&&_170.onExecute){
_170.onExecute();
}
}));
_15d.push({wrapper:_167,iframe:_169,widget:_163,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_16b});
if(_163.onOpen){
_163.onOpen(best);
}
return best;
};
this.close=function(_171){
while(dojo.some(_15d,function(elem){
return elem.widget==_171;
})){
var top=_15d.pop(),_174=top.wrapper,_175=top.iframe,_176=top.widget,_177=top.onClose;
if(_176.onClose){
_176.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_176||!_176.domNode){
return;
}
this.prepare(_176.domNode);
_175.destroy();
dojo.destroy(_174);
if(_177){
_177();
}
}
};
}();
dijit._frames=new function(){
var _178=[];
this.pop=function(){
var _179;
if(_178.length){
_179=_178.pop();
_179.style.display="";
}else{
if(dojo.isIE){
var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_179=dojo.doc.createElement(html);
}else{
_179=dojo.create("iframe");
_179.src="javascript:\"\"";
_179.className="dijitBackgroundIframe";
}
_179.tabIndex=-1;
dojo.body().appendChild(_179);
}
return _179;
};
this.push=function(_17c){
_17c.style.display="none";
if(dojo.isIE){
_17c.style.removeExpression("width");
_17c.style.removeExpression("height");
}
_178.push(_17c);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _17e=dijit._frames.pop();
node.appendChild(_17e);
if(dojo.isIE){
_17e.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_17e.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_17e;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node){
try{
node=dojo.byId(node);
var doc=dojo.doc;
var body=dojo.body();
var html=body.parentNode;
if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){
node.scrollIntoView(false);
return;
}
var ltr=dojo._isBodyLtr();
var _184=dojo.isIE>=8&&!_185;
var rtl=!ltr&&!_184;
var _187=body;
var _185=doc.compatMode=="BackCompat";
if(_185){
html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;
html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;
}else{
if(dojo.isWebKit){
body._offsetWidth=body._clientWidth=html.clientWidth;
body._offsetHeight=body._clientHeight=html.clientHeight;
}else{
_187=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function _188(_189){
var ie=dojo.isIE;
return ((ie<=6||(ie>=7&&_185))?false:(dojo.style(_189,"position").toLowerCase()=="fixed"));
};
function _18b(_18c){
var _18d=_18c.parentNode;
var _18e=_18c.offsetParent;
if(_18e==null||_188(_18c)){
_18e=html;
_18d=(_18c==body)?html:null;
}
_18c._offsetParent=_18e;
_18c._parent=_18d;
var bp=dojo._getBorderExtents(_18c);
_18c._borderStart={H:(_184&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_18c._borderSize={H:bp.w,V:bp.h};
_18c._scrolledAmount={H:_18c.scrollLeft,V:_18c.scrollTop};
_18c._offsetSize={H:_18c._offsetWidth||_18c.offsetWidth,V:_18c._offsetHeight||_18c.offsetHeight};
_18c._offsetStart={H:(_184&&!ltr)?_18e.clientWidth-_18c.offsetLeft-_18c._offsetSize.H:_18c.offsetLeft,V:_18c.offsetTop};
_18c._clientSize={H:_18c._clientWidth||_18c.clientWidth,V:_18c._clientHeight||_18c.clientHeight};
if(_18c!=body&&_18c!=html&&_18c!=node){
for(var dir in _18c._offsetSize){
var _191=_18c._offsetSize[dir]-_18c._clientSize[dir]-_18c._borderSize[dir];
var _192=_18c._clientSize[dir]>0&&_191>0;
if(_192){
_18c._offsetSize[dir]-=_191;
if(dojo.isIE&&rtl&&dir=="H"){
_18c._offsetStart[dir]+=_191;
}
}
}
}
};
var _193=node;
while(_193!=null){
if(_188(_193)){
node.scrollIntoView(false);
return;
}
_18b(_193);
_193=_193._parent;
}
if(dojo.isIE&&node._parent){
var _194=node._offsetParent;
node._offsetStart.H+=_194._borderStart.H;
node._offsetStart.V+=_194._borderStart.V;
}
if(dojo.isIE>=7&&_187==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _195=html.scrollWidth-html._offsetSize.H;
if(_195>0){
body._offsetStart.H=-_195;
}
}
if(dojo.isIE<=6&&!_185){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_187==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_193=node;
while(_193){
var _197=_193._parent;
if(!_197){
break;
}
if(_197.tagName=="TD"){
var _198=_197._parent._parent._parent;
if(_197!=_193._offsetParent&&_197._offsetParent!=_193._offsetParent){
_197=_198;
}
}
var _199=_193._offsetParent==_197;
for(var dir in _193._offsetStart){
var _19b=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_197!=html)&&(_197!=body)&&(dojo.isIE||dojo.isWebKit)&&_197._clientSize.H>0&&_197.scrollWidth>_197._clientSize.H){
var _19c=_197.scrollWidth-_197._clientSize.H;
if(_19c>0){
_197._scrolledAmount.H-=_19c;
}
}
if(_197._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_197._offsetStart[dir]-=_197._offsetParent._borderStart[dir];
_197._borderStart[dir]=_197._borderSize[dir]=0;
}else{
_197._offsetStart[dir]+=_197._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_197._offsetStart[dir]+=_197._offsetParent._borderStart[dir];
}
var _19d=_193._offsetStart[dir]-_197._scrolledAmount[dir]-(_199?0:_197._offsetStart[dir])-_197._borderStart[dir];
var _19e=_19d+_193._offsetSize[dir]-_197._offsetSize[dir]+_197._borderSize[dir];
var _19f=(dir=="H")?"scrollLeft":"scrollTop";
var _1a0=dir=="H"&&rtl;
var _1a1=_1a0?-_19e:_19d;
var _1a2=_1a0?-_19d:_19e;
var _1a3=(_1a1*_1a2<=0)?0:Math[(_1a1<0)?"max":"min"](_1a1,_1a2);
if(_1a3!=0){
var _1a4=_197[_19f];
_197[_19f]+=(_1a0)?-_1a3:_1a3;
var _1a5=_197[_19f]-_1a4;
}
if(_199){
_193._offsetStart[dir]+=_197._offsetStart[dir];
}
_193._offsetStart[dir]-=_197[_19f];
}
_193._parent=_197._parent;
_193._offsetParent=_197._offsetParent;
}
_197=node;
var next;
while(_197&&_197.removeAttribute){
next=_197.parentNode;
_197.removeAttribute("_offsetParent");
_197.removeAttribute("_parent");
_197=next;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_1aa=d.isOpera,maj=Math.floor,ff=d.isFF,_1ad=d.boxModel.replace(/-/,""),_1ae={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1aa,dj_opera8:maj(_1aa)==8,dj_opera9:maj(_1aa)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_1ae["dj_"+_1ad]=true;
for(var p in _1ae){
if(_1ae[p]){
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
html.className+=" dijitRtl";
for(var p in _1ae){
if(_1ae[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
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=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_1b2,node,_1b4,obj,_1b6,_1b7){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1b7||500;
this._subsequentDelay=_1b6||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_1b2,_1b4);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_1b9,_1ba,_1bb,_1bc,_1bd){
if(_1b9.keyCode){
_1b9.charOrCode=_1b9.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1b9.charCode){
_1b9.charOrCode=String.fromCharCode(_1b9.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(node,"onkeypress",this,function(evt){
if(evt.charOrCode==_1b9.charOrCode&&(_1b9.ctrlKey===undefined||_1b9.ctrlKey==evt.ctrlKey)&&(_1b9.altKey===undefined||_1b9.altKey==evt.ctrlKey)&&(_1b9.shiftKey===undefined||_1b9.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1b9,_1ba,node,_1bb,_1b9,_1bc,_1bd);
}else{
if(dijit.typematic._obj==_1b9){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1b9){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_1c1,_1c2,_1c3,_1c4){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_1c1,node,_1c2,node,_1c3,_1c4);
}),dc(node,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_1c1,node,_1c2,node,_1c3,_1c4);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_1cb,_1cc,_1cd,_1ce,_1cf,_1d0,_1d1){
return this.addKeyListener(_1cc,_1cd,_1ce,_1cf,_1d0,_1d1).concat(this.addMouseListener(_1cb,_1ce,_1cf,_1d0,_1d1));
}};
}
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 _1d4=cs.backgroundImage;
var _1d5=(cs.borderTopColor==cs.borderRightColor)||(_1d4!=null&&(_1d4=="none"||_1d4=="url(invalid-url:)"));
dojo[_1d5?"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(elem,role){
var _1d8=this.getWaiRole(elem);
return role?(_1d8.indexOf(role)>-1):(_1d8.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _1dc=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_1dc)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_1dc+" ").indexOf(" "+role+" ")<0){
var _1dd=dojo.trim(_1dc.replace(this._XhtmlRoles,""));
var _1de=dojo.trim(_1dc.replace(_1dd,""));
dojo.attr(elem,"role",_1de+(_1de?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _1e1=dojo.attr(elem,"role");
if(!_1e1){
return;
}
if(role){
var _1e2=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_1e1+" ").replace(" "+_1e2+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_1e5){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1e5);
}
return elem.hasAttribute?elem.hasAttribute("aria-"+_1e5):!!elem.getAttribute("aria-"+_1e5);
},getWaiState:function(elem,_1e7){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1e7);
}
return elem.getAttribute("aria-"+_1e7)||"";
},setWaiState:function(elem,_1e9,_1ea){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1e9,_1ea);
}else{
elem.setAttribute("aria-"+_1e9,_1ea);
}
},removeWaiState:function(elem,_1ec){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1ec);
}else{
elem.removeAttribute("aria-"+_1ec);
}
}});
}
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(_1ed,_1ee){
if(_1ed&&dojo.isFunction(_1ed._onConnect)){
_1ed._onConnect(_1ee);
}
});
dijit._connectOnUseEventHandler=function(_1ef){
};
(function(){
var _1f0={};
var _1f1=function(dc){
if(!_1f0[dc]){
var r=[];
var _1f4;
var _1f5=dojo.getObject(dc).prototype;
for(var _1f6 in _1f5){
if(dojo.isFunction(_1f5[_1f6])&&(_1f4=_1f6.match(/^_set([a-zA-Z]*)Attr$/))&&_1f4[1]){
r.push(_1f4[1].charAt(0).toLowerCase()+_1f4[1].substr(1));
}
}
_1f0[dc]=r;
}
return _1f0[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",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")),postscript:function(_1f7,_1f8){
this.create(_1f7,_1f8);
},create:function(_1f9,_1fa){
this.srcNodeRef=dojo.byId(_1fa);
this._connects=[];
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(_1f9){
this.params=_1f9;
dojo.mixin(this,_1f9);
}
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 _1fc=this.srcNodeRef;
if(_1fc&&_1fc.parentNode){
_1fc.parentNode.replaceChild(this.domNode,_1fc);
}
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 _1fd=function(attr,_1ff){
if((_1ff.params&&attr in _1ff.params)||_1ff[attr]){
_1ff.attr(attr,_1ff[attr]);
}
};
for(var attr in this.attributeMap){
_1fd(attr,this);
}
dojo.forEach(_1f1(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_1fd(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_202){
this.destroyDescendants(_202);
this.destroy(_202);
},destroy:function(_203){
this.uninitialize();
dojo.forEach(this._connects,function(_204){
dojo.forEach(_204,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_203);
dijit.registry.remove(this.id);
},destroyRendering:function(_206){
if(this.bgIframe){
this.bgIframe.destroy(_206);
delete this.bgIframe;
}
if(this.domNode){
if(_206){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_206){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_207){
dojo.forEach(this.getChildren(),function(_208){
if(_208.destroyRecursive){
_208.destroyRecursive(_207);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_20a){
if(_20a in this._deferredConnects){
var _20b=this[this._deferredConnects[_20a]||"domNode"];
this.connect(_20b,_20a.toLowerCase(),_20a);
delete this._deferredConnects[_20a];
}
},_setClassAttr:function(_20c){
var _20d=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_20d,this["class"]);
this["class"]=_20c;
dojo.addClass(_20d,_20c);
},_setStyleAttr:function(_20e){
var _20f=this[this.attributeMap["style"]||"domNode"];
if(dojo.isObject(_20e)){
dojo.style(_20f,_20e);
}else{
if(_20f.style.cssText){
_20f.style.cssText+="; "+_20e;
}else{
_20f.style.cssText=_20e;
}
}
this["style"]=_20e;
},setAttribute:function(attr,_211){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_211);
},_attrToDom:function(attr,_213){
var _214=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_214)?_214:[_214],function(_215){
var _216=this[_215.node||_215||"domNode"];
var type=_215.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_213)){
_213=dojo.hitch(this,_213);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_216,attr,_213);
break;
case "innerHTML":
_216.innerHTML=_213;
break;
case "class":
dojo.removeClass(_216,this[attr]);
dojo.addClass(_216,_213);
break;
}
},this);
this[attr]=_213;
},attr:function(name,_219){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _21c=this._getAttrNames(name);
if(args==2){
if(this[_21c.s]){
return this[_21c.s](_219)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_219);
}
this[name]=_219;
}
return this;
}else{
if(this[_21c.g]){
return this[_21c.g]();
}else{
return this[name];
}
}
},_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(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},getChildren:function(){
if(this.containerNode){
return dijit.findWidgets(this.containerNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_222,_223){
var d=dojo;
var dc=dojo.connect;
var _226=[];
if(_222=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_223);
_226.push(dc(obj,"onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dc(obj,"onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
if(d.isFF){
_226.push(dc(obj,"onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
}
}
_222="onclick";
}
_226.push(dc(obj,_222,this,_223));
this._connects.push(_226);
return _226;
},disconnect:function(_22b){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_22b){
dojo.forEach(_22b,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_22d,_22e){
if(_22d["declaredClass"]&&_22d["addChild"]){
_22d.addChild(this,_22e);
}else{
dojo.place(this.domNode,_22d,_22e);
}
return this;
}});
})();
}
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(_238,map,_23a,_23b){
_23b=_23b||dojo.global;
_23a=(!_23a)?function(v){
return v;
}:dojo.hitch(_23b,_23a);
return _238.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_23d,key,_23f){
var _240=dojo.getObject(key,false,map);
if(_23f){
_240=dojo.getObject(_23f,false,_23b).call(_23b,_240,key);
}
return _23a(_240,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(_243,_244){
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 _245=dojo.date.stamp._isoRegExp.exec(_243);
var _246=null;
if(_245){
_245.shift();
if(_245[1]){
_245[1]--;
}
if(_245[6]){
_245[6]*=1000;
}
if(_244){
_244=new Date(_244);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _244["get"+prop]();
}).forEach(function(_248,_249){
if(_245[_249]===undefined){
_245[_249]=_248;
}
});
}
_246=new Date(_245[0]||1970,_245[1]||0,_245[2]||1,_245[3]||0,_245[4]||0,_245[5]||0,_245[6]||0);
var _24a=0;
var _24b=_245[7]&&_245[7].charAt(0);
if(_24b!="Z"){
_24a=((_245[8]||0)*60)+(Number(_245[9])||0);
if(_24b!="-"){
_24a*=-1;
}
}
if(_24b){
_24a-=_246.getTimezoneOffset();
}
if(_24a){
_246.setTime(_246.getTime()+_24a*60000);
}
}
return _246;
};
dojo.date.stamp.toISOString=function(_24c,_24d){
var _=function(n){
return (n<10)?"0"+n:n;
};
_24d=_24d||{};
var _250=[];
var _251=_24d.zulu?"getUTC":"get";
var date="";
if(_24d.selector!="time"){
var year=_24c[_251+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_24c[_251+"Month"]()+1),_(_24c[_251+"Date"]())].join("-");
}
_250.push(date);
if(_24d.selector!="date"){
var time=[_(_24c[_251+"Hours"]()),_(_24c[_251+"Minutes"]()),_(_24c[_251+"Seconds"]())].join(":");
var _255=_24c[_251+"Milliseconds"]();
if(_24d.milliseconds){
time+="."+(_255<100?"0":"")+_(_255);
}
if(_24d.zulu){
time+="Z";
}else{
if(_24d.selector!="time"){
var _256=_24c.getTimezoneOffset();
var _257=Math.abs(_256);
time+=(_256>0?"-":"+")+_(Math.floor(_257/60))+":"+_(_257%60);
}
}
_250.push(time);
}
return _250.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _259=d._scopeName+"Type";
var qry="["+_259+"]";
var _25b=0,_25c={};
var _25d=function(_25e,_25f){
var nso=_25f||_25c;
if(dojo.isIE){
var cn=_25e["__dojoNameCache"];
if(cn&&nso[cn]===_25e){
return cn;
}
}
var name;
do{
name="__"+_25b++;
}while(name in nso);
nso[name]=_25e;
return name;
};
function _263(_264){
if(d.isString(_264)){
return "string";
}
if(typeof _264=="number"){
return "number";
}
if(typeof _264=="boolean"){
return "boolean";
}
if(d.isFunction(_264)){
return "function";
}
if(d.isArray(_264)){
return "array";
}
if(_264 instanceof Date){
return "date";
}
if(_264 instanceof d._Url){
return "url";
}
return "object";
};
function _265(_266,type){
switch(type){
case "string":
return _266;
case "number":
return _266.length?Number(_266):NaN;
case "boolean":
return typeof _266=="boolean"?_266:!(_266.toLowerCase()=="false");
case "function":
if(d.isFunction(_266)){
_266=_266.toString();
_266=d.trim(_266.substring(_266.indexOf("{")+1,_266.length-1));
}
try{
if(_266.search(/[^\w\.]+/i)!=-1){
_266=_25d(new Function(_266),this);
}
return d.getObject(_266,false);
}
catch(e){
return new Function();
}
case "array":
return _266?_266.split(/\s*,\s*/):[];
case "date":
switch(_266){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_266);
}
case "url":
return d.baseUrl+_266;
default:
return d.fromJson(_266);
}
};
var _268={};
function _269(_26a){
if(!_268[_26a]){
var cls=d.getObject(_26a);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_26a+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _26c=cls.prototype;
var _26d={},_26e={};
for(var name in _26c){
if(name.charAt(0)=="_"){
continue;
}
if(name in _26e){
continue;
}
var _270=_26c[name];
_26d[name]=_263(_270);
}
_268[_26a]={cls:cls,params:_26d};
}
return _268[_26a];
};
this._functionFromScript=function(_271){
var _272="";
var _273="";
var _274=_271.getAttribute("args");
if(_274){
d.forEach(_274.split(/\s*,\s*/),function(part,idx){
_272+="var "+part+" = arguments["+idx+"]; ";
});
}
var _277=_271.getAttribute("with");
if(_277&&_277.length){
d.forEach(_277.split(/\s*,\s*/),function(part){
_272+="with("+part+"){";
_273+="}";
});
}
return new Function(_272+_271.innerHTML+_273);
};
this.instantiate=function(_279,_27a){
var _27b=[];
_27a=_27a||{};
d.forEach(_279,function(node){
if(!node){
return;
}
var type=_259 in _27a?_27a[_259]:node.getAttribute(_259);
if(!type||!type.length){
return;
}
var _27e=_269(type),_27f=_27e.cls,ps=_27f._noScript||_27f.prototype._noScript;
var _281={},_282=node.attributes;
for(var name in _27e.params){
var item=name in _27a?{value:_27a[name],specified:true}:_282.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _285=item.value;
switch(name){
case "class":
_285="className" in _27a?_27a.className:node.className;
break;
case "style":
_285="style" in _27a?_27a.style:(node.style&&node.style.cssText);
}
var _286=_27e.params[name];
if(typeof _285=="string"){
_281[name]=_265(_285,_286);
}else{
_281[name]=_285;
}
}
if(!ps){
var _287=[],_288=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_289){
var _28a=_289.getAttribute("event"),type=_289.getAttribute("type"),nf=d.parser._functionFromScript(_289);
if(_28a){
if(type=="dojo/connect"){
_287.push({event:_28a,func:nf});
}else{
_281[_28a]=nf;
}
}else{
_288.push(nf);
}
});
}
var _28c=_27f["markupFactory"];
if(!_28c&&_27f["prototype"]){
_28c=_27f.prototype["markupFactory"];
}
var _28d=_28c?_28c(_281,node,_27f):new _27f(_281,node);
_27b.push(_28d);
var _28e=node.getAttribute("jsId");
if(_28e){
d.setObject(_28e,_28d);
}
if(!ps){
d.forEach(_287,function(_28f){
d.connect(_28d,_28f.event,null,_28f.func);
});
d.forEach(_288,function(func){
func.call(_28d);
});
}
});
d.forEach(_27b,function(_291){
if(_291&&_291.startup&&!_291._started&&(!_291.getParent||!_291.getParent())){
_291.startup();
}
});
return _27b;
};
this.parse=function(_292){
var list=d.query(qry,_292);
var _294=this.instantiate(list);
return _294;
};
}();
(function(){
var _295=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_295);
}else{
dojo._loaders.unshift(_295);
}
})();
}
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,_stringRepl:function(tmpl){
var _297=this.declaredClass,_298=this;
return dojo.string.substitute(tmpl,this,function(_299,key){
if(key.charAt(0)=="!"){
_299=dojo.getObject(key.substr(1),false,_298);
}
if(typeof _299=="undefined"){
throw new Error(_297+" template:"+key);
}
if(_299==null){
return "";
}
return key.charAt(0)=="!"?_299:_299.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _29b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_29b)){
node=dojo._toDom(this._stringRepl(_29b));
}else{
node=_29b.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_2a0){
var dest=this.containerNode;
if(_2a0&&dest){
while(_2a0.hasChildNodes()){
dest.appendChild(_2a0.firstChild);
}
}
},_attachTemplateNodes:function(_2a2,_2a3){
_2a3=_2a3||function(n,p){
return n.getAttribute(p);
};
var _2a6=dojo.isArray(_2a2)?_2a2:(_2a2.all||_2a2.getElementsByTagName("*"));
var x=dojo.isArray(_2a2)?0:-1;
for(;x<_2a6.length;x++){
var _2a8=(x==-1)?_2a2:_2a6[x];
if(this.widgetsInTemplate&&_2a3(_2a8,"dojoType")){
continue;
}
var _2a9=_2a3(_2a8,"dojoAttachPoint");
if(_2a9){
var _2aa,_2ab=_2a9.split(/\s*,\s*/);
while((_2aa=_2ab.shift())){
if(dojo.isArray(this[_2aa])){
this[_2aa].push(_2a8);
}else{
this[_2aa]=_2a8;
}
}
}
var _2ac=_2a3(_2a8,"dojoAttachEvent");
if(_2ac){
var _2ad,_2ae=_2ac.split(/\s*,\s*/);
var trim=dojo.trim;
while((_2ad=_2ae.shift())){
if(_2ad){
var _2b0=null;
if(_2ad.indexOf(":")!=-1){
var _2b1=_2ad.split(":");
_2ad=trim(_2b1[0]);
_2b0=trim(_2b1[1]);
}else{
_2ad=trim(_2ad);
}
if(!_2b0){
_2b0=_2ad;
}
this.connect(_2a8,_2ad,_2b0);
}
}
}
var role=_2a3(_2a8,"waiRole");
if(role){
dijit.setWaiRole(_2a8,role);
}
var _2b3=_2a3(_2a8,"waiState");
if(_2b3){
dojo.forEach(_2b3.split(/\s*,\s*/),function(_2b4){
if(_2b4.indexOf("-")!=-1){
var pair=_2b4.split("-");
dijit.setWaiState(_2a8,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_2b6,_2b7,_2b8){
var _2b9=dijit._Templated._templateCache;
var key=_2b7||_2b6;
var _2bb=_2b9[key];
if(_2bb){
if(!_2bb.ownerDocument||_2bb.ownerDocument==dojo.doc){
return _2bb;
}
dojo.destroy(_2bb);
}
if(!_2b7){
_2b7=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_2b6)));
}
_2b7=dojo.string.trim(_2b7);
if(_2b8||_2b7.match(/\$\{([^\}]+)\}/g)){
return (_2b9[key]=_2b7);
}else{
return (_2b9[key]=dojo._toDom(_2b7));
}
};
dijit._Templated._sanitizeTemplateString=function(_2bc){
if(_2bc){
_2bc=_2bc.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _2bd=_2bc.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2bd){
_2bc=_2bd[1];
}
}else{
_2bc="";
}
return _2bc;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _2be=dijit._Templated._templateCache;
for(var key in _2be){
var _2c0=_2be[key];
if(!isNaN(_2c0.nodeType)){
dojo.destroy(_2c0);
}
delete _2be[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(_2c1){
if(_2c1.reset){
_2c1.reset();
}
});
},validate:function(){
var _2c2=false;
return dojo.every(dojo.map(this.getDescendants(),function(_2c3){
_2c3._hasBeenBlurred=true;
var _2c4=_2c3.disabled||!_2c3.validate||_2c3.validate();
if(!_2c4&&!_2c2){
dijit.scrollIntoView(_2c3.containerNode||_2c3.domNode);
_2c3.focus();
_2c2=true;
}
return _2c4;
}),function(item){
return item;
});
},setValues:function(val){
dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");
return this.attr("value",val);
},_setValueAttr:function(obj){
var map={};
dojo.forEach(this.getDescendants(),function(_2c9){
if(!_2c9.name){
return;
}
var _2ca=map[_2c9.name]||(map[_2c9.name]=[]);
_2ca.push(_2c9);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _2cc=map[name],_2cd=dojo.getObject(name,false,obj);
if(_2cd===undefined){
continue;
}
if(!dojo.isArray(_2cd)){
_2cd=[_2cd];
}
if(typeof _2cc[0].checked=="boolean"){
dojo.forEach(_2cc,function(w,i){
w.attr("value",dojo.indexOf(_2cd,w.value)!=-1);
});
}else{
if(_2cc[0]._multiValue){
_2cc[0].attr("value",_2cd);
}else{
dojo.forEach(_2cc,function(w,i){
w.attr("value",_2cd[i]);
});
}
}
}
},getValues:function(){
dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_getValueAttr:function(){
var obj={};
dojo.forEach(this.getDescendants(),function(_2d3){
var name=_2d3.name;
if(!name||_2d3.disabled){
return;
}
var _2d5=_2d3.attr("value");
if(typeof _2d3.checked=="boolean"){
if(/Radio/.test(_2d3.declaredClass)){
if(_2d5!==false){
dojo.setObject(name,_2d5,obj);
}else{
_2d5=dojo.getObject(name,false,obj);
if(_2d5===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_2d5!==false){
ary.push(_2d5);
}
}
}else{
dojo.setObject(name,_2d5,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_2d7){
return !_2d7.disabled&&_2d7.isValid&&!_2d7.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_2d8){
},_widgetChange:function(_2d9){
var _2da=this._lastValidState;
if(!_2d9||this._lastValidState===undefined){
_2da=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_2da;
}
}else{
if(_2d9.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_2d9);
},this);
if(!_2d9.isValid()&&!_2d9.attr("disabled")){
this._invalidWidgets.push(_2d9);
}
_2da=(this._invalidWidgets.length===0);
}
}
if(_2da!==this._lastValidState){
this._lastValidState=_2da;
this.onValidStateChange(_2da);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _2dc=this;
var _2dd=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_2df){
_2dd.push(_2dc.connect(_2df,"validate",dojo.hitch(_2dc,"_widgetChange",_2df)));
_2dd.push(_2dc.connect(_2df,"_setDisabledAttr",dojo.hitch(_2dc,"_widgetChange",_2df)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit._DialogMixin"]){
dojo._hasResource["dijit._DialogMixin"]=true;
dojo.provide("dijit._DialogMixin");
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_2e0){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_2e1){
var _2e2=dijit._getTabNavigable(dojo.byId(_2e1));
this._firstFocusItem=_2e2.lowest||_2e2.first||_2e1;
this._lastFocusItem=_2e2.last||_2e2.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_2e1,"tabindex","0");
this._firstFocusItem=_2e1;
}
}});
}
if(!dojo._hasResource["dijit.DialogUnderlay"]){
dojo._hasResource["dijit.DialogUnderlay"]=true;
dojo.provide("dijit.DialogUnderlay");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){
dojo.attr(this.node,"id",id+"_underlay");
},_setClassAttr:function(_2e4){
this.node.className="dijitDialogUnderlay "+_2e4;
},postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},layout:function(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _2e7=dijit.getViewport();
os.top=_2e7.t+"px";
os.left=_2e7.l+"px";
is.width=_2e7.w+"px";
is.height=_2e7.h+"px";
os.display="block";
},show:function(){
this.domNode.style.display="block";
this.layout();
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},hide:function(){
this.domNode.style.display="none";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
},uninitialize:function(){
if(this.bgIframe){
this.bgIframe.destroy();
}
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _2ea=dijit.byId(id);
return _2ea.isContainer?_2ea:null;
}
}
return null;
},_getSibling:function(_2eb){
var node=this.domNode;
do{
node=node[_2eb+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},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(_2ef,_2f0){
var _2f1=this.containerNode;
if(_2f0&&typeof _2f0=="number"){
var _2f2=this.getChildren();
if(_2f2&&_2f2.length>=_2f0){
_2f1=_2f2[_2f0-1].domNode;
_2f0="after";
}
}
dojo.place(_2ef.domNode,_2f1,_2f0);
if(this._started&&!_2ef._started){
_2ef.startup();
}
},removeChild:function(_2f3){
if(typeof _2f3=="number"&&_2f3>0){
_2f3=this.getChildren()[_2f3];
}
if(!_2f3||!_2f3.domNode){
return;
}
var node=_2f3.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_2f7){
dojo.forEach(this.getChildren(),function(_2f8){
_2f8.destroyRecursive(_2f7);
});
},_getSiblingOfChild:function(_2f9,dir){
var node=_2f9.domNode;
var _2fc=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_2fc];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_2fd){
var _2fe=this.getChildren();
for(var i=0,c;c=_2fe[i];i++){
if(c==_2fd){
return i;
}
}
return -1;
}});
}
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");
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_301){
_301.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this._viewport=dijit.getViewport();
this.connect(dojo.global,"onresize",function(){
var _302=dijit.getViewport();
if(_302.w!=this._viewport.w||_302.h!=this._viewport.h){
this._viewport=_302;
this.resize();
}
});
}
this.inherited(arguments);
},resize:function(_303,_304){
var node=this.domNode;
if(_303){
dojo.marginBox(node,_303);
if(_303.t){
node.style.top=_303.t+"px";
}
if(_303.l){
node.style.left=_303.l+"px";
}
}
var mb=_304||{};
dojo.mixin(mb,_303||{});
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(_30c){
dojo.addClass(_30c.domNode,this.baseClass+"-child");
if(_30c.baseClass){
dojo.addClass(_30c.domNode,this.baseClass+"-"+_30c.baseClass);
}
},addChild:function(_30d,_30e){
this.inherited(arguments);
if(this._started){
this._setupChild(_30d);
}
},removeChild:function(_30f){
dojo.removeClass(_30f.domNode,this.baseClass+"-child");
if(_30f.baseClass){
dojo.removeClass(_30f.domNode,this.baseClass+"-"+_30f.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 _315=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_318,dim){
_318.resize?_318.resize(dim):dojo.marginBox(_318.domNode,dim);
dojo.mixin(_318,dojo.marginBox(_318.domNode));
dojo.mixin(_318,dim);
};
dijit.layout.layoutChildren=function(_31a,dim,_31c){
dim=dojo.mixin({},dim);
dojo.addClass(_31a,"dijitLayoutContainer");
_31c=dojo.filter(_31c,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_31c,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_31c,function(_31f){
var elm=_31f.domNode,pos=_31f.layoutAlign;
var _322=elm.style;
_322.left=dim.l+"px";
_322.top=dim.t+"px";
_322.bottom=_322.right="auto";
dojo.addClass(elm,"dijitAlign"+_315(pos));
if(pos=="top"||pos=="bottom"){
size(_31f,{w:dim.w});
dim.h-=_31f.h;
if(pos=="top"){
dim.t+=_31f.h;
}else{
_322.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_31f,{h:dim.h});
dim.w-=_31f.w;
if(pos=="left"){
dim.l+=_31f.w;
}else{
_322.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_31f,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _323=0;
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,_327){
if(_327){
dojo.html._emptyNode(node);
}
if(typeof cont=="string"){
var pre="",post="",walk=0,name=node.nodeName.toLowerCase();
switch(name){
case "tr":
pre="<tr>";
post="</tr>";
walk+=1;
case "tbody":
case "thead":
pre="<tbody>"+pre;
post+="</tbody>";
walk+=1;
case "table":
pre="<table>"+pre;
post+="</table>";
walk+=1;
break;
}
if(walk){
var n=node.ownerDocument.createElement("div");
n.innerHTML=pre+cont+post;
do{
n=n.firstChild;
}while(--walk);
dojo.forEach(n.childNodes,function(n){
node.appendChild(n.cloneNode(true));
});
}else{
node.innerHTML=cont;
}
}else{
if(cont.nodeType){
node.appendChild(cont);
}else{
dojo.forEach(cont,function(n){
node.appendChild(n.cloneNode(true));
});
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_32f,node){
dojo.mixin(this,_32f||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_323++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_332){
if(undefined!==cont){
this.content=cont;
}
if(_332){
this._mixin(_332);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var node=this.node;
if(!node){
console.error("setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _334=this.onContentError(e);
try{
node.innerHTML=_334;
}
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 _337=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_337){
cont=_337[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(_339){
var _33a={},key;
for(key in _339){
if(key in _33a){
continue;
}
this[key]=_339[key];
}
},_parse:function(){
var _33c=this.node;
try{
this.parseResults=dojo.parser.parse(_33c,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_33f){
var _340=this["on"+type+"Error"].call(this,err);
if(_33f){
console.error(_33f,err);
}else{
if(_340){
dojo.html._setNodeContent(this.node,_340,true);
}
}
}});
dojo.html.set=function(node,cont,_343){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_343){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_343,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_345,_346,_347){
_347=dojo.i18n.normalizeLocale(_347);
var _348=_347.split("-");
var _349=[_345,"nls",_346].join(".");
var _34a=dojo._loadedModules[_349];
if(_34a){
var _34b;
for(var i=_348.length;i>0;i--){
var loc=_348.slice(0,i).join("_");
if(_34a[loc]){
_34b=_34a[loc];
break;
}
}
if(!_34b){
_34b=_34a.ROOT;
}
if(_34b){
var _34e=function(){
};
_34e.prototype=_34b;
return new _34e();
}
}
throw new Error("Bundle not found: "+_346+" in "+_345+" , locale="+_347);
};
dojo.i18n.normalizeLocale=function(_34f){
var _350=_34f?_34f.toLowerCase():dojo.locale;
if(_350=="root"){
_350="ROOT";
}
return _350;
};
dojo.i18n._requireLocalization=function(_351,_352,_353,_354){
var _355=dojo.i18n.normalizeLocale(_353);
var _356=[_351,"nls",_352].join(".");
var _357="";
if(_354){
var _358=_354.split(",");
for(var i=0;i<_358.length;i++){
if(_355["indexOf"](_358[i])==0){
if(_358[i].length>_357.length){
_357=_358[i];
}
}
}
if(!_357){
_357="ROOT";
}
}
var _35a=_354?_357:_355;
var _35b=dojo._loadedModules[_356];
var _35c=null;
if(_35b){
if(dojo.config.localizationComplete&&_35b._built){
return;
}
var _35d=_35a.replace(/-/g,"_");
var _35e=_356+"."+_35d;
_35c=dojo._loadedModules[_35e];
}
if(!_35c){
_35b=dojo["provide"](_356);
var syms=dojo._getModuleSymbols(_351);
var _360=syms.concat("nls").join("/");
var _361;
dojo.i18n._searchLocalePath(_35a,_354,function(loc){
var _363=loc.replace(/-/g,"_");
var _364=_356+"."+_363;
var _365=false;
if(!dojo._loadedModules[_364]){
dojo["provide"](_364);
var _366=[_360];
if(loc!="ROOT"){
_366.push(loc);
}
_366.push(_352);
var _367=_366.join("/")+".js";
_365=dojo._loadPath(_367,null,function(hash){
var _369=function(){
};
_369.prototype=_361;
_35b[_363]=new _369();
for(var j in hash){
_35b[_363][j]=hash[j];
}
});
}else{
_365=true;
}
if(_365&&_35b[_363]){
_361=_35b[_363];
}else{
_35b[_363]=_361;
}
if(_354){
return true;
}
});
}
if(_354&&_355!=_357){
_35b[_355.replace(/-/g,"_")]=_35b[_357.replace(/-/g,"_")];
}
};
(function(){
var _36b=dojo.config.extraLocale;
if(_36b){
if(!_36b instanceof Array){
_36b=[_36b];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_36f,_370){
req(m,b,_36f,_370);
if(_36f){
return;
}
for(var i=0;i<_36b.length;i++){
req(m,b,_36b[i],_370);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_372,down,_374){
_372=dojo.i18n.normalizeLocale(_372);
var _375=_372.split("-");
var _376=[];
for(var i=_375.length;i>0;i--){
_376.push(_375.slice(0,i).join("-"));
}
_376.push(false);
if(down){
_376.reverse();
}
for(var j=_376.length-1;j>=0;j--){
var loc=_376[j]||"ROOT";
var stop=_374(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_37b,_37c){
function _37d(_37e){
_37e=dojo.i18n.normalizeLocale(_37e);
dojo.i18n._searchLocalePath(_37e,true,function(loc){
for(var i=0;i<_37c.length;i++){
if(_37c[i]==loc){
dojo["require"](_37b+"_"+loc);
return true;
}
}
return false;
});
};
_37d();
var _381=dojo.config.extraLocale||[];
for(var i=0;i<_381.length;i++){
_37d(_381[i]);
}
};
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{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,postMixInProperties:function(){
this.inherited(arguments);
var _383=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_383);
this.errorMessage=dojo.string.substitute(this.errorMessage,_383);
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;
}
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_384){
_384.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){
this._scheduleLayout();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _385=dojo.query(">",this.containerNode),_386=_385.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_388=dojo.filter(_386.map(dijit.byNode),function(_389){
return _389&&_389.domNode&&_389.resize;
});
if(_385.length==_386.length&&_388.length==1){
this._singleChild=_388[0];
}else{
delete this._singleChild;
}
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.cancel();
this.href=href;
if(this._created&&(this.preload||this._isShown())){
return this.refresh();
}else{
this._hrefChanged=true;
}
},setContent:function(data){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
this.attr("content",data);
},_setContentAttr:function(data){
this.href="";
this.cancel();
this._setContent(data||"");
this._isDownloaded=false;
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
},uninitialize:function(){
if(this._beingDestroyed){
this.cancel();
}
},destroyRecursive:function(_38e){
if(this._beingDestroyed){
return;
}
this._beingDestroyed=true;
this.inherited(arguments);
},resize:function(size){
dojo.marginBox(this.domNode,size);
var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});
var cb=(this._contentBox=dijit.layout.marginBox2contentBox(node,mb));
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize({w:cb.w,h:cb.h});
}
},_isShown:function(){
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._needLayout){
this._layoutChildren();
}
this._loadCheck();
if(this.onShow){
this.onShow();
}
},_loadCheck:function(){
if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){
delete this._hrefChanged;
this.refresh();
}
},refresh:function(){
this.cancel();
this._setContent(this.onDownloadStart(),true);
var self=this;
var _395={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_395,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_395));
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;
});
},_onLoadHandler:function(data){
this.isLoaded=true;
try{
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 _39a=this._contentSetter;
dojo.forEach(this.getChildren(),function(_39b){
if(_39b.destroyRecursive){
_39b.destroyRecursive();
}
});
if(_39a){
dojo.forEach(_39a.parseResults,function(_39c){
if(_39c.destroyRecursive&&_39c.domNode&&_39c.domNode.parentNode==dojo.body()){
_39c.destroyRecursive();
}
});
delete _39a.parseResults;
}
dojo.html._emptyNode(this.containerNode);
},_setContent:function(cont,_39e){
this.destroyDescendants();
delete this._singleChild;
var _39f=this._contentSetter;
if(!(_39f&&_39f instanceof dojo.html._ContentSetter)){
_39f=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _3a1=this.onContentError(e);
try{
this.containerNode.innerHTML=_3a1;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _3a2=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_39f,_3a2);
_39f.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_39e){
dojo.forEach(this.getChildren(),function(_3a3){
_3a3.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_3a6){
var _3a7=this["on"+type+"Error"].call(this,err);
if(_3a6){
console.error(_3a6,err);
}else{
if(_3a7){
this._setContent(_3a7,true);
}
}
},_scheduleLayout:function(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_layoutChildren:function(){
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(_3a9){
if(_3a9.resize){
_3a9.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_3ab){
},onDownloadError:function(_3ac){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dijit.TooltipDialog"]){
dojo._hasResource["dijit.TooltipDialog"]=true;
dojo.provide("dijit.TooltipDialog");
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_3ae,_3af){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_3af.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3af.charAt(0)=="T"?"Below":"Above");
dojo.addClass(this.domNode,c);
this._currentOrientClass=c;
},onOpen:function(pos){
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._onShow();
if(this.autofocus){
this._getFocusItems(this.containerNode);
dijit.focus(this._firstFocusItem);
}
},_onKey:function(evt){
var node=evt.target;
var dk=dojo.keys;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _3b5=(this._firstFocusItem==this._lastFocusItem);
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
dojo.stopEvent(evt);
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_3b5){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_3b5){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.charOrCode===dk.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){
var _3b6=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_3b6);
this.inherited(arguments);
},postCreate:function(){
dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function(){
this._position();
this.inherited(arguments);
},_endDrag:function(e){
if(e&&e.node&&e.node===this.domNode){
var vp=dijit.getViewport();
var p=e._leftTop||dojo.coords(e.node,true);
this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};
}
},_setup:function(){
var node=this.domNode;
if(this.titleBar&&this.draggable){
this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});
dojo.subscribe("/dnd/move/stop",this,"_endDrag");
}else{
dojo.addClass(node,"dijitDialogFixed");
}
var _3bb={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _3bd=dijit._underlay;
if(!_3bd){
_3bd=dijit._underlay=new dijit.DialogUnderlay(_3bb);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){
_3bd.attr(_3bb);
_3bd.show();
},onEnd:dojo.hitch(this,function(){
if(this.autofocus){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
})});
this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){
node.style.visibility="hidden";
node.style.top="-9999px";
dijit._underlay.hide();
}});
},uninitialize:function(){
var _3be=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_3be=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_3be=true;
this._fadeOut.stop();
}
if(this.open||_3be){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _3c0=dijit.getViewport();
if(mb.w>=_3c0.w||mb.h>=_3c0.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_3c0.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_3c0.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _3c2=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_3c2.l+(p?p.l:(_3c2.w-mb.w)/2))+"px",top:Math.floor(_3c2.t+(p?p.t:(_3c2.h-mb.h)/2))+"px"});
}
},_onKey:function(evt){
if(evt.charOrCode){
var dk=dojo.keys;
var node=evt.target;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _3c8=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_3c8){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_3c8){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode){
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.charOrCode!==dk.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
var _3c9=dijit.getViewport();
if(!this._oldViewport||_3c9.h!=this._oldViewport.h||_3c9.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_3c9;
}
}));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,visibility:""});
if(this._fixSizes){
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
this.open=true;
this._onShow();
this._size();
this._position();
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
},hide:function(){
if(!this._alreadyInitialized){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this.refocus){
this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));
}
if(this._relativePosition){
delete this._relativePosition;
}
this.open=false;
},layout:function(){
if(this.domNode.style.visibility!="hidden"){
dijit._underlay.layout();
this._position();
}
},destroy:function(){
dojo.forEach(this._modalconnects,dojo.disconnect);
if(this.refocus&&this.open){
setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);
}
this.inherited(arguments);
},_onCloseEnter:function(){
dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
},_onCloseLeave:function(){
dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
}});
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_3cb){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_3cb&&_3cb.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_3cf){
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("|"),_3cf);
};
dojo.regexp.group=function(_3d2,_3d3){
return "("+(_3d3?"?:":"")+_3d2+")";
};
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_3d5,_3d6){
var c=document.cookie;
if(arguments.length==1){
var _3d8=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _3d8?decodeURIComponent(_3d8[1]):undefined;
}else{
_3d6=_3d6||{};
var exp=_3d6.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_3d6.expires=d;
}
if(exp&&exp.toUTCString){
_3d6.expires=exp.toUTCString();
}
_3d5=encodeURIComponent(_3d5);
var _3db=name+"="+_3d5,_3dc;
for(_3dc in _3d6){
_3db+="; "+_3dc;
var _3dd=_3d6[_3dc];
if(_3dd!==true){
_3db+="="+_3dd;
}
}
document.cookie=_3db;
}
};
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._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function(_3de){
this.disabled=_3de;
dojo.attr(this.focusNode,"disabled",_3de);
dijit.setWaiState(this.focusNode,"disabled",_3de);
if(_3de){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_3df){
dojo.deprecated("setDisabled("+_3df+") is deprecated. Use attr('disabled',"+_3df+") instead.","","2.0");
this.attr("disabled",_3df);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_3e1){
var _3e2=_3e1.currentTarget;
if(_3e2&&_3e2.getAttribute){
this.stateModifier=_3e2.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_3e1.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _3e3=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_3e3);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _3e4=this.baseClass.split(" ");
function _3e5(_3e6){
_3e4=_3e4.concat(dojo.map(_3e4,function(c){
return c+_3e6;
}),"dijit"+_3e6);
};
if(this.checked){
_3e5("Checked");
}
if(this.state){
_3e5(this.state);
}
if(this.selected){
_3e5("Selected");
}
if(this.disabled){
_3e5("Disabled");
}else{
if(this.readOnly){
_3e5("ReadOnly");
}else{
if(this._active){
_3e5(this.stateModifier+"Active");
}else{
if(this._focused){
_3e5("Focused");
}
if(this._hovering){
_3e5(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_3e9={};
dojo.forEach(tn.className.split(" "),function(c){
_3e9[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _3e9[c];
});
}
dojo.forEach(_3e4,function(c){
_3e9[c]=true;
});
var _3ed=[];
for(var c in _3e9){
_3ed.push(c);
}
tn.className=_3ed.join(" ");
this._stateClasses=_3e4;
},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(_3f1){
},_onChangeActive:false,_handleOnChange:function(_3f2,_3f3){
this._lastValue=_3f2;
if(this._lastValueReported==undefined&&(_3f3===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_3f2;
}
if((this.intermediateChanges||_3f3||_3f3===undefined)&&((typeof _3f2!=typeof this._lastValueReported)||this.compare(_3f2,this._lastValueReported)!=0)){
this._lastValueReported=_3f2;
if(this._onChangeActive){
this.onChange(_3f2);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_3f4){
dojo.deprecated("dijit.form._FormWidget:setValue("+_3f4+") is deprecated.  Use attr('value',"+_3f4+") instead.","","2.0");
this.attr("value",_3f4);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_layoutHack:function(){
if(dojo.isFF==2&&!this._layoutHackHandle){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isWebKit){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_3f7,_3f8){
this.value=_3f7;
this._handleOnChange(_3f7,_3f8);
},_getValueAttr:function(_3f9){
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){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isWebKit){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
}});
}
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:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){
if(this.disabled||this.readOnly){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(e){
if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){
dojo.stopEvent(e);
}
if(this._onClick(e)===false){
e.preventDefault();
}else{
if(this.type=="submit"&&!this.focusNode.form){
for(var node=this.domNode;node.parentNode;node=node.parentNode){
var _3ff=dijit.byNode(node);
if(_3ff&&typeof _3ff._onSubmit=="function"){
_3ff._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function(_400){
var attr=this.attributeMap.value||"";
if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){
if(_400!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function(_402){
if(_402&&!("label" in this.params)){
this.attr("label",_402.innerHTML);
}
},postCreate:function(){
if(this.showLabel==false){
dojo.addClass(this.containerNode,"dijitDisplayNone");
}
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_405){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_405);
},_setLabelAttr:function(_406){
this.containerNode.innerHTML=this.label=_406;
this._layoutHack();
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],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){
if(this.srcNodeRef){
var _407=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_407[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _408=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_408);
delete this.dropDownContainer;
}
dijit.popup.prepare(this.dropDown.domNode);
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
this.dropDown.destroyRecursive();
delete this.dropDown;
}
this.inherited(arguments);
},_onArrowClick:function(e){
if(this.disabled||this.readOnly){
return;
}
this._toggleDropDown();
},_onDropDownClick:function(e){
var _40b=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_40b||e.detail!=0||this._seenKeydown){
this._onArrowClick(e);
}
this._seenKeydown=false;
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
if(e.charOrCode==dojo.keys.DOWN_ARROW){
if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){
dojo.stopEvent(e);
this._toggleDropDown();
}
}
},_onBlur:function(){
this._closeDropDown();
this.inherited(arguments);
},_toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
dijit.focus(this.popupStateNode);
var _40f=this.dropDown;
if(!_40f){
return;
}
if(!this._opened){
if(_40f.href&&!_40f.isLoaded){
var self=this;
var _411=dojo.connect(_40f,"onLoad",function(){
dojo.disconnect(_411);
self._openDropDown();
});
_40f.refresh();
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _412=this.dropDown;
var _413=_412.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_412,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){
self._closeDropDown(true);
},onCancel:function(){
self._closeDropDown(true);
},onClose:function(){
_412.domNode.style.width=_413;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_412.domNode.offsetWidth){
var _415=null;
if(!this.isLeftToRight()){
_415=_412.domNode.parentNode;
var _416=_415.offsetLeft+_415.offsetWidth;
}
dojo.marginBox(_412.domNode,{w:this.domNode.offsetWidth});
if(_415){
_415.style.left=_416-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_412.focus){
_412.focus();
}
},_closeDropDown:function(_417){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_417){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<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 dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" 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></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this.popupStateNode];
dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){
if(dojo.isIE){
this.connect(node,"onactivate",this._onNodeFocus);
this.connect(node,"ondeactivate",this._onNodeBlur);
}else{
this.connect(node,"onfocus",this._onNodeFocus);
this.connect(node,"onblur",this._onNodeBlur);
}
}));
},focusFocalNode:function(node){
this._focusedNode=node;
dijit.focus(node);
},hasNextFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[1];
},focusNext:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];
dijit.focus(this._focusedNode);
},hasPrevFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[0];
},focusPrev:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];
dijit.focus(this._focusedNode);
},getFocalNodes:function(){
return this._focalNodes;
},_onNodeFocus:function(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function(){
this.inherited(arguments);
this._focusedNode=null;
}});
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.attr("checked",!this.checked);
},_setCheckedAttr:function(_41f){
this.checked=_41f;
dojo.attr(this.focusNode||this.domNode,"checked",_41f);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_41f);
this._setStateClass();
this._handleOnChange(_41f,true);
},setChecked:function(_420){
dojo.deprecated("setChecked("+_420+") is deprecated. Use attr('checked',"+_420+") instead.","","2.0");
this.attr("checked",_420);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dijit.form.ToggleButton"]){
dojo._hasResource["dijit.form.ToggleButton"]=true;
dojo.provide("dijit.form.ToggleButton");
}
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(_421,_422){
var _423=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_421,function(code){
_423[code]=prev;
});
dojo.forEach(_422,function(code){
_423[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(_428,_429){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_428);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _42a=this._getNextFocusableChild(this.focusedChild,1);
if(_42a.getFocalNodes){
this.focusChild(_42a,_42a.getFocalNodes()[0]);
}else{
this.focusChild(_42a);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _42b=this._getNextFocusableChild(this.focusedChild,-1);
if(_42b.getFocalNodes){
var _42c=_42b.getFocalNodes();
this.focusChild(_42b,_42c[_42c.length-1]);
}else{
this.focusChild(_42b);
}
},focusChild:function(_42d,node){
if(_42d){
if(this.focusedChild&&_42d!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_42d;
if(node&&_42d.focusFocalNode){
_42d.focusFocalNode(node);
}else{
_42d.focus();
}
}
},_startupChild:function(_42f){
if(_42f.getFocalNodes){
dojo.forEach(_42f.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_42f.focusNode||_42f.domNode;
if(_42f.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target!==this.domNode){
return;
}
this.focusFirstChild();
dojo.removeAttr(this.domNode,"tabIndex");
},_onBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
var _438=dijit.getEnclosingWidget(evt.target);
if(_438&&_438.isFocusable()){
this.focusedChild=_438;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
dojo.stopEvent(evt);
},_onChildBlur:function(_43a){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_43b,dir){
if(_43b){
_43b=this._getSiblingOfChild(_43b,dir);
}
var _43d=this.getChildren();
for(var i=0;i<_43d.length;i++){
if(!_43b){
_43b=_43d[(dir>0)?0:(_43d.length-1)];
}
if(_43b.isFocusable()){
return _43b;
}
_43b=this._getSiblingOfChild(_43b,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],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"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"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_43f){
if(_43f&&!("label" in this.params)){
this.attr("label",_43f.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.domNode,false);
dojo.attr(this.containerNode,"id",this.id+"_text");
dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");
},_onHover:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemHover(this);
},_onUnhover:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemUnhover(this);
},_onClick:function(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function(evt){
},focus:function(){
try{
dijit.focus(this.focusNode);
}
catch(e){
}
},_onFocus:function(){
this._setSelected(true);
},_setSelected:function(_442){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_442);
},setLabel:function(_443){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_443);
},setDisabled:function(_444){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_444);
},_setDisabledAttr:function(_445){
this.disabled=_445;
dojo[_445?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_445?"true":"false");
},_setAccelKeyAttr:function(_446){
this.accelKey=_446;
this.accelKeyNode.style.display=_446?"":"none";
this.accelKeyNode.innerHTML=_446;
dojo.attr(this.containerNode,"colSpan",_446?"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 _447=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_447[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.domNode.style.display="none";
if(this.arrowWrapper){
dojo.style(this.arrowWrapper,"visibility","");
}
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
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:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" 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\">\n\t</td>\n</tr>\n",checked:false,_setCheckedAttr:function(_449){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_449);
dijit.setWaiState(this.domNode,"checked",_449);
this.checked=_449;
},onChange:function(_44a){
},_onClick:function(e){
if(!this.disabled){
this.attr("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:"<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></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(_44c){
_44c.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_44d){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}else{
var _44f=this._getTopMenu();
if(_44f&&_44f._isMenuBar){
_44f.focusNext();
}
}
},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);
}
}
},_onChildBlur:function(item){
item._setSelected(false);
dijit.popup.close(item.popup);
this._stopPopupTimer();
},onItemUnhover:function(item){
if(this.isActive){
this._stopPopupTimer();
}
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_getTopMenu:function(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function(item,evt){
if(item.disabled){
return false;
}
this.focusChild(item);
if(item.popup){
if(!this.is_open){
this._openPopup();
}
}else{
this.onExecute();
item.onClick(evt);
}
},_openPopup:function(){
this._stopPopupTimer();
var _456=this.focusedChild;
var _457=_456.popup;
if(_457.isShowingNow){
return;
}
_457.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_457,around:_456.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){
dijit.popup.close(_457);
_456.focus();
self.currentPopup=null;
},onExecute:dojo.hitch(this,"_onDescendantExecute")});
this.currentPopup=_457;
if(_457.focus){
setTimeout(dojo.hitch(_457,"focus"),0);
}
},onOpen:function(e){
this.isShowingNow=true;
},onClose:function(){
this._stopPopupTimer();
this.parentMenu=null;
this.isShowingNow=false;
this.currentPopup=null;
if(this.focusedChild){
this._onChildBlur(this.focusedChild);
this.focusedChild=null;
}
},_onFocus:function(){
this.isActive=true;
dojo.addClass(this.domNode,"dijitMenuActive");
dojo.removeClass(this.domNode,"dijitMenuPassive");
this.inherited(arguments);
},_onBlur:function(){
this.isActive=false;
dojo.removeClass(this.domNode,"dijitMenuActive");
dojo.addClass(this.domNode,"dijitMenuPassive");
this.onClose();
this.inherited(arguments);
},_onDescendantExecute:function(){
this.onClose();
}});
dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){
this._bindings=[];
},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,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(_45d){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_45d))||dijit.Menu._iframeContentDocument(_45d)["__parent__"]||(_45d.name&&dojo.doc.frames[_45d.name])||null;
return win;
},_iframeContentDocument:function(_45f){
var doc=_45f.contentDocument||(_45f.contentWindow&&_45f.contentWindow.document)||(_45f.name&&dojo.doc.frames[_45f.name]&&dojo.doc.frames[_45f.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dijit.getDocumentWindow(node.ownerDocument);
if(node.tagName.toLowerCase()=="iframe"){
win=this._iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
var cn=(node==dojo.body()?dojo.doc:node);
node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);
},unBindDomNode:function(_464){
var node=dojo.byId(_464);
if(node){
var bid=node[this.id]-1,b=this._bindings[bid];
dojo.forEach(b,dojo.disconnect);
delete this._bindings[bid];
}
},_contextKey:function(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};
_e.preventDefault=_e.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_e);
}),1);
}
}
},_contextMouse:function(e){
this._contextMenuWithMouse=true;
},_openMyself:function(e){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
}else{
var _46e=dojo.coords(e.target,true);
x=_46e.x+10;
y=_46e.y+10;
}
var self=this;
var _470=dijit.getFocus(this);
function _471(){
dijit.focus(_470);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:_471,onCancel:_471,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},uninitialize:function(){
dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);
this.inherited(arguments);
}});
}
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.pane2menu={};
this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];
},onStartup:function(info){
dojo.forEach(info.children,this.onAddChild,this);
this.onSelectChild(info.selected);
},destroy:function(){
for(var pane in this.pane2button){
this.onRemoveChild(pane);
}
dojo.forEach(this._subscriptions,dojo.unsubscribe);
this.inherited(arguments);
},onAddChild:function(page,_475){
var _476=dojo.doc.createElement("span");
this.domNode.appendChild(_476);
var cls=dojo.getObject(this.buttonWidget);
var _478=new cls({label:page.title,closeButton:page.closable},_476);
this.addChild(_478,_475);
this.pane2button[page]=_478;
page.controlButton=_478;
var _479=[];
_479.push(dojo.connect(_478,"onClick",dojo.hitch(this,"onButtonClick",page)));
if(page.closable){
_479.push(dojo.connect(_478,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));
var _47a=dojo.i18n.getLocalization("dijit","common");
var _47b=new dijit.Menu({targetNodeIds:[_478.id],id:_478.id+"_Menu"});
var _47c=new dijit.MenuItem({label:_47a.itemClose});
_479.push(dojo.connect(_47c,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));
_47b.addChild(_47c);
this.pane2menu[page]=_47b;
}
this.pane2handles[page]=_479;
if(!this._currentChild){
_478.focusNode.setAttribute("tabIndex","0");
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],dojo.disconnect);
delete this.pane2handles[page];
var menu=this.pane2menu[page];
if(menu){
menu.destroyRecursive();
delete this.pane2menu[page];
}
var _47f=this.pane2button[page];
if(_47f){
_47f.destroy();
delete this.pane2button[page];
}
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _481=this.pane2button[this._currentChild];
_481.attr("checked",false);
_481.focusNode.setAttribute("tabIndex","-1");
}
var _482=this.pane2button[page];
_482.attr("checked",true);
this._currentChild=page;
_482.focusNode.setAttribute("tabIndex","0");
var _483=dijit.byId(this.containerId);
dijit.setWaiState(_483.containerNode,"labelledby",_482.id);
},onButtonClick:function(page){
var _485=dijit.byId(this.containerId);
_485.selectChild(page);
},onCloseButtonClick:function(page){
var _487=dijit.byId(this.containerId);
_487.closeChild(page);
var b=this.pane2button[this._currentChild];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
},adjacent:function(_489){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_489=!_489;
}
var _48a=this.getChildren();
var _48b=dojo.indexOf(_48a,this.pane2button[this._currentChild]);
var _48c=_489?1:_48a.length-1;
return _48a[(_48b+_48c)%_48a.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _48e=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_48e=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_48e=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_48e=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_48e=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(_48e!==null){
this.adjacent(_48e).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",_started:false,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 _494=this.getChildren();
dojo.forEach(_494,this._setupChild,this);
if(this.persist){
this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));
}else{
dojo.some(_494,function(_495){
if(_495.selected){
this.selectedChildWidget=_495;
}
return _495.selected;
},this);
}
var _496=this.selectedChildWidget;
if(!_496&&_494[0]){
_496=this.selectedChildWidget=_494[0];
_496.selected=true;
}
dojo.publish(this.id+"-startup",[{children:_494,selected:_496}]);
if(_496){
this._showChild(_496);
}
this.inherited(arguments);
},_setupChild:function(_497){
this.inherited(arguments);
dojo.removeClass(_497.domNode,"dijitVisible");
dojo.addClass(_497.domNode,"dijitHidden");
_497.domNode.title="";
return _497;
},addChild:function(_498,_499){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_498,_499]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_498);
}
}
},removeChild:function(page){
this.inherited(arguments);
if(this._beingDestroyed){
return;
}
if(this._started){
dojo.publish(this.id+"-removeChild",[page]);
this.layout();
}
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this._started){
var _49b=this.getChildren();
if(_49b.length){
this.selectChild(_49b[0]);
}
}
}
},selectChild:function(page){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
if(this.persist){
dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);
}
}
},_transition:function(_49d,_49e){
if(_49e){
this._hideChild(_49e);
}
this._showChild(_49d);
if(this.doLayout&&_49d.resize){
_49d.resize(this._containerContentBox||this._contentBox);
}
},_adjacent:function(_49f){
var _4a0=this.getChildren();
var _4a1=dojo.indexOf(_4a0,this.selectedChildWidget);
_4a1+=_49f?1:_4a0.length-1;
return _4a0[_4a1%_4a0.length];
},forward:function(){
this.selectChild(this._adjacent(true));
},back:function(){
this.selectChild(this._adjacent(false));
},_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._contentBox);
}
},_showChild:function(page){
var _4a4=this.getChildren();
page.isFirstChild=(page==_4a4[0]);
page.isLastChild=(page==_4a4[_4a4.length-1]);
page.selected=true;
dojo.removeClass(page.domNode,"dijitHidden");
dojo.addClass(page.domNode,"dijitVisible");
if(page._onShow){
page._onShow();
}else{
if(page.onShow){
page.onShow();
}
}
},_hideChild:function(page){
page.selected=false;
dojo.removeClass(page.domNode,"dijitVisible");
dojo.addClass(page.domNode,"dijitHidden");
if(page.onHide){
page.onHide();
}
},closeChild:function(page){
var _4a7=page.onClose(this,page);
if(_4a7){
this.removeChild(page);
page.destroyRecursive();
}
},destroy:function(){
this._beingDestroyed=true;
this.inherited(arguments);
}});
dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){
return true;
}});
}
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",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){
if(0>=this.tabPosition.indexOf("-h")){
return;
}
if(!this.pane2button){
return;
}
var _4a8=0;
for(var pane in this.pane2button){
var ow=this.pane2button[pane].innerDiv.scrollWidth;
_4a8=Math.max(_4a8,ow);
}
for(pane in this.pane2button){
this.pane2button[pane].innerDiv.style.width=_4a8+"px";
}
}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n",scrollOnFocus:false,postCreate:function(){
if(this.closeButton){
dojo.addClass(this.innerDiv,"dijitClosable");
var _4ab=dojo.i18n.getLocalization("dijit","common");
if(this.closeNode){
dojo.attr(this.closeNode,"title",_4ab.itemClose);
dojo.attr(this.closeIcon,"title",_4ab.itemClose);
}
}else{
this.closeNode.style.display="none";
}
this.inherited(arguments);
dojo.setSelectable(this.containerNode,false);
},_onCloseButtonEnter:function(){
dojo.addClass(this.closeNode,"closeButton-hover");
},_onCloseButtonLeave:function(){
dojo.removeClass(this.closeNode,"closeButton-hover");
}});
}
if(!dojo._hasResource["dijit.layout.TabContainer"]){
dojo._hasResource["dijit.layout.TabContainer"]=true;
dojo.provide("dijit.layout.TabContainer");
dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div 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",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){
this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
var _4ac=dojo.getObject(this._controllerWidget);
this.tablist=new _4ac({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);
if(this.tabStrip){
dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");
}
if(!this.doLayout){
dojo.addClass(this.domNode,"dijitTabContainerNoLayout");
}
if(this.nested){
dojo.addClass(this.domNode,"dijitTabContainerNested");
dojo.addClass(this.tablist.domNode,"dijitTabContainerTabListNested");
dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");
dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");
}
},_setupChild:function(tab){
dojo.addClass(tab.domNode,"dijitTabPane");
this.inherited(arguments);
return tab;
},startup:function(){
if(this._started){
return;
}
this.tablist.startup();
this.inherited(arguments);
},layout:function(){
if(!this.doLayout){
return;
}
var _4ae=this.tabPosition.replace(/-h/,"");
var _4af=[{domNode:this.tablist.domNode,layoutAlign:_4ae},{domNode:this.tablistSpacer,layoutAlign:_4ae},{domNode:this.containerNode,layoutAlign:"client"}];
dijit.layout.layoutChildren(this.domNode,this._contentBox,_4af);
this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_4af[2]);
if(this.selectedChildWidget){
this._showChild(this.selectedChildWidget);
if(this.doLayout&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._containerContentBox);
}
}
},destroy:function(){
if(this.tablist){
this.tablist.destroy();
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.layout.BorderContainer"]){
dojo._hasResource["dijit.layout.BorderContainer"]=true;
dojo.provide("dijit.layout.BorderContainer");
dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){
if(!this.gutters){
this.baseClass+="NoGutter";
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this._splitters={};
this._splitterThickness={};
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),this._setupChild,this);
this.inherited(arguments);
},_setupChild:function(_4b0){
var _4b1=_4b0.region;
if(_4b1){
this.inherited(arguments);
dojo.addClass(_4b0.domNode,this.baseClass+"Pane");
var ltr=this.isLeftToRight();
if(_4b1=="leading"){
_4b1=ltr?"left":"right";
}
if(_4b1=="trailing"){
_4b1=ltr?"right":"left";
}
this["_"+_4b1]=_4b0.domNode;
this["_"+_4b1+"Widget"]=_4b0;
if((_4b0.splitter||this.gutters)&&!this._splitters[_4b1]){
var _4b3=dojo.getObject(_4b0.splitter?this._splitterClass:"dijit.layout._Gutter");
var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};
var _4b5=new _4b3({container:this,child:_4b0,region:_4b1,oppNode:this["_"+flip[_4b0.region]],live:this.liveSplitters});
_4b5.isSplitter=true;
this._splitters[_4b1]=_4b5.domNode;
dojo.place(this._splitters[_4b1],_4b0.domNode,"after");
_4b5.startup();
}
_4b0.region=_4b1;
}
},_computeSplitterThickness:function(_4b6){
this._splitterThickness[_4b6]=this._splitterThickness[_4b6]||dojo.marginBox(this._splitters[_4b6])[(/top|bottom/.test(_4b6)?"h":"w")];
},layout:function(){
for(var _4b7 in this._splitters){
this._computeSplitterThickness(_4b7);
}
this._layoutChildren();
},addChild:function(_4b8,_4b9){
this.inherited(arguments);
if(this._started){
this._layoutChildren();
}
},removeChild:function(_4ba){
var _4bb=_4ba.region;
var _4bc=this._splitters[_4bb];
if(_4bc){
dijit.byNode(_4bc).destroy();
delete this._splitters[_4bb];
delete this._splitterThickness[_4bb];
}
this.inherited(arguments);
delete this["_"+_4bb];
delete this["_"+_4bb+"Widget"];
if(this._started){
this._layoutChildren(_4ba.region);
}
dojo.removeClass(_4ba.domNode,this.baseClass+"Pane");
},getChildren:function(){
return dojo.filter(this.inherited(arguments),function(_4bd){
return !_4bd.isSplitter;
});
},getSplitter:function(_4be){
var _4bf=this._splitters[_4be];
return _4bf?dijit.byNode(_4bf):null;
},resize:function(_4c0,_4c1){
if(!this.cs||!this.pe){
var node=this.domNode;
this.cs=dojo.getComputedStyle(node);
this.pe=dojo._getPadExtents(node,this.cs);
this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);
this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);
dojo.style(node,"padding","0px");
}
this.inherited(arguments);
},_layoutChildren:function(_4c3){
if(!this._borderBox||!this._borderBox.h){
return;
}
var _4c4=(this.design=="sidebar");
var _4c5=0,_4c6=0,_4c7=0,_4c8=0;
var _4c9={},_4ca={},_4cb={},_4cc={},_4cd=(this._center&&this._center.style)||{};
var _4ce=/left|right/.test(_4c3);
var _4cf=!_4c3||(!_4ce&&!_4c4);
var _4d0=!_4c3||(_4ce&&_4c4);
if(this._top){
_4c9=_4d0&&this._top.style;
_4c5=dojo.marginBox(this._top).h;
}
if(this._left){
_4ca=_4cf&&this._left.style;
_4c7=dojo.marginBox(this._left).w;
}
if(this._right){
_4cb=_4cf&&this._right.style;
_4c8=dojo.marginBox(this._right).w;
}
if(this._bottom){
_4cc=_4d0&&this._bottom.style;
_4c6=dojo.marginBox(this._bottom).h;
}
var _4d1=this._splitters;
var _4d2=_4d1.top,_4d3=_4d1.bottom,_4d4=_4d1.left,_4d5=_4d1.right;
var _4d6=this._splitterThickness;
var _4d7=_4d6.top||0,_4d8=_4d6.left||0,_4d9=_4d6.right||0,_4da=_4d6.bottom||0;
if(_4d8>50||_4d9>50){
setTimeout(dojo.hitch(this,function(){
this._splitterThickness={};
for(var _4db in this._splitters){
this._computeSplitterThickness(_4db);
}
this._layoutChildren();
}),50);
return false;
}
var pe=this.pe;
var _4dd={left:(_4c4?_4c7+_4d8:0)+pe.l+"px",right:(_4c4?_4c8+_4d9:0)+pe.r+"px"};
if(_4d2){
dojo.mixin(_4d2.style,_4dd);
_4d2.style.top=_4c5+pe.t+"px";
}
if(_4d3){
dojo.mixin(_4d3.style,_4dd);
_4d3.style.bottom=_4c6+pe.b+"px";
}
_4dd={top:(_4c4?0:_4c5+_4d7)+pe.t+"px",bottom:(_4c4?0:_4c6+_4da)+pe.b+"px"};
if(_4d4){
dojo.mixin(_4d4.style,_4dd);
_4d4.style.left=_4c7+pe.l+"px";
}
if(_4d5){
dojo.mixin(_4d5.style,_4dd);
_4d5.style.right=_4c8+pe.r+"px";
}
dojo.mixin(_4cd,{top:pe.t+_4c5+_4d7+"px",left:pe.l+_4c7+_4d8+"px",right:pe.r+_4c8+_4d9+"px",bottom:pe.b+_4c6+_4da+"px"});
var _4de={top:_4c4?pe.t+"px":_4cd.top,bottom:_4c4?pe.b+"px":_4cd.bottom};
dojo.mixin(_4ca,_4de);
dojo.mixin(_4cb,_4de);
_4ca.left=pe.l+"px";
_4cb.right=pe.r+"px";
_4c9.top=pe.t+"px";
_4cc.bottom=pe.b+"px";
if(_4c4){
_4c9.left=_4cc.left=_4c7+_4d8+pe.l+"px";
_4c9.right=_4cc.right=_4c8+_4d9+pe.r+"px";
}else{
_4c9.left=_4cc.left=pe.l+"px";
_4c9.right=_4cc.right=pe.r+"px";
}
var _4df=this._borderBox.h-pe.t-pe.b,_4e0=_4df-(_4c5+_4d7+_4c6+_4da),_4e1=_4c4?_4df:_4e0;
var _4e2=this._borderBox.w-pe.l-pe.r,_4e3=_4e2-(_4c7+_4d8+_4c8+_4d9),_4e4=_4c4?_4e3:_4e2;
var dim={top:{w:_4e4,h:_4c5},bottom:{w:_4e4,h:_4c6},left:{w:_4c7,h:_4e1},right:{w:_4c8,h:_4e1},center:{h:_4e0,w:_4e3}};
var _4e6=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_4e7){
return _4e7.domNode.tagName=="TEXTAREA"||_4e7.domNode.tagName=="INPUT";
});
if(_4e6){
var _4e8=function(_4e9,_4ea,_4eb){
if(_4e9){
(_4e9.resize?_4e9.resize(_4ea,_4eb):dojo.marginBox(_4e9.domNode,_4ea));
}
};
if(_4d4){
_4d4.style.height=_4e1;
}
if(_4d5){
_4d5.style.height=_4e1;
}
_4e8(this._leftWidget,{h:_4e1},dim.left);
_4e8(this._rightWidget,{h:_4e1},dim.right);
if(_4d2){
_4d2.style.width=_4e4;
}
if(_4d3){
_4d3.style.width=_4e4;
}
_4e8(this._topWidget,{w:_4e4},dim.top);
_4e8(this._bottomWidget,{w:_4e4},dim.bottom);
_4e8(this._centerWidget,dim.center);
}else{
var _4ec={};
if(_4c3){
_4ec[_4c3]=_4ec.center=true;
if(/top|bottom/.test(_4c3)&&this.design!="sidebar"){
_4ec.left=_4ec.right=true;
}else{
if(/left|right/.test(_4c3)&&this.design=="sidebar"){
_4ec.top=_4ec.bottom=true;
}
}
}
dojo.forEach(this.getChildren(),function(_4ed){
if(_4ed.resize&&(!_4c3||_4ed.region in _4ec)){
_4ed.resize(null,dim[_4ed.region]);
}
},this);
}
},destroy:function(){
for(var _4ee in this._splitters){
var _4ef=this._splitters[_4ee];
dijit.byNode(_4ef).destroy();
dojo.destroy(_4ef);
}
delete this._splitters;
delete this._splitterThickness;
this.inherited(arguments);
}});
dojo.extend(dijit._Widget,{region:"",splitter:false,minSize:0,maxSize:Infinity});
dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag\" tabIndex=\"0\" waiRole=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postCreate:function(){
this.inherited(arguments);
this.horizontal=/top|bottom/.test(this.region);
dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));
this._factor=/top|left/.test(this.region)?1:-1;
this._minSize=this.child.minSize;
this.child.domNode._recalc=true;
this.connect(this.container,"resize",function(){
this.child.domNode._recalc=true;
});
this._cookieName=this.container.id+"_"+this.region;
if(this.container.persist){
var _4f0=dojo.cookie(this._cookieName);
if(_4f0){
this.child.domNode.style[this.horizontal?"height":"width"]=_4f0;
}
}
},_computeMaxSize:function(){
var dim=this.horizontal?"h":"w",_4f2=this.container._splitterThickness[this.region];
var _4f3=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0)-20-_4f2*2;
this._maxSize=Math.min(this.child.maxSize,_4f3);
},_startDrag:function(e){
if(this.child.domNode._recalc){
this._computeMaxSize();
this.child.domNode._recalc=false;
}
if(!this.cover){
this.cover=dojo.doc.createElement("div");
dojo.addClass(this.cover,"dijitSplitterCover");
dojo.place(this.cover,this.child.domNode,"after");
}
dojo.addClass(this.cover,"dijitSplitterCoverActive");
if(this.fake){
dojo.destroy(this.fake);
}
if(!(this._resize=this.live)){
(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
dojo.addClass(this.domNode,"dijitSplitterShadow");
dojo.place(this.fake,this.domNode,"after");
}
dojo.addClass(this.domNode,"dijitSplitterActive");
var _4f5=this._factor,max=this._maxSize,min=this._minSize||20,_4f8=this.horizontal,axis=_4f8?"pageY":"pageX",_4fa=e[axis],_4fb=this.domNode.style,dim=_4f8?"h":"w",_4fd=dojo.marginBox(this.child.domNode)[dim],_4fe=this.region,_4ff=parseInt(this.domNode.style[_4fe],10),_500=this._resize,mb={},_502=this.child.domNode,_503=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;
this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_506){
var _507=e[axis]-_4fa,_508=_4f5*_507+_4fd,_509=Math.max(Math.min(_508,max),min);
if(_500||_506){
mb[dim]=_509;
dojo.marginBox(_502,mb);
_503(_4fe);
}
_4fb[_4fe]=_4f5*_507+_4ff+(_509-_508)+"px";
}),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);
dojo.stopEvent(e);
},_stopDrag:function(e){
try{
if(this.cover){
dojo.removeClass(this.cover,"dijitSplitterCoverActive");
}
if(this.fake){
dojo.destroy(this.fake);
}
dojo.removeClass(this.domNode,"dijitSplitterActive");
dojo.removeClass(this.domNode,"dijitSplitterShadow");
this._drag(e);
this._drag(e,true);
}
finally{
this._cleanupHandlers();
if(this.oppNode){
this.oppNode._recalc=true;
}
delete this._drag;
}
if(this.container.persist){
dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});
}
},_cleanupHandlers:function(){
dojo.forEach(this._handlers,dojo.disconnect);
delete this._handlers;
},_onKeyPress:function(e){
if(this.child.domNode._recalc){
this._computeMaxSize();
this.child.domNode._recalc=false;
}
this._resize=true;
var _50c=this.horizontal;
var tick=1;
var dk=dojo.keys;
switch(e.charOrCode){
case _50c?dk.UP_ARROW:dk.LEFT_ARROW:
tick*=-1;
case _50c?dk.DOWN_ARROW:dk.RIGHT_ARROW:
break;
default:
return;
}
var _50f=dojo.marginBox(this.child.domNode)[_50c?"h":"w"]+this._factor*tick;
var mb={};
mb[this.horizontal?"h":"w"]=Math.max(Math.min(_50f,this._maxSize),this._minSize);
dojo.marginBox(this.child.domNode,mb);
if(this.oppNode){
this.oppNode._recalc=true;
}
this.container._layoutChildren(this.region);
dojo.stopEvent(e);
},destroy:function(){
this._cleanupHandlers();
delete this.child;
delete this.container;
delete this.cover;
delete this.fake;
this.inherited(arguments);
}});
dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" waiRole=\"presentation\"></div>",postCreate:function(){
this.horizontal=/top|bottom/.test(this.region);
dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));
}});
}
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(_511){
},onExecute:function(){
},_setEncTypeAttr:function(_512){
this.encType=_512;
dojo.attr(this.domNode,"encType",_512);
if(dojo.isIE){
this.domNode.encoding=_512;
}
},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.attr("encType",item.value);
}
}
this.inherited(arguments);
},onReset:function(e){
return true;
},_onReset:function(e){
var faux={returnValue:true,preventDefault:function(){
this.returnValue=false;
},stopPropagation:function(){
},currentTarget:e.currentTarget,target:e.target};
if(!(this.onReset(faux)===false)&&faux.returnValue){
this.reset();
}
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.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:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function(_51a,_51b,_51c){
var _51d;
if(_51a!==undefined){
_51d=this.filter(_51a);
if(typeof _51c!="string"){
if(_51d!==null&&((typeof _51d!="number")||!isNaN(_51d))){
_51c=this.filter(this.format(_51d,this.constraints));
}else{
_51c="";
}
}
}
if(_51c!=null&&_51c!=undefined&&((typeof _51c)!="number"||!isNaN(_51c))&&this.textbox.value!=_51c){
this.textbox.value=_51c;
}
this.inherited(arguments,[_51d,_51b]);
},displayedValue:"",getDisplayedValue:function(){
dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");
return this.attr("displayedValue");
},_getDisplayedValueAttr:function(){
return this.filter(this.textbox.value);
},setDisplayedValue:function(_51e){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_51e);
},_setDisplayedValueAttr:function(_51f){
if(_51f===null||_51f===undefined){
_51f="";
}else{
if(typeof _51f!="string"){
_51f=String(_51f);
}
}
this.textbox.value=_51f;
this._setValueAttr(this.attr("value"),undefined,_51f);
},format:function(_520,_521){
return ((_520==null||_520==undefined)?"":(_520.toString?_520.toString():_520));
},parse:function(_522,_523){
return _522;
},_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 _525=this;
setTimeout(function(){
_525._handleOnChange(_525.attr("value"),false);
},0);
}
this._refreshState();
},postCreate:function(){
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);
}
this._layoutHack();
},_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.attr("value"),true);
},_onBlur:function(e){
if(this.disabled){
return;
}
this._setBlurValue();
this.inherited(arguments);
},_onFocus:function(e){
if(this.disabled){
return;
}
this._refreshState();
this.inherited(arguments);
},reset:function(){
this.textbox.value="";
this.inherited(arguments);
}});
dijit.selectInputText=function(_52a,_52b,stop){
var _52d=dojo.global;
var _52e=dojo.doc;
_52a=dojo.byId(_52a);
if(isNaN(_52b)){
_52b=0;
}
if(isNaN(stop)){
stop=_52a.value?_52a.value.length:0;
}
_52a.focus();
if(_52e["selection"]&&dojo.body()["createTextRange"]){
if(_52a.createTextRange){
var _52f=_52a.createTextRange();
with(_52f){
collapse(true);
moveStart("character",_52b);
moveEnd("character",stop);
select();
}
}
}else{
if(_52d["getSelection"]){
var _530=_52d.getSelection();
if(_52a.setSelectionRange){
_52a.setSelectionRange(_52b,stop);
}
}
}
};
}
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:"<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(_531,_532,_533){
if(this.aroundNode&&this.aroundNode===_532){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_531;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _534={};
var ltr=this.isLeftToRight();
dojo.forEach((_533&&_533.length)?_533:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_534[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_534[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_534[ltr?"BL":"BR"]=ltr?"TL":"TR";
_534[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_534[ltr?"TL":"TR"]=ltr?"BL":"BR";
_534[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_532,_534,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_532;
},orient:function(node,_539,_53a){
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"}[_539+"-"+_53a];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_53b){
if(this._onDeck&&this._onDeck[1]==_53b){
this._onDeck=null;
}else{
if(this.aroundNode===_53b){
this.fadeIn.stop();
this.isShowingNow=false;
this.aroundNode=null;
this.fadeOut.play();
}else{
}
}
},_onHide:function(){
this.domNode.style.cssText="";
if(this._onDeck){
this.show.apply(this,this._onDeck);
this._onDeck=null;
}
}});
dijit.showTooltip=function(_53c,_53d,_53e){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_53c,_53d,_53e);
};
dijit.hideTooltip=function(_53f){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_53f);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){
this._connectNodes=[];
this.connectId=dojo.isArrayLike(ids)?ids:[ids];
dojo.forEach(this.connectId,function(id){
var node=dojo.byId(id);
if(node){
this._connectNodes.push(node);
dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_543){
this.connect(node,_543.toLowerCase(),"_"+_543);
},this);
if(dojo.isIE){
node.style.zoom=1;
}
}
},this);
},postCreate:function(){
dojo.addClass(this.domNode,"dijitTooltipData");
},_onMouseEnter:function(e){
this._onHover(e);
},_onMouseLeave:function(e){
this._onUnHover(e);
},_onFocus:function(e){
this._focus=true;
this._onHover(e);
this.inherited(arguments);
},_onBlur:function(e){
this._focus=false;
this._onUnHover(e);
this.inherited(arguments);
},_onHover:function(e){
if(!this._showTimer){
var _549=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_549);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_54b){
_54b=_54b||this._connectNodes[0];
if(!_54b){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_54b,this.position);
this._connectNode=_54b;
},close:function(){
if(this._connectNode){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},uninitialize:function(){
this.close();
}});
dijit.Tooltip.defaultPosition=["after","before"];
}
if(!dojo._hasResource["dojox.widget.SortList"]){
dojo._hasResource["dojox.widget.SortList"]=true;
dojo.provide("dojox.widget.SortList");
dojo.experimental("dojox.widget.SortList");
dojo.declare("dojox.widget.SortList",[dijit.layout._LayoutWidget,dijit._Templated],{title:"",heading:"",descending:true,selected:null,sortable:true,store:"",key:"name",baseClass:"dojoxSortList",templateString:"<div class=\"sortList\" id=\"${id}\">\n\t\t<div class=\"sortListTitle\" dojoAttachPoint=\"titleNode\">\n\t\t<div class=\"dijitInline sortListIcon\">&thinsp;</div>\n\t\t<span dojoAttachPoint=\"focusNode\">${title}</span>\n\t\t</div>\n\t\t<div class=\"sortListBodyWrapper\" dojoAttachEvent=\"onmouseover: _set, onmouseout: _unset, onclick:_handleClick\" dojoAttachPoint=\"bodyWrapper\">\n\t\t<ul dojoAttachPoint=\"containerNode\" class=\"sortListBody\"></ul>\n\t</div>\n</div>",_addItem:function(item){
dojo.create("li",{innerHTML:this.store.getValue(item,this.key).replace(/</g,"&lt;")},this.containerNode);
},postCreate:function(){
if(this.store){
this.store=dojo.getObject(this.store);
var _54d={onItem:dojo.hitch(this,"_addItem"),onComplete:dojo.hitch(this,"onSort")};
this.store.fetch(_54d);
}else{
this.onSort();
}
this.inherited(arguments);
},startup:function(){
this.inherited(arguments);
if(this.heading){
this.setTitle(this.heading);
this.title=this.heading;
}
setTimeout(dojo.hitch(this,"resize"),5);
if(this.sortable){
this.connect(this.titleNode,"onclick","onSort");
}
},resize:function(){
this.inherited(arguments);
var _54e=((this._contentBox.h)-(dojo.style(this.titleNode,"height")))-10;
this.bodyWrapper.style.height=Math.abs(_54e)+"px";
},onSort:function(e){
var arr=dojo.query("li",this.domNode);
if(this.sortable){
this.descending=!this.descending;
dojo.addClass(this.titleNode,((this.descending)?"sortListDesc":"sortListAsc"));
dojo.removeClass(this.titleNode,((this.descending)?"sortListAsc":"sortListDesc"));
arr.sort(this._sorter);
if(this.descending){
arr.reverse();
}
}
var i=0;
dojo.forEach(arr,function(item){
dojo[(i++)%2===0?"addClass":"removeClass"](item,"sortListItemOdd");
this.containerNode.appendChild(item);
},this);
},_set:function(e){
if(e.target!==this.bodyWrapper){
dojo.addClass(e.target,"sortListItemHover");
}
},_unset:function(e){
dojo.removeClass(e.target,"sortListItemHover");
},_handleClick:function(e){
dojo.toggleClass(e.target,"sortListItemSelected");
e.target.focus();
this._updateValues(e.target.innerHTML);
},_updateValues:function(){
this._selected=dojo.query("li.sortListItemSelected",this.containerNode);
this.selected=[];
dojo.forEach(this._selected,function(node){
this.selected.push(node.innerHTML);
},this);
this.onChanged(arguments);
},_sorter:function(a,b){
var aStr=a.innerHTML;
var bStr=b.innerHTML;
if(aStr>bStr){
return 1;
}
if(aStr<bStr){
return -1;
}
return 0;
},setTitle:function(_55b){
this.focusNode.innerHTML=this.title=_55b;
},onChanged:function(){
}});
}
if(!dojo._hasResource["dijit.InlineEditBox"]){
dojo._hasResource["dijit.InlineEditBox"]=true;
dojo.provide("dijit.InlineEditBox");
dojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorParams:{},onChange:function(_55c){
},onCancel:function(){
},width:"100%",value:"",noValueIndicator:"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){
this.editorParams={};
},postMixInProperties:function(){
this.inherited(arguments);
this.displayNode=this.srcNodeRef;
var _55d={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};
for(var name in _55d){
this.connect(this.displayNode,name,_55d[name]);
}
dijit.setWaiRole(this.displayNode,"button");
if(!this.displayNode.getAttribute("tabIndex")){
this.displayNode.setAttribute("tabIndex",0);
}
this.attr("value",this.value||this.displayNode.innerHTML);
},setDisabled:function(_55f){
dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_55f);
},_setDisabledAttr:function(_560){
this.disabled=_560;
dijit.setWaiState(this.domNode,"disabled",_560);
},_onMouseOver:function(){
dojo.addClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");
},_onMouseOut:function(){
dojo.removeClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");
},_onClick:function(e){
if(this.disabled){
return;
}
if(e){
dojo.stopEvent(e);
}
this._onMouseOut();
setTimeout(dojo.hitch(this,"edit"),0);
},edit:function(){
if(this.disabled||this.editing){
return;
}
this.editing=true;
var _562=(this.renderAsHtml?this.value:this.value.replace(/\s*\r?\n\s*/g,"").replace(/<br\/?>/gi,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&quot;/g,"\""));
var _563=dojo.create("span",null,this.domNode,"before");
var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_562),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,sourceStyle:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_563);
var ews=ew.domNode.style;
this.displayNode.style.display="none";
ews.position="static";
ews.visibility="visible";
this.domNode=ew.domNode;
setTimeout(function(){
ew.focus();
ew._resetValue=ew.getValue();
},100);
},_showText:function(_566){
this.displayNode.style.display="";
var ew=this.editWidget;
var ews=ew.domNode.style;
ews.position="absolute";
ews.visibility="hidden";
this.domNode=this.displayNode;
if(_566){
dijit.focus(this.displayNode);
}
ews.display="none";
setTimeout(function(){
ew.destroy();
delete ew;
if(dojo.isIE){
dijit.focus(dijit.getFocus());
}
},1000);
},save:function(_569){
if(this.disabled||!this.editing){
return;
}
this.editing=false;
var _56a=this.editWidget.getValue()+"";
this.attr("value",this.renderAsHtml?_56a:_56a.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));
this.onChange(_56a);
this._showText(_569);
},setValue:function(val){
dojo.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");
return this.attr("value",val);
},_setValueAttr:function(val){
this.value=val;
this.displayNode.innerHTML=dojo.trim(val)||this.noValueIndicator;
},getValue:function(){
dojo.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use attr('value') instead.","","2.0");
return this.attr("value");
},cancel:function(_56d){
this.editing=false;
this.onCancel();
this._showText(_56d);
}});
dojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:"<span dojoAttachPoint=\"editNode\" waiRole=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\n\tdojoAttachEvent=\"onkeypress: _onKeyPress\" \n\t><span dojoAttachPoint=\"editorPlaceholder\"></span\n\t><span dojoAttachPoint=\"buttonContainer\"\n\t\t><button class='saveButton' dojoAttachPoint=\"saveButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:save\" disabled=\"true\" label=\"${buttonSave}\"></button\n\t\t><button class='cancelButton' dojoAttachPoint=\"cancelButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:cancel\" label=\"${buttonCancel}\"></button\n\t></span\n></span>\n",widgetsInTemplate:true,postMixInProperties:function(){
this.inherited(arguments);
this.messages=dojo.i18n.getLocalization("dijit","common",this.lang);
dojo.forEach(["buttonSave","buttonCancel"],function(prop){
if(!this[prop]){
this[prop]=this.messages[prop];
}
},this);
},postCreate:function(){
var cls=dojo.getObject(this.editor);
var _570=this.sourceStyle;
var _571="line-height:"+_570.lineHeight+";";
dojo.forEach(["Weight","Family","Size","Style"],function(prop){
_571+="font-"+prop+":"+_570["font"+prop]+";";
},this);
dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){
this.domNode.style[prop]=_570[prop];
},this);
if(this.width=="100%"){
_571+="width:100%;";
this.domNode.style.display="block";
}else{
_571+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";
}
this.editorParams.style=_571;
this.editorParams["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;
var ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);
this.connect(ew,"onChange","_onChange");
this.connect(ew,"onKeyPress","_onKeyPress");
this.connect(ew,"onKeyUp","_onKeyPress");
if(this.autoSave){
this.buttonContainer.style.display="none";
}
},destroy:function(){
this.editWidget.destroy();
this.inherited(arguments);
},getValue:function(){
var ew=this.editWidget;
return ew.attr("displayedValue" in ew?"displayedValue":"value");
},_onKeyPress:function(e){
if(this._exitInProgress){
return;
}
if(this.autoSave){
if(e.altKey||e.ctrlKey){
return;
}
if(e.charOrCode==dojo.keys.ESCAPE){
dojo.stopEvent(e);
this._exitInProgress=true;
this.cancel(true);
}else{
if(e.charOrCode==dojo.keys.ENTER&&this.editWidget.focusNode.tagName=="INPUT"){
dojo.stopEvent(e);
this._exitInProgress=true;
this.save(true);
}else{
if(e.charOrCode===dojo.keys.TAB){
this._exitInProgress=true;
setTimeout(dojo.hitch(this,"save",false),0);
}
}
}
}else{
var _577=this;
setTimeout(function(){
_577._onChange();
},100);
}
},_onBlur:function(){
this.inherited(arguments);
if(this._exitInProgress){
return;
}
if(this.autoSave){
this._exitInProgress=true;
if(this.getValue()==this._resetValue){
this.cancel(false);
}else{
this.save(false);
}
}
},_onChange:function(){
if(this._exitInProgress){
return;
}
if(this.autoSave){
this._exitInProgress=true;
this.save(true);
}else{
this.saveButton.attr("disabled",(this.getValue()==this._resetValue)||!this.enableSave());
}
},enableSave:function(){
return this.editWidget.isValid?this.editWidget.isValid():true;
},focus:function(){
this.editWidget.focus();
dijit.selectInputText(this.editWidget.focusNode);
}});
}
if(!dojo._hasResource["dojo.number"]){
dojo._hasResource["dojo.number"]=true;
dojo.provide("dojo.number");
dojo.number.format=function(_578,_579){
_579=dojo.mixin({},_579||{});
var _57a=dojo.i18n.normalizeLocale(_579.locale);
var _57b=dojo.i18n.getLocalization("dojo.cldr","number",_57a);
_579.customs=_57b;
var _57c=_579.pattern||_57b[(_579.type||"decimal")+"Format"];
if(isNaN(_578)||Math.abs(_578)==Infinity){
return null;
}
return dojo.number._applyPattern(_578,_57c,_579);
};
dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;
dojo.number._applyPattern=function(_57d,_57e,_57f){
_57f=_57f||{};
var _580=_57f.customs.group;
var _581=_57f.customs.decimal;
var _582=_57e.split(";");
var _583=_582[0];
_57e=_582[(_57d<0)?1:0]||("-"+_583);
if(_57e.indexOf("%")!=-1){
_57d*=100;
}else{
if(_57e.indexOf("‰")!=-1){
_57d*=1000;
}else{
if(_57e.indexOf("¤")!=-1){
_580=_57f.customs.currencyGroup||_580;
_581=_57f.customs.currencyDecimal||_581;
_57e=_57e.replace(/\u00a4{1,3}/,function(_584){
var prop=["symbol","currency","displayName"][_584.length-1];
return _57f[prop]||_57f.currency||"";
});
}else{
if(_57e.indexOf("E")!=-1){
throw new Error("exponential notation not supported");
}
}
}
}
var _586=dojo.number._numberPatternRE;
var _587=_583.match(_586);
if(!_587){
throw new Error("unable to find a number expression in pattern: "+_57e);
}
if(_57f.fractional===false){
_57f.places=0;
}
return _57e.replace(_586,dojo.number._formatAbsolute(_57d,_587[0],{decimal:_581,group:_580,places:_57f.places,round:_57f.round}));
};
dojo.number.round=function(_588,_589,_58a){
var _58b=10/(_58a||10);
return (_58b*+_588).toFixed(_589)/_58b;
};
if((0.9).toFixed()==0){
(function(){
var _58c=dojo.number.round;
dojo.number.round=function(v,p,m){
var d=Math.pow(10,-p||0),a=Math.abs(v);
if(!v||a>=d||a*Math.pow(10,p+1)<5){
d=0;
}
return _58c(v,p,m)+(v>0?d:-d);
};
})();
}
dojo.number._formatAbsolute=function(_592,_593,_594){
_594=_594||{};
if(_594.places===true){
_594.places=0;
}
if(_594.places===Infinity){
_594.places=6;
}
var _595=_593.split(".");
var _596=(_594.places>=0)?_594.places:(_595[1]&&_595[1].length)||0;
if(!(_594.round<0)){
_592=dojo.number.round(_592,_596,_594.round);
}
var _597=String(Math.abs(_592)).split(".");
var _598=_597[1]||"";
if(_594.places){
var _599=dojo.isString(_594.places)&&_594.places.indexOf(",");
if(_599){
_594.places=_594.places.substring(_599+1);
}
_597[1]=dojo.string.pad(_598.substr(0,_594.places),_594.places,"0",true);
}else{
if(_595[1]&&_594.places!==0){
var pad=_595[1].lastIndexOf("0")+1;
if(pad>_598.length){
_597[1]=dojo.string.pad(_598,pad,"0",true);
}
var _59b=_595[1].length;
if(_59b<_598.length){
_597[1]=_598.substr(0,_59b);
}
}else{
if(_597[1]){
_597.pop();
}
}
}
var _59c=_595[0].replace(",","");
pad=_59c.indexOf("0");
if(pad!=-1){
pad=_59c.length-pad;
if(pad>_597[0].length){
_597[0]=dojo.string.pad(_597[0],pad);
}
if(_59c.indexOf("#")==-1){
_597[0]=_597[0].substr(_597[0].length-pad);
}
}
var _59d=_595[0].lastIndexOf(",");
var _59e,_59f;
if(_59d!=-1){
_59e=_595[0].length-_59d-1;
var _5a0=_595[0].substr(0,_59d);
_59d=_5a0.lastIndexOf(",");
if(_59d!=-1){
_59f=_5a0.length-_59d-1;
}
}
var _5a1=[];
for(var _5a2=_597[0];_5a2;){
var off=_5a2.length-_59e;
_5a1.push((off>0)?_5a2.substr(off):_5a2);
_5a2=(off>0)?_5a2.slice(0,off):"";
if(_59f){
_59e=_59f;
delete _59f;
}
}
_597[0]=_5a1.reverse().join(_594.group||",");
return _597.join(_594.decimal||".");
};
dojo.number.regexp=function(_5a4){
return dojo.number._parseInfo(_5a4).regexp;
};
dojo.number._parseInfo=function(_5a5){
_5a5=_5a5||{};
var _5a6=dojo.i18n.normalizeLocale(_5a5.locale);
var _5a7=dojo.i18n.getLocalization("dojo.cldr","number",_5a6);
var _5a8=_5a5.pattern||_5a7[(_5a5.type||"decimal")+"Format"];
var _5a9=_5a7.group;
var _5aa=_5a7.decimal;
var _5ab=1;
if(_5a8.indexOf("%")!=-1){
_5ab/=100;
}else{
if(_5a8.indexOf("‰")!=-1){
_5ab/=1000;
}else{
var _5ac=_5a8.indexOf("¤")!=-1;
if(_5ac){
_5a9=_5a7.currencyGroup||_5a9;
_5aa=_5a7.currencyDecimal||_5aa;
}
}
}
var _5ad=_5a8.split(";");
if(_5ad.length==1){
_5ad.push("-"+_5ad[0]);
}
var re=dojo.regexp.buildGroupRE(_5ad,function(_5af){
_5af="(?:"+dojo.regexp.escapeString(_5af,".")+")";
return _5af.replace(dojo.number._numberPatternRE,function(_5b0){
var _5b1={signed:false,separator:_5a5.strict?_5a9:[_5a9,""],fractional:_5a5.fractional,decimal:_5aa,exponent:false};
var _5b2=_5b0.split(".");
var _5b3=_5a5.places;
if(_5b2.length==1||_5b3===0){
_5b1.fractional=false;
}else{
if(_5b3===undefined){
_5b3=_5a5.pattern?_5b2[1].lastIndexOf("0")+1:Infinity;
}
if(_5b3&&_5a5.fractional==undefined){
_5b1.fractional=true;
}
if(!_5a5.places&&(_5b3<_5b2[1].length)){
_5b3+=","+_5b2[1].length;
}
_5b1.places=_5b3;
}
var _5b4=_5b2[0].split(",");
if(_5b4.length>1){
_5b1.groupSize=_5b4.pop().length;
if(_5b4.length>1){
_5b1.groupSize2=_5b4.pop().length;
}
}
return "("+dojo.number._realNumberRegexp(_5b1)+")";
});
},true);
if(_5ac){
re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_5b5,_5b6,_5b7,_5b8){
var prop=["symbol","currency","displayName"][_5b7.length-1];
var _5ba=dojo.regexp.escapeString(_5a5[prop]||_5a5.currency||"");
_5b6=_5b6?"[\\s\\xa0]":"";
_5b8=_5b8?"[\\s\\xa0]":"";
if(!_5a5.strict){
if(_5b6){
_5b6+="*";
}
if(_5b8){
_5b8+="*";
}
return "(?:"+_5b6+_5ba+_5b8+")?";
}
return _5b6+_5ba+_5b8;
});
}
return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_5a9,decimal:_5aa,factor:_5ab};
};
dojo.number.parse=function(_5bb,_5bc){
var info=dojo.number._parseInfo(_5bc);
var _5be=(new RegExp("^"+info.regexp+"$")).exec(_5bb);
if(!_5be){
return NaN;
}
var _5bf=_5be[1];
if(!_5be[1]){
if(!_5be[2]){
return NaN;
}
_5bf=_5be[2];
info.factor*=-1;
}
_5bf=_5bf.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");
return _5bf*info.factor;
};
dojo.number._realNumberRegexp=function(_5c0){
_5c0=_5c0||{};
if(!("places" in _5c0)){
_5c0.places=Infinity;
}
if(typeof _5c0.decimal!="string"){
_5c0.decimal=".";
}
if(!("fractional" in _5c0)||/^0/.test(_5c0.places)){
_5c0.fractional=[true,false];
}
if(!("exponent" in _5c0)){
_5c0.exponent=[true,false];
}
if(!("eSigned" in _5c0)){
_5c0.eSigned=[true,false];
}
var _5c1=dojo.number._integerRegexp(_5c0);
var _5c2=dojo.regexp.buildGroupRE(_5c0.fractional,function(q){
var re="";
if(q&&(_5c0.places!==0)){
re="\\"+_5c0.decimal;
if(_5c0.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_5c0.places+"}";
}
}
return re;
},true);
var _5c5=dojo.regexp.buildGroupRE(_5c0.exponent,function(q){
if(q){
return "([eE]"+dojo.number._integerRegexp({signed:_5c0.eSigned})+")";
}
return "";
});
var _5c7=_5c1+_5c2;
if(_5c2){
_5c7="(?:(?:"+_5c7+")|(?:"+_5c2+"))";
}
return _5c7+_5c5;
};
dojo.number._integerRegexp=function(_5c8){
_5c8=_5c8||{};
if(!("signed" in _5c8)){
_5c8.signed=[true,false];
}
if(!("separator" in _5c8)){
_5c8.separator="";
}else{
if(!("groupSize" in _5c8)){
_5c8.groupSize=3;
}
}
var _5c9=dojo.regexp.buildGroupRE(_5c8.signed,function(q){
return q?"[-+]":"";
},true);
var _5cb=dojo.regexp.buildGroupRE(_5c8.separator,function(sep){
if(!sep){
return "(?:\\d+)";
}
sep=dojo.regexp.escapeString(sep);
if(sep==" "){
sep="\\s";
}else{
if(sep==" "){
sep="\\s\\xa0";
}
}
var grp=_5c8.groupSize,grp2=_5c8.groupSize2;
if(grp2){
var _5cf="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"(?:"+_5cf+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_5cf;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _5c9+_5cb;
};
}
if(!dojo._hasResource["dijit.form.HorizontalSlider"]){
dojo._hasResource["dijit.form.HorizontalSlider"]=true;
dojo.provide("dijit.form.HorizontalSlider");
dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n></table>\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){
if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){
return;
}
switch(e.charOrCode){
case dojo.keys.HOME:
this._setValueAttr(this.minimum,true);
break;
case dojo.keys.END:
this._setValueAttr(this.maximum,true);
break;
case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):
case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):
case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):
this.increment(e);
break;
case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):
case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):
case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):
this.decrement(e);
break;
default:
return;
}
dojo.stopEvent(e);
},_onHandleClick:function(e){
if(this.disabled||this.readOnly){
return;
}
if(!dojo.isIE){
dijit.focus(this.sliderHandle);
}
dojo.stopEvent(e);
},_isReversed:function(){
return !this.isLeftToRight();
},_onBarClick:function(e){
if(this.disabled||this.readOnly||!this.clickSelect){
return;
}
dijit.focus(this.sliderHandle);
dojo.stopEvent(e);
var _5d3=dojo.coords(this.sliderBarContainer,true);
var _5d4=e[this._mousePixelCoord]-_5d3[this._startingPixelCoord];
this._setPixelValue(this._isReversed()?(_5d3[this._pixelCount]-_5d4):_5d4,_5d3[this._pixelCount],true);
this._movable.onMouseDown(e);
},_setPixelValue:function(_5d5,_5d6,_5d7){
if(this.disabled||this.readOnly){
return;
}
_5d5=_5d5<0?0:_5d6<_5d5?_5d6:_5d5;
var _5d8=this.discreteValues;
if(_5d8<=1||_5d8==Infinity){
_5d8=_5d6;
}
_5d8--;
var _5d9=_5d6/_5d8;
var _5da=Math.round(_5d5/_5d9);
this._setValueAttr((this.maximum-this.minimum)*_5da/_5d8+this.minimum,_5d7);
},_setValueAttr:function(_5db,_5dc){
this.valueNode.value=this.value=_5db;
dijit.setWaiState(this.focusNode,"valuenow",_5db);
this.inherited(arguments);
var _5dd=(_5db-this.minimum)/(this.maximum-this.minimum);
var _5de=(this._descending===false)?this.remainingBar:this.progressBar;
var _5df=(this._descending===false)?this.progressBar:this.remainingBar;
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
if(_5dc&&this.slideDuration>0&&_5de.style[this._progressPixelSize]){
var _5e0=this;
var _5e1={};
var _5e2=parseFloat(_5de.style[this._progressPixelSize]);
var _5e3=this.slideDuration*(_5dd-_5e2/100);
if(_5e3==0){
return;
}
if(_5e3<0){
_5e3=0-_5e3;
}
_5e1[this._progressPixelSize]={start:_5e2,end:_5dd*100,units:"%"};
this._inProgressAnim=dojo.animateProperty({node:_5de,duration:_5e3,onAnimate:function(v){
_5df.style[_5e0._progressPixelSize]=(100-parseFloat(v[_5e0._progressPixelSize]))+"%";
},onEnd:function(){
delete _5e0._inProgressAnim;
},properties:_5e1});
this._inProgressAnim.play();
}else{
_5de.style[this._progressPixelSize]=(_5dd*100)+"%";
_5df.style[this._progressPixelSize]=((1-_5dd)*100)+"%";
}
},_bumpValue:function(_5e5){
if(this.disabled||this.readOnly){
return;
}
var s=dojo.getComputedStyle(this.sliderBarContainer);
var c=dojo._getContentBox(this.sliderBarContainer,s);
var _5e8=this.discreteValues;
if(_5e8<=1||_5e8==Infinity){
_5e8=c[this._pixelCount];
}
_5e8--;
var _5e9=(this.value-this.minimum)*_5e8/(this.maximum-this.minimum)+_5e5;
if(_5e9<0){
_5e9=0;
}
if(_5e9>_5e8){
_5e9=_5e8;
}
_5e9=_5e9*(this.maximum-this.minimum)/_5e8+this.minimum;
this._setValueAttr(_5e9,true);
},_onClkBumper:function(val){
if(this.disabled||this.readOnly||!this.clickSelect){
return;
}
this._setValueAttr(val,true);
},_onClkIncBumper:function(){
this._onClkBumper(this._descending===false?this.minimum:this.maximum);
},_onClkDecBumper:function(){
this._onClkBumper(this._descending===false?this.maximum:this.minimum);
},decrement:function(e){
this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);
},increment:function(e){
this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);
},_mouseWheeled:function(evt){
dojo.stopEvent(evt);
var _5ee=!dojo.isMozilla;
var _5ef=evt[(_5ee?"wheelDelta":"detail")]*(_5ee?1:-1);
this[(_5ef<0?"decrement":"increment")](evt);
},startup:function(){
dojo.forEach(this.getChildren(),function(_5f0){
if(this[_5f0.container]!=this.containerNode){
this[_5f0.container].appendChild(_5f0.domNode);
}
},this);
},_typematicCallback:function(_5f1,_5f2,e){
if(_5f1==-1){
return;
}
this[(_5f2==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);
},postCreate:function(){
if(this.showButtons){
this.incrementButton.style.display="";
this.decrementButton.style.display="";
this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));
this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));
}
this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");
var _5f4=this;
var _5f5=function(){
dijit.form._SliderMover.apply(this,arguments);
this.widget=_5f4;
};
dojo.extend(_5f5,dijit.form._SliderMover.prototype);
this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_5f5});
var _5f6=dojo.query("label[for=\""+this.id+"\"]");
if(_5f6.length){
_5f6[0].id=(this.id+"_label");
dijit.setWaiState(this.focusNode,"labelledby",_5f6[0].id);
}
dijit.setWaiState(this.focusNode,"valuemin",this.minimum);
dijit.setWaiState(this.focusNode,"valuemax",this.maximum);
this.inherited(arguments);
},destroy:function(){
this._movable.destroy();
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
this.inherited(arguments);
}});
dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){
var _5f8=this.widget;
var _5f9=_5f8._abspos;
if(!_5f9){
_5f9=_5f8._abspos=dojo.coords(_5f8.sliderBarContainer,true);
_5f8._setPixelValue_=dojo.hitch(_5f8,"_setPixelValue");
_5f8._isReversed_=_5f8._isReversed();
}
var _5fa=e[_5f8._mousePixelCoord]-_5f9[_5f8._startingPixelCoord];
_5f8._setPixelValue_(_5f8._isReversed_?(_5f9[_5f8._pixelCount]-_5fa):_5fa,_5f9[_5f8._pixelCount],false);
},destroy:function(e){
dojo.dnd.Mover.prototype.destroy.apply(this,arguments);
var _5fc=this.widget;
_5fc._abspos=null;
_5fc._setValueAttr(_5fc.value,true);
}});
}
if(!dojo._hasResource["dijit.form.VerticalSlider"]){
dojo._hasResource["dijit.form.VerticalSlider"]=true;
dojo.provide("dijit.form.VerticalSlider");
dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n><tbody class=\"dijitReset\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"><!--#5629--></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t></center\n\t\t></td\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n></tbody></table>\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){
if(this._started){
return;
}
if(!this.isLeftToRight()&&dojo.isMoz){
if(this.leftDecoration){
this._rtlRectify(this.leftDecoration);
}
if(this.rightDecoration){
this._rtlRectify(this.rightDecoration);
}
}
this.inherited(arguments);
},_isReversed:function(){
return this._descending;
},_rtlRectify:function(_5fd){
var _5fe=[];
while(_5fd.firstChild){
_5fe.push(_5fd.firstChild);
_5fd.removeChild(_5fd.firstChild);
}
for(var i=_5fe.length-1;i>=0;i--){
if(_5fe[i]){
_5fd.appendChild(_5fe[i]);
}
}
}});
}
if(!dojo._hasResource["dijit.form.HorizontalRule"]){
dojo._hasResource["dijit.form.HorizontalRule"]=true;
dojo.provide("dijit.form.HorizontalRule");
dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){
return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;
},_isHorizontal:true,postCreate:function(){
var _602;
if(this.count==1){
_602=this._genHTML(50,0);
}else{
var i;
var _604=100/(this.count-1);
if(!this._isHorizontal||this.isLeftToRight()){
_602=this._genHTML(0,0);
for(i=1;i<this.count-1;i++){
_602+=this._genHTML(_604*i,i);
}
_602+=this._genHTML(100,this.count-1);
}else{
_602=this._genHTML(100,0);
for(i=1;i<this.count-1;i++){
_602+=this._genHTML(100-_604*i,i);
}
_602+=this._genHTML(0,this.count-1);
}
}
this.domNode.innerHTML=_602;
}});
}
if(!dojo._hasResource["dijit.form.VerticalRule"]){
dojo._hasResource["dijit.form.VerticalRule"]=true;
dojo.provide("dijit.form.VerticalRule");
dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});
}
if(!dojo._hasResource["dijit.form.HorizontalRuleLabels"]){
dojo._hasResource["dijit.form.HorizontalRuleLabels"]=true;
dojo.provide("dijit.form.HorizontalRuleLabels");
dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){
return pos;
},_genHTML:function(pos,ndx){
return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;
},getLabels:function(){
var _608=this.labels;
if(!_608.length){
_608=dojo.query("> li",this.srcNodeRef).map(function(node){
return String(node.innerHTML);
});
}
this.srcNodeRef.innerHTML="";
if(!_608.length&&this.count>1){
var _60a=this.minimum;
var inc=(this.maximum-_60a)/(this.count-1);
for(var i=0;i<this.count;i++){
_608.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_60a,this.constraints));
_60a+=inc;
}
}
return _608;
},postMixInProperties:function(){
this.inherited(arguments);
this.labels=this.getLabels();
this.count=this.labels.length;
}});
}
if(!dojo._hasResource["dijit.form.VerticalRuleLabels"]){
dojo._hasResource["dijit.form.VerticalRuleLabels"]=true;
dojo.provide("dijit.form.VerticalRuleLabels");
dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){
return 100-pos;
},_isHorizontal:false});
}
if(!dojo._hasResource["dijit.form.Slider"]){
dojo._hasResource["dijit.form.Slider"]=true;
dojo.provide("dijit.form.Slider");
dojo.deprecated("Call require() for HorizontalSlider / VerticalRule, explicitly rather than 'dijit.form.Slider' itself","","2.0");
}
dojo.i18n._preloadLocalizations("dojo.nls.mir72dojo",["ROOT","xx","ar","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","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sv","tr","zh","zh-tw","zh-cn"]);

