/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla"),"dj_ff3":_8(ff)==3};_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_e,_f,_10,_11,_12,_13,has,win){if(has("ie")||has("mozilla")){_13(90,function(){var div=_11.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_f.blankGif||_e.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_12.getComputedStyle(div);if(cs){var _14=cs.backgroundImage;var _15=(cs.borderTopColor==cs.borderRightColor)||(_14!=null&&(_14=="none"||_14=="url(invalid-url:)"));if(_15){_10.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dojox/grid/_View":function(){require({cache:{"url:dojox/grid/resources/View.html":"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n"}});define("dojox/grid/_View",["dojo","dijit/registry","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/_base/connect","dojo/_base/sniff","dojo/query","dojo/_base/window","dojo/text!./resources/View.html","dojo/dnd/Source","dijit/_Widget","dijit/_TemplatedMixin","dojox/html/metrics","./util","dojo/_base/html","./_Builder","dojo/dnd/Avatar","dojo/dnd/Manager"],function(_16,_17,_18,_19,_1a,_1b,_1c,has,_1d,win,_1e,_1f,_20,_21,_22,_23,_24,_25,_26){var _27=function(_28,_29){return _28.style.cssText==undefined?_28.getAttribute("style"):_28.style.cssText;};var _2a=_19("dojox.grid._View",[_20,_21],{defaultWidth:"18em",viewWidth:"",templateString:_1e,themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:_25._HeaderBuilder,_contentBuilderClass:_25._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");_23.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);_23.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!this.grid.isLeftToRight()){this.headerNodeContainer.style.width="";}},destroy:function(){_24.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);_24.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(has("ie")||has("webkit")||has("opera")){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_2b){var vs=(this.structure=_2b);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_2c){if(_2c){_1a.forEach(_1d("[widgetId]",_2c).map(_17.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_2d,_2e){this._onBeforeRow(_2d,_2e);if(_2d>=0){this._cleanupRowWidgets(this.getRowNode(_2d));}},onAfterRow:function(_2f,_30,_31){this._onAfterRow(_2f,_30,_31);var g=this.grid;_1a.forEach(_1d(".dojoxGridStubNode",_31),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _32=window.parseInt(_24.attr(n,"cellIdx"),10);var _33=g.getCell(_32);var w=_17.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}_16.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,_34;(_34=row[i]);i++){_34.view=this;this.flexCells=this.flexCells||_34.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _35=this.hasVScrollbar();var _36=_24.style(this.scrollboxNode,"overflow");if(this.noscroll||!_36||_36=="hidden"){_35=false;}else{if(_36=="scroll"){_35=true;}}return (_35?_22.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?h.firstChild.offsetWidth:0;},setColumnsWidth:function(_37){this.headerContentNode.firstChild.style.width=_37+"px";if(this.viewWidth){this.viewWidth=_37+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,_24._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _38=this.grid.layout.cells;var _39=_1b.hitch(this,function(_3a,_3b){!this.grid.isLeftToRight()&&(_3b=!_3b);var inc=_3b?-1:1;var idx=this.header.getCellNodeIndex(_3a)+inc;var _3c=_38[idx];while(_3c&&_3c.getHeaderNode()&&_3c.getHeaderNode().style.display=="none"){idx+=inc;_3c=_38[idx];}if(_3c){return _3c.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _3d="dojoxGrid_bottomMarker";var _3e="dojoxGrid_topMarker";if(this.bottomMarker){_24.destroy(this.bottomMarker);}this.bottomMarker=_24.byId(_3d);if(this.topMarker){_24.destroy(this.topMarker);}this.topMarker=_24.byId(_3e);if(!this.bottomMarker){this.bottomMarker=_24.create("div",{"id":_3d,"class":"dojoxGridColPlaceBottom"},win.body());this._hide(this.bottomMarker);this.topMarker=_24.create("div",{"id":_3e,"class":"dojoxGridColPlaceTop"},win.body());this._hide(this.topMarker);}this.arrowDim=_24.contentBox(this.bottomMarker);var _3f=_24.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new _1f(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:_1b.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(has("ie")<9?1:0)){_1f.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:_1b.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){_1f.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:_1b.hitch(this,function(_40){var src=this.source;if(src.current==src.targetAnchor&&src.before==_40){return;}if(src.targetAnchor&&_39(src.targetAnchor,src.before)){src._removeItemClass(_39(src.targetAnchor,src.before),src.before?"After":"Before");}_1f.prototype._markTargetAnchor.call(src,_40);var _41=_40?src.targetAnchor:_39(src.targetAnchor,src.before);var _42=0;if(!_41){_41=src.targetAnchor;_42=_24.contentBox(_41).w+this.arrowDim.w/2+2;}var pos=_24.position(_41,true);var _43=Math.floor(pos.x-this.arrowDim.w/2+_42);_24.style(this.bottomMarker,"visibility","visible");_24.style(this.topMarker,"visibility","visible");_24.style(this.bottomMarker,{"left":_43+"px","top":(_3f+pos.y)+"px"});_24.style(this.topMarker,{"left":_43+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_39(src.targetAnchor,src.before)){src._addItemClass(_39(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:_1b.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_39(src.targetAnchor,src.before)){src._removeItemClass(_39(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);_1f.prototype._unmarkTargetAnchor.call(src);}),destroy:_1b.hitch(this,function(){_1c.disconnect(this._source_conn);_1c.unsubscribe(this._source_sub);_1f.prototype.destroy.call(this.source);if(this.bottomMarker){_24.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){_24.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:_1b.hitch(this,function(){_1f.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=_1c.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=_1c.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(_44){_24.style(_44,{top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_45,_46,_47){if(_16.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _48=this.grid.views.views;var _49=_48[_45.viewIndex];var _4a=_48[this.index];if(_4a!=_49){_49.convertColPctToFixed();_4a.convertColPctToFixed();}},_onDndDrop:function(_4b,_4c,_4d){if(_16.dnd.manager().target!==this.source){if(_16.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _4e=function(n){return n?_24.attr(n,"idx"):null;};var w=_24.marginBox(_4c[0]).w;if(_4b.viewIndex!==this.index){var _4f=this.grid.views.views;var _50=_4f[_4b.viewIndex];var _51=_4f[this.index];if(_50.viewWidth&&_50.viewWidth!="auto"){_50.setColumnsWidth(_50.getColumnsWidth()-w);}if(_51.viewWidth&&_51.viewWidth!="auto"){_51.setColumnsWidth(_51.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!this.grid.isLeftToRight()&&(stb=!stb);var _52=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_52.moveColumn(_4b.viewIndex,idx,_4e(_4c[0]),_4e(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}_23.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_53){var n=_53.name||_53.grid.getCellName(_53);if(/^\s+$/.test(n)){n="&nbsp;";}var ret=["<div class=\"dojoxGridSortNode"];if(_53.index!=_53.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_53.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_53.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_54){var _55=this._hasHScroll||false;if(this._hasHScroll==undefined||_54){if(this.noscroll){this._hasHScroll=false;}else{var _56=_24.style(this.scrollboxNode,"overflow");if(_56=="hidden"){this._hasHScroll=false;}else{if(_56=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_55!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_57){var _58=this._hasVScroll||false;if(this._hasVScroll==undefined||_57){if(this.noscroll){this._hasVScroll=false;}else{var _59=_24.style(this.scrollboxNode,"overflow");if(_59=="hidden"){this._hasVScroll=false;}else{if(_59=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_58!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _5a=false;this.grid.initialWidth="";var _5b=_1d("th",this.headerContentNode);var _5c=_1a.map(_5b,function(c,_5d){var w=c.style.width;_24.attr(c,"vIdx",_5d);if(w&&w.slice(-1)=="%"){_5a=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return _24.contentBox(c).w;});if(_5a){_1a.forEach(this.grid.layout.cells,function(_5e,idx){if(_5e.view==this){var _5f=_5e.view.getHeaderCellNode(_5e.index);if(_5f&&_24.hasAttr(_5f,"vIdx")){var _60=window.parseInt(_24.attr(_5f,"vIdx"));this.setColWidth(idx,_5c[_60]);_24.removeAttr(_5f,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_61){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var _62=this;var _63=function(){var v;for(var i in _62.grid.views.views){v=_62.grid.views.views[i];if(v!==_62&&v.hasHScrollbar()){return true;}}return false;};if(_61||(this.noscroll&&_63())){h-=_22.getScrollbar().h;}_23.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_64){var _65=this.createRowNode(_64);this.buildRow(_64,_65);return _65;},createRowNode:function(_66){var _67=document.createElement("div");_67.className=this.classTag+"Row";if(this instanceof _18.grid._RowSelector){_24.attr(_67,"role","presentation");}else{_24.attr(_67,"role","row");if(this.grid.selectionMode!="none"){_67.setAttribute("aria-selected","false");}}_67[_23.gridViewTag]=this.id;_67[_23.rowIndexTag]=_66;this.rowNodes[_66]=_67;return _67;},buildRow:function(_68,_69){this.buildRowContent(_68,_69);this.styleRow(_68,_69);},buildRowContent:function(_6a,_6b){_6b.innerHTML=this.content.generateHtml(_6a,_6a);if(this.flexCells&&this.contentWidth){_6b.firstChild.style.width=this.contentWidth;}_23.fire(this,"onAfterRow",[_6a,this.structure.cells,_6b]);},rowRemoved:function(_6c){if(_6c>=0){this._cleanupRowWidgets(this.getRowNode(_6c));}this.grid.edit.save(this,_6c);delete this.rowNodes[_6c];},getRowNode:function(_6d){return this.rowNodes[_6d];},getCellNode:function(_6e,_6f){var row=this.getRowNode(_6e);if(row){return this.content.getCellNode(row,_6f);}},getHeaderCellNode:function(_70){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_70);}},styleRow:function(_71,_72){_72._style=_27(_72);this.styleRowNode(_71,_72);},styleRowNode:function(_73,_74){if(_74){this.doStyleRowNode(_73,_74);}},doStyleRowNode:function(_75,_76){this.grid.styleRowNode(_75,_76);},updateRow:function(_77){var _78=this.getRowNode(_77);if(_78){_78.style.height="";this.buildRow(_77,_78);}return _78;},updateRowStyles:function(_79){this.styleRowNode(_79,this.getRowNode(_79));},lastTop:0,firstScroll:0,doscroll:function(_7a){var _7b=this.grid.isLeftToRight();if(this.firstScroll<2){if((!_7b&&this.firstScroll==1)||(_7b&&this.firstScroll===0)){var s=_24.marginBox(this.headerNodeContainer);if(has("ie")){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(has("mozilla")){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_7b?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}},setScrollTop:function(_7c){this.lastTop=_7c;this.scrollboxNode.scrollTop=_7c;return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_7d,_7e){this.grid.setCellWidth(_7d,_7e+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var _7f=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=_7f;this.headerNode.scrollLeft=_7f;}});var _80=_19("dojox.grid._GridAvatar",_26,{construct:function(){var dd=win.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _81=this.manager.source,_82;if(_81.creator){_82=_81._normalizedCreator(_81.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{_82=this.manager.nodes[0].cloneNode(true);var _83,_84;if(_82.tagName.toLowerCase()=="tr"){_83=dd.createElement("table");_84=dd.createElement("tbody");_84.appendChild(_82);_83.appendChild(_84);_82=_83;}else{if(_82.tagName.toLowerCase()=="th"){_83=dd.createElement("table");_84=dd.createElement("tbody");var r=dd.createElement("tr");_83.cellPadding=_83.cellSpacing="0";r.appendChild(_82);_84.appendChild(r);_83.appendChild(_84);_82=_83;}}}_82.id="";td.appendChild(_82);tr.appendChild(img);tr.appendChild(td);_24.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=_16.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){_16.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _85=_16.dnd.manager().makeAvatar;_16.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!_24.hasClass(win.body(),"dijit_a11y")){return new _80(this);}return _85.call(_16.dnd.manager());};return _2a;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_86,_87){return _86("dijit._Contained",null,{_getSibling:function(_88){var _89=this.domNode;do{_89=_89[_88+"Sibling"];}while(_89&&_89.nodeType!=1);return _89&&_87.byNode(_89);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojo/dnd/Selector":function(){define(["../main","./common","./Container"],function(_8a){_8a.declare("dojo.dnd.Selector",_8a.dnd.Container,{constructor:function(_8b,_8c){if(!_8c){_8c={};}this.singular=_8c.singular;this.autoSync=_8c.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(_8a.connect(this.node,"onmousedown",this,"onMouseDown"),_8a.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new _8a.NodeList();var e=_8a.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(_8a.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(_8d,id){this._addItemClass(_8a.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=_8a.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=_8a.byId(i);this.delItem(i);_8a.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_8a.global;var s=this.selection,e=_8a.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){_8a.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=_8a.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}_8a.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_8e,_8f,_90,_91){var _92=this._normalizedCreator;this._normalizedCreator=function(_93,_94){var t=_92.call(this,_93,_94);if(_8e){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};_8a.dnd.Selector.superclass.insertNodes.call(this,_8f,_90,_91);this._normalizedCreator=_92;return this;},destroy:function(){_8a.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!_8a.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===_8a.mouseButtons.LEFT){_8a.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!_8a.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var _95=c[i];if(_95==this.anchor||_95==this.current){break;}}for(++i;i<c.length;++i){var _95=c[i];if(_95==this.anchor||_95==this.current){break;}this._addItemClass(_95,"Selected");this.selection[_95.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(_8a.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(_8a.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}_8a.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=_8a.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){_8a.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=_8a.dnd._empty;for(var i in this.selection){if(i in e){continue;}var _96=_8a.byId(i);if(_96){this._removeItemClass(_96,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});return _8a.dnd.Selector;});},"dojo/parser":function(){define(["./_base/kernel","./_base/lang","./_base/array","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./query","./on","./ready"],function(_97,_98,_99,_9a,_9b,_9c,_9d,_9e,_9f,_a0,don){new Date("X");var _a1={"dom-attributes-explicit":document.createElement("div").attributes.length<40};function has(_a2){return _a1[_a2];};_97.parser=new function(){var _a3={};function _a4(_a5){var map={};for(var _a6 in _a5){if(_a6.charAt(0)=="_"){continue;}map[_a6.toLowerCase()]=_a6;}return map;};_9e.after(_98,"extend",function(){_a3={};},true);var _a7={};this._functionFromScript=function(_a8,_a9){var _aa="";var _ab="";var _ac=(_a8.getAttribute(_a9+"args")||_a8.getAttribute("args"));if(_ac){_99.forEach(_ac.split(/\s*,\s*/),function(_ad,idx){_aa+="var "+_ad+" = arguments["+idx+"]; ";});}var _ae=_a8.getAttribute("with");if(_ae&&_ae.length){_99.forEach(_ae.split(/\s*,\s*/),function(_af){_aa+="with("+_af+"){";_ab+="}";});}return new Function(_aa+_a8.innerHTML+_ab);};this.instantiate=function(_b0,_b1,_b2){var _b3=[],_b1=_b1||{};_b2=_b2||{};var _b4=(_b2.scope||_97._scopeName)+"Type",_b5="data-"+(_b2.scope||_97._scopeName)+"-",_b6=_b5+"type",_b7=_b5+"props",_b8=_b5+"attach-point",_b9=_b5+"attach-event",_ba=_b5+"id";var _bb={};_99.forEach([_b7,_b6,_b4,_ba,"jsId",_b8,_b9,"dojoAttachPoint","dojoAttachEvent","class","style"],function(_bc){_bb[_bc.toLowerCase()]=_bc.replace(_b2.scope,"dojo");});_99.forEach(_b0,function(obj){if(!obj){return;}var _bd=obj.node||obj,_be=_b4 in _b1?_b1[_b4]:obj.node?obj.type:(_bd.getAttribute(_b6)||_bd.getAttribute(_b4)),_bf=_a7[_be]||(_a7[_be]=_98.getObject(_be)),_c0=_bf&&_bf.prototype;if(!_bf){throw new Error("Could not load class '"+_be);}var _c1={};if(_b2.defaults){_98.mixin(_c1,_b2.defaults);}if(obj.inherited){_98.mixin(_c1,obj.inherited);}var _c2;if(has("dom-attributes-explicit")){_c2=_bd.attributes;}else{var _c3=/^input$|^img$/i.test(_bd.nodeName)?_bd:_bd.cloneNode(false),_c4=_c3.outerHTML.replace(/=[^\s"']+|="[^"]*"|='[^']*'/g,"").replace(/^\s*<[a-zA-Z0-9]*/,"").replace(/>.*$/,"");_c2=_99.map(_c4.split(/\s+/),function(_c5){var _c6=_c5.toLowerCase();return {name:_c5,value:(_bd.nodeName=="LI"&&_c5=="value")||_c6=="enctype"?_bd.getAttribute(_c6):_bd.getAttributeNode(_c6).value,specified:true};});}var i=0,_c7;while(_c7=_c2[i++]){if(!_c7||!_c7.specified){continue;}var _c8=_c7.name,_c9=_c8.toLowerCase(),_ca=_c7.value;if(_c9 in _bb){switch(_bb[_c9]){case "data-dojo-props":var _cb=_ca;break;case "data-dojo-id":case "jsId":var _cc=_ca;break;case "data-dojo-attach-point":case "dojoAttachPoint":_c1.dojoAttachPoint=_ca;break;case "data-dojo-attach-event":case "dojoAttachEvent":_c1.dojoAttachEvent=_ca;break;case "class":_c1["class"]=_bd.className;break;case "style":_c1["style"]=_bd.style&&_bd.style.cssText;break;}}else{if(!(_c8 in _c0)){var map=(_a3[_be]||(_a3[_be]=_a4(_c0)));_c8=map[_c9]||_c8;}if(_c8 in _c0){switch(typeof _c0[_c8]){case "string":_c1[_c8]=_ca;break;case "number":_c1[_c8]=_ca.length?Number(_ca):NaN;break;case "boolean":_c1[_c8]=_ca.toLowerCase()!="false";break;case "function":if(_ca===""||_ca.search(/[^\w\.]+/i)!=-1){_c1[_c8]=new Function(_ca);}else{_c1[_c8]=_98.getObject(_ca,false)||new Function(_ca);}break;default:var _cd=_c0[_c8];_c1[_c8]=(_cd&&"length" in _cd)?(_ca?_ca.split(/\s*,\s*/):[]):(_cd instanceof Date)?(_ca==""?new Date(""):_ca=="now"?new Date():_9f.fromISOString(_ca)):(_cd instanceof _97._Url)?(_97.baseUrl+_ca):_9d.fromJson(_ca);}}else{_c1[_c8]=_ca;}}}if(_cb){try{_cb=_9d.fromJson.call(_b2.propsThis,"{"+_cb+"}");_98.mixin(_c1,_cb);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_cb+"'");}}_98.mixin(_c1,_b1);var _ce=obj.node?obj.scripts:(_bf&&(_bf._noScript||_c0._noScript)?[]:_a0("> script[type^='dojo/']",_bd));var _cf=[],_d0=[],_d1=[],on=[];if(_ce){for(i=0;i<_ce.length;i++){var _d2=_ce[i];_bd.removeChild(_d2);var _d3=(_d2.getAttribute(_b5+"event")||_d2.getAttribute("event")),_d4=_d2.getAttribute(_b5+"prop"),_be=_d2.getAttribute("type"),nf=this._functionFromScript(_d2,_b5);if(_d3){if(_be=="dojo/connect"){_cf.push({event:_d3,func:nf});}else{if(_be=="dojo/on"){on.push({event:_d3,func:nf});}else{_c1[_d3]=nf;}}}else{if(_be=="dojo/watch"){_d1.push({prop:_d4,func:nf});}else{_d0.push(nf);}}}}var _d5=_bf.markupFactory||_c0.markupFactory;var _d6=_d5?_d5(_c1,_bd,_bf):new _bf(_c1,_bd);_b3.push(_d6);if(_cc){_98.setObject(_cc,_d6);}for(i=0;i<_cf.length;i++){_9e.after(_d6,_cf[i].event,_97.hitch(_d6,_cf[i].func),true);}for(i=0;i<_d0.length;i++){_d0[i].call(_d6);}for(i=0;i<_d1.length;i++){_d6.watch(_d1[i].prop,_d1[i].func);}for(i=0;i<on.length;i++){don(_d6,on[i].event,on[i].func);}},this);if(!_b1._started){_99.forEach(_b3,function(_d7){if(!_b2.noStart&&_d7&&_98.isFunction(_d7.startup)&&!_d7._started){_d7.startup();}});}return _b3;};this.parse=function(_d8,_d9){var _da;if(!_d9&&_d8&&_d8.rootNode){_d9=_d8;_da=_d9.rootNode;}else{_da=_d8;}_da=_da?_9a.byId(_da):_9b.body();_d9=_d9||{};var _db=(_d9.scope||_97._scopeName)+"Type",_dc="data-"+(_d9.scope||_97._scopeName)+"-",_dd=_dc+"type",_de=_dc+"textdir";var _df=[];var _e0=_da.firstChild;var _e1=_d9&&_d9.inherited;if(!_e1){function _e2(_e3,_e4){return (_e3.getAttribute&&_e3.getAttribute(_e4))||(_e3!==_9b.doc&&_e3!==_9b.doc.documentElement&&_e3.parentNode?_e2(_e3.parentNode,_e4):null);};_e1={dir:_e2(_da,"dir"),lang:_e2(_da,"lang"),textDir:_e2(_da,_de)};for(var key in _e1){if(!_e1[key]){delete _e1[key];}}}var _e5={inherited:_e1};var _e6;var _e7;function _e8(_e9){if(!_e9.inherited){_e9.inherited={};var _ea=_e9.node,_eb=_e8(_e9.parent);var _ec={dir:_ea.getAttribute("dir")||_eb.dir,lang:_ea.getAttribute("lang")||_eb.lang,textDir:_ea.getAttribute(_de)||_eb.textDir};for(var key in _ec){if(_ec[key]){_e9.inherited[key]=_ec[key];}}}return _e9.inherited;};while(true){if(!_e0){if(!_e5||!_e5.node){break;}_e0=_e5.node.nextSibling;_e6=_e5.scripts;_e7=false;_e5=_e5.parent;continue;}if(_e0.nodeType!=1){_e0=_e0.nextSibling;continue;}if(_e6&&_e0.nodeName.toLowerCase()=="script"){_ed=_e0.getAttribute("type");if(_ed&&/^dojo\/\w/i.test(_ed)){_e6.push(_e0);}_e0=_e0.nextSibling;continue;}if(_e7){_e0=_e0.nextSibling;continue;}var _ed=_e0.getAttribute(_dd)||_e0.getAttribute(_db);var _ee=_e0.firstChild;if(!_ed&&(!_ee||(_ee.nodeType==3&&!_ee.nextSibling))){_e0=_e0.nextSibling;continue;}var _ef={node:_e0,scripts:_e6,parent:_e5};var _f0=_ed&&(_a7[_ed]||(_a7[_ed]=_98.getObject(_ed))),_f1=_f0&&!_f0.prototype._noScript?[]:null;if(_ed){_df.push({"type":_ed,node:_e0,scripts:_f1,inherited:_e8(_ef)});}_e0=_ee;_e6=_f1;_e7=_f0&&_f0.prototype.stopParser&&!(_d9&&_d9.template);_e5=_ef;}var _f2=_d9&&_d9.template?{template:true}:null;return this.instantiate(_df,_f2,_d9);};}();if(_97.config.parseOnLoad){_97.ready(100,_97.parser,"parse");}return _97.parser;});},"dojox/grid/DataSelection":function(){define("dojox/grid/DataSelection",["dojo/_base/declare","./_SelectionPreserver","./Selection"],function(_f3,_f4,_f5){return _f3("dojox.grid.DataSelection",_f5,{constructor:function(_f6){if(_f6.keepSelection){this.preserver=new _f4(this);}},destroy:function(){if(this.preserver){this.preserver.destroy();}},getFirstSelected:function(){var idx=_f5.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_f7){var _f8=this.grid.getItemIndex(_f7);var idx=_f5.prototype.getNextSelected.call(this,_f8);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _f9=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_f9.push(this.grid.getItem(i));}}return _f9;},addToSelection:function(_fa){if(this.mode=="none"){return;}var idx=null;if(typeof _fa=="number"||typeof _fa=="string"){idx=_fa;}else{idx=this.grid.getItemIndex(_fa);}_f5.prototype.addToSelection.call(this,idx);},deselect:function(_fb){if(this.mode=="none"){return;}var idx=null;if(typeof _fb=="number"||typeof _fb=="string"){idx=_fb;}else{idx=this.grid.getItemIndex(_fb);}_f5.prototype.deselect.call(this,idx);},deselectAll:function(_fc){var idx=null;if(_fc||typeof _fc=="number"){if(typeof _fc=="number"||typeof _fc=="string"){idx=_fc;}else{idx=this.grid.getItemIndex(_fc);}_f5.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});});},"url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n","dojo/dnd/Manager":function(){define(["../main","../Evented","./common","./autoscroll","./Avatar"],function(_fd,_fe){var _ff=_fd.declare("dojo.dnd.Manager",[_fe],{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_100){if(this.avatar){this.target=(_100&&_100.targetState!="Disabled")?_100:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}_fd.publish("/dnd/source/over",[_100]);},outSource:function(_101){if(this.avatar){if(this.target==_101){this.target=null;this.canDropFlag=false;this.avatar.update();_fd.publish("/dnd/source/over",[null]);}}else{_fd.publish("/dnd/source/over",[null]);}},startDrag:function(_102,_103,copy){this.source=_102;this.nodes=_103;this.copy=Boolean(copy);this.avatar=this.makeAvatar();_fd.body().appendChild(this.avatar.node);_fd.publish("/dnd/start",[_102,_103,this.copy]);this.events=[_fd.connect(_fd.doc,"onmousemove",this,"onMouseMove"),_fd.connect(_fd.doc,"onmouseup",this,"onMouseUp"),_fd.connect(_fd.doc,"onkeydown",this,"onKeyDown"),_fd.connect(_fd.doc,"onkeyup",this,"onKeyUp"),_fd.connect(_fd.doc,"ondragstart",_fd.stopEvent),_fd.connect(_fd.body(),"onselectstart",_fd.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");_fd.addClass(_fd.body(),c);},canDrop:function(flag){var _104=Boolean(this.target&&flag);if(this.canDropFlag!=_104){this.canDropFlag=_104;this.avatar.update();}},stopDrag:function(){_fd.removeClass(_fd.body(),["dojoDndCopy","dojoDndMove"]);_fd.forEach(this.events,_fd.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new _fd.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){_fd.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(_fd.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(_fd.isCopyKey(e))),_105=[this.source,this.nodes,copy,this.target,e];_fd.publish("/dnd/drop/before",_105);_fd.publish("/dnd/drop",_105);}else{_fd.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case _fd.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case _fd.keys.ESCAPE:_fd.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==_fd.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();_fd.replaceClass(_fd.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});_fd.dnd._manager=null;_ff.manager=_fd.dnd.manager=function(){if(!_fd.dnd._manager){_fd.dnd._manager=new _fd.dnd.Manager();}return _fd.dnd._manager;};return _ff;});},"dojox/grid/_RowSelector":function(){define("dojox/grid/_RowSelector",["dojo/_base/declare","./_View"],function(_106,_107){return _106("dojox.grid._RowSelector",_107,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_108,_109){var w=this.contentWidth||0;_109.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_10a,_10b){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_10a)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_10a)){n.push("dojoxGridRowbarSelected");}_10b.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});});},"dojox/grid/_Layout":function(){define("dojox/grid/_Layout",["dojo/_base/kernel","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-geometry","./cells","./_RowSelector"],function(dojo,_10c,_10d,_10e,lang,_10f){return _10d("dojox.grid._Layout",null,{constructor:function(_110){this.grid=_110;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_111,_112,_113,_114,_115){var _116=this.structure[_111].cells[0];var _117=this.structure[_112].cells[0];var cell=null;var _118=0;var _119=0;for(var i=0,c;c=_116[i];i++){if(c.index==_113){_118=i;break;}}cell=_116.splice(_118,1)[0];cell.view=this.grid.views.views[_112];for(i=0,c=null;c=_117[i];i++){if(c.index==_114){_119=i;break;}}if(!_115){_119+=1;}_117.splice(_119,0,cell);var _11a=this.grid.getCell(this.grid.getSortIndex());if(_11a){_11a._currentlySorted=this.grid.getSortAsc();}this.cells=[];_113=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_113;this.cells.push(c);if("_currentlySorted" in c){var si=_113+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_113++;}}}_10e.forEach(this.cells,function(c){var _11b=c.markup[2].split(" ");var _11c=parseInt(_11b[1].substring(5));if(_11c!=c.index){_11b[1]="idx=\""+c.index+"\"";c.markup[2]=_11b.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_11d,_11e){var cell=this.cells[_11d];if(cell.hidden==_11e){cell.hidden=!_11e;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=_10f.getMarginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_11f,_120,_121){var self=this;var _122=function(_123){var w=0;if(_123.colSpan>1){w=0;}else{w=_123.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _124={grid:this.grid,subrow:_11f,layoutIndex:_120,index:this.cells.length};if(_121&&_121 instanceof _10c.grid.cells._Base){var _125=lang.clone(_121);_124.unitWidth=_122(_125._props);_125=lang.mixin(_125,this._defaultCellProps,_121._props,_124);return _125;}var _126=_121.type||_121.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||_10c.grid.cells.Cell;if(lang.isString(_126)){_126=lang.getObject(_126);}_124.unitWidth=_122(_121);return new _126(lang.mixin({},this._defaultCellProps,_121,_124));},addRowDef:function(_127,_128){var _129=[];var _12a=0,_12b=0,_12c=true;for(var i=0,def,cell;(def=_128[i]);i++){cell=this.addCellDef(_127,i,def);_129.push(cell);this.cells.push(cell);if(_12c&&cell.relWidth){_12a+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_12b+=window.parseInt(w,10);}else{if(w=="auto"){_12c=false;}}}}}if(_12a&&_12c){_10e.forEach(_129,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_12a)*(100-_12b))+"%";}});}return _129;},addRowsDef:function(_12d){var _12e=[];if(lang.isArray(_12d)){if(lang.isArray(_12d[0])){for(var i=0,row;_12d&&(row=_12d[i]);i++){_12e.push(this.addRowDef(i,row));}}else{_12e.push(this.addRowDef(0,_12d));}}return _12e;},addViewDef:function(_12f){this._defaultCellProps=_12f.defaultCell||{};if(_12f.width&&_12f.width=="auto"){delete _12f.width;}return lang.mixin({},_12f,{cells:this.addRowsDef(_12f.rows||_12f.cells)});},setStructure:function(_130){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:_10c._scopeName+".grid._RowSelector"};if(lang.isString(this.grid.rowSelector)){var _131=this.grid.rowSelector;if(_131=="false"){sel=null;}else{if(_131!="true"){sel["width"]=_131;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _132=function(def){return ("name" in def||"field" in def||"get" in def);};var _133=function(def){if(lang.isArray(def)){if(lang.isArray(def[0])||_132(def[0])){return true;}}return false;};var _134=function(def){return (def!==null&&lang.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_132(def))));};if(lang.isArray(_130)){var _135=false;for(var i=0,st;(st=_130[i]);i++){if(_134(st)){_135=true;break;}}if(!_135){s.push(this.addViewDef({cells:_130}));}else{for(i=0;(st=_130[i]);i++){if(_133(st)){s.push(this.addViewDef({cells:st}));}else{if(_134(st)){s.push(this.addViewDef(st));}}}}}else{if(_134(_130)){s.push(this.addViewDef(_130));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});});},"dojox/grid/_Grid":function(){require({cache:{"url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n"}});define("dojox/grid/_Grid",["dojo/_base/kernel","../main","dojo/_base/declare","./_Events","./_Scroller","./_Layout","./_View","./_ViewManager","./_RowManager","./_FocusManager","./_EditManager","./Selection","./_RowSelector","./util","dijit/_Widget","dijit/_TemplatedMixin","dijit/CheckedMenuItem","dojo/text!./resources/_Grid.html","dojo/string","dojo/_base/array","dojo/_base/lang","dojo/_base/sniff","dojox/html/metrics","dojo/_base/html","dojo/query","dojo/dnd/common","dojo/i18n!dijit/nls/loading"],function(dojo,_136,_137,_138,_139,_13a,_13b,_13c,_13d,_13e,_13f,_140,_141,util,_142,_143,_144,_145,_146,_147,lang,has,_148,html,_149){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}var _14a=_137("dojox.grid._Grid",[_142,_143,_138],{templateString:_145,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:_13a,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");_148.initOnFontResize();this.connect(_148,"onFontResize","textSizeChanged");util.funnelEvents(this.domNode,this,"doKeyEvent",util.keyEvents);if(this.selectionMode!="none"){this.domNode.setAttribute("aria-multiselectable",this.selectionMode=="single"?"false":"true");}html.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){html.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _14b=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_146.substitute(this.loadingMessage,_14b);this.errorMessage=_146.substitute(this.errorMessage,_14b);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){html.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){_147.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_14c){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_14c){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new _13d(this);this.focus=new _13e(this);this.edit=new _13f(this);},createSelection:function(){this.selection=new _140(this);},createScroller:function(){this.scroller=new _139();this.scroller.grid=this;this.scroller.renderRow=lang.hitch(this,"renderRow");this.scroller.removeRow=lang.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_14d){},createViews:function(){this.views=new _13c(this);this.views.createView=lang.hitch(this,"createView");},createView:function(_14e,idx){var c=lang.getObject(_14e);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);html.attr(this.domNode,"align",this.isLeftToRight()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||_136._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_14f){var s=_14f;if(s&&lang.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=lang.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_150){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_150);},getColumnTogglingItems:function(){var _151,_152=[];_151=_147.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new _144({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_153){if(self.layout.setColumnVisibility(this._gridCell.index,_153)){var _154=this._gridCell.menuItems;if(_154.length>1){_147.forEach(_154,function(item){if(item!==this){item.setAttribute("checked",_153);}},this);}_153=_147.filter(self.layout.cells,function(c){if(c.menuItems.length>1){_147.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_153.length==1){_147.forEach(_153[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _155=_147.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_155,1);delete this._gridCell;_144.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_152.push(item);}return item;},this);if(_152.length==1){_152[0].set("disabled",true);}return _151;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){_147.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){_147.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_156){this.setScrollTop(0);},getItem:function(_157){return null;},showMessage:function(_158){if(_158){this.messagesNode.innerHTML=_158;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_159,_15a){if(dojo.isIE&&!_159&&!_15a&&this._autoHeight){return;}this._pendingChangeSize=_159;this._pendingResultSize=_15a;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||html._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_15b,_15c){_15b=_15b||this._pendingChangeSize;_15c=_15c||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _15d=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_15d.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_15c){_15b=_15c;}if(!this._autoHeight&&_15b){html.marginBox(this.domNode,_15b);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||html._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _15e=_147.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||html._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_15e&&hh===undefined){hh=this._getHeaderHeight();}}if(_15e){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _15f=(!this.initialWidth&&this.autoWidth);var w=_15f?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_15f){this.domNode.style.width=vw+"px";}},adaptHeight:function(_160){var t=_160===undefined?this._getHeaderHeight():_160;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _161=0,_162=0;var _163=_147.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_161++;}else{_162++;}return (!has);});if(_161>0&&_162>0){_147.forEach(_163,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();html.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_164,_165){this.views.renderRow(_164,_165,this._skipRowRenormalize);},rowRemoved:function(_166){this.views.rowRemoved(_166);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_167){_167=Number(_167);if(this.updating){this.invalidated[_167]=true;}else{this.views.updateRow(_167);this.scroller.rowHeightChanged(_167);}},updateRows:function(_168,_169){_168=Number(_168);_169=Number(_169);var i;if(this.updating){for(i=0;i<_169;i++){this.invalidated[i+_168]=true;}}else{for(i=0;i<_169;i++){this.views.updateRow(i+_168,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_168);}},updateRowCount:function(_16a){if(this.updating){this.invalidated.rowCount=_16a;}else{this.rowCount=_16a;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_16a);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_16b){this.views.updateRowStyles(_16b);},getRowNode:function(_16c){if(this.focus.focusView&&!(this.focus.focusView instanceof _141)){return this.focus.focusView.rowNodes[_16c];}else{for(var i=0,_16d;(_16d=this.views.views[i]);i++){if(!(_16d instanceof _141)){return _16d.rowNodes[_16c];}}}return null;},rowHeightChanged:function(_16e){this.views.renormalizeRow(_16e);this.scroller.rowHeightChanged(_16e);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(has("ie")?100:50),scrollTo:function(_16f){if(!this.fastScroll){this.setScrollTop(_16f);return;}var _170=Math.abs(this.lastScrollTop-_16f);this.lastScrollTop=_16f;if(_170>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_16f;this.views.setScrollTop(_16f);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _171=this;this._pendingScroll=window.setTimeout(function(){delete _171._pendingScroll;_171.finishScrollJob();},200);}else{this.setScrollTop(_16f);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_172){this.scroller.scroll(this.views.setScrollTop(_172));},scrollToRow:function(_173){this.setScrollTop(this.scroller.findScrollTop(_173)+1);},styleRowNode:function(_174,_175){if(_175){this.rows.styleRowNode(_174,_175);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_176){return this.layout.cells[_176];},setCellWidth:function(_177,_178){this.getCell(_177).unitWidth=_178;},getCellName:function(_179){return "Cell "+_179.index;},canSort:function(_17a){},sort:function(){},getSortAsc:function(_17b){_17b=_17b==undefined?this.sortInfo:_17b;return Boolean(_17b>0);},getSortIndex:function(_17c){_17c=_17c==undefined?this.sortInfo:_17c;return Math.abs(_17c)-1;},setSortIndex:function(_17d,_17e){var si=_17d+1;if(_17e!=undefined){si*=(_17e?1:-1);}else{if(this.getSortIndex()==_17d){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_17f){if(this.canSort(_17f)){this.sortInfo=_17f;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_180,_181){this.onStartEdit(_180,_181);},doApplyCellEdit:function(_182,_183,_184){this.onApplyCellEdit(_182,_183,_184);},doCancelEdit:function(_185){this.onCancelEdit(_185);},doApplyEdit:function(_186){this.onApplyEdit(_186);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});_14a.markupFactory=function(_187,node,ctor,_188){var _189=function(n){var w=html.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_187.structure&&node.nodeName.toLowerCase()=="table"){_187.structure=_149("> colgroup",node).map(function(cg){var sv=html.attr(cg,"span");var v={noscroll:(html.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(html.hasAttr(cg,"width")){v.width=_189(cg);}return v;});if(!_187.structure.length){_187.structure.push({__span:Infinity,cells:[]});}_149("thead > tr",node).forEach(function(tr,_18a){var _18b=0;var _18c=0;var _18d;var _18e=null;_149("> th",tr).map(function(th){if(!_18e){_18d=0;_18e=_187.structure[0];}else{if(_18b>=(_18d+_18e.__span)){_18c++;_18d+=_18e.__span;var _18f=_18e;_18e=_187.structure[_18c];}}var cell={name:lang.trim(html.attr(th,"name")||th.innerHTML),colSpan:parseInt(html.attr(th,"colspan")||1,10),type:lang.trim(html.attr(th,"cellType")||""),id:lang.trim(html.attr(th,"id")||"")};_18b+=cell.colSpan;var _190=html.attr(th,"rowspan");if(_190){cell.rowSpan=_190;}if(html.hasAttr(th,"width")){cell.width=_189(th);}if(html.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(html.attr(th,"relWidth"),10);}if(html.hasAttr(th,"hidden")){cell.hidden=(html.attr(th,"hidden")=="true"||html.attr(th,"hidden")===true);}if(_188){_188(th,cell);}cell.type=cell.type?lang.getObject(cell.type):_136.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_18e.cells[_18a]){_18e.cells[_18a]=[];}_18e.cells[_18a].push(cell);});});}return new ctor(_187,node);};return _14a;});},"dijit/nls/loading":function(){define("dijit/nls/loading",{root:({loadingState:"Loading...",errorState:"Sorry, an error occurred"}),"zh":true,"zh-tw":true,"tr":true,"th":true,"sv":true,"sl":true,"sk":true,"ru":true,"ro":true,"pt":true,"pt-pt":true,"pl":true,"nl":true,"nb":true,"ko":true,"kk":true,"ja":true,"it":true,"hu":true,"hr":true,"he":true,"fr":true,"fi":true,"es":true,"el":true,"de":true,"da":true,"cs":true,"ca":true,"az":true,"ar":true});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojo/dnd/Mover":function(){define(["../main","../Evented","../touch","./common","./autoscroll"],function(dojo,_191,_192){dojo.declare("dojo.dnd.Mover",[_191],{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,_192.move,this,"onFirstMove"),dojo.connect(d,_192.move,this,"onMouseMove"),dojo.connect(d,_192.release,this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}dojo.disconnect(this.events.shift());},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;}});return dojo.dnd.Mover;});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(dojo,_193,lang,_194){return dojo.declare("dojo.Stateful",null,{postscript:function(_195){if(_195){lang.mixin(this,_195);}},get:function(name){return this[name];},set:function(name,_196){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _197=this[name];this[name]=_196;if(this._watchCallbacks){this._watchCallbacks(name,_197,_196);}return this;},watch:function(name,_198){var _199=this._watchCallbacks;if(!_199){var self=this;_199=this._watchCallbacks=function(name,_19a,_19b,_19c){var _19d=function(_19e){if(_19e){_19e=_19e.slice();for(var i=0,l=_19e.length;i<l;i++){try{_19e[i].call(self,name,_19a,_19b);}catch(e){console.error(e);}}}};_19d(_199["_"+name]);if(!_19c){_19d(_199["*"]);}};}if(!_198&&typeof name==="function"){_198=name;name="*";}else{name="_"+name;}var _19f=_199[name];if(typeof _19f!=="object"){_19f=_199[name]=[];}_19f.push(_198);return {unwatch:function(){_19f.splice(_194.indexOf(_19f,_198),1);}};}});});},"dojo/touch":function(){define(["./_base/kernel","./on","./has","./mouse"],function(dojo,on,has,_1a0){function _1a1(type){return function(node,_1a2){return on(node,type,_1a2);};};var _1a3=has("touch");dojo.touch={press:_1a1(_1a3?"touchstart":"mousedown"),move:_1a1(_1a3?"touchmove":"mousemove"),release:_1a1(_1a3?"touchend":"mouseup"),cancel:_1a3?_1a1("touchcancel"):_1a0.leave};return dojo.touch;});},"dojox/grid/Selection":function(){define("dojox/grid/Selection",["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(_1a4,_1a5,lang,_1a6){return _1a4("dojox.grid.Selection",null,{constructor:function(_1a7){this.grid=_1a7;this.selected=[];this.setMode(_1a7.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_1a8){return this.grid.onCanSelect(_1a8);},onCanDeselect:function(_1a9){return this.grid.onCanDeselect(_1a9);},onSelected:function(_1aa){},onDeselected:function(_1ab){},onChanging:function(){},onChanged:function(){},isSelected:function(_1ac){if(this.mode=="none"){return false;}return this.selected[_1ac];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_1ad){if(this.mode=="none"){return -1;}for(var i=_1ad+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _1ae=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_1ae.push(i);}}return _1ae;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_1af){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_1af);this.addToSelection(_1af);}else{this.toggleSelect(_1af);}},addToSelection:function(_1b0){if(this.mode=="none"){return;}if(lang.isArray(_1b0)){_1a5.forEach(_1b0,this.addToSelection,this);return;}_1b0=Number(_1b0);if(this.selected[_1b0]){this.selectedIndex=_1b0;}else{if(this.onCanSelect(_1b0)!==false){this.selectedIndex=_1b0;var _1b1=this.grid.getRowNode(_1b0);if(_1b1){_1a6.set(_1b1,"aria-selected","true");}this._beginUpdate();this.selected[_1b0]=true;this.onSelected(_1b0);this._endUpdate();}}},deselect:function(_1b2){if(this.mode=="none"){return;}if(lang.isArray(_1b2)){_1a5.forEach(_1b2,this.deselect,this);return;}_1b2=Number(_1b2);if(this.selectedIndex==_1b2){this.selectedIndex=-1;}if(this.selected[_1b2]){if(this.onCanDeselect(_1b2)===false){return;}var _1b3=this.grid.getRowNode(_1b2);if(_1b3){_1a6.set(_1b3,"aria-selected","false");}this._beginUpdate();delete this.selected[_1b2];this.onDeselected(_1b2);this._endUpdate();}},setSelected:function(_1b4,_1b5){this[(_1b5?"addToSelection":"deselect")](_1b4);},toggleSelect:function(_1b6){if(lang.isArray(_1b6)){_1a5.forEach(_1b6,this.toggleSelect,this);return;}this.setSelected(_1b6,!this.selected[_1b6]);},_range:function(_1b7,inTo,func){var s=(_1b7>=0?_1b7:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_1b8,inTo){this._range(_1b8,inTo,lang.hitch(this,"addToSelection"));},deselectRange:function(_1b9,inTo){this._range(_1b9,inTo,lang.hitch(this,"deselect"));},insert:function(_1ba){this.selected.splice(_1ba,0,false);if(this.selectedIndex>=_1ba){this.selectedIndex++;}},remove:function(_1bb){this.selected.splice(_1bb,1);if(this.selectedIndex>=_1bb){this.selectedIndex--;}},deselectAll:function(_1bc){for(var i in this.selected){if((i!=_1bc)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_1bd,_1be,_1bf){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_1bd);}else{var _1c0=this.selectedIndex;if(!_1be){this.deselectAll(_1bd);}if(_1bf){this.selectRange(_1c0,_1bd);}else{if(_1be){this.toggleSelect(_1bd);}else{this.addToSelection(_1bd);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/touch","dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/_base/lang","dojo/_base/window"],function(_1c1,_1c2,_1c3,_1c4,lang,win){return _1c3("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_1c2.forEach(["onmouseenter","onmouseleave",_1c1.press],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);_1c2.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,lang.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1c5){if(!this.disabled){switch(_1c5.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchpress":this._set("active",true);this._mouseDown=true;var _1c6=this.connect(win.body(),_1c1.release,function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1c6);});break;}}},_setStateClass:function(){var _1c7=this.baseClass.split(" ");function _1c8(_1c9){_1c7=_1c7.concat(_1c2.map(_1c7,function(c){return c+_1c9;}),"dijit"+_1c9);};if(!this.isLeftToRight()){_1c8("Rtl");}var _1ca=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_1c8(_1ca);}if(this.state){_1c8(this.state);}if(this.selected){_1c8("Selected");}if(this.disabled){_1c8("Disabled");}else{if(this.readOnly){_1c8("ReadOnly");}else{if(this.active){_1c8("Active");}else{if(this.hovering){_1c8("Hover");}}}}if(this.focused){_1c8("Focused");}var tn=this.stateNode||this.domNode,_1cb={};_1c2.forEach(tn.className.split(" "),function(c){_1cb[c]=true;});if("_stateClasses" in this){_1c2.forEach(this._stateClasses,function(c){delete _1cb[c];});}_1c2.forEach(_1c7,function(c){_1cb[c]=true;});var _1cc=[];for(var c in _1cb){_1cc.push(c);}tn.className=_1cc.join(" ");this._stateClasses=_1c7;},_trackMouseState:function(node,_1cd){var _1ce=false,_1cf=false,_1d0=false;var self=this,cn=lang.hitch(this,"connect",node);function _1d1(){var _1d2=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);_1c4.toggle(node,_1cd+"Hover",_1ce&&!_1cf&&!_1d2);_1c4.toggle(node,_1cd+"Active",_1cf&&!_1d2);_1c4.toggle(node,_1cd+"Focused",_1d0&&!_1d2);};cn("onmouseenter",function(){_1ce=true;_1d1();});cn("onmouseleave",function(){_1ce=false;_1cf=false;_1d1();});cn(_1c1.press,function(){_1cf=true;_1d1();});cn(_1c1.release,function(){_1cf=false;_1d1();});cn("onfocus",function(){_1d0=true;_1d1();});cn("onblur",function(){_1d0=false;_1d1();});this.watch("disabled",_1d1);this.watch("readOnly",_1d1);}});});},"url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n","dojox/grid/_RowManager":function(){define("dojox/grid/_RowManager",["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_1d3,lang,_1d4){var _1d5=function(_1d6,_1d7){if(_1d6.style.cssText==undefined){_1d6.setAttribute("style",_1d7);}else{_1d6.style.cssText=_1d7;}};return _1d3("dojox.grid._RowManager",null,{constructor:function(_1d8){this.grid=_1d8;},linesToEms:2,overRow:-2,prepareStylingRow:function(_1d9,_1da){return {index:_1d9,node:_1da,odd:Boolean(_1d9&1),selected:!!this.grid.selection.isSelected(_1d9),over:this.isOver(_1d9),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_1db,_1dc){var row=this.prepareStylingRow(_1db,_1dc);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_1dd){var i=_1dd;i.node.className=i.customClasses;var h=i.node.style.height;_1d5(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_1de){this.grid.updateRowStyles(_1de);},setOverRow:function(_1df){var last=this.overRow;this.overRow=_1df;if((last!=this.overRow)&&(lang.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_1e0){return (this.overRow==_1e0&&!_1d4.contains(this.grid.domNode,"dojoxGridColumnResizing"));}});});},"dojo/_base/url":function(){define(["./kernel"],function(dojo){var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_1e1=function(){var n=null,_1e2=arguments,uri=[_1e2[0]];for(var i=1;i<_1e2.length;i++){if(!_1e2[i]){continue;}var _1e3=new _1e1(_1e2[i]+""),_1e4=new _1e1(uri[0]+"");if(_1e3.path==""&&!_1e3.scheme&&!_1e3.authority&&!_1e3.query){if(_1e3.fragment!=n){_1e4.fragment=_1e3.fragment;}_1e3=_1e4;}else{if(!_1e3.scheme){_1e3.scheme=_1e4.scheme;if(!_1e3.authority){_1e3.authority=_1e4.authority;if(_1e3.path.charAt(0)!="/"){var path=_1e4.path.substring(0,_1e4.path.lastIndexOf("/")+1)+_1e3.path;var segs=path.split("/");for(var j=0;j<segs.length;j++){if(segs[j]=="."){if(j==segs.length-1){segs[j]="";}else{segs.splice(j,1);j--;}}else{if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){if(j==(segs.length-1)){segs.splice(j,1);segs[j-1]="";}else{segs.splice(j-1,2);j-=2;}}}}_1e3.path=segs.join("/");}}}}uri=[];if(_1e3.scheme){uri.push(_1e3.scheme,":");}if(_1e3.authority){uri.push("//",_1e3.authority);}uri.push(_1e3.path);if(_1e3.query){uri.push("?",_1e3.query);}if(_1e3.fragment){uri.push("#",_1e3.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};_1e1.prototype.toString=function(){return this.uri;};return dojo._Url=_1e1;});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1e5,map,_1e6,_1e7){_1e7=_1e7||dojo.global;_1e6=_1e6?lang.hitch(_1e7,_1e6):function(v){return v;};return _1e5.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1e8,key,_1e9){var _1ea=lang.getObject(key,false,map);if(_1e9){_1ea=lang.getObject(_1e9,false,_1e7).call(_1e7,_1ea,key);}return _1e6(_1ea,key).toString();});};dojo.string.trim=String.prototype.trim?lang.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return dojo.string;});},"dojo/dnd/Avatar":function(){define(["../main","./common"],function(dojo){dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_1eb){this.manager=_1eb;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_1ec=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_1ec.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_1ec.creator){node=_1ec._normalizedCreator(_1ec.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _1ed=dojo.create("table"),_1ee=dojo.create("tbody",null,_1ed);_1ee.appendChild(node);node=_1ed;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});return dojo.dnd.Avatar;});},"dojox/grid/_Scroller":function(){define("dojox/grid/_Scroller",["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],function(_1ef,_1f0,lang,util,html){var _1f1=function(_1f2){var i=0,n,p=_1f2.parentNode;while((n=p.childNodes[i++])){if(n==_1f2){return i-1;}}return -1;};var _1f3=function(_1f4){if(!_1f4){return;}dojo.forEach(_1ef.toArray(),function(w){if(w.domNode&&html.isDescendant(w.domNode,_1f4,true)){w.destroy();}});};var _1f5=function(_1f6){var node=html.byId(_1f6);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _1f7=function(_1f8,_1f9){var _1fa=[];var i=0,n;while((n=_1f8.childNodes[i])){i++;if(_1f5(n)==_1f9){_1fa.push(n);}}return _1fa;};var _1fb=function(_1fc){return _1f7(_1fc,"div");};return _1f0("dojox.grid._Scroller",null,{constructor:function(_1fd){this.setContentNodes(_1fd);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_1fe,_1ff,_200){switch(arguments.length){case 3:this.rowsPerPage=_200;case 2:this.keepRows=_1ff;case 1:this.rowCount=_1fe;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=lang.hitch(this,"onscroll");}},_getPageCount:function(_201,_202){return _201?(Math.ceil(_201/_202)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_203){this.keepRows=_203;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_204){this.contentNodes=_204;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_205){this.invalidateNodes();this.rowCount=_205;var _206=this.pageCount;if(_206===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_206){for(var i=_206-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_206){this.height+=this.defaultPageHeight*(this.pageCount-_206-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_207){return Boolean(this.getDefaultPageNode(_207));},measurePage:function(_208){if(this.grid.rowHeight){var _209=this.grid.rowHeight+1;return ((_208+1)*this.rowsPerPage>this.rowCount?this.rowCount-_208*this.rowsPerPage:this.rowsPerPage)*_209;}var n=this.getDefaultPageNode(_208);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_20a,_20b){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_20a].style.top=_20b+"px";}},repositionPages:function(_20c){var _20d=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_20d[_20c];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_20c):0);for(var p=_20c+1;p<=last;p++){n=_20d[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_20e){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_20e]);}},preparePage:function(_20f,_210){var p=(_210?this.popPage():null);for(var i=0;i<this.colCount;i++){var _211=this.pageNodes[i];var _212=(p===null?this.createPageNode():this.invalidatePageNode(p,_211));_212.pageIndex=_20f;_211[_20f]=_212;}},renderPage:function(_213){var _214=[];var i,j;for(i=0;i<this.colCount;i++){_214[i]=this.pageNodes[i][_213];}for(i=0,j=_213*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_214);}},removePage:function(_215){for(var i=0,j=_215*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_216){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_216,this.pageNodes[i]);if(n){html.destroy(n);}}},pacify:function(_217){},pacifying:false,pacifyTicks:200,setPacifying:function(_218){if(this.pacifying!=_218){this.pacifying=_218;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _219=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _219;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _21a=(!this._invalidating);if(!_21a){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_21a=true;}}if(_21a){this.needPage(this.page,this.pageTop);}var _21b=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _21c=this.getPageHeight(this.page);this.averageRowHeight=(_21c>0&&_21b>0)?(_21c/_21b):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _21d=this.pageCount-1;var _21e=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_21d]=_21e;return _21e;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_21f,_220,_221){if(this.pageExists(_21f)){var oh=this.getPageHeight(_21f);var h=(this.measurePage(_21f));if(h===undefined){h=oh;}this.pageHeights[_21f]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_220)){if(!_221){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_21f);}}else{this.repositionPages(_21f);}}return h;}return 0;},rowHeightChanged:function(_222,_223){this.updatePageHeight(Math.floor(_222/this.rowsPerPage),false,_223);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");html.attr(p,"role","presentation");p.style.position="absolute";p.style[this.grid.isLeftToRight()?"left":"right"]="0";return p;},getPageHeight:function(_224){var ph=this.pageHeights[_224];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_225){return this.stack.push(_225);},popPage:function(){return this.stack.shift();},findPage:function(_226){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_226){break;}}this.page=i;this.pageTop=h;},buildPage:function(_227,_228,_229){this.preparePage(_227,_228);this.positionPage(_227,_229);this.installPage(_227);this.renderPage(_227);this.pushPage(_227);},needPage:function(_22a,_22b){var h=this.getPageHeight(_22a),oh=h;if(!this.pageExists(_22a)){this.buildPage(_22a,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_22b);h=this.updatePageHeight(_22a,true);}else{this.positionPage(_22a,_22b);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_22c){this.grid.scrollTop=_22c;if(this.colCount){this.startPacify();this.findPage(_22c);var h=this.height;var b=this.getScrollBottom(_22c);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_22c);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_22d){return (this.windowHeight>=0?_22d+this.windowHeight:-1);},processNodeEvent:function(e,_22e){var t=e.target;while(t&&(t!=_22e)&&t.parentNode&&(t.parentNode.parentNode!=_22e)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_22e)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_1f1(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_22f,_230){},removeRow:function(_231){},getDefaultPageNode:function(_232){return this.getDefaultNodes()[_232];},positionPageNode:function(_233,_234){},getPageNodePosition:function(_235){return _235.offsetTop;},invalidatePageNode:function(_236,_237){var p=_237[_236];if(p){delete _237[_236];this.removePage(_236,p);_1f3(p);p.innerHTML="";}return p;},getPageRow:function(_238){return _238*this.rowsPerPage;},getLastPageRow:function(_239){return Math.min(this.rowCount,this.getPageRow(_239+1))-1;},getFirstVisibleRow:function(_23a,_23b,_23c){if(!this.pageExists(_23a)){return 0;}var row=this.getPageRow(_23a);var _23d=this.getDefaultNodes();var rows=_1fb(_23d[_23a]);for(var i=0,l=rows.length;i<l&&_23b<_23c;i++,row++){_23b+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_23e,_23f,_240){if(!this.pageExists(_23e)){return 0;}var _241=this.getDefaultNodes();var row=this.getLastPageRow(_23e);var rows=_1fb(_241[_23e]);for(var i=rows.length-1;i>=0&&_23f>_240;i--,row--){_23f-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_242){var _243=this.getDefaultNodes();var rows=_1fb(_243[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_242){this.offset=h-(t-_242);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_244){var _245=Math.floor(_244/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_245;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_245;this.needPage(_245,this.pageTop);var _246=this.getDefaultNodes();var rows=_1fb(_246[_245]);var r=_244-this.rowsPerPage*_245;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});});},"dojox/grid/_Events":function(){define("dojox/grid/_Events",["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(keys,_247,_248,_249,has){return _248("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_24a){var i=_24a;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_24a);this.edit.styleRow(_24a);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var _24b;switch(e.keyCode){case keys.ESCAPE:this.edit.cancel();break;case keys.ENTER:if(!this.edit.isEditing()){_24b=this.focus.getHeaderIndex();if(_24b>=0){this.setSortIndex(_24b);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_249.stop(e);}if(!e.shiftKey){var _24c=this.edit.isEditing();this.edit.apply();if(!_24c){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _24d=this.focus.focusView||this.views.views[0];_24d.content.decorateEvent(e);this.onRowClick(e);_249.stop(e);}break;case keys.SPACE:if(!this.edit.isEditing()){_24b=this.focus.getHeaderIndex();if(_24b>=0){this.setSortIndex(_24b);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_249.stop(e);}break;case keys.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case keys.LEFT_ARROW:case keys.RIGHT_ARROW:if(!this.edit.isEditing()){var _24e=e.keyCode;_249.stop(e);_24b=this.focus.getHeaderIndex();if(_24b>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_24b,(_24e==keys.LEFT_ARROW?-1:1)*5);}else{var _24f=(_24e==keys.LEFT_ARROW)?1:-1;if(this.isLeftToRight()){_24f*=-1;}this.focus.move(0,_24f);}}break;case keys.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_249.stop(e);this.focus.move(-1,0);}break;case keys.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_249.stop(e);this.focus.move(1,0);}break;case keys.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_249.stop(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case keys.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_249.stop(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){_247.add(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){_247.remove(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _250;if(this._click.length>1&&has("ie")){_250=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_250=this._click[0];}else{_250=e;}}this.focus.setFocusCell(_250.cell,_250.rowIndex);this.onRowClick(_250);this.edit.setEditCell(_250.cell,_250.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_251,_252){this.edit.cellFocus(_251,_252);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){_249.stop(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){_247.add(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){_247.remove(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){_249.stop(e);}},onStartEdit:function(_253,_254){},onApplyCellEdit:function(_255,_256,_257){},onCancelEdit:function(_258){},onApplyEdit:function(_259){},onCanSelect:function(_25a){return true;},onCanDeselect:function(_25b){return true;},onSelected:function(_25c){this.updateRowStyles(_25c);},onDeselected:function(_25d){this.updateRowStyles(_25d);},onSelectionChanged:function(){}});});},"dojo/dnd/autoscroll":function(){define(["../main","../window"],function(dojo){dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_25e,_25f;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n),_260=(s.overflow.toLowerCase() in dojo.dnd._validOverflow),_261=(s.overflowX.toLowerCase() in dojo.dnd._validOverflow),_262=(s.overflowY.toLowerCase() in dojo.dnd._validOverflow);if(_260||_261||_262){b=dojo._getContentBox(n,s);t=dojo.position(n,true);}if(_260||_261){w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;}dx=0;if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}_25e=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_260||_262){h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(dojo.isWebKit||dojo.isOpera){ry+=dojo.body().scrollTop;}dy=0;if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}_25f=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};return dojo.dnd;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_263,has,_264,win,_265){var _266={},hash={};var _267={length:0,add:function(_268){if(hash[_268.id]){throw new Error("Tried to register widget with id=="+_268.id+" but that id is already registered");}hash[_268.id]=_268;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_269){var id;do{id=_269+"_"+(_269 in _266?++_266[_269]:_266[_269]=0);}while(hash[id]);return _265._scopeName=="dijit"?id:_265._scopeName+"_"+id;},findWidgets:function(root){var _26a=[];function _26b(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _26c=node.getAttribute("widgetId");if(_26c){var _26d=hash[_26c];if(_26d){_26a.push(_26d);}}else{_26b(node);}}}};_26b(root);return _26a;},_destroyAll:function(){_265._curFocus=null;_265._prevFocus=null;_265._activeStack=[];_263.forEach(_267.findWidgets(win.body()),function(_26e){if(!_26e._destroyed){if(_26e.destroyRecursive){_26e.destroyRecursive();}else{if(_26e.destroy){_26e.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};if(has("ie")){_264.addOnWindowUnload(function(){_267._destroyAll();});}_265.registry=_267;return _267;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_26f,_270,_271,_272){_26f.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_272[name]=_271[name];});_272.defaultDuration=_270["defaultDuration"]||200;return _272;});},"dojox/html/metrics":function(){define("dojox/html/metrics",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","dojo/ready","dojo/_base/unload","dojo/_base/window","dojo/dom-geometry"],function(_273,lang,has,_274,_275,_276,_277){var dhm=lang.getObject("dojox.html.metrics",true);var _278=lang.getObject("dojox");dhm.getFontMeasurements=function(){var _279={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(has("ie")){_276.doc.documentElement.style.fontSize="100%";}var div=_276.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";_276.body().appendChild(div);for(var p in _279){ds.fontSize=p;_279[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}_276.body().removeChild(div);div=null;return _279;};var _27a=null;dhm.getCachedFontMeasurements=function(_27b){if(_27b||!_27a){_27a=dhm.getFontMeasurements();}return _27a;};var _27c=null,_27d={};dhm.getTextBox=function(text,_27e,_27f){var m,s;if(!_27c){m=_27c=_276.doc.createElement("div");var c=_276.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";_276.body().appendChild(c);}else{m=_27c;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_27e){for(var i in _27e){if(i in _27d){continue;}s[i]=_27e[i];}}if(arguments.length>2&&_27f){m.className=_27f;}m.innerHTML=text;var box=_277.position(m);box.w=m.parentNode.scrollWidth;return box;};var _280={w:16,h:16};dhm.getScrollbar=function(){return {w:_280.w,h:_280.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_281){var f=dhm._fontResizeNode=_276.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[_278._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[_278._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");_276.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};_275.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(has("ie")&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});_274(function(){try{var n=_276.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";_276.body().appendChild(n);_280.w=n.offsetWidth-n.clientWidth;_280.h=n.offsetHeight-n.clientHeight;_276.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in _273.config&&!!_273.config.fontSizeWatch){dhm.initOnFontResize();}});return dhm;});},"dojox/grid/_EditManager":function(){define("dojox/grid/_EditManager",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/sniff","./util"],function(lang,_282,_283,_284,has,util){return _283("dojox.grid._EditManager",null,{constructor:function(_285){this.grid=_285;if(has("ie")){this.connections=[_284.connect(document.body,"onfocus",lang.hitch(this,"_boomerangFocus"))];}else{this.connections=[_284.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){_282.forEach(this.connections,_284.disconnect);},cellFocus:function(_286,_287){if(this.grid.singleClickEdit||this.isEditRow(_287)){this.setEditCell(_286,_287);}else{this.apply();}if(this.isEditing()||(_286&&_286.editable&&_286.alwaysEditing)){this._focusEditor(_286,_287);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_288){if(_288.index==this.info.rowIndex){_288.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_289,_28a){return (this.info.rowIndex===_289)&&(this.info.cell.index==_28a);},isEditRow:function(_28b){return this.info.rowIndex===_28b;},setEditCell:function(_28c,_28d){if(!this.isEditCell(_28d,_28c.index)&&this.grid.canEdit&&this.grid.canEdit(_28c,_28d)){this.start(_28c,_28d,this.isEditRow(_28d)||_28c.editable);}},_focusEditor:function(_28e,_28f){util.fire(_28e,"focus",[_28f]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(has("ie")){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_290,_291,_292){if(!this._isValidInput()){return;}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_291)){this.applyRowEdit();this.grid.updateRow(_291);}if(_292){this.info={cell:_290,rowIndex:_291};this.grid.doStartEdit(_290,_291);this.grid.updateRow(_291);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_290,_291);this._doCatchBoomerang();},_editorDo:function(_293){var c=this.info.cell;if(c&&c.editable){c[_293](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_294,_295,_296){if(this.grid.canEdit(_295,_296)){this.grid.doApplyCellEdit(_294,_296,_295.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_297,_298){var c=this.info.cell;if(this.isEditRow(_297)&&(!_298||c.view==_298)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_299,_29a){var c=this.info.cell;if(this.isEditRow(_29a)&&c.view==_299&&c.editable){c.restore(this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);}});});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_29b,_29c,_29d,dom,_29e,_29f,has,_2a0,_2a1){var _2a2=(_2a1._isElementShown=function(elem){var s=_29f.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_29e.get(elem,"type")!="hidden");});_2a1.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _29e.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2a3=elem.contentDocument;if("designMode" in _2a3&&_2a3.designMode=="on"){return true;}body=_2a3.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}};var _2a4=(_2a1.isTabNavigable=function(elem){if(_29e.get(elem,"disabled")){return false;}else{if(_29e.has(elem,"tabIndex")){return _29e.get(elem,"tabIndex")>=0;}else{return _2a1.hasDefaultTabStop(elem);}}});_2a1._getTabNavigable=function(root){var _2a5,last,_2a6,_2a7,_2a8,_2a9,_2aa={};function _2ab(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2ac=function(_2ad){for(var _2ae=_2ad.firstChild;_2ae;_2ae=_2ae.nextSibling){if(_2ae.nodeType!=1||(has("ie")&&_2ae.scopeName!=="HTML")||!_2a2(_2ae)){continue;}if(_2a4(_2ae)){var _2af=_29e.get(_2ae,"tabIndex");if(!_29e.has(_2ae,"tabIndex")||_2af==0){if(!_2a5){_2a5=_2ae;}last=_2ae;}else{if(_2af>0){if(!_2a6||_2af<_2a7){_2a7=_2af;_2a6=_2ae;}if(!_2a8||_2af>=_2a9){_2a9=_2af;_2a8=_2ae;}}}var rn=_2ab(_2ae);if(_29e.get(_2ae,"checked")&&rn){_2aa[rn]=_2ae;}}if(_2ae.nodeName.toUpperCase()!="SELECT"){_2ac(_2ae);}}};if(_2a2(root)){_2ac(root);}function rs(node){return _2aa[_2ab(node)]||node;};return {first:rs(_2a5),last:rs(last),lowest:rs(_2a6),highest:rs(_2a8)};};_2a1.getFirstInTabbingOrder=function(root){var _2b0=_2a1._getTabNavigable(dom.byId(root));return _2b0.lowest?_2b0.lowest:_2b0.first;};_2a1.getLastInTabbingOrder=function(root){var _2b1=_2a1._getTabNavigable(dom.byId(root));return _2b1.last?_2b1.last:_2b1.highest;};return {hasDefaultTabStop:_2a1.hasDefaultTabStop,isTabNavigable:_2a1.isTabNavigable,_getTabNavigable:_2a1._getTabNavigable,getFirstInTabbingOrder:_2a1.getFirstInTabbingOrder,getLastInTabbingOrder:_2a1.getLastInTabbingOrder};});},"dijit/CheckedMenuItem":function(){require({cache:{"url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n"}});define("dijit/CheckedMenuItem",["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(_2b2,_2b3,_2b4,_2b5){return _2b2("dijit.CheckedMenuItem",_2b4,{templateString:_2b5,checked:false,_setCheckedAttr:function(_2b6){_2b3.toggle(this.domNode,"dijitCheckedMenuItemChecked",_2b6);this.domNode.setAttribute("aria-checked",_2b6);this._set("checked",_2b6);},iconClass:"",onChange:function(){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});});},"dojo/dnd/Container":function(){define(["../main","../Evented","./common","../parser"],function(dojo,_2b7){dojo.declare("dojo.dnd.Container",_2b7,{skipForm:false,constructor:function(node,_2b8){this.node=dojo.byId(node);if(!_2b8){_2b8={};}this.creator=_2b8.creator||null;this.skipForm=_2b8.skipForm;this.parent=_2b8.dropParent&&dojo.byId(_2b8.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_2b8&&_2b8._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_2b9,_2ba){if(!this.parent.firstChild){_2ba=null;}else{if(_2b9){if(!_2ba){_2ba=this.parent.firstChild;}}else{if(_2ba){_2ba=_2ba.nextSibling;}}}if(_2ba){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_2ba);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_2bb,node,ctor){_2bb._skipStartup=true;return new ctor(node,_2bb);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dojo.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_2bc){var _2bd="dojoDnd"+type;var _2be=type.toLowerCase()+"State";dojo.replaceClass(this.node,_2bd+_2bc,_2bd+this[_2be]);this[_2be]=_2bc;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _2bf=node.parentNode;_2bf;node=_2bf,_2bf=node.parentNode){if(_2bf==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _2c0=item&&dojo.isObject(item),data,type,n;if(_2c0&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_2c0&&item.data)?item.data:item;type=(_2c0&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};return dojo.dnd.Container;});},"dojo/dnd/common":function(){define(["../main"],function(dojo){dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};return dojo.dnd;});},"dojox/grid/_ViewManager":function(){define("dojox/grid/_ViewManager",["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(_2c1,has,_2c2){return _2c1("dojox.grid._ViewManager",null,{constructor:function(_2c3){this.grid=_2c3;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_2c4){_2c4.idx=this.views.length;this.views.push(_2c4);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _2c5=[];for(var i=0,v;v=this.views[i];i++){_2c5.push(v.contentNode);}return _2c5;},forEach:function(_2c6){for(var i=0,v;v=this.views[i];i++){_2c6(v,i);}},onEach:function(_2c7,_2c8){_2c8=_2c8||[];for(var i=0,v;v=this.views[i];i++){if(_2c7 in v){v[_2c7].apply(v,_2c8);}}},normalizeHeaderNodeHeight:function(){var _2c9=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_2c9.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_2c9);},normalizeRowNodeHeights:function(_2ca){var h=0;var _2cb=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_2ca.length<=1){return;}for(var i=0,n;(n=_2ca[i]);i++){if(!_2c2.contains(n,"dojoxGridNonNormalizedCell")){_2cb[i]=n.firstChild.offsetHeight;h=Math.max(h,_2cb[i]);}}h=(h>=0?h:0);if((has("mozilla")||has("ie")>8)&&h){h++;}}for(i=0;(n=_2ca[i]);i++){if(_2cb[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_2cc){var _2cd=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_2cc));i++){n.firstChild.style.height="";_2cd.push(n);}this.normalizeRowNodeHeights(_2cd);},getViewWidth:function(_2ce){return this.views[_2ce].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_2cf){_2cf.headerContentNode.style.height="";});var h=0;this.forEach(function(_2d0){h=Math.max(_2d0.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_2d1){h=Math.max(_2d1.domNode.offsetHeight,h);});return h;},findClient:function(_2d2){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length,self=this;var c=(w<=0?len:this.findClient());var _2d3=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!self.grid.isLeftToRight()){ds.right=l+"px";if(has("ff")<4||has("webkit")){hs.right=l+v.getScrollbarWidth()+"px";hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_2d3(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_2d3(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_2d3(v,l);}return l;},renderRow:function(_2d4,_2d5,_2d6){var _2d7=[];for(var i=0,v,n,_2d8;(v=this.views[i])&&(n=_2d5[i]);i++){_2d8=v.renderRow(_2d4);n.appendChild(_2d8);_2d7.push(_2d8);}if(!_2d6){this.normalizeRowNodeHeights(_2d7);}},rowRemoved:function(_2d9){this.onEach("rowRemoved",[_2d9]);},updateRow:function(_2da,_2db){for(var i=0,v;v=this.views[i];i++){v.updateRow(_2da);}if(!_2db){this.renormalizeRow(_2da);}},updateRowStyles:function(_2dc){this.onEach("updateRowStyles",[_2dc]);},setScrollTop:function(_2dd){var top=_2dd;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_2dd);if(has("ie")&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});});},"dojox/grid/cells":function(){define("dojox/grid/cells",["../main","./cells/_base"],function(_2de){return _2de.grid.cells;});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_2df,_2e0,_2e1,_2e2,_2e3,lang,_2e4,_2e5,_2e6,_2e7,_2e8,_2e9){function _2ea(){};function _2eb(_2ec){return function(obj,_2ed,_2ee,_2ef){if(obj&&typeof _2ed=="string"&&obj[_2ed]==_2ea){return obj.on(_2ed.substring(2).toLowerCase(),lang.hitch(_2ee,_2ef));}return _2ec.apply(_2e1,arguments);};};_2df.around(_2e1,"connect",_2eb);if(_2e3.connect){_2df.around(_2e3,"connect",_2eb);}var _2f0=_2e2("dijit._Widget",[_2e7,_2e8,_2e9],{onClick:_2ea,onDblClick:_2ea,onKeyDown:_2ea,onKeyPress:_2ea,onKeyUp:_2ea,onMouseDown:_2ea,onMouseMove:_2ea,onMouseOut:_2ea,onMouseOver:_2ea,onMouseLeave:_2ea,onMouseEnter:_2ea,onMouseUp:_2ea,constructor:function(_2f1){this._toConnect={};for(var name in _2f1){if(this[name]===_2ea){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_2f1[name];delete _2f1[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_2ea){return _2e1.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_2f2){_2e3.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_2f2);},attr:function(name,_2f3){if(_2e0.isDebug){var _2f4=arguments.callee._ach||(arguments.callee._ach={}),_2f5=(arguments.callee.caller||"unknown caller").toString();if(!_2f4[_2f5]){_2e3.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_2f5,"","2.0");_2f4[_2f5]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_2e3.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_2e4("[widgetId]",this.containerNode).map(_2e6.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(!_2e3.isAsync){_2e5(0,function(){var _2f6=["dijit/_base"];require(_2f6);});}return _2f0;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_2f7,_2f8,_2f9,lang){lang.extend(_2f8,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _2f9("dijit._FocusMixin",null,{_focusManager:_2f7});});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(on,_2fa,keys,_2fb,has,_2fc,win){var _2fd=null;if(has("ie")){(function(){var _2fe=function(evt){_2fd=evt.srcElement;};win.doc.attachEvent("onkeydown",_2fe);_2fc.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_2fe);});})();}else{win.doc.addEventListener("keydown",function(evt){_2fd=evt.target;},true);}var _2ff=function(node,_300){if(/input|button/i.test(node.nodeName)){return on(node,"click",_300);}else{function _301(e){return (e.keyCode==keys.ENTER||e.keyCode==keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};var _302=[on(node,"keypress",function(e){if(_301(e)){_2fd=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_301(e)&&e.target==_2fd){_2fd=null;_300.call(this,e);}}),on(node,"click",function(e){_300.call(this,e);})];return {remove:function(){_2fa.forEach(_302,function(h){h.remove();});}};}};return _2fb("dijit._OnDijitClickMixin",null,{connect:function(obj,_303,_304){return this.inherited(arguments,[obj,_303=="ondijitclick"?_2ff:_303,_304]);}});});},"dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo,text){return dojo.cache;});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_305,_306,dom,_307,_308,_309,lang,on,_30a,has,_30b,_30c,win,_30d,a11y,_30e,_30f){var _310=_306([_30b,_309],{curNode:null,activeStack:[],constructor:function(){var _311=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_305.before(_308,"empty",_311);_305.before(_308,"destroy",_311);},registerIframe:function(_312){return this.registerWin(_312.contentWindow,_312);},registerWin:function(_313,_314){var _315=this;var _316=function(evt){_315._justMouseDowned=true;setTimeout(function(){_315._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_315._onTouchNode(_314||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_313.document.documentElement:_313.document;if(doc){if(has("ie")){_313.document.body.attachEvent("onmousedown",_316);var _317=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_315._onFocusNode(_314||evt.srcElement);}else{_315._onTouchNode(_314||evt.srcElement);}};doc.attachEvent("onactivate",_317);var _318=function(evt){_315._onBlurNode(_314||evt.srcElement);};doc.attachEvent("ondeactivate",_318);return {remove:function(){_313.document.detachEvent("onmousedown",_316);doc.detachEvent("onactivate",_317);doc.detachEvent("ondeactivate",_318);doc=null;}};}else{doc.body.addEventListener("mousedown",_316,true);doc.body.addEventListener("touchstart",_316,true);var _319=function(evt){_315._onFocusNode(_314||evt.target);};doc.addEventListener("focus",_319,true);var _31a=function(evt){_315._onBlurNode(_314||evt.target);};doc.addEventListener("blur",_31a,true);return {remove:function(){doc.body.removeEventListener("mousedown",_316,true);doc.body.removeEventListener("touchstart",_316,true);doc.removeEventListener("focus",_319,true);doc.removeEventListener("blur",_31a,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _31b=[];try{while(node){var _31c=_307.get(node,"dijitPopupParent");if(_31c){node=_30e.byId(_31c).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_30d.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_31d=id&&_30e.byId(id);if(_31d&&!(by=="mouse"&&_31d.get("disabled"))){_31b.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_31b,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_31e,by){var _31f=this.activeStack;this.set("activeStack",_31e);for(var _320=0;_320<Math.min(_31f.length,_31e.length);_320++){if(_31f[_320]!=_31e[_320]){break;}}var _321;for(var i=_31f.length-1;i>=_320;i--){_321=_30e.byId(_31f[i]);if(_321){_321._hasBeenBlurred=true;_321.set("focused",false);if(_321._focusManager==this){_321._onBlur(by);}this.emit("widget-blur",_321,by);}}for(i=_320;i<_31e.length;i++){_321=_30e.byId(_31e[i]);if(_321){_321.set("focused",true);if(_321._focusManager==this){_321._onFocus(by);}this.emit("widget-focus",_321,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _322=new _310();_30a(function(){var _323=_322.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_30c.addOnWindowUnload(function(){_323.remove();_323=null;});}});_30f.focus=function(node){_322.focus(node);};for(var attr in _322){if(!/^_/.test(attr)){_30f.focus[attr]=typeof _322[attr]=="function"?lang.hitch(_322,attr):_322[attr];}}_322.watch(function(attr,_324,_325){_30f.focus[attr]=_325;});return _322;});},"dojox/grid/util":function(){define("dojox/grid/util",["../main","dojo/_base/lang","dojo/dom"],function(_326,lang,dom){var dgu=lang.getObject("grid.util",true,_326);dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_327,_328){if(_328>=0){var s=_327.style;var v=_328+"px";if(_327&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_329,_32a,_32b,_32c){var evts=(_32c?_32c:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_32a.connect(_329,"on"+evts[i],_32b);}};dgu.removeNode=function(_32d){_32d=dom.byId(_32d);_32d&&_32d.parentNode&&_32d.parentNode.removeChild(_32d);return _32d;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_32e,_32f,_330){if(_32e.length<=_32f){_32e[_32f]=_330;}else{_32e.splice(_32f,0,_330);}};dgu.arrayRemove=function(_331,_332){_331.splice(_332,1);};dgu.arraySwap=function(_333,inI,inJ){var _334=_333[inI];_333[inI]=_333[inJ];_333[inJ]=_334;};return _326.grid.util;});},"url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"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","dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojo/date/stamp":function(){define(["../_base/kernel","../_base/lang","../_base/array"],function(dojo,lang,_335){lang.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_336,_337){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 _338=dojo.date.stamp._isoRegExp.exec(_336),_339=null;if(_338){_338.shift();if(_338[1]){_338[1]--;}if(_338[6]){_338[6]*=1000;}if(_337){_337=new Date(_337);_335.forEach(_335.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _337["get"+prop]();}),function(_33a,_33b){_338[_33b]=_338[_33b]||_33a;});}_339=new Date(_338[0]||1970,_338[1]||0,_338[2]||1,_338[3]||0,_338[4]||0,_338[5]||0,_338[6]||0);if(_338[0]<100){_339.setFullYear(_338[0]||1970);}var _33c=0,_33d=_338[7]&&_338[7].charAt(0);if(_33d!="Z"){_33c=((_338[8]||0)*60)+(Number(_338[9])||0);if(_33d!="-"){_33c*=-1;}}if(_33d){_33c-=_339.getTimezoneOffset();}if(_33c){_339.setTime(_339.getTime()+_33c*60000);}}return _339;};dojo.date.stamp.toISOString=function(_33e,_33f){var _340=function(n){return (n<10)?"0"+n:n;};_33f=_33f||{};var _341=[],_342=_33f.zulu?"getUTC":"get",date="";if(_33f.selector!="time"){var year=_33e[_342+"FullYear"]();date=["0000".substr((year+"").length)+year,_340(_33e[_342+"Month"]()+1),_340(_33e[_342+"Date"]())].join("-");}_341.push(date);if(_33f.selector!="date"){var time=[_340(_33e[_342+"Hours"]()),_340(_33e[_342+"Minutes"]()),_340(_33e[_342+"Seconds"]())].join(":");var _343=_33e[_342+"Milliseconds"]();if(_33f.milliseconds){time+="."+(_343<100?"0":"")+_340(_343);}if(_33f.zulu){time+="Z";}else{if(_33f.selector!="time"){var _344=_33e.getTimezoneOffset();var _345=Math.abs(_344);time+=(_344>0?"-":"+")+_340(Math.floor(_345/60))+":"+_340(_345%60);}}_341.push(time);}return _341.join("T");};return dojo.date.stamp;});},"url:dojox/grid/resources/View.html":"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n","dojox/grid/_FocusManager":function(){define("dojox/grid/_FocusManager",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/event","dojo/_base/sniff","dojo/query","./util","dojo/_base/html"],function(_346,lang,_347,_348,_349,has,_34a,util,html){return _347("dojox.grid._FocusManager",null,{constructor:function(_34b){this.grid=_34b;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(_348.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(_348.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(_348.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(_348.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(_348.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(_348.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(_348.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(_348.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(_348.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){_346.forEach(this._connects,_348.disconnect);_346.forEach(this._headerConnects,_348.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_34c,_34d){return (this.cell==_34c)&&(this.rowIndex==_34d);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return _346.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_34e){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){html.toggleClass(n,this.focusClass,_34e);if(_34e){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid.focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){html.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){_346.forEach(this._headerConnects,_348.disconnect);this._headerConnects=[];var _34f=this._findHeaderCells();for(var i=0;i<_34f.length;i++){this._headerConnects.push(_348.connect(_34f[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(_348.connect(_34f[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _350=_34a("th",this.grid.viewsHeaderNode);var _351=[];for(var i=0;i<_350.length;i++){var _352=_350[i];var _353=html.hasAttr(_352,"tabIndex");var _354=html.attr(_352,"tabIndex");if(_353&&_354<0){_351.push(_352);}}return _351;},_setActiveColHeader:function(_355,_356,_357){this.grid.domNode.setAttribute("aria-activedescendant",_355.id);if(_357!=null&&_357>=0&&_357!=_356){html.toggleClass(this._findHeaderCells()[_357],this.focusClass,false);}html.toggleClass(_355,this.focusClass,true);this._colHeadNode=_355;this._colHeadFocusIdx=_356;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_358){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_358?_358:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_359){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_359);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _35a=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_35a){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(has("ie")<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _35b=this.focusView;if(!_35b){for(var i=0,_35c;(_35c=this.grid.views.views[i]);i++){if(_35c.headerNode){_35b=_35c;break;}}}return (_35b&&html.getComputedStyle(_35b.headerNode).display=="none");},colSizeAdjust:function(e,_35d,_35e){var _35f=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_360;(_360=this.grid.views.views[i]);i++){if(_360.header.tableMap.map){view=_360;break;}}}var _361=_35f[_35d];if(!view||(_35d==_35f.length-1&&_35d===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_361;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _362={l:_35e};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_362);view.update();}},styleRow:function(_363){return;},setFocusIndex:function(_364,_365){this.setFocusCell(this.grid.getCell(_365),_364);},setFocusCell:function(_366,_367){if(_366&&!this.isFocusCell(_366,_367)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_366;this.rowIndex=_367;this._focusifyCellNode(true);}if(has("opera")){setTimeout(lang.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _368=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_368.editable||this.grid.canEdit&&!this.grid.canEdit(_368,row))){this.cell=_368;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _369=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_369.editable){this.cell=_369;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_36a,_36b){var _36c=_36b<0?-1:1;if(this.isNavHeader()){var _36d=this._findHeaderCells();var _36e=currentIdx=_346.indexOf(_36d,this._colHeadNode);currentIdx+=_36b;while(currentIdx>=0&&currentIdx<_36d.length&&_36d[currentIdx].style.display=="none"){currentIdx+=_36c;}if((currentIdx>=0)&&(currentIdx<_36d.length)){this._setActiveColHeader(_36d[currentIdx],currentIdx,_36e);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_36a));if(_36a){if(_36a>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_36a<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_36b));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_36c;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_36a){if((row+_36a)>=0&&(row+_36a)<=rc){this.move(_36a>0?++_36a:--_36a,_36b);}return;}else{if((!n||html.style(n,"display")==="none")&&_36b){if((col+_36a)>=0&&(col+_36a)<=cc){this.move(_36a,_36b>0?++_36b:--_36b);}return;}}this.setFocusIndex(row,col);if(_36a){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){_349.stop(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();_349.stop(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){html.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _36f=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();_349.stop(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){_349.stop(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_370){this.tabbingOut=true;_370.focus();},focusGridView:function(){util.fire(this.focusView,"focus");},focusGrid:function(_371){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _372=true;var _373=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_373){var _374=0;var cell=this.grid.getCell(_374);if(cell.hidden){_374=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_374);}else{if(this.cell&&!_373){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_372=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _372;},focusHeader:function(){var _375=this._findHeaderCells();var _376=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_375[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_375.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_375[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_376);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){html.removeClass(this._colHeadNode,this.focusClass);html.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _377=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_377);this._contextMenuBindNode=_377;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){_349.stop(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;_349.stop(e);},doBlur:function(e){_349.stop(e);},doContextMenu:function(e){if(!this.headerMenu){_349.stop(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;_349.stop(e);},doLastNodeBlur:function(e){_349.stop(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,html.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());_349.stop(e);},doColHeaderBlur:function(e){html.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});});},"dijit/MenuItem":function(){require({cache:{"url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdata-dojo-attach-event=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"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"}});define("dijit/MenuItem",["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/event","dojo/_base/kernel","dojo/_base/sniff","./_Widget","./_TemplatedMixin","./_Contained","./_CssStateMixin","dojo/text!./templates/MenuItem.html"],function(_378,dom,_379,_37a,_37b,_37c,has,_37d,_37e,_37f,_380,_381){return _378("dijit.MenuItem",[_37d,_37e,_37f,_380],{templateString:_381,baseClass:"dijitMenuItem",label:"",_setLabelAttr:{node:"containerNode",type:"innerHTML"},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:false,_fillContent:function(_382){if(_382&&!("label" in this.params)){this.set("label",_382.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _383=this.id+"_text";_379.set(this.containerNode,"id",_383);if(this.accelKeyNode){_379.set(this.accelKeyNode,"id",this.id+"_accel");_383+=" "+this.id+"_accel";}this.domNode.setAttribute("aria-labelledby",_383);dom.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);_37b.stop(evt);},onClick:function(){},focus:function(){try{if(has("ie")==8){this.containerNode.focus();}this.focusNode.focus();}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_384){_37a.toggle(this.domNode,"dijitMenuItemSelected",_384);},setLabel:function(_385){_37c.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_385);},setDisabled:function(_386){_37c.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_386);},_setDisabledAttr:function(_387){this.focusNode.setAttribute("aria-disabled",_387?"true":"false");this._set("disabled",_387);},_setAccelKeyAttr:function(_388){this.accelKeyNode.style.display=_388?"":"none";this.accelKeyNode.innerHTML=_388;_379.set(this.containerNode,"colSpan",_388?"1":"2");this._set("accelKey",_388);}});});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window"],function(lang,_389,_38a,_38b,_38c,_38d,_38e,_38f,has,_390,win){var _391=_38e("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _392=this.declaredClass,_393=this;return _38b.substitute(tmpl,this,function(_394,key){if(key.charAt(0)=="!"){_394=lang.getObject(key.substr(1),false,_393);}if(typeof _394=="undefined"){throw new Error(_392+" template:"+key);}if(_394==null){return "";}return key.charAt(0)=="!"?_394:_394.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_38c(this.templatePath,{sanitize:true});}var _395=_391.getCachedTemplate(this.templateString,this._skipNodeCache);var node;if(lang.isString(_395)){node=_38f.toDom(this._stringRepl(_395));if(node.nodeType!=1){throw new Error("Invalid template: "+_395);}}else{node=_395.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_396){var dest=this.containerNode;if(_396&&dest){while(_396.hasChildNodes()){dest.appendChild(_396.firstChild);}}},_attachTemplateNodes:function(_397,_398){var _399=lang.isArray(_397)?_397:(_397.all||_397.getElementsByTagName("*"));var x=lang.isArray(_397)?0:-1;for(;x<_399.length;x++){var _39a=(x==-1)?_397:_399[x];if(this.widgetsInTemplate&&(_398(_39a,"dojoType")||_398(_39a,"data-dojo-type"))){continue;}var _39b=_398(_39a,"dojoAttachPoint")||_398(_39a,"data-dojo-attach-point");if(_39b){var _39c,_39d=_39b.split(/\s*,\s*/);while((_39c=_39d.shift())){if(lang.isArray(this[_39c])){this[_39c].push(_39a);}else{this[_39c]=_39a;}this._attachPoints.push(_39c);}}var _39e=_398(_39a,"dojoAttachEvent")||_398(_39a,"data-dojo-attach-event");if(_39e){var _39f,_3a0=_39e.split(/\s*,\s*/);var trim=lang.trim;while((_39f=_3a0.shift())){if(_39f){var _3a1=null;if(_39f.indexOf(":")!=-1){var _3a2=_39f.split(":");_39f=trim(_3a2[0]);_3a1=trim(_3a2[1]);}else{_39f=trim(_39f);}if(!_3a1){_3a1=_39f;}this._attachEvents.push(this.connect(_39a,_389[_39f]||_39f,_3a1));}}}}},destroyRendering:function(){_38d.forEach(this._attachPoints,function(_3a3){delete this[_3a3];},this);this._attachPoints=[];_38d.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_391._templateCache={};_391.getCachedTemplate=function(_3a4,_3a5){var _3a6=_391._templateCache;var key=_3a4;var _3a7=_3a6[key];if(_3a7){try{if(!_3a7.ownerDocument||_3a7.ownerDocument==win.doc){return _3a7;}}catch(e){}_38f.destroy(_3a7);}_3a4=_38b.trim(_3a4);if(_3a5||_3a4.match(/\$\{([^\}]+)\}/g)){return (_3a6[key]=_3a4);}else{var node=_38f.toDom(_3a4);if(node.nodeType!=1){throw new Error("Invalid template: "+_3a4);}return (_3a6[key]=node);}};if(has("ie")){_390.addOnWindowUnload(function(){var _3a8=_391._templateCache;for(var key in _3a8){var _3a9=_3a8[key];if(typeof _3a9=="object"){_38f.destroy(_3a9);}delete _3a8[key];}});}lang.extend(_38a,{dojoAttachEvent:"",dojoAttachPoint:""});return _391;});},"dojox/grid/_SelectionPreserver":function(){define("dojox/grid/_SelectionPreserver",["dojo/_base/declare","dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(_3aa,_3ab,lang,_3ac){return _3aa("dojox.grid._SelectionPreserver",null,{constructor:function(_3ad){this.selection=_3ad;var grid=this.grid=_3ad.grid;this.reset();this._connects=[_3ab.connect(grid,"_setStore",this,"reset"),_3ab.connect(grid,"_addItem",this,"_reSelectById"),_3ab.connect(_3ad,"addToSelection",lang.hitch(this,"_selectById",true)),_3ab.connect(_3ad,"deselect",lang.hitch(this,"_selectById",false)),_3ab.connect(_3ad,"deselectAll",this,"reset")];},destroy:function(){this.reset();_3ac.forEach(this._connects,_3ab.disconnect);delete this._connects;},reset:function(){this._selectedById={};},_reSelectById:function(item,_3ae){if(item&&this.grid._hasIdentity){this.selection.selected[_3ae]=this._selectedById[this.grid.store.getIdentity(item)];}},_selectById:function(_3af,_3b0){if(this.selection.mode=="none"||!this.grid._hasIdentity){return;}var item=_3b0,g=this.grid;if(typeof _3b0=="number"||typeof _3b0=="string"){var _3b1=g._by_idx[_3b0];item=_3b1&&_3b1.item;}if(item){this._selectedById[g.store.getIdentity(item)]=!!_3af;}return item;}});});},"dojo/window":function(){define(["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_3b2,dom,geom,_3b3){var _3b4=lang.getObject("dojo.window",true);_3b4.getBox=function(){var _3b5=(_3b2.doc.compatMode=="BackCompat")?_3b2.body():_3b2.doc.documentElement,_3b6=geom.docScroll(),w,h;if(has("touch")){var _3b7=_3b2.doc.parentWindow||_3b2.doc.defaultView;w=_3b7.innerWidth||_3b5.clientWidth;h=_3b7.innerHeight||_3b5.clientHeight;}else{w=_3b5.clientWidth;h=_3b5.clientHeight;}return {l:_3b6.x,t:_3b6.y,w:w,h:h};};_3b4.get=function(doc){if(has("ie")&&_3b4!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_3b4.scrollIntoView=function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_3b2.doc,body=doc.body||_3b2.body(),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _3b8=doc.compatMode=="BackCompat",_3b9=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_3b8?body:html),_3ba=isWK?body:_3b9,_3bb=_3b9.clientWidth,_3bc=_3b9.clientHeight,rtl=!geom.isBodyLtr(),_3bd=pos||geom.position(node),el=node.parentNode,_3be=function(el){return ((isIE<=6||(isIE&&_3b8))?false:(_3b3.get(el,"position").toLowerCase()=="fixed"));};if(_3be(node)){return;}while(el){if(el==body){el=_3ba;}var _3bf=geom.position(el),_3c0=_3be(el);if(el==_3ba){_3bf.w=_3bb;_3bf.h=_3bc;if(_3ba==html&&isIE&&rtl){_3bf.x+=_3ba.offsetWidth-_3bf.w;}if(_3bf.x<0||!isIE){_3bf.x=0;}if(_3bf.y<0||!isIE){_3bf.y=0;}}else{var pb=geom.getPadBorderExtents(el);_3bf.w-=pb.w;_3bf.h-=pb.h;_3bf.x+=pb.l;_3bf.y+=pb.t;var _3c1=el.clientWidth,_3c2=_3bf.w-_3c1;if(_3c1>0&&_3c2>0){_3bf.w=_3c1;_3bf.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_3c2:0;}_3c1=el.clientHeight;_3c2=_3bf.h-_3c1;if(_3c1>0&&_3c2>0){_3bf.h=_3c1;}}if(_3c0){if(_3bf.y<0){_3bf.h+=_3bf.y;_3bf.y=0;}if(_3bf.x<0){_3bf.w+=_3bf.x;_3bf.x=0;}if(_3bf.y+_3bf.h>_3bc){_3bf.h=_3bc-_3bf.y;}if(_3bf.x+_3bf.w>_3bb){_3bf.w=_3bb-_3bf.x;}}var l=_3bd.x-_3bf.x,t=_3bd.y-Math.max(_3bf.y,0),r=l+_3bd.w-_3bf.w,bot=t+_3bd.h-_3bf.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_3b8)||isIE>=9)){s=-s;}_3bd.x+=el.scrollLeft;el.scrollLeft+=s;_3bd.x-=el.scrollLeft;}if(bot*t>0){_3bd.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_3bd.y-=el.scrollTop;}el=(el!=_3ba)&&!_3c0&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};return _3b4;});},"dojox/grid/_Builder":function(){define("dojox/grid/_Builder",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/window","dojo/_base/event","dojo/_base/sniff","dojo/_base/connect","dojo/dnd/Moveable","dojox/html/metrics","./util","dojo/_base/html"],function(_3c3,_3c4,lang,win,_3c5,has,_3c6,_3c7,_3c8,util,html){var dg=_3c3.grid;var _3c9=function(td){return td.cellIndex>=0?td.cellIndex:_3c4.indexOf(td.parentNode.cells,td);};var _3ca=function(tr){return tr.rowIndex>=0?tr.rowIndex:_3c4.indexOf(tr.parentNode.childNodes,tr);};var _3cb=function(_3cc,_3cd){return _3cc&&((_3cc.rows||0)[_3cd]||_3cc.childNodes[_3cd]);};var _3ce=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _3cf=function(_3d0,_3d1){for(var n=_3d0;n&&_3d1(n);n=n.parentNode){}return n;};var _3d2=function(_3d3){var name=_3d3.toUpperCase();return function(node){return node.tagName!=name;};};var _3d4=util.rowIndexTag;var _3d5=util.gridViewTag;var _3d6=dg._Builder=lang.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_3d7,_3d8,_3d9,_3da){var _3db=[],html;if(_3da){var _3dc=_3d7.index!=_3d7.grid.getSortIndex()?"":_3d7.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_3d7.id){_3d7.id=this.grid.id+"Hdr"+_3d7.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_3dc,"id=\"",_3d7.id,"\""];}else{var _3dd=this.grid.editable&&!_3d7.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_3dd];}if(_3d7.colSpan){html.push(" colspan=\"",_3d7.colSpan,"\"");}if(_3d7.rowSpan){html.push(" rowspan=\"",_3d7.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_3d7.classes){html.push(_3d7.classes," ");}if(_3d9){html.push(_3d9," ");}_3db.push(html.join(""));_3db.push("");html=["\" idx=\"",_3d7.index,"\" style=\""];if(_3d8&&_3d8[_3d8.length-1]!=";"){_3d8+=";";}html.push(_3d7.styles,_3d8||"",_3d7.hidden?"display:none;":"");if(_3d7.unitWidth){html.push("width:",_3d7.unitWidth,";");}_3db.push(html.join(""));_3db.push("");html=["\""];if(_3d7.attrs){html.push(" ",_3d7.attrs);}html.push(">");_3db.push(html.join(""));_3db.push("");_3db.push(_3da?"</th>":"</td>");return _3db;},isCellNode:function(_3de){return Boolean(_3de&&_3de!=win.doc&&html.attr(_3de,"idx"));},getCellNodeIndex:function(_3df){return _3df?Number(html.attr(_3df,"idx")):-1;},getCellNode:function(_3e0,_3e1){for(var i=0,row;((row=_3cb(_3e0.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_3e1){return cell;}}}return null;},findCellTarget:function(_3e2,_3e3){var n=_3e2;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_3d5 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_3d5]!=this.view.id))&&(n!=_3e3)){n=n.parentNode;}return n!=_3e3?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_3e4,_3e5){var n=_3e4;while(n&&(n!=this.domNode)&&(!(_3e5 in n)||(_3d5 in n&&n[_3d5]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_3e6){return this.findTarget(_3e6,_3d4);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&html.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});var _3e7=dg._ContentBuilder=lang.extend(function(view){_3d6.call(this,view);},_3d6.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _3e8=this.grid.get,_3e9=this.view.structure.cells;for(var j=0,row;(row=_3e9[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_3e8;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_3ea,_3eb){var html=this.getTableArray(),v=this.view,_3ec=v.structure.cells,item=this.grid.getItem(_3eb);util.fire(this.view,"onBeforeRow",[_3eb,_3ec]);for(var j=0,row;(row=_3ec[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_3eb,item);if(has("ie")<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_3d4];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});var _3ed=dg._HeaderBuilder=lang.extend(function(view){this.moveable=null;_3d6.call(this,view);},_3d6.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_3ee,_3ef){var html=this.getTableArray(),_3f0=this.view.structure.cells;util.fire(this.view,"onBeforeRow",[-1,_3f0]);for(var j=0,row;(row=_3f0[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_3f1;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_3f1=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_3f1[5]=(_3ef!=undefined?_3ef:_3ee(cell));_3f1[3]=cell.customStyles.join(";");_3f1[1]=cell.customClasses.join(" ");html.push(_3f1.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(has("mozilla")||has("ie")>=9){n=_3cf(e.target,_3d2("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!this.grid.isLeftToRight()){table=_3cf(n,_3d2("table"));x-=(table&&table.offsetLeft)||0;}}n=_3cf(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=e.cellIndex;e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}html.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));html.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(c){_3c5.stop(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){_3c5.stop(e);return true;}return false;},colResizeSetup:function(e,_3f2){var _3f3=html.contentBox(e.sourceView.headerNode);if(_3f2){this.lineDiv=document.createElement("div");var vw=html.position(e.sourceView.headerNode,true);var _3f4=html.contentBox(e.sourceView.domNode);var l=e.pageX;if(!this.grid.isLeftToRight()&&has("ie")<8){l-=_3c8.getScrollbar().w;}html.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_3f4.h+_3f3.h)+"px"});html.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;win.body().appendChild(this.lineDiv);}var _3f5=[],_3f6=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_3f6[i]);i++){_3f5.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=this.grid.isLeftToRight()?1:-1;var _3f7=e.grid.views.views;var _3f8=[];for(var j=view.idx+adj,_3f9;(_3f9=_3f7[j]);j=j+adj){_3f8.push({node:_3f9.headerNode,left:window.parseInt(_3f9.headerNode.style.left)});}var _3fa=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:html.contentBox(e.cellNode).w,vw:_3f3.w,table:_3fa,tw:html.contentBox(_3fa).w,spanners:_3f5,followers:_3f8};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");html.style(this.moverDiv,{position:"absolute",left:0});win.body().appendChild(this.moverDiv);html.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new _3c7(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=lang.hitch(this,"doResizeColumn",drag);_3c6.connect(m,"onMoveStop",lang.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;html.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_3fb,_3fc,_3fd){var _3fe=_3fd.l;var data={deltaX:_3fe,w:_3fb.w+(this.grid.isLeftToRight()?_3fe:-_3fe),vw:_3fb.vw+_3fe,tw:_3fb.tw+_3fe};this.dragRecord={inDrag:_3fb,mover:_3fc,leftTop:_3fd};if(data.w>=this.minColWidth){if(!_3fc){this.doResizeNow(_3fb,data);}else{html.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_3ff){if(this.dragRecord){var _400=this.dragRecord.leftTop;var _401=this.grid.isLeftToRight()?_400.l:-_400.l;_401+=Math.max(_3ff.w+_401,this.minColWidth)-(_3ff.w+_401);if(has("webkit")&&_3ff.spanners.length){_401+=html._getPadBorderExtents(_3ff.spanners[0].node).w;}var data={deltaX:_401,w:_3ff.w+_401,vw:_3ff.vw+_401,tw:_3ff.tw+_401};this.doResizeNow(_3ff,data);delete this.dragRecord;}html.destroy(this.lineDiv);html.destroy(this.moverDiv);html.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_3ff.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_3ff.index);},doResizeNow:function(_402,data){_402.view.convertColPctToFixed();if(_402.view.flexCells&&!_402.view.testFlexCells()){var t=_3ce(_402.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_402.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_402.view.setColWidth(s.index,sw);}}if(this.grid.isLeftToRight()||!has("ie")){for(i=0;(f=_402.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_402.node.style.width=data.w+"px";_402.view.setColWidth(_402.index,data.w);_402.view.headerNode.style.width=data.vw+"px";_402.view.setColumnsWidth(data.tw);if(!this.grid.isLeftToRight()){_402.view.headerNode.scrollLeft=_402.scrollLeft+data.deltaX;}}});dg._TableMap=lang.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_403){var _404=_403.length;if(!_404){return;}this.map=[];var row;for(var k=0;(row=_403[k]);k++){this.map[k]=[];}for(var j=0;(row=_403[j]);j++){for(var i=0,x=0,cell,_405,_406;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_406=cell.rowSpan||1;_405=cell.colSpan||1;for(var y=0;y<_406;y++){for(var s=0;s<_405;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_405;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_407,_408){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_408&&cell.r==_407){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_409,_40a,_40b){var row=_409&&_409.rows[_40a];return row&&row.cells[_40b];},_findOverlappingNodes:function(_40c,_40d,_40e){var _40f=[];var m=this.getMapCoords(_40d,_40e);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_40c,rw.r,rw.c):null);if(n){_40f.push(n);}}return _40f;},findOverlappingNodes:function(_410){return this._findOverlappingNodes(_3ce(_410),_3ca(_410.parentNode),_3c9(_410));}});return {_Builder:_3d6,_HeaderBuilder:_3ed,_ContentBuilder:_3e7};});},"dojo/dnd/Source":function(){define(["../main","./Selector","./Manager"],function(dojo,_411,_412){if(!dojo.isAsync){dojo.ready(0,function(){var _413=["dojo/dnd/AutoSource","dojo/dnd/Target"];require(_413);});}return dojo.declare("dojo.dnd.Source",_411,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_414){dojo.mixin(this,dojo.mixin({},_414));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_415,_416){if(this==_415){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_416.length;++i){var type=_415.getItem(_416[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_417,self){if(_417){return true;}if(arguments.length<2){self=this==_412.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=_412.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _418=this.getSelectedNodes();if(_418.length){m.startDrag(this,_418,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _419=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_419=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_419=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_419!=this.before){this._markTargetAnchor(_419);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_41a){if(this!=_41a){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=_412.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_41b,_41c,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_41b?(copy?"Copied":"Moved"):"");}var _41d=this.accept&&this.checkAcceptance(_41b,_41c);this._changeState("Target",_41d?"":"Disabled");if(this==_41b){_412.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_41e,_41f,copy,_420){if(this==_420){this.onDrop(_41e,_41f,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_421,_422,copy){if(this!=_421){this.onDropExternal(_421,_422,copy);}else{this.onDropInternal(_422,copy);}},onDropExternal:function(_423,_424,copy){var _425=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _425.call(this,_423.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_423.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_423.getItem(node.id);_423.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_423.selectNone();}this.insertNodes(true,_424,this.before,this.current);if(!copy&&this.creator){_423.deleteSelectedNodes();}this._normalizedCreator=_425;},onDropInternal:function(_426,copy){var _427=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _427.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_426,this.before,this.current);this._normalizedCreator=_427;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);_412.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);_412.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_428){if(this.current==this.targetAnchor&&this.before==_428){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_428;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});});},"dojox/grid/cells/_base":function(){define("dojox/grid/cells/_base",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/_base/event","dojo/_base/connect","dojo/_base/array","dojo/_base/sniff","dojo/dom","dojo/dom-attr","dojo/dom-construct","dijit/_Widget","../util"],function(dojo,_429,lang,_42a,_42b,_42c,has,dom,_42d,_42e,_42f,util){var _430=_429("dojox.grid._DeferredTextWidget",_42f,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(lang.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});var _431=function(_432){try{util.fire(_432,"focus");util.fire(_432,"select");}catch(e){}};var _433=function(){setTimeout(lang.hitch.apply(dojo,arguments),0);};var _434=_429("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_435){this._props=_435||{};lang.mixin(this,_435);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_436,_437){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_436!=this.defaultValue&&f)?f.apply(s,_437):_436;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new _430({deferred:v},_42e.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_438,_439){var f,i=this.grid.edit.info,d=this.get?this.get(_438,_439):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_438&&i.cell==this))){return this.formatEditing(d,_438);}else{return this._defaultFormat(d,[d,_438,this]);}},formatEditing:function(_43a,_43b){},getNode:function(_43c){return this.view.getCellNode(_43c,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_43d){return (this.getNode(_43d)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&lang.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_43e,_43f){this.grid.edit.applyCellEdit(_43e,this,_43f);},cancelEdit:function(_440){this.grid.doCancelEdit(_440);},_onEditBlur:function(_441){if(this.grid.edit.isEditCell(_441,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_442,_443){if(this.commitOnBlur){_42b.connect(_442,"onblur",function(e){setTimeout(lang.hitch(this,"_onEditBlur",_443),250);});}},needFormatNode:function(_444,_445){this._formatPending=true;_433(this,"_formatNode",_444,_445);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_446,_447){if(this._formatPending){this._formatPending=false;if(!has("ie")){dom.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_447),_446,_447);}},formatNode:function(_448,_449,_44a){if(has("ie")){_433(this,"focus",_44a,_448);}else{this.focus(_44a,_448);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_44b){return this.getEditNode(_44b)[this._valueProp];},setValue:function(_44c,_44d){var n=this.getEditNode(_44c);if(n){n[this._valueProp]=_44d;}},focus:function(_44e,_44f){_431(_44f||this.getEditNode(_44e));},save:function(_450){this.value=this.value||this.getValue(_450);},restore:function(_451){this.setValue(_451,this.value);},_finish:function(_452){dom.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_453){this.applyEdit(this.getValue(_453),_453);this._finish(_453);},cancel:function(_454){this.cancelEdit(_454);this._finish(_454);}});_434.markupFactory=function(node,_455){var _456=lang.trim(_42d.get(node,"formatter")||"");if(_456){_455.formatter=lang.getObject(_456)||_456;}var get=lang.trim(_42d.get(node,"get")||"");if(get){_455.get=lang.getObject(get);}var _457=function(attr,cell,_458){var _459=lang.trim(_42d.get(node,attr)||"");if(_459){cell[_458||attr]=!(_459.toLowerCase()=="false");}};_457("sortDesc",_455);_457("editable",_455);_457("alwaysEditing",_455);_457("noresize",_455);_457("draggable",_455);var _45a=lang.trim(_42d.get(node,"loadingText")||_42d.get(node,"defaultValue")||"");if(_45a){_455.defaultValue=_45a;}var _45b=function(attr,cell,_45c){var _45d=lang.trim(_42d.get(node,attr)||"")||undefined;if(_45d){cell[_45c||attr]=_45d;}};_45b("styles",_455);_45b("headerStyles",_455);_45b("cellStyles",_455);_45b("classes",_455);_45b("headerClasses",_455);_45b("cellClasses",_455);};var Cell=_429("dojox.grid.cells.Cell",_434,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_45e,_45f){this.needFormatNode(_45e,_45f);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_45e+"\">";},formatNode:function(_460,_461,_462){this.inherited(arguments);this.registerOnBlur(_460,_462);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){_42a.stop(e);}}},_finish:function(_463){this.inherited(arguments);var n=this.getEditNode(_463);try{util.fire(n,"blur");}catch(e){}}});Cell.markupFactory=function(node,_464){_434.markupFactory(node,_464);var _465=lang.trim(_42d.get(node,"keyFilter")||"");if(_465){_464.keyFilter=new RegExp(_465);}};var _466=_429("dojox.grid.cells.RowIndex",Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_467){return _467+1;}});_466.markupFactory=function(node,_468){Cell.markupFactory(node,_468);};var _469=_429("dojox.grid.cells.Select",Cell,{options:null,values:null,returnIndex:-1,constructor:function(_46a){this.values=this.values||this.options;},formatEditing:function(_46b,_46c){this.needFormatNode(_46b,_46c);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_46b==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},_defaultFormat:function(_46d,_46e){var v=this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var i=_42c.indexOf(this.values,v);if(i>=0){v=this.options[i];}}return v;},getValue:function(_46f){var n=this.getEditNode(_46f);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});_469.markupFactory=function(node,cell){Cell.markupFactory(node,cell);var _470=lang.trim(_42d.get(node,"options")||"");if(_470){var o=_470.split(",");if(o[0]!=_470){cell.options=o;}}var _471=lang.trim(_42d.get(node,"values")||"");if(_471){var v=_471.split(",");if(v[0]!=_471){cell.values=v;}}};var _472=_429("dojox.grid.cells.AlwaysEdit",Cell,{alwaysEditing:true,_formatNode:function(_473,_474){this.formatNode(this.getEditNode(_474),_473,_474);},applyStaticValue:function(_475){var e=this.grid.edit;e.applyCellEdit(this.getValue(_475),this,_475);e.start(this,_475,true);}});_472.markupFactory=function(node,cell){Cell.markupFactory(node,cell);};var Bool=_429("dojox.grid.cells.Bool",_472,{_valueProp:"checked",formatEditing:function(_476,_477){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_476?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});Bool.markupFactory=function(node,cell){_472.markupFactory(node,cell);};return _434;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_478,_479,_47a,_47b,_47c,_47d,dom,_47e,_47f,_480,_481,_482,_483,lang,on,_484,_485,_486,win,_487){if(!_483.isAsync){_484(0,function(){var _488=["dijit/_base/manager"];_478(_488);});}var _489={};function _48a(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _48b(attr){return function(val){_47e[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _47d("dijit._WidgetBase",_485,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_48b("lang"),dir:"",_setDirAttr:_48b("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_47b.blankGif||_478.toUrl("dojo/resources/blank.gif"),postscript:function(_48c,_48d){this.create(_48c,_48d);},create:function(_48e,_48f){this.srcNodeRef=dom.byId(_48f);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_48e){this.params=_48e;lang.mixin(this,_48e);}this.postMixInProperties();if(!this.id){this.id=_487.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_487.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _490=this.srcNodeRef;if(_490&&_490.parentNode&&this.domNode!==_490){_490.parentNode.replaceChild(this.domNode,_490);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _491=ctor.prototype;for(var _492 in _491){if(_492 in this.attributeMap){continue;}var _493="_set"+_492.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_493 in _491){list.push(_492);}}}_479.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _494 in this.params){this.set(_494,this[_494]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_480.create("div");}if(this.baseClass){var _495=this.baseClass.split(" ");if(!this.isLeftToRight()){_495=_495.concat(_479.map(_495,function(name){return name+"Rtl";}));}_47f.add(this.domNode,_495);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_479.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_496){this._beingDestroyed=true;this.destroyDescendants(_496);this.destroy(_496);},destroy:function(_497){this._beingDestroyed=true;this.uninitialize();var c;while(c=this._connects.pop()){c.remove();}var w;while(w=this._supportingWidgets.pop()){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_497);_487.remove(this.id);this._destroyed=true;},destroyRendering:function(_498){if(this.bgIframe){this.bgIframe.destroy(_498);delete this.bgIframe;}if(this.domNode){if(_498){_47e.remove(this.domNode,"widgetId");}else{_480.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_498){_480.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_499){_479.forEach(this.getChildren(),function(_49a){if(_49a.destroyRecursive){_49a.destroyRecursive(_499);}});},uninitialize:function(){return false;},_setStyleAttr:function(_49b){var _49c=this.domNode;if(lang.isObject(_49b)){_482.set(_49c,_49b);}else{if(_49c.style.cssText){_49c.style.cssText+="; "+_49b;}else{_49c.style.cssText=_49b;}}this._set("style",_49b);},_attrToDom:function(attr,_49d,_49e){_49e=arguments.length>=3?_49e:this.attributeMap[attr];_479.forEach(lang.isArray(_49e)?_49e:[_49e],function(_49f){var _4a0=this[_49f.node||_49f||"domNode"];var type=_49f.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_49d)){_49d=lang.hitch(this,_49d);}var _4a1=_49f.attribute?_49f.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_47e.set(_4a0,_4a1,_49d);break;case "innerText":_4a0.innerHTML="";_4a0.appendChild(win.doc.createTextNode(_49d));break;case "innerHTML":_4a0.innerHTML=_49d;break;case "class":_47f.replace(_4a0,_49d,this[attr]);break;}},this);},get:function(name){var _4a2=this._getAttrNames(name);return this[_4a2.g]?this[_4a2.g]():this[name];},set:function(name,_4a3){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _4a4=this._getAttrNames(name),_4a5=this[_4a4.s];if(lang.isFunction(_4a5)){var _4a6=_4a5.apply(this,Array.prototype.slice.call(arguments,1));}else{var _4a7=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_4a7].tagName,_4a8=_489[tag]||(_489[tag]=_48a(this[_4a7])),map=name in this.attributeMap?this.attributeMap[name]:_4a4.s in this?this[_4a4.s]:((_4a4.l in _4a8&&typeof _4a3!="function")||/^aria-|^data-|^role$/.test(name))?_4a7:null;if(map!=null){this._attrToDom(name,_4a3,map);}this._set(name,_4a3);}return _4a6||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_4a9){var _4aa=this[name];this[name]=_4a9;if(this._watchCallbacks&&this._created&&_4a9!==_4aa){this._watchCallbacks(name,_4aa,_4a9);}},on:function(type,func){return _47a.after(this,this._onMap(type),func,true);},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_487.findWidgets(this.containerNode):[];},getParent:function(){return _487.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_4ab,_4ac){var _4ad=_47c.connect(obj,_4ab,this,_4ac);this._connects.push(_4ad);return _4ad;},disconnect:function(_4ae){var i=_479.indexOf(this._connects,_4ae);if(i!=-1){_4ae.remove();this._connects.splice(i,1);}},subscribe:function(t,_4af){var _4b0=_486.subscribe(t,lang.hitch(this,_4af));this._connects.push(_4b0);return _4b0;},unsubscribe:function(_4b1){this.disconnect(_4b1);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_481.isBodyLtr();},isFocusable:function(){return this.focus&&(_482.get(this.domNode,"display")!="none");},placeAt:function(_4b2,_4b3){if(_4b2.declaredClass&&_4b2.addChild){_4b2.addChild(this,_4b3);}else{_480.place(this.domNode,_4b2,_4b3);}return this;},getTextDir:function(text,_4b4){return _4b4;},applyTextDir:function(){}});});},"dojo/dnd/Moveable":function(){define(["../main","../Evented","../touch","./Mover"],function(dojo,_4b5,_4b6){dojo.declare("dojo.dnd.Moveable",[_4b5],{handle:"",delay:0,skip:false,constructor:function(node,_4b7){this.node=dojo.byId(node);if(!_4b7){_4b7={};}this.handle=_4b7.handle?dojo.byId(_4b7.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_4b7.delay>0?_4b7.delay:0;this.skip=_4b7.skip;this.mover=_4b7.mover?_4b7.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,_4b6.press,this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_4b8,node,ctor){return new ctor(node,_4b8);},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,_4b6.move,this,"onMouseMove"),dojo.connect(this.handle,_4b6.release,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(_4b9){dojo.publish("/dnd/move/start",[_4b9]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_4ba){dojo.publish("/dnd/move/stop",[_4ba]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_4bb,e){},onMove:function(_4bc,_4bd,e){this.onMoving(_4bc,_4bd);var s=_4bc.node.style;s.left=_4bd.l+"px";s.top=_4bd.t+"px";this.onMoved(_4bc,_4bd);},onMoving:function(_4be,_4bf){},onMoved:function(_4c0,_4c1){}});return dojo.dnd.Moveable;});}}});require(["dojo/i18n"],function(i18n){i18n._preloadLocalizations("dojox/grid/nls/DataGrid",["nl-nl","en-us","da","fi-fi","pt-pt","hu","sk","sl","pl","ca","sv","zh-tw","ar","en-gb","he-il","de-de","ko-kr","ja-jp","nb","ru","es-es","th","cs","it-it","pt-br","fr-fr","el","tr","zh-cn"]);});define("dojox/grid/DataGrid",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/json","dojo/_base/sniff","dojo/_base/declare","./_Grid","./DataSelection","dojo/_base/html"],function(_4c2,_4c3,lang,json,has,_4c4,_4c5,_4c6,html){var _4c7=_4c4("dojox.grid.DataGrid",_4c5,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,keepSelection:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},destroy:function(){this.selection.destroy();this.inherited(arguments);},createSelection:function(){this.selection=new _4c6(this);},get:function(_4c8,_4c9){if(_4c9&&this.field=="_item"&&!this.fields){return _4c9;}else{if(_4c9&&this.fields){var ret=[];var s=this.grid.store;_4c3.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_4c9,f));});return ret;}else{if(!_4c9&&typeof _4c8==="string"){return this.inherited(arguments);}}}return (!_4c9?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_4c9:this.grid.store.getValue(_4c9,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _4ca=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_4ca=true;}if(!this.updating){this.beginUpdate();_4ca=true;}if(_4ca){var _4cb=this;this._endUpdateDelay=setTimeout(function(){delete _4cb._endUpdateDelay;_4cb.endUpdate();},this.updateDelay);}}},_onSet:function(item,_4cc,_4cd,_4ce){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_4cf){var idty=this._hasIdentity?this.store.getIdentity(item):json.toJson(this.query)+":idx:"+_4cf+":sort:"+json.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_4d0,_4d1){this._by_idx[_4d0]=this._createItem(item,_4d0);if(!_4d1){this.updateRow(_4d0);}},_onNew:function(item,_4d2){this._checkUpdateStatus();var _4d3=this.get("rowCount");this._addingItem=true;this.updateRowCount(_4d3+1);this._addingItem=false;this._addItem(item,_4d3);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}if(this.selection.isSelected(idx)){this.selection.deselect(idx);this.selection.selected.splice(idx,1);}},_onRevert:function(){this._refresh();},setStore:function(_4d4,_4d5,_4d6){if(this._requestsPending(0)){return;}this._setQuery(_4d5,_4d6);this._setStore(_4d4);this._refresh(true);},setQuery:function(_4d7,_4d8){if(this._requestsPending(0)){return;}this._setQuery(_4d7,_4d8);this._refresh(true);},setItems:function(_4d9){this.items=_4d9;this._setStore(this.store);this._refresh(true);},_setQuery:function(_4da,_4db){this.query=_4da;this.queryOptions=_4db||this.queryOptions;},_setStore:function(_4dc){if(this.store&&this._store_connects){_4c3.forEach(this._store_connects,this.disconnect,this);}this.store=_4dc;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_4dd,req){if(!this.scroller){return;}if(_4dd&&_4dd.length>0){_4c3.forEach(_4dd,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_4dd.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}if(has("ie")){html.setSelectable(this.domNode,this.selectable);}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_4de,_4df){_4de=_4de||0;if(this.store&&!this._pending_requests[_4de]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_4de]=true;try{if(this.items){var _4e0=this.items;var _4e1=this.store;this.rowsPerPage=_4e0.length;var req={start:_4de,count:this.rowsPerPage,isRender:_4df};this._onFetchBegin(_4e0.length,req);var _4e2=0;_4c3.forEach(_4e0,function(i){if(!_4e1.isItemLoaded(i)){_4e2++;}});if(_4e2===0){this._onFetchComplete(_4e0,req);}else{var _4e3=function(item){_4e2--;if(_4e2===0){this._onFetchComplete(_4e0,req);}};_4c3.forEach(_4e0,function(i){if(!_4e1.isItemLoaded(i)){_4e1.loadItem({item:i,onItem:_4e3,scope:this});}},this);}}else{this.store.fetch({start:_4de,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_4df,onBegin:lang.hitch(this,"_onFetchBegin"),onComplete:lang.hitch(this,"_onFetchComplete"),onError:lang.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_4de,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_4e4){if(!_4e4&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_4e5,_4e6){this.query=_4e5;if(_4e6){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_4e7){return this._pending_requests[_4e7];},_rowToPage:function(_4e8){return (this.rowsPerPage?Math.floor(_4e8/this.rowsPerPage):_4e8);},_pageToRow:function(_4e9){return (this.rowsPerPage?this.rowsPerPage*_4e9:_4e9);},_preparePage:function(_4ea){if((_4ea<this._bop||_4ea>=this._eop)&&!this._addingItem){var _4eb=this._rowToPage(_4ea);this._needPage(_4eb);this._bop=_4eb*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_4ec){if(!this._pages[_4ec]){this._pages[_4ec]=true;this._requestPage(_4ec);}},_requestPage:function(_4ed){var row=this._pageToRow(_4ed);var _4ee=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_4ee>0){this._requests++;if(!this._requestsPending(row)){setTimeout(lang.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_4ef){return _4ef.field;},_refresh:function(_4f0){this._clearData();this._fetch(0,_4f0);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_4f1){if(this.store&&this.store.getState){var _4f2=this.store.getState(_4f1.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_4f2[s]){c=" dojoxGridRow-"+s;break;}}_4f1.customClasses+=c;}},onStyleRow:function(_4f3){this.styleRowState(_4f3);this.inherited(arguments);},canEdit:function(_4f4,_4f5){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _4f6={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_4f7,_4f8){if(!this._cache[_4f8]){this._cache[_4f8]=this._copyAttr(_4f8,_4f7.field);}this.onStartEdit(_4f7,_4f8);},doApplyCellEdit:function(_4f9,_4fa,_4fb){this.store.fetchItemByIdentity({identity:this._by_idx[_4fa].idty,onItem:lang.hitch(this,function(item){var _4fc=this.store.getValue(item,_4fb);if(typeof _4fc=="number"){_4f9=isNaN(_4f9)?_4f9:parseFloat(_4f9);}else{if(typeof _4fc=="boolean"){_4f9=_4f9=="true"?true:_4f9=="false"?false:_4f9;}else{if(_4fc instanceof Date){var _4fd=new Date(_4f9);_4f9=isNaN(_4fd.getTime())?_4f9:_4fd;}}}this.store.setValue(item,_4fb,_4f9);this.onApplyCellEdit(_4f9,_4fa,_4fb);})});},doCancelEdit:function(_4fe){var _4ff=this._cache[_4fe];if(_4ff){this.updateRow(_4fe);delete this._cache[_4fe];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_500,_501){var _502=this._cache[_500];this.onApplyEdit(_500);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=lang.hitch(this,function(_503){if(_503.length){_4c3.forEach(_503,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});_4c7.cell_markupFactory=function(_504,node,_505){var _506=lang.trim(html.attr(node,"field")||"");if(_506){_505.field=_506;}_505.field=_505.field||_505.name;var _507=lang.trim(html.attr(node,"fields")||"");if(_507){_505.fields=_507.split(",");}if(_504){_504(node,_505);}};_4c7.markupFactory=function(_508,node,ctor,_509){return _4c5.markupFactory(_508,node,ctor,lang.partial(_4c7.cell_markupFactory,_509));};return _4c7;});