//>>built
define("mill/patches","dijit/Dialog dijit/Menu dijit/form/TextBox dijit/form/DateTextBox dijit/form/TimeTextBox dijit/form/Button dijit/form/ComboBox dijit/form/FilteringSelect dijit/form/Select dijit/layout/ScrollingTabController dijit/_editor/range dijit/_editor/plugins/FontChoice dojox/grid/DataGrid dojox/grid/EnhancedGrid dojox/grid/Selection dojox/grid/_Grid dojox/grid/_Builder dojox/grid/cells/dijit".split(" "),function(){window.mill||(mill={});dojo.mixin(mill,{_patch:function(){dojo.isIE&&
(dojo.getComputedStyle=function(a){return a?1==a.nodeType?a.currentStyle:{}:{}});if(13<=dojo.isFF){var n=dojox.grid._View.prototype.doscroll;dojo.extend(dojox.grid._View,{_nativeScroll:!1,doscroll:function(a){this._nativeScroll=!0;n.apply(this,arguments);this._nativeScroll=!1},setScrollTop:function(a){this.lastTop=a;this._nativeScroll||(this.scrollboxNode.scrollTop=a);return this.scrollboxNode.scrollTop}})}if(9==dojo.isIE){var k=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?
{}:null}};dojo.mixin(dojo,{_getOpacity:function(a){try{return k(a).Opacity/100}catch(b){return 1}},_setOpacity:function(a,b){var c=100*b,f=1==b;a.style.zoom=f?"":1;if(k(a))k(a,1).Opacity=c;else{if(f)return b;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d"+c+")"}k(a,1).Enabled=!f;"tr"==a.nodeName.toLowerCase()&&d.query("\x3e td",a).forEach(function(e){d._setOpacity(e,b)});return b}})}var p=dijit._place;dojo.mixin(dijit,{_place:function(a,b,c,f){var e=a.style;e.height="auto";
e.overflowY="";b=p(a,b,c,f);c=dojo.window.getBox();f=e.display;var g=e.visibility;e.visibility="hidden";e.display="";a=dojo.marginBox(a);e.display=f;e.visibility=g;a.t+a.h>c.h&&(b.y=c.h-a.h,a.t=b.y,e.top=b.y+"px");if(0>a.t||a.h>=c.h)b.y=0,e.top=0,e.overflowY="scroll",e.overflowX="hidden",e.height=c.h+"px";return b},getSelectionRange:function(a){var b=0,c=0,f;if("number"==typeof a.selectionStart&&"number"==typeof a.selectionEnd)b=a.selectionStart,c=a.selectionEnd;else if((f=document.selection.createRange())&&
f.parentElement()==a){var e=a.value.length;var g=a.value.replace(/\r\n/g,"\n");c=a.createTextRange();c.moveToBookmark(f.getBookmark());a=a.createTextRange();a.collapse(!1);-1<c.compareEndPoints("StartToEnd",a)?b=c=e:(b=-c.moveStart("character",-e),b+=g.slice(0,b).split("\n").length-1,-1<c.compareEndPoints("EndToEnd",a)?c=e:(c=-c.moveEnd("character",-e),c+=g.slice(0,c).split("\n").length-1))}return{start:b,end:c}}});dojo.mixin(dojo.window,{getBox:function(){var a="BackCompat"==dojo.doc.compatMode?
dojo.body():dojo.doc.documentElement,b=dojo._docScroll();return{w:a.clientWidth>window.innerWidth?window.innerWidth:a.clientWidth,h:a.clientHeight>window.innerHeight?window.innerHeight:a.clientHeight,l:b.x,t:b.y}}});dojo.extend(dijit._DialogBase,{layout:function(){"none"!=this.domNode.style.display&&(dijit._underlay&&dijit._underlay.layout(),this._size(),this._position())}});dojo.isIE||dojo.mixin(dojo._event_listener,{remove:function(a,b,c){if(a&&(b=this._normalizeEventName(b),dojo.isIE||"mouseenter"!=
b&&"mouseleave"!=b||(b="mouseenter"==b?"mouseover":"mouseout"),a.removeEventListener))try{a.removeEventListener(b,c,!1)}catch(f){}}});if(window.hasOwnProperty&&window.hasOwnProperty("scrollX")){var q=dojo.window.getBox;dojo.mixin(dojo.window,{getBox:function(){var a=q();a.w-=window.scrollX;a.h-=window.scrollY;return a}})}dojo.extend(dojox.grid.DataGrid,{_clearData:function(){this.selection.clear();this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoading=
this._isLoaded=!1}});dojo.extend(dojox.grid.Selection,{onChanged:function(){for(var a in this.selected){var b=this.grid.getRowNode(a);b&&this.grid.styleRowNode(a,b)}}});dojo.extend(dojox.grid.DataSelection,{getSelected:function(){for(var a=[],b=this.getFirstSelected(),c=0;c<this.getSelectedCount();c++)a.push(b),b=this.getNextSelected(b);return a},getNextSelected:function(a){a=this.grid.getItemIndex(a);a=dojox.grid.Selection.prototype.getNextSelected.call(this,a);if(-1==a)return null;var b=this.grid.getItem(a);
b||(this.grid._fetch(a,!1),b=this.grid.getItem(a));return this.grid.getItem(a)}});if(10<=dojo.isIE){dojo._getIeDispatcher=function(){return new Function("return "+dojo._scopeName+"._ieDispatcher(arguments, this)")};dojo._ieDispatcher=function(a,b){var c=Array.prototype,f=dojo._ie_listener.handlers,e=a.callee,g=e[dojo._ieListenersName];e=(e=f[e.target])&&e.apply(b,a);g=[].concat(g);for(var l in g){var m=f[g[l]];l in c||!m||(e=m.apply(b,a))}return e};var r=dijit.form.TextBox.prototype.postCreate;dojo.extend(dijit.form.TextBox,
{postCreate:function(){r.apply(this,arguments);this.connect(this.textbox,"oninput","_onInput")}});dojo.extend(dijit.form._DateTimeTextBox,{intermediateChanges:!0});var t=dijit.Menu.prototype.bindDomNode;dojo.extend(dijit.Menu,{bindDomNode:function(){var a=this,b=t.apply(a,arguments);dojo.forEach(this._bindings,function(c){c&&c.connects&&dojo.forEach(c.connects,function(f){f&&f.length&&"oncontextmenu"==f[1]&&dojo.connect(f[0],f[1],a,function(e){a._scheduleOpen(e.target,f[0],{x:e.pageX,y:e.pageY});
return!1})})});return b}});var u=dojox.grid._HeaderBuilder.prototype.overLeftResizeArea,v=dojox.grid._HeaderBuilder.prototype.overRightResizeArea;dojox.grid._HeaderBuilder=dojo.extend(dojox.grid._HeaderBuilder,{overLeftResizeArea:function(a){var b=u.apply(this,arguments);b&&dojo.hasClass(a.target,"dijitCheckBox")&&(b=!1);return b},overRightResizeArea:function(a){var b=v.apply(this,arguments);b&&dojo.hasClass(a.target,"dijitCheckBox")&&(b=!1);return b}})}if(dojo.isMozilla){var w=dojox.grid._HeaderBuilder.prototype.getCellX;
dojox.grid._HeaderBuilder=dojo.extend(dojox.grid._HeaderBuilder,{getCellX:function(a){var b={},c;for(c in a)b[c]=a[c];b.layerX=a.offsetX||a.layerX;b.layerY=a.offsetY||a.layerY;return w.call(this,b)}})}if(dijit.layout.ScrollingTabController){var x=dijit.layout.ScrollingTabController.prototype.onAddChild;dojo.extend(dijit.layout.ScrollingTabController,{onAddChild:function(a,b){var c=dojo.style(this.containerNode,"width");x.apply(this,arguments);dojo.style(this.containerNode,"width",(c||5E4)+200+"px")}})}var h=
{_onDropDownMouseUp:function(a){a&&this._docHandler&&this.disconnect(this._docHandler);this._opened&&this.dropDown.focus&&!1!==this.dropDown.autoFocus&&setTimeout(dojo.hitch(this.dropDown,"focus"),1)}};dijit._HasDropDown&&dojo.extend(dijit._HasDropDown,h);dijit.form&&(dijit.form.DropDownButton&&dojo.extend(dijit.form.DropDownButton,h),dijit.form.ComboBoxMixin&&dojo.extend(dijit.form.ComboBoxMixin,h),dijit.form.ComboBox&&dojo.extend(dijit.form.ComboBox,h),dijit.form.FilteringSelect&&dojo.extend(dijit.form.FilteringSelect,
h),dijit.form.Select&&dojo.extend(dijit.form.Select,h),dijit.form._DateTimeTextBox&&dojo.extend(dijit.form._DateTimeTextBox,h));dijit.layout&&dijit.layout._ScrollingTabControllerMenuButton&&dojo.extend(dijit.layout._ScrollingTabControllerMenuButton,h);if(dijit.layout.TabContainer){var y=dijit.layout.TabContainer.prototype.layout;dojo.extend(dijit.layout.TabContainer,{_lastLayoutChildren:null,layout:function(){var a=y.apply(this,arguments);if("left"==this.tablist.layoutAlign){var b=this.getChildren().length;
b==this._lastLayoutChildren&&this.tablist.domNode.style.width||(this.tablist.domNode.style.width=dojo.position(this.tablistSpacer).x-1+"px");this._lastLayoutChildren=b}return a}})}if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){var z=dijit.form.ComboBox.prototype._onInput;dojo.extend(dijit.form.ComboBox,{_onInput:function(a){z.apply(this,arguments);this._startSearch(this.textbox.value)}})}}})});