function Ja(){this!=window&&this.Init()}v("AdfDragRecognizer",Ja);z.l(Ja);Ja.prototype.Init=function(){Ja.f.Init.call(this);this.Qaa=w.b.ph()==w.ek};z.a("AdfDragRecognizer.prototype.Init",{Init:Ja.prototype.Init});Ja.prototype.Vk=function(a,b,d){B.J(b,Za);B.J(d,I);if(!w.b.cj(d)||!b.lf(a,d))return n;D.i.finer("prep drag[ source:",b," event:",d,"]");a=this.o(this.A_a);d=new qb(d,a);d.F_=b;return d};z.a("AdfDragRecognizer.prototype.prepDrag",{Vk:Ja.prototype.Vk});
Ja.prototype.fI=function(a,b){B.J(b,I);var d=p,d=b instanceof ma;if(!this.Qaa&&!d||d&&b.getType()==ma.hw||d&&1!=b.Gp())d=l;else if(b.getType()==ma.iw&&a.bja==p&&rb(b,a))d=l;else return p;return d?(a.clearTimeout(),tb(a),l):p};z.a("AdfDragRecognizer.prototype.abortPrep",{fI:Ja.prototype.fI});Ja.prototype.QJ=function(a,b){if(b.getType()==ma.iw&&1==b.Gp()){if(a.bja&&rb(b,a))return D.i.fine("Drag recognized for:",b),tb(a),a.uS;a.efa==l&&w.b.preventDefault(b.L())}return n};
z.a("AdfDragRecognizer.prototype.recognizeDrag",{QJ:Ja.prototype.QJ});function tb(a){a.efa&&a.F_&&(a.F_.Nr(a.qBa),delete a.F_,delete a.qBa,delete a.efa)}function rb(a,b){var d=a.hg(),e=a.ig();return 10<Math.abs(b.j2-d)||10<Math.abs(b.k2-e)}Ja.prototype.A_a=function(a){a.qBa=a.F_.Pj(a.uS);a.efa=l};