function lh(a,b){this.Init(a,b)}v("AdfRepositionable",lh);z.l(lh);lh.da=function(){var a=this.prototype;a.Y3=0;a.kma=1;a.b3=2};v("AdfRepositionable.InitClass",lh.da);lh.prototype.Init=function(a,b){lh.f.Init.call(this);this.vG=a;this.vO=b;var d=w.b;this.sY=this.o(this.qZa);this.sZa=this.o(this.rZa);this.tZa=this.o(this.g1a);d.cd();d.S(this.vO,"touchstart",this.sY);d.S(this.vO,"mousedown",this.sY);d.vd(b);this.Hxa=this.Gxa=this.xP=this.yP=n;this.eh=this.Y3};z.a("AdfRepositionable.prototype.Init",{Init:lh.prototype.Init});
lh.prototype.ud=function(){var a=w.b;a.sa(this.vO,"touchstart",this.sY);a.sa(this.vO,"mousedown",this.sY);this.eh!=this.Y3&&F.c.n2()};z.a("AdfRepositionable.prototype.destroy",{ud:lh.prototype.ud});lh.prototype.La=function(){return this.vG.La()};z.a("AdfRepositionable.prototype.getElement",{La:lh.prototype.La});u=lh.prototype;
u.qZa=function(a){var b=F.c;if(!b.im()){var d=w.b;a=a||d.R().event;if(!(a instanceof MouseEvent)||d.Eg(a)){this.eh=this.kma;d.preventDefault(a);var e=d.T(a);F.c.Kk().kh(e);if(d.G()==w.aa){d=this.vO;try{d.setActive()}catch(f){D.i.fine("Could not restore focus to handle:",d.id?d.id:"unknown")}}b.Nd(a,this.sZa,this.tZa,n,l)}}};
u.rZa=function(a,b,d){var e=w.b;a=e.Qb(a);if(this.eh==this.kma){this.cya.apply(this.vG);this.eh=this.b3;this.Gxa=a.x;this.Hxa=a.y;this.xP=parseInt(this.vG.YI());this.yP=parseInt(this.vG.oJ());this.Nxa=this.Mxa=0;this.xP||(this.xP=0);this.yP||(this.yP=0);var f=F.c.w().documentElement,g=e.G()==w.aa,h=F.c.Ma().Oa(),m=e.R();a=e.aj(m);var e=e.Tk(m),m=qg.Fp(),q=h?m:0;g&&h&&(f=f.scrollWidth-f.clientWidth,q-=f,a-=f);this.jZa=q;f=this.La();this.m2a=a-f.offsetWidth-2*m;this.l2a=e-f.offsetHeight-2*m}this.eh==
this.b3&&(b=this.Mxa+=b,d=this.Nxa+=d,this.nP(b,d))};u.g1a=function(){this.Hxa=this.Gxa=this.yP=this.xP=n;this.eh==this.b3&&this.bya.apply(this.vG);this.eh=this.Y3};u.nP=function(a,b){var d=this.xP+a,e=this.yP+b,f=this.jZa,g=this.m2a,h=this.l2a,d=d>f?Math.min(d,g):f,e=0<e?Math.min(e,h):0;this.vG.setPosition(e,d);this.aya()};u.F1=da("cya");z.a("AdfRepositionable.prototype.setDragStartHandler",{F1:lh.prototype.F1});lh.prototype.D1=da("bya");z.a("AdfRepositionable.prototype.setDragEndHandler",{D1:lh.prototype.D1});
lh.prototype.aEa=da("aya");z.a("AdfRepositionable.prototype.setDragHandler",{aEa:lh.prototype.aEa});lh.prototype.cya=ca();lh.prototype.bya=ca();lh.prototype.aya=ca();