//>>built define("dojo/_base/kernel dojo/_base/declare dojo/_base/connect dojo/_base/window dojo/_base/array dojo/_base/sniff dojo/_base/lang dojo/query dojo/topic dojo/dom-class dojo/dom-geometry dojo/dom-construct dijit/registry dijit/_Widget ./Moveable dojox/mdnd/AutoScroll".split(" "),function(g,w,e,z,k,p,r,t,A,n,x,q,m,u,y,v){var l=w("dojox.mdnd.AreaManager",null,{autoRefresh:!0,areaClass:"dojoxDndArea",dragHandleClass:"dojoxDragHandle",constructor:function(){this._areaList=[];this.resizeHandler=e.connect(g.global, "onresize",this,function(){this._dropMode.updateAreas(this._areaList)});this._oldIndexArea=this._currentIndexArea=this._oldDropIndex=this._currentDropIndex=this._sourceIndexArea=this._sourceDropIndex=-1},init:function(){this.registerByClass()},registerByNode:function(a,b){var c=this._getIndexArea(a);if(a&&-1==c){var c=(c=a.getAttribute("accept"))?c.split(/\s*,\s*/):["text"],d={node:a,items:[],coords:{},margin:null,accept:c,initItems:!1};k.forEach(this._getChildren(a),function(a){this._setMarginArea(d, a);d.items.push(this._addMoveableItem(a))},this);this._areaList=this._dropMode.addArea(this._areaList,d);b||this._dropMode.updateAreas(this._areaList);e.publish("/dojox/mdnd/manager/register",[a])}},registerByClass:function(){t("."+this.areaClass).forEach(function(a){this.registerByNode(a,!0)},this);this._dropMode.updateAreas(this._areaList)},unregister:function(a){a=this._getIndexArea(a);return-1!=a?(k.forEach(this._areaList[a].items,function(a){this._deleteMoveableItem(a)},this),this._areaList.splice(a, 1),this._dropMode.updateAreas(this._areaList),!0):!1},_addMoveableItem:function(a){a.setAttribute("tabIndex","0");var b=this._searchDragHandle(a),c=new y({handle:b,skip:!0},a);n.add(b||a,"dragHandle");b=a.getAttribute("dndType");b={item:c,type:b?b.split(/\s*,\s*/):["text"],handlers:[e.connect(c,"onDragStart",this,"onDragStart")]};if(m&&m.byNode){var d=m.byNode(a);d&&(b.type=d.dndType?d.dndType.split(/\s*,\s*/):["text"],b.handlers.push(e.connect(d,"uninitialize",this,function(){this.removeDragItem(a.parentNode, c.node)})))}return b},_deleteMoveableItem:function(a){k.forEach(a.handlers,function(a){e.disconnect(a)});var b=a.item.node,c=this._searchDragHandle(b);n.remove(c||b,"dragHandle");a.item.destroy()},_getIndexArea:function(a){if(a)for(var b=0;b