YUI.add("dd-ddm",function(i,t){i.mix(i.DD.DDM,{_pg:null,_debugShim:!1,_activateTargets:function(){},_deactivateTargets:function(){},_startDrag:function(){this.activeDrag&&this.activeDrag.get("useShim")&&(this._shimming=!0,this._pg_activate(),this._activateTargets())},_endDrag:function(){i.later(0,this,this._pg_deactivate),this._deactivateTargets()},_pg_deactivate:function(){this._pg.setStyle("display","none")},_pg_activate:function(){this._pg||this._createPG();var t=this.activeDrag.get("activeHandle"),e="auto";"auto"===(e=t?t.getStyle("cursor"):e)&&(e=this.get("dragCursor")),this._pg_size(),this._pg.setStyles({top:0,left:0,display:"block",opacity:this._debugShim?".5":"0",cursor:e})},_pg_size:function(){var t,e;this.activeDrag&&(t=(e=i.one("body")).get("docHeight"),e=e.get("docWidth"),this._pg.setStyles({height:t+"px",width:e+"px"}))},_createPG:function(){var t=i.Node.create("<div></div>"),e=i.one("body");t.setStyles({top:"0",left:"0",position:"absolute",zIndex:"99999",overflow:"hidden",backgroundColor:"red",display:"none",height:"5px",width:"5px"}),t.set("id",i.stamp(t)),t.addClass(i.DD.DDM.CSS_PREFIX+"-shim"),e.prepend(t),this._pg=t,this._pg.on("mousemove",i.throttle(i.bind(this._move,this),this.get("throttleTime"))),this._pg.on("mouseup",i.bind(this._end,this)),e=i.one("win"),i.on("window:resize",i.bind(this._pg_size,this)),e.on("scroll",i.bind(this._pg_size,this))}},!0)},"patched-v3.18.3",{requires:["dd-ddm-base","event-resize"]});