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

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

		http://dojotoolkit.org
*/

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