YUI.add("event-move",function(_,t){var e,n=_.Event._GESTURE_MAP,l={start:n.start,end:n.end,move:n.move},c="start",d="move",g="end",i="gesture"+d,h=i+g,o=i+c,u="_msh",s="_mh",r="_meh",f="_dmsh",m="_dmh",v="_dmeh",D="_ms",E="minTime",T="minDistance",A="preventDefault",a="button",p="currentTarget",N="target",M=((n=_.config.win)&&("PointerEvent"in n?e="touchAction":"msPointerEnabled"in n.navigator&&(e="msTouchAction")),e),I="msTouchAction"===M||"touchAction"===M,U="msTouchActionCount",b="msInitTouchAction",y=function(t,e,n){n=n?4:3,n=e.length>n?_.merge(e.splice(n,1)[0]):{};return A in n||(n[A]=t.PREVENT_DEFAULT),n},Y=function(t,e){return e._extra.root||9===t.get("nodeType")?t:t.get("ownerDocument")},O=function(t){var e=t.getDOMNode();return!(!t.compareTo(_.config.doc)||!e.documentElement)&&e.documentElement},X=function(t,e,n){t.pageX=e.pageX,t.pageY=e.pageY,t.screenX=e.screenX,t.screenY=e.screenY,t.clientX=e.clientX,t.clientY=e.clientY,t[N]=t[N]||e[N],t[p]=t[p]||e[p],t[a]=n&&n[a]||1},C=function(t){var e=t.getDOMNode(),n=t.getData(U);I&&(n||(n=0,t.setData(b,e.style[M])),e.style[M]=_.Event._DEFAULT_TOUCH_ACTION,t.setData(U,++n))},P=function(t){var e=t.getDOMNode(),n=t.getData(U),a=t.getData(b);I&&(t.setData(U,--n),0==n)&&e.style[M]!==a&&(e.style[M]=a)},S=function(t,e){!e||e.call&&!e(t)||t.preventDefault()},n=_.Event.define;_.Event._DEFAULT_TOUCH_ACTION="none",n(o,{on:function(t,e,n){O(t)||C(t),e[u]=t.on(l[c],this._onStart,this,t,e,n)},delegate:function(e,n,a,t){var o=this;n[f]=e.delegate(l[c],function(t){o._onStart(t,e,n,a,!0)},t)},detachDelegate:function(t,e,n,a){var o=e[f];o&&(o.detach(),e[f]=null),O(t)||P(t)},detach:function(t,e,n){var a=e[u];a&&(a.detach(),e[u]=null),O(t)||P(t)},processArgs:function(t,e){t=y(this,t,e);return E in t||(t[E]=this.MIN_TIME),T in t||(t[T]=this.MIN_DISTANCE),t},_onStart:function(e,n,t,a,o){o&&(n=e[p]);var c,i=t._extra,o=!0,h=i[E],u=i[T],s=i.button,r=i[A],t=Y(n,t);e.touches?1===e.touches.length?X(e,e.touches[0],i):o=!1:o=s===undefined||s===e.button,o&&(S(e,r),0===h||0===u?this._start(e,n,a,i):(c=[e.pageX,e.pageY],0<h&&(i._ht=_.later(h,this,this._start,[e,n,a,i]),i._hme=t.on(l[g],_.bind(function(){this._cancel(i)},this))),0<u&&(i._hm=t.on(l[d],_.bind(function(t){(Math.abs(t.pageX-c[0])>u||Math.abs(t.pageY-c[1])>u)&&this._start(e,n,a,i)},this)))))},_cancel:function(t){t._ht&&(t._ht.cancel(),t._ht=null),t._hme&&(t._hme.detach(),t._hme=null),t._hm&&(t._hm.detach(),t._hm=null)},_start:function(t,e,n,a){a&&this._cancel(a),t.type=o,e.setData(D,t),n.fire(t)},MIN_TIME:0,MIN_DISTANCE:0,PREVENT_DEFAULT:!1}),n(i,{on:function(t,e,n){O(t)||C(t),t=Y(t,e).on(l[d],this._onMove,this,t,e,n),e[s]=t},delegate:function(e,n,a,t){var o=this;n[m]=e.delegate(l[d],function(t){o._onMove(t,e,n,a,!0)},t)},detach:function(t,e,n){var a=e[s];a&&(a.detach(),e[s]=null),O(t)||P(t)},detachDelegate:function(t,e,n,a){var o=e[m];o&&(o.detach(),e[m]=null),O(t)||P(t)},processArgs:function(t,e){return y(this,t,e)},_onMove:function(t,e,n,a,o){o&&(e=t[p]);o=n._extra.standAlone||e.getData(D),e=n._extra.preventDefault;o&&(t.touches&&(1===t.touches.length?X(t,t.touches[0]):o=!1),o)&&(S(t,e),t.type=i,a.fire(t))},PREVENT_DEFAULT:!1}),n(h,{on:function(t,e,n){O(t)||C(t),t=Y(t,e).on(l[g],this._onEnd,this,t,e,n),e[r]=t},delegate:function(e,n,a,t){var o=this;n[v]=e.delegate(l[g],function(t){o._onEnd(t,e,n,a,!0)},t)},detachDelegate:function(t,e,n,a){var o=e[v];o&&(o.detach(),e[v]=null),O(t)||P(t)},detach:function(t,e,n){var a=e[r];a&&(a.detach(),e[r]=null),O(t)||P(t)},processArgs:function(t,e){return y(this,t,e)},_onEnd:function(t,e,n,a,o){o&&(e=t[p]);o=n._extra.standAlone||e.getData("_m")||e.getData(D),n=n._extra.preventDefault;o&&(t.changedTouches&&(1===t.changedTouches.length?X(t,t.changedTouches[0]):o=!1),o)&&(S(t,n),t.type=h,a.fire(t),e.clearData(D),e.clearData("_m"))},PREVENT_DEFAULT:!1})},"patched-v3.18.7",{requires:["node-base","event-touch","event-synthetic"]});