(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3109,6659],{75062:(E,o,e)=>{e.d(o,{i:()=>a});const a=s=>s&&""!==s.dir?"rtl"===s.dir.toLowerCase():"rtl"===document?.dir.toLowerCase()},56659:(E,o,e)=>{e.r(o),e.d(o,{createSwipeBackGesture:()=>g});var a=e(35730),s=e(75062),M=e(81898);e(34349);const g=(r,v,p,C,P)=>{const u=r.ownerDocument.defaultView;let c=(0,s.i)(r);const _=t=>c?-t.deltaX:t.deltaX;return(0,M.createGesture)({el:r,gestureName:"goback-swipe",gesturePriority:40,threshold:10,canStart:t=>(c=(0,s.i)(r),(t=>{const{startX:n}=t;return c?n>=u.innerWidth-50:n<=50})(t)&&v()),onStart:p,onMove:t=>{const n=_(t)/u.innerWidth;C(n)},onEnd:t=>{const i=_(t),n=u.innerWidth,d=i/n,l=(t=>c?-t.velocityX:t.velocityX)(t),h=l>=0&&(l>.2||i>n/2),m=(h?1-d:d)*n;let D=0;if(m>5){const B=m/Math.abs(l);D=Math.min(B,540)}P(h,d<=0?.01:(0,a.l)(0,d,.9999),D)}})}}}]);