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

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

		http://dojotoolkit.org
*/

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