<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunkCustomerApp=self.webpackChunkCustomerApp||[]).push([[6610],{232:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(29511)),l=n(i(86318)),c=i(4802);function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}var f=function(t){function e(){return(0,a.default)(this,e),t=this,i=e,n=arguments,i=(0,o.default)(i),(0,s.default)(t,h()?Reflect.construct(i,n||[],(0,o.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,u.default)(e,t),(0,r.default)(e,[{key:"name",get:function(){return"rotate"}},{key:"NativeGestureClass",get:function(){return l.default.Rotate}},{key:"transformNativeEvent",value:function(t){var e,i=t.rotation,n=t.velocity,a=t.center;return{rotation:(i-(null!==(e=this.initialRotation)&amp;&amp;void 0!==e?e:0))*c.DEG_RAD,anchorX:a.x,anchorY:a.y,velocity:n}}}])}(n(i(50722)).default);e.default=f},377:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=n(i(67862)),f=i(10988),d=i(99459),v=n(i(15987)),g=["enabled"];function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function p(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function E(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),E(t=(0,o.default)(i,y()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"buttonRole",void 0),E(t,"shouldActivateOnStart",!1),E(t,"disallowInterruption",!1),E(t,"startX",0),E(t,"startY",0),E(t,"minDistSq",d.DEFAULT_TOUCH_SLOP*d.DEFAULT_TOUCH_SLOP),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){if(p(e,"init",this,3)([t,i]),this.setShouldCancelWhenOutside(!0),"web"===h.default.OS){var n=this.delegate.getView();n.style.touchAction="auto",n.style.WebkitTouchCallout="auto",this.buttonRole="button"===n.getAttribute("role")}}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,g);p(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)]),void 0!==this.config.shouldActivateOnStart&amp;&amp;(this.shouldActivateOnStart=this.config.shouldActivateOnStart),void 0!==this.config.disallowInterruption&amp;&amp;(this.disallowInterruption=this.config.disallowInterruption)}},{key:"resetConfig",value:function(){p(e,"resetConfig",this,3)([])}},{key:"onPointerDown",value:function(t){this.tracker.addToTracker(t),p(e,"onPointerDown",this,3)([t]),this.newPointerAction()}},{key:"onPointerAdd",value:function(t){this.tracker.addToTracker(t),p(e,"onPointerAdd",this,3)([t]),this.newPointerAction()}},{key:"newPointerAction",value:function(){this.startX=this.tracker.getLastAvgX(),this.startY=this.tracker.getLastAvgY(),this.currentState===f.State.UNDETERMINED&amp;&amp;(this.begin(),this.buttonRole&amp;&amp;this.activate())}},{key:"onPointerMove",value:function(t){this.tracker.track(t);var e=this.startX-this.tracker.getLastAvgX(),i=this.startY-this.tracker.getLastAvgY();e*e+i*i&gt;=this.minDistSq&amp;&amp;(this.buttonRole&amp;&amp;this.currentState===f.State.ACTIVE?this.cancel():this.buttonRole||this.currentState!==f.State.BEGAN||this.activate())}},{key:"onPointerLeave",value:function(){this.currentState!==f.State.BEGAN&amp;&amp;this.currentState!==f.State.ACTIVE||this.cancel()}},{key:"onPointerUp",value:function(t){p(e,"onPointerUp",this,3)([t]),this.onUp(t)}},{key:"onPointerRemove",value:function(t){p(e,"onPointerRemove",this,3)([t]),this.onUp(t)}},{key:"onUp",value:function(t){this.tracker.removeFromTracker(t.pointerId),0===this.tracker.getTrackedPointersCount()&amp;&amp;(this.currentState===f.State.ACTIVE?this.end():this.fail())}},{key:"shouldRecognizeSimultaneously",value:function(t){if(p(e,"shouldRecognizeSimultaneously",this,3)([t]))return!0;if(t instanceof e&amp;&amp;t.getState()===f.State.ACTIVE&amp;&amp;t.disallowsInterruption())return!1;var i=!this.disallowInterruption;return(this.currentState!==f.State.ACTIVE||t.getState()!==f.State.ACTIVE||!i)&amp;&amp;(this.currentState===f.State.ACTIVE&amp;&amp;i&amp;&amp;t.getTag()&gt;0)}},{key:"shouldBeCancelledByOther",value:function(t){return!this.disallowInterruption}},{key:"disallowsInterruption",value:function(){return this.disallowInterruption}},{key:"isButton",value:function(){return this.buttonRole}}])}(v.default)},1267:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=n(i(86318)),f=n(i(44737)),d=i(46522),v=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var E=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),p(t=(0,o.default)(i,g()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"_shouldFireEndEvent",null),p(t,"_timer",void 0),p(t,"_multiTapTimer",void 0),p(t,"onSuccessfulTap",(function(e){t._getPendingGestures().length?t._shouldFireEndEvent=e:(e.eventType===h.default.INPUT_END&amp;&amp;t.sendEvent(Object.assign({},e,{eventType:h.default.INPUT_MOVE})),t.sendEvent(Object.assign({},e,{isFinal:!0})),t.onGestureEnded(e))})),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"name",get:function(){return"tap"}},{key:"NativeGestureClass",get:function(){return h.default.Tap}},{key:"maxDelayMs",get:function(){return(0,d.isnan)(this.config.maxDelayMs)?300:this.config.maxDelayMs}},{key:"simulateCancelEvent",value:function(t){this.isGestureRunning&amp;&amp;this.cancelEvent(t)}},{key:"onGestureActivated",value:function(t){this.isGestureRunning&amp;&amp;this.onSuccessfulTap(t)}},{key:"onRawEvent",value:function(t){var i=this;if(y(e,"onRawEvent",this,3)([t]),!this.hasGestureFailed&amp;&amp;!this.isGestureRunning&amp;&amp;!t.isFinal){var n=this.hammer.get(this.name);n.options.enable(n,t)&amp;&amp;(clearTimeout(this._multiTapTimer),this.onStart(t),this.sendEvent(t))}if(t.isFinal&amp;&amp;t.maxPointers&gt;1&amp;&amp;setTimeout((function(){i.isGestureRunning&amp;&amp;i.cancelEvent(t)})),!this.hasGestureFailed)if(t.isFinal)t.maxPointers&gt;1&amp;&amp;setTimeout((function(){i.isGestureRunning&amp;&amp;i.cancelEvent(t)})),clearTimeout(this._timer),this._timer=setTimeout((function(){i.hasGestureFailed=!0,i.cancelEvent(t)}),this.maxDelayMs);else if(!this.hasGestureFailed&amp;&amp;!this.isGestureRunning){var a=this.hammer.get(this.name);a.options.enable(a,t)&amp;&amp;(clearTimeout(this._multiTapTimer),this.onStart(t),this.sendEvent(t))}}},{key:"getHammerConfig",value:function(){return Object.assign({},y(e,"getHammerConfig",this,3)([]),{event:this.name,taps:(0,d.isnan)(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:(0,d.isnan)(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}},{key:"updateGestureConfig",value:function(t){var i=t.shouldCancelWhenOutside,n=void 0===i||i,r=t.maxDeltaX,s=void 0===r?Number.NaN:r,o=t.maxDeltaY,u=void 0===o?Number.NaN:o,l=t.numberOfTaps,c=void 0===l?1:l,h=t.minDurationMs,f=void 0===h?525:h,d=t.maxDelayMs,g=void 0===d?Number.NaN:d,p=t.maxDurationMs,E=(void 0===p&amp;&amp;Number.NaN,t.maxDist),m=void 0===E?2:E,T=t.minPointers,k=void 0===T?1:T,P=t.maxPointers,S=void 0===P?1:P,O=(0,a.default)(t,v);return y(e,"updateGestureConfig",this,3)([Object.assign({shouldCancelWhenOutside:n,numberOfTaps:c,maxDeltaX:s,maxDeltaY:u,minDurationMs:f,maxDelayMs:g,maxDist:m,minPointers:k,maxPointers:S},O)])}},{key:"onGestureEnded",value:function(){clearTimeout(this._timer);for(var t=arguments.length,i=new Array(t),n=0;n&lt;t;n++)i[n]=arguments[n];y(e,"onGestureEnded",this,3)(i)}},{key:"onWaitingEnded",value:function(t){this._shouldFireEndEvent&amp;&amp;(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}}])}(f.default);e.default=E},3813:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(85715)),r=n(i(17383)),s=n(i(34579)),o=n(i(58189));function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,s.default)((function t(){(0,r.default)(this,t),u(this,"velocityTracker",new o.default),u(this,"trackedPointers",new Map),u(this,"touchEventsIds",new Map),u(this,"lastMovedPointerId",void 0),u(this,"cachedAverages",{x:0,y:0}),this.lastMovedPointerId=NaN;for(var e=0;e&lt;20;++e)this.touchEventsIds.set(e,NaN)}),[{key:"addToTracker",value:function(t){if(!this.trackedPointers.has(t.pointerId)){this.lastMovedPointerId=t.pointerId;var e={lastX:t.x,lastY:t.y,timeStamp:t.time,velocityX:0,velocityY:0};this.trackedPointers.set(t.pointerId,e),this.mapTouchEventId(t.pointerId),this.cachedAverages={x:this.getLastAvgX(),y:this.getLastAvgY()}}}},{key:"removeFromTracker",value:function(t){this.trackedPointers.delete(t),this.removeMappedTouchId(t)}},{key:"track",value:function(t){var e=this.trackedPointers.get(t.pointerId);if(e){this.lastMovedPointerId=t.pointerId,this.velocityTracker.add(t);var i=this.velocityTracker.getVelocity(),n=(0,a.default)(i,2),r=n[0],s=n[1];e.velocityX=r,e.velocityY=s,e.lastX=t.x,e.lastY=t.y,this.trackedPointers.set(t.pointerId,e);var o=this.getLastAvgX(),u=this.getLastAvgY();this.cachedAverages={x:o,y:u}}}},{key:"mapTouchEventId",value:function(t){for(var e of this.touchEventsIds){var i=(0,a.default)(e,2),n=i[0],r=i[1];if(isNaN(r)){this.touchEventsIds.set(n,t);break}}}},{key:"removeMappedTouchId",value:function(t){var e=this.getMappedTouchEventId(t);isNaN(e)||this.touchEventsIds.set(e,NaN)}},{key:"getMappedTouchEventId",value:function(t){for(var e of this.touchEventsIds.entries()){var i=(0,a.default)(e,2),n=i[0];if(i[1]===t)return n}return NaN}},{key:"getVelocityX",value:function(t){var e;return null===(e=this.trackedPointers.get(t))||void 0===e?void 0:e.velocityX}},{key:"getVelocityY",value:function(t){var e;return null===(e=this.trackedPointers.get(t))||void 0===e?void 0:e.velocityY}},{key:"getLastX",value:function(t){var e,i;return void 0!==t?null===(e=this.trackedPointers.get(t))||void 0===e?void 0:e.lastX:null===(i=this.trackedPointers.get(this.lastMovedPointerId))||void 0===i?void 0:i.lastX}},{key:"getLastY",value:function(t){var e,i;return void 0!==t?null===(e=this.trackedPointers.get(t))||void 0===e?void 0:e.lastY:null===(i=this.trackedPointers.get(this.lastMovedPointerId))||void 0===i?void 0:i.lastY}},{key:"getLastAvgX",value:function(){var t=this.getSumX()/this.trackedPointers.size;return isNaN(t)?this.cachedAverages.x:t}},{key:"getLastAvgY",value:function(){var t=this.getSumY()/this.trackedPointers.size;return isNaN(t)?this.cachedAverages.y:t}},{key:"getSumX",value:function(t){var e=0;return this.trackedPointers.forEach((function(i,n){n!==t&amp;&amp;(e+=i.lastX)})),e}},{key:"getSumY",value:function(t){var e=0;return this.trackedPointers.forEach((function(i,n){n!==t&amp;&amp;(e+=i.lastY)})),e}},{key:"getTrackedPointersCount",value:function(){return this.trackedPointers.size}},{key:"getTrackedPointersID",value:function(){var t=[];return this.trackedPointers.forEach((function(e,i){t.push(i)})),t}},{key:"getData",value:function(){return this.trackedPointers}},{key:"resetTracker",value:function(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(var t=0;t&lt;20;++t)this.touchEventsIds.set(t,NaN)}}],[{key:"shareCommonPointers",value:function(t,e){return t.some((function(t){return e.includes(t)}))}}])},4802:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD=e.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD=e.HammerInputNames=e.HammerDirectionNames=e.EventMap=e.DirectionMap=e.Direction=e.DEG_RAD=e.CONTENT_TOUCHES_QUICK_TAP_END_DELAY=e.CONTENT_TOUCHES_DELAY=void 0;var a=n(i(43693)),r=n(i(86318)),s=i(10988),o=(e.CONTENT_TOUCHES_DELAY=240,e.CONTENT_TOUCHES_QUICK_TAP_END_DELAY=50,e.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD=.1,e.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD=7,e.DEG_RAD=Math.PI/180,e.EventMap=(0,a.default)((0,a.default)((0,a.default)((0,a.default)({},r.default.INPUT_START,s.State.BEGAN),r.default.INPUT_MOVE,s.State.ACTIVE),r.default.INPUT_END,s.State.END),r.default.INPUT_CANCEL,s.State.FAILED),e.Direction={RIGHT:1,LEFT:2,UP:4,DOWN:8});e.DirectionMap=(0,a.default)((0,a.default)((0,a.default)((0,a.default)({},r.default.DIRECTION_RIGHT,o.RIGHT),r.default.DIRECTION_LEFT,o.LEFT),r.default.DIRECTION_UP,o.UP),r.default.DIRECTION_DOWN,o.DOWN),e.HammerInputNames=(0,a.default)((0,a.default)((0,a.default)((0,a.default)({},r.default.INPUT_START,"START"),r.default.INPUT_MOVE,"MOVE"),r.default.INPUT_END,"END"),r.default.INPUT_CANCEL,"CANCEL"),e.HammerDirectionNames=(0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)({},r.default.DIRECTION_HORIZONTAL,"HORIZONTAL"),r.default.DIRECTION_UP,"UP"),r.default.DIRECTION_DOWN,"DOWN"),r.default.DIRECTION_VERTICAL,"VERTICAL"),r.default.DIRECTION_NONE,"NONE"),r.default.DIRECTION_ALL,"ALL"),r.default.DIRECTION_RIGHT,"RIGHT"),r.default.DIRECTION_LEFT,"LEFT")},9197:(t,e,i)=&gt;{Object.defineProperty(e,"__esModule",{value:!0}),e.degToRad=e.coneToDeviation=e.PointerTypeMapping=void 0,e.isPointerInBounds=function(t,e){var i=e.x,n=e.y,a=t.getBoundingClientRect();return i&gt;=a.left&amp;&amp;i&lt;=a.right&amp;&amp;n&gt;=a.top&amp;&amp;n&lt;=a.bottom};var n=i(26704);e.PointerTypeMapping=new Map([["mouse",n.PointerType.MOUSE],["touch",n.PointerType.TOUCH],["pen",n.PointerType.STYLUS],["none",n.PointerType.OTHER]]);var a=e.degToRad=function(t){return t*Math.PI/180};e.coneToDeviation=function(t){return Math.cos(a(t/2))}},10792:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.GesturePropError=void 0;var a=n(i(34579)),r=n(i(17383)),s=n(i(28452)),o=n(i(63072)),u=n(i(29511)),l=n(i(61837));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}e.GesturePropError=function(t){function e(t,i,n){return(0,r.default)(this,e),a=this,u=e,l=[`Invalid property \`${t}: ${i}\` expected \`${n}\``],u=(0,o.default)(u),(0,s.default)(a,c()?Reflect.construct(u,l||[],(0,o.default)(a).constructor):u.apply(a,l));var a,u,l}return(0,u.default)(e,t),(0,a.default)(e)}((0,l.default)(Error))},14277:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=n(i(15987)),d=n(i(46319)),v=["enabled"];function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var E=Math.PI/36;e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),p(t=(0,o.default)(i,g()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"rotation",0),p(t,"velocity",0),p(t,"cachedAnchorX",0),p(t,"cachedAnchorY",0),p(t,"rotationGestureListener",{onRotationBegin:function(t){return!0},onRotation:function(e){var i=t.rotation;t.rotation+=e.getRotation();var n=e.getTimeDelta();return n&gt;0&amp;&amp;(t.velocity=(t.rotation-i)/n),Math.abs(t.rotation)&gt;=E&amp;&amp;t.currentState===h.State.BEGAN&amp;&amp;t.activate(),!0},onRotationEnd:function(e){t.end()}}),p(t,"rotationGestureDetector",new d.default(t.rotationGestureListener)),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){y(e,"init",this,3)([t,i]),this.setShouldCancelWhenOutside(!1)}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,v);y(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)])}},{key:"transformNativeEvent",value:function(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}},{key:"getAnchorX",value:function(){var t=this.rotationGestureDetector.getAnchorX();return t||this.cachedAnchorX}},{key:"getAnchorY",value:function(){var t=this.rotationGestureDetector.getAnchorY();return t||this.cachedAnchorY}},{key:"onPointerDown",value:function(t){this.tracker.addToTracker(t),y(e,"onPointerDown",this,3)([t])}},{key:"onPointerAdd",value:function(t){this.tracker.addToTracker(t),y(e,"onPointerAdd",this,3)([t]),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}},{key:"onPointerMove",value:function(t){this.tracker.getTrackedPointersCount()&lt;2||(this.getAnchorX()&amp;&amp;(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&amp;&amp;(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),y(e,"onPointerMove",this,3)([t]))}},{key:"onPointerOutOfBounds",value:function(t){this.tracker.getTrackedPointersCount()&lt;2||(this.getAnchorX()&amp;&amp;(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&amp;&amp;(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),y(e,"onPointerOutOfBounds",this,3)([t]))}},{key:"onPointerUp",value:function(t){y(e,"onPointerUp",this,3)([t]),this.tracker.removeFromTracker(t.pointerId),this.rotationGestureDetector.onTouchEvent(t,this.tracker),this.currentState===h.State.ACTIVE&amp;&amp;(this.currentState===h.State.ACTIVE?this.end():this.fail())}},{key:"onPointerRemove",value:function(t){y(e,"onPointerRemove",this,3)([t]),this.rotationGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId)}},{key:"tryBegin",value:function(){this.currentState===h.State.UNDETERMINED&amp;&amp;this.begin()}},{key:"activate",value:function(t){y(e,"activate",this,3)([])}},{key:"onReset",value:function(){this.currentState!==h.State.ACTIVE&amp;&amp;(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}}])}(f.default)},15987:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(85715)),r=n(i(91847)),s=n(i(17383)),o=n(i(34579)),u=i(10988),l=i(83414),c=n(i(58223)),h=n(i(66301)),f=n(i(3813)),d=i(30959),v=i(26704),g=["enabled"];function y(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,o.default)((function t(e){var i=this;(0,s.default)(this,t),y(this,"lastSentState",null),y(this,"currentState",u.State.UNDETERMINED),y(this,"shouldCancelWhenOutside",!1),y(this,"hasCustomActivationCriteria",!1),y(this,"enabled",!1),y(this,"viewRef",void 0),y(this,"propsRef",void 0),y(this,"handlerTag",void 0),y(this,"config",{enabled:!1}),y(this,"tracker",new f.default),y(this,"activationIndex",0),y(this,"awaiting",!1),y(this,"active",!1),y(this,"shouldResetProgress",!1),y(this,"pointerType",v.PointerType.MOUSE),y(this,"delegate",void 0),y(this,"sendEvent",(function(t,e){var n=i.propsRef.current,a=n.onGestureHandlerEvent,r=n.onGestureHandlerStateChange,s=i.transformEventData(t,e);i.lastSentState!==t&amp;&amp;(i.lastSentState=t,p(r,s)),i.currentState===u.State.ACTIVE&amp;&amp;(s.nativeEvent.oldState=void 0,p(a,s))})),this.delegate=e}),[{key:"init",value:function(t,e){this.propsRef=e,this.viewRef=t,this.currentState=u.State.UNDETERMINED,this.delegate.init(t,this)}},{key:"attachEventManager",value:function(t){t.setOnPointerDown(this.onPointerDown.bind(this)),t.setOnPointerAdd(this.onPointerAdd.bind(this)),t.setOnPointerUp(this.onPointerUp.bind(this)),t.setOnPointerRemove(this.onPointerRemove.bind(this)),t.setOnPointerMove(this.onPointerMove.bind(this)),t.setOnPointerEnter(this.onPointerEnter.bind(this)),t.setOnPointerLeave(this.onPointerLeave.bind(this)),t.setOnPointerCancel(this.onPointerCancel.bind(this)),t.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),t.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),t.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),t.registerListeners()}},{key:"onCancel",value:function(){}},{key:"onReset",value:function(){}},{key:"resetProgress",value:function(){}},{key:"reset",value:function(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.currentState=u.State.UNDETERMINED}},{key:"moveToState",value:function(t,e){if(this.currentState!==t){var i=this.currentState;this.currentState=t,this.tracker.getTrackedPointersCount()&gt;0&amp;&amp;this.config.needsPointerData&amp;&amp;this.isFinished()&amp;&amp;this.cancelTouches(),c.default.getInstance().onHandlerStateChange(this,t,i,e),this.onStateChange(t,i),!this.enabled&amp;&amp;this.isFinished()&amp;&amp;(this.currentState=u.State.UNDETERMINED)}}},{key:"onStateChange",value:function(t,e){}},{key:"begin",value:function(){this.checkHitSlop()&amp;&amp;this.currentState===u.State.UNDETERMINED&amp;&amp;this.moveToState(u.State.BEGAN)}},{key:"fail",value:function(t){this.currentState!==u.State.ACTIVE&amp;&amp;this.currentState!==u.State.BEGAN||(this.delegate.onFail(),this.moveToState(u.State.FAILED,t)),this.resetProgress()}},{key:"cancel",value:function(t){this.currentState!==u.State.ACTIVE&amp;&amp;this.currentState!==u.State.UNDETERMINED&amp;&amp;this.currentState!==u.State.BEGAN||(this.onCancel(),this.delegate.onCancel(),this.moveToState(u.State.CANCELLED,t))}},{key:"activate",value:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]&amp;&amp;arguments[0];!0===this.config.manualActivation&amp;&amp;!t||this.currentState!==u.State.UNDETERMINED&amp;&amp;this.currentState!==u.State.BEGAN||(this.delegate.onActivate(),this.moveToState(u.State.ACTIVE))}},{key:"end",value:function(){this.currentState!==u.State.BEGAN&amp;&amp;this.currentState!==u.State.ACTIVE||(this.delegate.onEnd(),this.moveToState(u.State.END)),this.resetProgress()}},{key:"isAwaiting",value:function(){return this.awaiting}},{key:"setAwaiting",value:function(t){this.awaiting=t}},{key:"isActive",value:function(){return this.active}},{key:"setActive",value:function(t){this.active=t}},{key:"getShouldResetProgress",value:function(){return this.shouldResetProgress}},{key:"setShouldResetProgress",value:function(t){this.shouldResetProgress=t}},{key:"getActivationIndex",value:function(){return this.activationIndex}},{key:"setActivationIndex",value:function(t){this.activationIndex=t}},{key:"shouldWaitForHandlerFailure",value:function(t){return t!==this&amp;&amp;h.default.getInstance().shouldWaitForHandlerFailure(this,t)}},{key:"shouldRequireToWaitForFailure",value:function(t){return t!==this&amp;&amp;h.default.getInstance().shouldRequireHandlerToWaitForFailure(this,t)}},{key:"shouldRecognizeSimultaneously",value:function(t){return t===this||h.default.getInstance().shouldRecognizeSimultaneously(this,t)}},{key:"shouldBeCancelledByOther",value:function(t){return t!==this&amp;&amp;h.default.getInstance().shouldHandlerBeCancelledBy(this,t)}},{key:"onPointerDown",value:function(t){c.default.getInstance().recordHandlerIfNotPresent(this),this.pointerType=t.pointerType,this.pointerType===v.PointerType.TOUCH&amp;&amp;c.default.getInstance().cancelMouseAndPenGestures(this),this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerAdd",value:function(t){this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerUp",value:function(t){this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerRemove",value:function(t){this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerMove",value:function(t){this.tryToSendMoveEvent(!1),this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerLeave",value:function(t){if(this.shouldCancelWhenOutside)switch(this.currentState){case u.State.ACTIVE:this.cancel();break;case u.State.BEGAN:this.fail()}else this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerEnter",value:function(t){this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerCancel",value:function(t){this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t),this.cancel(),this.reset()}},{key:"onPointerOutOfBounds",value:function(t){this.tryToSendMoveEvent(!0),this.config.needsPointerData&amp;&amp;this.sendTouchEvent(t)}},{key:"onPointerMoveOver",value:function(t){}},{key:"onPointerMoveOut",value:function(t){}},{key:"tryToSendMoveEvent",value:function(t){this.enabled&amp;&amp;this.active&amp;&amp;(!t||t&amp;&amp;!this.shouldCancelWhenOutside)&amp;&amp;this.sendEvent(this.currentState,this.currentState)}},{key:"sendTouchEvent",value:function(t){if(this.enabled){var e=this.propsRef.current.onGestureHandlerEvent,i=this.transformTouchEvent(t);i&amp;&amp;p(e,i)}}},{key:"transformEventData",value:function(t,e){return{nativeEvent:Object.assign({numberOfPointers:this.tracker.getTrackedPointersCount(),state:t,pointerInside:this.delegate.isPointerInBounds({x:this.tracker.getLastAvgX(),y:this.tracker.getLastAvgY()})},this.transformNativeEvent(),{handlerTag:this.handlerTag,target:this.viewRef,oldState:t!==e?e:void 0,pointerType:this.pointerType}),timeStamp:Date.now()}}},{key:"transformTouchEvent",value:function(t){var e,i=this,n=this.delegate.measureView(),a=[],r=[],s=this.tracker.getData();if(0!==s.size&amp;&amp;s.has(t.pointerId)){s.forEach((function(t,e){var r=i.tracker.getMappedTouchEventId(e);a.push({id:r,x:t.lastX-n.pageX,y:t.lastY-n.pageY,absoluteX:t.lastX,absoluteY:t.lastY})})),t.eventType!==l.EventTypes.CANCEL?r.push({id:this.tracker.getMappedTouchEventId(t.pointerId),x:t.x-n.pageX,y:t.y-n.pageY,absoluteX:t.x,absoluteY:t.y}):s.forEach((function(t,e){var a=i.tracker.getMappedTouchEventId(e);r.push({id:a,x:t.lastX-n.pageX,y:t.lastY-n.pageY,absoluteX:t.lastX,absoluteY:t.lastY})}));var o=l.TouchEventType.UNDETERMINED;switch(t.eventType){case l.EventTypes.DOWN:case l.EventTypes.ADDITIONAL_POINTER_DOWN:o=l.TouchEventType.DOWN;break;case l.EventTypes.UP:case l.EventTypes.ADDITIONAL_POINTER_UP:o=l.TouchEventType.UP;break;case l.EventTypes.MOVE:o=l.TouchEventType.MOVE;break;case l.EventTypes.CANCEL:o=l.TouchEventType.CANCELLED}var u=a.length;return t.eventType!==l.EventTypes.UP&amp;&amp;t.eventType!==l.EventTypes.ADDITIONAL_POINTER_UP||--u,{nativeEvent:{handlerTag:this.handlerTag,state:this.currentState,eventType:null!==(e=t.touchEventType)&amp;&amp;void 0!==e?e:o,changedTouches:r,allTouches:a,numberOfTouches:u},timeStamp:Date.now()}}}},{key:"cancelTouches",value:function(){var t=this,e=this.delegate.measureView(),i=[],n=[],a=this.tracker.getData();if(0!==a.size){a.forEach((function(a,r){var s=t.tracker.getMappedTouchEventId(r);i.push({id:s,x:a.lastX-e.pageX,y:a.lastY-e.pageY,absoluteX:a.lastX,absoluteY:a.lastY}),n.push({id:s,x:a.lastX-e.pageX,y:a.lastY-e.pageY,absoluteX:a.lastX,absoluteY:a.lastY})}));var r={nativeEvent:{handlerTag:this.handlerTag,state:this.currentState,eventType:l.TouchEventType.CANCELLED,changedTouches:n,allTouches:i,numberOfTouches:i.length},timeStamp:Date.now()};p(this.propsRef.current.onGestureHandlerEvent,r)}}},{key:"transformNativeEvent",value:function(){var t=this.delegate.measureView();return{x:this.tracker.getLastAvgX()-t.pageX,y:this.tracker.getLastAvgY()-t.pageY,absoluteX:this.tracker.getLastAvgX(),absoluteY:this.tracker.getLastAvgY()}}},{key:"updateGestureConfig",value:function(t){var e=t.enabled,i=void 0===e||e,n=(0,r.default)(t,g);if(this.config=Object.assign({enabled:i},n),this.enabled=i,void 0!==this.config.shouldCancelWhenOutside&amp;&amp;this.setShouldCancelWhenOutside(this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.currentState){case u.State.ACTIVE:this.fail(!0);break;case u.State.UNDETERMINED:c.default.getInstance().removeHandlerFromOrchestrator(this);break;default:this.cancel(!0)}}},{key:"checkCustomActivationCriteria",value:function(t){for(var e in this.config)t.indexOf(e)&gt;=0&amp;&amp;(this.hasCustomActivationCriteria=!0)}},{key:"validateHitSlops",value:function(){if(this.config.hitSlop){if(void 0!==this.config.hitSlop.left&amp;&amp;void 0!==this.config.hitSlop.right&amp;&amp;void 0!==this.config.hitSlop.width)throw new Error("HitSlop Error: Cannot define left, right and width at the same time");if(void 0!==this.config.hitSlop.width&amp;&amp;void 0===this.config.hitSlop.left&amp;&amp;void 0===this.config.hitSlop.right)throw new Error("HitSlop Error: When width is defined, either left or right has to be defined");if(void 0!==this.config.hitSlop.height&amp;&amp;void 0!==this.config.hitSlop.top&amp;&amp;void 0!==this.config.hitSlop.bottom)throw new Error("HitSlop Error: Cannot define top, bottom and height at the same time");if(void 0!==this.config.hitSlop.height&amp;&amp;void 0===this.config.hitSlop.top&amp;&amp;void 0===this.config.hitSlop.bottom)throw new Error("HitSlop Error: When height is defined, either top or bottom has to be defined")}}},{key:"checkHitSlop",value:function(){if(!this.config.hitSlop)return!0;var t=this.delegate.measureView(),e=t.width,i=0,n=0,a=e,r=t.height;void 0!==this.config.hitSlop.horizontal&amp;&amp;(i-=this.config.hitSlop.horizontal,a+=this.config.hitSlop.horizontal),void 0!==this.config.hitSlop.vertical&amp;&amp;(n-=this.config.hitSlop.vertical,r+=this.config.hitSlop.vertical),void 0!==this.config.hitSlop.left&amp;&amp;(i=-this.config.hitSlop.left),void 0!==this.config.hitSlop.right&amp;&amp;(a=e+this.config.hitSlop.right),void 0!==this.config.hitSlop.top&amp;&amp;(n=-this.config.hitSlop.top),void 0!==this.config.hitSlop.bottom&amp;&amp;(r=e+this.config.hitSlop.bottom),void 0!==this.config.hitSlop.width&amp;&amp;(void 0!==this.config.hitSlop.left?a=i+this.config.hitSlop.width:void 0!==this.config.hitSlop.right&amp;&amp;(i=a-this.config.hitSlop.width)),void 0!==this.config.hitSlop.height&amp;&amp;(void 0!==this.config.hitSlop.top?r=n+this.config.hitSlop.height:void 0!==this.config.hitSlop.bottom&amp;&amp;(n=r-this.config.hitSlop.height));var s=this.delegate.measureView(),o=this.tracker.getLastX()-s.pageX,u=this.tracker.getLastY()-s.pageY;return o&gt;=i&amp;&amp;o&lt;=a&amp;&amp;u&gt;=n&amp;&amp;u&lt;=r}},{key:"isButtonInConfig",value:function(t){return!t||!this.config.mouseButton&amp;&amp;t===d.MouseButton.LEFT||this.config.mouseButton&amp;&amp;t&amp;this.config.mouseButton}},{key:"resetConfig",value:function(){}},{key:"onDestroy",value:function(){this.delegate.destroy(this.config)}},{key:"getTag",value:function(){return this.handlerTag}},{key:"setTag",value:function(t){this.handlerTag=t}},{key:"getConfig",value:function(){return this.config}},{key:"getDelegate",value:function(){return this.delegate}},{key:"getTracker",value:function(){return this.tracker}},{key:"getTrackedPointersID",value:function(){return this.tracker.getTrackedPointersID()}},{key:"getState",value:function(){return this.currentState}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isFinished",value:function(){return this.currentState===u.State.END||this.currentState===u.State.FAILED||this.currentState===u.State.CANCELLED}},{key:"setShouldCancelWhenOutside",value:function(t){this.shouldCancelWhenOutside=t}},{key:"getShouldCancelWhenOutside",value:function(){return this.shouldCancelWhenOutside}},{key:"getPointerType",value:function(){return this.pointerType}}]);function p(t,e){if(t)if("function"!=typeof t){if("__getHandler"in t&amp;&amp;"function"==typeof t.__getHandler)p(t.__getHandler(),e);else if("__nodeConfig"in t){var i=t.__nodeConfig.argMapping;if(Array.isArray(i))for(var n of i.entries()){var r=(0,a.default)(n,2),s=r[0],o=(0,a.default)(r[1],2),u=o[0],l=o[1];if(u in e.nativeEvent){var c=e.nativeEvent[u];null!=l&amp;&amp;l.setValue?l.setValue(c):t.__nodeConfig.argMapping[s]=[u,c]}}}}else t(e)}},18460:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=n(i(15987)),d=["enabled"];function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function g(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function y(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),y(t=(0,o.default)(i,v()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"minDurationMs",500),y(t,"defaultMaxDistSq",100),y(t,"maxDistSq",t.defaultMaxDistSq),y(t,"startX",0),y(t,"startY",0),y(t,"startTime",0),y(t,"previousTime",0),y(t,"activationTimeout",void 0),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){void 0===this.config.enableContextMenu&amp;&amp;(this.config.enableContextMenu=!1),g(e,"init",this,3)([t,i])}},{key:"transformNativeEvent",value:function(){return Object.assign({},g(e,"transformNativeEvent",this,3)([]),{duration:Date.now()-this.startTime})}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,d);g(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)]),void 0!==this.config.minDurationMs&amp;&amp;(this.minDurationMs=this.config.minDurationMs),void 0!==this.config.maxDist&amp;&amp;(this.maxDistSq=this.config.maxDist*this.config.maxDist)}},{key:"resetConfig",value:function(){g(e,"resetConfig",this,3)([]),this.minDurationMs=500,this.maxDistSq=this.defaultMaxDistSq}},{key:"onStateChange",value:function(t,e){clearTimeout(this.activationTimeout)}},{key:"onPointerDown",value:function(t){this.isButtonInConfig(t.button)&amp;&amp;(this.tracker.addToTracker(t),g(e,"onPointerDown",this,3)([t]),this.tryBegin(t),this.tryActivate(),this.checkDistanceFail(t))}},{key:"onPointerMove",value:function(t){g(e,"onPointerMove",this,3)([t]),this.tracker.track(t),this.checkDistanceFail(t)}},{key:"onPointerUp",value:function(t){g(e,"onPointerUp",this,3)([t]),this.tracker.removeFromTracker(t.pointerId),this.currentState===h.State.ACTIVE?this.end():this.fail()}},{key:"tryBegin",value:function(t){this.currentState===h.State.UNDETERMINED&amp;&amp;(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin(),this.startX=t.x,this.startY=t.y)}},{key:"tryActivate",value:function(){var t=this;this.minDurationMs&gt;0?this.activationTimeout=setTimeout((function(){t.activate()}),this.minDurationMs):0===this.minDurationMs&amp;&amp;this.activate()}},{key:"checkDistanceFail",value:function(t){var e=t.x-this.startX,i=t.y-this.startY;e*e+i*i&lt;=this.maxDistSq||(this.currentState===h.State.ACTIVE?this.cancel():this.fail())}}])}(f.default)},21963:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=n(i(58223)),d=n(i(15987)),v=["enabled"];function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}e.default=function(t){function e(){return(0,r.default)(this,e),t=this,i=e,n=arguments,i=(0,u.default)(i),(0,o.default)(t,g()?Reflect.construct(i,n||[],(0,u.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){y(e,"init",this,3)([t,i])}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,v);y(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)])}},{key:"onPointerMoveOver",value:function(t){f.default.getInstance().recordHandlerIfNotPresent(this),this.tracker.addToTracker(t),y(e,"onPointerMoveOver",this,3)([t]),this.getState()===h.State.UNDETERMINED&amp;&amp;(this.begin(),this.activate())}},{key:"onPointerMoveOut",value:function(t){this.tracker.addToTracker(t),y(e,"onPointerMoveOut",this,3)([t]),this.end()}},{key:"onPointerMove",value:function(t){this.tracker.track(t),y(e,"onPointerMove",this,3)([t])}},{key:"onPointerCancel",value:function(t){y(e,"onPointerCancel",this,3)([t]),this.reset()}}])}(d.default)},24894:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(29511)),l=n(i(86318));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}var h=function(t){function e(){return(0,a.default)(this,e),t=this,i=e,n=arguments,i=(0,o.default)(i),(0,s.default)(t,c()?Reflect.construct(i,n||[],(0,o.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,u.default)(e,t),(0,r.default)(e,[{key:"name",get:function(){return"pinch"}},{key:"NativeGestureClass",get:function(){return l.default.Pinch}},{key:"transformNativeEvent",value:function(t){var e=t.scale,i=t.velocity,n=t.center;return{focalX:n.x,focalY:n.y,velocity:i,scale:e}}}])}(n(i(50722)).default);e.default=h},25722:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(85715)),r=n(i(91847)),s=n(i(17383)),o=n(i(34579)),u=n(i(86318)),l=n(i(4992)),c=i(10988),h=i(4802),f=function(t,e){if(!e&amp;&amp;t&amp;&amp;t.__esModule)return t;if(null===t||"object"!=typeof t&amp;&amp;"function"!=typeof t)return{default:t};var i=g(e);if(i&amp;&amp;i.has(t))return i.get(t);var n={__proto__:null},a=Object.defineProperty&amp;&amp;Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&amp;&amp;{}.hasOwnProperty.call(t,r)){var s=a?Object.getOwnPropertyDescriptor(t,r):null;s&amp;&amp;(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=t[r]}return n.default=t,i&amp;&amp;i.set(t,n),n}(i(98724)),d=i(53698),v=["enabled"];function g(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(g=function(t){return t?i:e})(t)}function y(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var p=0,E=(0,o.default)((function t(){var e=this;(0,s.default)(this,t),y(this,"handlerTag",void 0),y(this,"isGestureRunning",!1),y(this,"view",null),y(this,"hasCustomActivationCriteria",void 0),y(this,"hasGestureFailed",!1),y(this,"hammer",null),y(this,"initialRotation",null),y(this,"__initialX",void 0),y(this,"__initialY",void 0),y(this,"config",{}),y(this,"previousState",c.State.UNDETERMINED),y(this,"pendingGestures",{}),y(this,"oldState",c.State.UNDETERMINED),y(this,"lastSentState",null),y(this,"gestureInstance",void 0),y(this,"_stillWaiting",void 0),y(this,"propsRef",void 0),y(this,"ref",void 0),y(this,"clearSelfAsPending",(function(){if(Array.isArray(e.config.waitFor))for(var t of e.config.waitFor)t.removePendingGesture(e.id)})),y(this,"destroy",(function(){e.clearSelfAsPending(),e.hammer&amp;&amp;(e.hammer.stop(!1),e.hammer.destroy()),e.hammer=null})),y(this,"isPointInView",(function(t){var i=t.x,n=t.y,a=e.view.getBoundingClientRect();return i&gt;=a.left&amp;&amp;i&lt;=a.right&amp;&amp;n&gt;=a.top&amp;&amp;n&lt;=a.bottom})),y(this,"sendEvent",(function(t){var i=e.propsRef.current,n=i.onGestureHandlerEvent,a=i.onGestureHandlerStateChange,r=e.transformEventData(t);m(n,r),e.lastSentState!==r.nativeEvent.state&amp;&amp;(e.lastSentState=r.nativeEvent.state,m(a,r))})),y(this,"sync",(function(){var t=e.hammer.get(e.name);if(t){var i=e.getHammerConfig();t.set(Object.assign({},i,{enable:function(t,i){if(!e.config.enabled)return e.isGestureRunning=!1,e.hasGestureFailed=!1,!1;if(!i||!t.options||void 0===i.maxPointers)return e.shouldEnableGestureOnSetup;if(e.hasGestureFailed)return!1;if(!e.isDiscrete){if(e.isGestureRunning)return!0;if(e._stillWaiting=e._getPendingGestures(),e._stillWaiting.length){for(var n of e._stillWaiting)if(!n.isDiscrete&amp;&amp;n.isGestureRunning)return e.hasGestureFailed=!0,e.isGestureRunning=!1,!1;return!1}}if(!e.hasCustomActivationCriteria)return!0;var a=null==e.initialRotation?0:i.rotation-e.initialRotation,r=e.isGestureEnabledForEvent(e.getConfig(),t,Object.assign({},i,{deltaRotation:a})),s=r.success;return r.failed&amp;&amp;(e.simulateCancelEvent(i),e.hasGestureFailed=!0),s}}))}})),this.gestureInstance=p++,this.hasCustomActivationCriteria=!1}),[{key:"id",get:function(){return`${this.name}${this.gestureInstance}`}},{key:"isNative",get:function(){return!1}},{key:"isDiscrete",get:function(){return!1}},{key:"shouldEnableGestureOnSetup",get:function(){throw new Error("Must override GestureHandler.shouldEnableGestureOnSetup")}},{key:"getConfig",value:function(){return this.config}},{key:"onWaitingEnded",value:function(t){}},{key:"removePendingGesture",value:function(t){delete this.pendingGestures[t]}},{key:"addPendingGesture",value:function(t){this.pendingGestures[t.id]=t}},{key:"isGestureEnabledForEvent",value:function(t,e,i){return{success:!0}}},{key:"NativeGestureClass",get:function(){throw new Error("Must override GestureHandler.NativeGestureClass")}},{key:"updateHasCustomActivationCriteria",value:function(t){return!0}},{key:"updateGestureConfig",value:function(t){var e=t.enabled,i=void 0===e||e,n=(0,r.default)(t,v);if(this.clearSelfAsPending(),this.config=this.ensureConfig(Object.assign({enabled:i},n)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(var a of this.config.waitFor)a.addPendingGesture(this);return this.hammer&amp;&amp;this.sync(),this.config}},{key:"getState",value:function(t){return 0==t?0:h.EventMap[t]}},{key:"transformEventData",value:function(t){var e=t.eventType,i=t.maxPointers,n=t.changedPointers[0],a=this.isPointInView({x:n.clientX,y:n.clientY}),r=this.getState(e);return r!==this.previousState&amp;&amp;(this.oldState=this.previousState,this.previousState=r),{nativeEvent:Object.assign({numberOfPointers:i,state:r,pointerInside:a},this.transformNativeEvent(t),{handlerTag:this.handlerTag,target:this.ref,oldState:r!==this.previousState||4!=r?this.oldState:void 0}),timeStamp:Date.now()}}},{key:"transformNativeEvent",value:function(t){return{}}},{key:"cancelPendingGestures",value:function(t){for(var e of Object.values(this.pendingGestures))e&amp;&amp;e.isGestureRunning&amp;&amp;(e.hasGestureFailed=!0,e.cancelEvent(t))}},{key:"notifyPendingGestures",value:function(){for(var t of Object.values(this.pendingGestures))t&amp;&amp;t.onWaitingEnded(this)}},{key:"onGestureEnded",value:function(t){this.isGestureRunning=!1,this.cancelPendingGestures(t)}},{key:"forceInvalidate",value:function(t){this.isGestureRunning&amp;&amp;(this.hasGestureFailed=!0,this.cancelEvent(t))}},{key:"cancelEvent",value:function(t){this.notifyPendingGestures(),this.sendEvent(Object.assign({},t,{eventType:u.default.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(t)}},{key:"onRawEvent",value:function(t){t.isFirst&amp;&amp;(this.hasGestureFailed=!1)}},{key:"shouldUseTouchEvents",value:function(t){var e,i;return null!==(e=null===(i=t.simultaneousHandlers)||void 0===i?void 0:i.some((function(t){return t.isNative})))&amp;&amp;void 0!==e&amp;&amp;e}},{key:"setView",value:function(t,e){var i=this;if(null==t)return this.destroy(),void(this.view=null);var n="ontouchstart"in window;this.propsRef=e,this.ref=t,this.view=(0,l.default)(t),this.hammer=n&amp;&amp;this.shouldUseTouchEvents(this.config)?new u.default.Manager(this.view,{inputClass:u.default.TouchInput}):new u.default.Manager(this.view),this.oldState=c.State.UNDETERMINED,this.previousState=c.State.UNDETERMINED,this.lastSentState=null;var a=new(0,this.NativeGestureClass)(this.getHammerConfig());this.hammer.add(a),this.hammer.on("hammer.input",(function(t){if(!i.config.enabled)return i.hasGestureFailed=!1,void(i.isGestureRunning=!1);i.onRawEvent(t),null===i.initialRotation&amp;&amp;0!==t.rotation&amp;&amp;(i.initialRotation=t.rotation),t.isFinal&amp;&amp;setTimeout((function(){i.initialRotation=null,i.hasGestureFailed=!1}))})),this.setupEvents(),this.sync()}},{key:"setupEvents",value:function(){var t=this;this.isDiscrete||(this.hammer.on(`${this.name}start`,(function(e){return t.onStart(e)})),this.hammer.on(`${this.name}end ${this.name}cancel`,(function(e){t.onGestureEnded(e)}))),this.hammer.on(this.name,(function(e){return t.onGestureActivated(e)}))}},{key:"onStart",value:function(t){var e=t.deltaX,i=t.deltaY,n=t.rotation;this.oldState=c.State.UNDETERMINED,this.previousState=c.State.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=e,this.__initialY=i,this.initialRotation=n}},{key:"onGestureActivated",value:function(t){this.sendEvent(t)}},{key:"onSuccess",value:function(){}},{key:"_getPendingGestures",value:function(){return Array.isArray(this.config.waitFor)&amp;&amp;this.config.waitFor.length?this.config.waitFor.filter((function(t){return!1===t.hasGestureFailed})):[]}},{key:"getHammerConfig",value:function(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}},{key:"simulateCancelEvent",value:function(t){}},{key:"ensureConfig",value:function(t){var e=this,i=Object.assign({},t);if("minDist"in t&amp;&amp;(i.minDist=t.minDist,i.minDistSq=i.minDist*i.minDist),"minVelocity"in t&amp;&amp;(i.minVelocity=t.minVelocity,i.minVelocitySq=i.minVelocity*i.minVelocity),"maxDist"in t&amp;&amp;(i.maxDist=t.maxDist,i.maxDistSq=t.maxDist*t.maxDist),i.waitFor="waitFor"in t?T(t.waitFor).map((function(t){var e=t.handlerTag;return f.getHandler(e)})).filter((function(t){return t})):null,"simultaneousHandlers"in t){var n=this.shouldUseTouchEvents(this.config);i.simultaneousHandlers=T(t.simultaneousHandlers).map((function(t){return"number"==typeof t?f.getHandler(t):f.getHandler(t.handlerTag)})).filter((function(t){return t})),n!==this.shouldUseTouchEvents(i)&amp;&amp;(0,d.ghQueueMicrotask)((function(){e.destroy(),e.setView(e.ref,e.propsRef)}))}else i.simultaneousHandlers=null;return["minPointers","maxPointers","minDist","maxDist","maxDistSq","minVelocitySq","minDistSq","minVelocity","failOffsetXStart","failOffsetYStart","failOffsetXEnd","failOffsetYEnd","activeOffsetXStart","activeOffsetXEnd","activeOffsetYStart","activeOffsetYEnd"].forEach((function(t){void 0===i[t]&amp;&amp;(i[t]=Number.NaN)})),i}}]);function m(t,e){if(t)if("function"==typeof t)t(e);else if("__getHandler"in t&amp;&amp;"function"==typeof t.__getHandler)m(t.__getHandler(),e);else if("__nodeConfig"in t){var i=t.__nodeConfig.argMapping;if(Array.isArray(i))for(var n of i.entries()){var r=(0,a.default)(n,2),s=r[0],o=(0,a.default)(r[1],2),u=o[0],l=o[1];if(u in e.nativeEvent){var c=e.nativeEvent[u];l&amp;&amp;l.setValue?l.setValue(c):t.__nodeConfig.argMapping[s]=[u,c]}}}}function T(t){return null==t?[]:Array.isArray(t)?t:[t]}e.default=E},26467:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579));var s,o,u,l=e.default=(0,r.default)((function t(){(0,a.default)(this,t)}),null,[{key:"getHandler",value:function(t){if(t in this.gestures)return this.gestures[t];throw new Error(`No handler for tag ${t}`)}},{key:"createGestureHandler",value:function(t,e){if(t in this.gestures)throw new Error(`Handler with tag ${t} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[t]=e,this.gestures[t].setTag(t)}},{key:"dropGestureHandler",value:function(t){t in this.gestures&amp;&amp;(this.gestures[t].onDestroy(),delete this.gestures[t])}},{key:"getNodes",value:function(){return Object.assign({},this.gestures)}}]);u={},(o="gestures")in(s=l)?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u},29337:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=n(i(15987)),f=["enabled"];function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function v(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}e.default=function(t){function e(){return(0,r.default)(this,e),t=this,i=e,n=arguments,i=(0,u.default)(i),(0,o.default)(t,d()?Reflect.construct(i,n||[],(0,u.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){v(e,"init",this,3)([t,i])}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,f);v(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)])}},{key:"onPointerDown",value:function(t){this.tracker.addToTracker(t),v(e,"onPointerDown",this,3)([t]),this.begin()}},{key:"onPointerAdd",value:function(t){this.tracker.addToTracker(t),v(e,"onPointerAdd",this,3)([t])}},{key:"onPointerMove",value:function(t){this.tracker.track(t),v(e,"onPointerMove",this,3)([t])}},{key:"onPointerOutOfBounds",value:function(t){this.tracker.track(t),v(e,"onPointerOutOfBounds",this,3)([t])}},{key:"onPointerUp",value:function(t){v(e,"onPointerUp",this,3)([t]),this.tracker.removeFromTracker(t.pointerId)}},{key:"onPointerRemove",value:function(t){v(e,"onPointerRemove",this,3)([t]),this.tracker.removeFromTracker(t.pointerId)}}])}(h.default)},35072:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(32395)),l=n(i(29511)),c=n(i(44737)),h=function(t,e){if(!e&amp;&amp;t&amp;&amp;t.__esModule)return t;if(null===t||"object"!=typeof t&amp;&amp;"function"!=typeof t)return{default:t};var i=v(e);if(i&amp;&amp;i.has(t))return i.get(t);var n={__proto__:null},a=Object.defineProperty&amp;&amp;Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&amp;&amp;{}.hasOwnProperty.call(t,r)){var s=a?Object.getOwnPropertyDescriptor(t,r):null;s&amp;&amp;(s.get||s.set)?Object.defineProperty(n,r,s):n[r]=t[r]}return n.default=t,i&amp;&amp;i.set(t,n),n}(i(98724)),f=n(i(98973)),d=i(46522);function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(v=function(t){return t?i:e})(t)}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var y=function(t){function e(){return(0,a.default)(this,e),t=this,i=e,n=arguments,i=(0,o.default)(i),(0,s.default)(t,g()?Reflect.construct(i,n||[],(0,o.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,l.default)(e,t),(0,r.default)(e,[{key:"isNative",get:function(){return!0}},{key:"onRawEvent",value:function(t){var i,n,a,r,s,l=this;if((i=e,n="onRawEvent",a=this,r=3,s=(0,u.default)((0,o.default)(1&amp;r?i.prototype:i),n,a),2&amp;r&amp;&amp;"function"==typeof s?function(t){return s.apply(a,t)}:s)([t]),!t.isFinal&amp;&amp;(0,d.TEST_MIN_IF_NOT_NAN)((0,d.VEC_LEN_SQ)({x:t.deltaX,y:t.deltaY}),10)&amp;&amp;this.config.disallowInterruption){var f=Object.values(h.getNodes()).filter((function(t){var e=t.handlerTag,i=t.view,n=t.isGestureRunning;return e!==l.handlerTag&amp;&amp;n&amp;&amp;t instanceof c.default&amp;&amp;i&amp;&amp;l.view.contains(i)}));for(var v of f)v.forceInvalidate(t)}}}])}(f.default);e.default=y},37609:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579));function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,r.default)((function t(e){(0,a.default)(this,t),s(this,"view",void 0),s(this,"pointersInBounds",[]),s(this,"activePointersCounter",void 0),this.view=e,this.activePointersCounter=0}),[{key:"onPointerDown",value:function(t){}},{key:"onPointerAdd",value:function(t){}},{key:"onPointerUp",value:function(t){}},{key:"onPointerRemove",value:function(t){}},{key:"onPointerMove",value:function(t){}},{key:"onPointerLeave",value:function(t){}},{key:"onPointerEnter",value:function(t){}},{key:"onPointerCancel",value:function(t){}},{key:"onPointerOutOfBounds",value:function(t){}},{key:"onPointerMoveOver",value:function(t){}},{key:"onPointerMoveOut",value:function(t){}},{key:"setOnPointerDown",value:function(t){this.onPointerDown=t}},{key:"setOnPointerAdd",value:function(t){this.onPointerAdd=t}},{key:"setOnPointerUp",value:function(t){this.onPointerUp=t}},{key:"setOnPointerRemove",value:function(t){this.onPointerRemove=t}},{key:"setOnPointerMove",value:function(t){this.onPointerMove=t}},{key:"setOnPointerLeave",value:function(t){this.onPointerLeave=t}},{key:"setOnPointerEnter",value:function(t){this.onPointerEnter=t}},{key:"setOnPointerCancel",value:function(t){this.onPointerCancel=t}},{key:"setOnPointerOutOfBounds",value:function(t){this.onPointerOutOfBounds=t}},{key:"setOnPointerMoveOver",value:function(t){this.onPointerMoveOver=t}},{key:"setOnPointerMoveOut",value:function(t){this.onPointerMoveOut=t}},{key:"markAsInBounds",value:function(t){this.pointersInBounds.indexOf(t)&gt;=0||this.pointersInBounds.push(t)}},{key:"markAsOutOfBounds",value:function(t){var e=this.pointersInBounds.indexOf(t);e&lt;0||this.pointersInBounds.splice(e,1)}},{key:"resetManager",value:function(){this.activePointersCounter=0,this.pointersInBounds=[]}}])},37914:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.GestureHandlerWebDelegate=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(4992)),o=n(i(82982)),u=n(i(84004)),l=i(10988),c=i(9197),h=i(30959);function f(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.GestureHandlerWebDelegate=(0,r.default)((function t(){(0,a.default)(this,t),f(this,"view",void 0),f(this,"gestureHandler",void 0),f(this,"eventManagers",[])}),[{key:"getView",value:function(){return this.view}},{key:"init",value:function(t,e){var i,n=this;if(!t)throw new Error(`Cannot find HTML Element for handler ${e.getTag()}`);this.gestureHandler=e,this.view=(0,s.default)(t);var a=e.getConfig();this.addContextMenuListeners(a),a.userSelect?(this.view.style.webkitUserSelect=a.userSelect,this.view.style.userSelect=a.userSelect):(this.view.style.webkitUserSelect="none",this.view.style.userSelect="none"),this.view.style.touchAction=null!==(i=a.touchAction)&amp;&amp;void 0!==i?i:"none",this.view.style.WebkitTouchCallout="none",this.eventManagers.push(new o.default(this.view)),this.eventManagers.push(new u.default(this.view)),this.eventManagers.forEach((function(t){return n.gestureHandler.attachEventManager(t)}))}},{key:"isPointerInBounds",value:function(t){var e=t.x,i=t.y;return(0,c.isPointerInBounds)(this.view,{x:e,y:i})}},{key:"measureView",value:function(){var t=this.view.getBoundingClientRect();return{pageX:t.left,pageY:t.top,width:t.width,height:t.height}}},{key:"reset",value:function(){this.eventManagers.forEach((function(t){return t.resetManager()}))}},{key:"tryResetCursor",value:function(){var t=this.gestureHandler.getConfig();t.activeCursor&amp;&amp;"auto"!==t.activeCursor&amp;&amp;this.gestureHandler.getState()===l.State.ACTIVE&amp;&amp;(this.view.style.cursor="auto")}},{key:"shouldDisableContextMenu",value:function(t){return void 0===t.enableContextMenu&amp;&amp;this.gestureHandler.isButtonInConfig(h.MouseButton.RIGHT)||!1===t.enableContextMenu}},{key:"addContextMenuListeners",value:function(t){this.shouldDisableContextMenu(t)?this.view.addEventListener("contextmenu",this.disableContextMenu):t.enableContextMenu&amp;&amp;this.view.addEventListener("contextmenu",this.enableContextMenu)}},{key:"removeContextMenuListeners",value:function(t){this.shouldDisableContextMenu(t)?this.view.removeEventListener("contextmenu",this.disableContextMenu):t.enableContextMenu&amp;&amp;this.view.removeEventListener("contextmenu",this.enableContextMenu)}},{key:"disableContextMenu",value:function(t){t.preventDefault()}},{key:"enableContextMenu",value:function(t){t.stopPropagation()}},{key:"onBegin",value:function(){}},{key:"onActivate",value:function(){var t=this.gestureHandler.getConfig();this.view.style.cursor&amp;&amp;"auto"!==this.view.style.cursor||!t.activeCursor||(this.view.style.cursor=t.activeCursor)}},{key:"onEnd",value:function(){this.tryResetCursor()}},{key:"onCancel",value:function(){this.tryResetCursor()}},{key:"onFail",value:function(){this.tryResetCursor()}},{key:"destroy",value:function(t){this.removeContextMenuListeners(t),this.eventManagers.forEach((function(t){t.unregisterListeners()}))}}])},39389:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=i(99459),d=n(i(15987)),v=n(i(82513)),g=["enabled"];function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function p(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function E(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),E(t=(0,o.default)(i,y()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"scale",1),E(t,"velocity",0),E(t,"startingSpan",0),E(t,"spanSlop",f.DEFAULT_TOUCH_SLOP),E(t,"scaleDetectorListener",{onScaleBegin:function(e){return t.startingSpan=e.getCurrentSpan(),!0},onScale:function(e){var i=t.scale;t.scale*=e.getScaleFactor(t.tracker.getTrackedPointersCount());var n=e.getTimeDelta();return n&gt;0&amp;&amp;(t.velocity=(t.scale-i)/n),Math.abs(t.startingSpan-e.getCurrentSpan())&gt;=t.spanSlop&amp;&amp;t.currentState===h.State.BEGAN&amp;&amp;t.activate(),!0},onScaleEnd:function(t){}}),E(t,"scaleGestureDetector",new v.default(t.scaleDetectorListener)),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){p(e,"init",this,3)([t,i]),this.setShouldCancelWhenOutside(!1)}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,g);p(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)])}},{key:"transformNativeEvent",value:function(){return{focalX:this.scaleGestureDetector.getFocusX(),focalY:this.scaleGestureDetector.getFocusY(),velocity:this.velocity,scale:this.scale}}},{key:"onPointerDown",value:function(t){this.tracker.addToTracker(t),p(e,"onPointerDown",this,3)([t])}},{key:"onPointerAdd",value:function(t){this.tracker.addToTracker(t),p(e,"onPointerAdd",this,3)([t]),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(t,this.tracker)}},{key:"onPointerUp",value:function(t){p(e,"onPointerUp",this,3)([t]),this.tracker.removeFromTracker(t.pointerId),this.currentState===h.State.ACTIVE&amp;&amp;(this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.currentState===h.State.ACTIVE?this.end():this.fail())}},{key:"onPointerRemove",value:function(t){p(e,"onPointerRemove",this,3)([t]),this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId),this.currentState===h.State.ACTIVE&amp;&amp;this.tracker.getTrackedPointersCount()&lt;2&amp;&amp;this.end()}},{key:"onPointerMove",value:function(t){this.tracker.getTrackedPointersCount()&lt;2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),p(e,"onPointerMove",this,3)([t]))}},{key:"onPointerOutOfBounds",value:function(t){this.tracker.getTrackedPointersCount()&lt;2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),p(e,"onPointerOutOfBounds",this,3)([t]))}},{key:"tryBegin",value:function(){this.currentState===h.State.UNDETERMINED&amp;&amp;(this.resetProgress(),this.begin())}},{key:"activate",value:function(t){this.currentState!==h.State.ACTIVE&amp;&amp;this.resetProgress(),p(e,"activate",this,3)([t])}},{key:"onReset",value:function(){this.resetProgress()}},{key:"resetProgress",value:function(){this.currentState!==h.State.ACTIVE&amp;&amp;(this.velocity=0,this.scale=1)}}])}(d.default)},44737:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(29511)),l=n(i(25722)),c=i(46522);function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}var f=function(t){function e(){return(0,a.default)(this,e),t=this,i=e,n=arguments,i=(0,o.default)(i),(0,s.default)(t,h()?Reflect.construct(i,n||[],(0,o.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,u.default)(e,t),(0,r.default)(e,[{key:"isDiscrete",get:function(){return!0}},{key:"shouldEnableGestureOnSetup",get:function(){return!0}},{key:"shouldFailUnderCustomCriteria",value:function(t,e){var i=t.x,n=t.y,a=t.deltaX,r=t.deltaY,s=e.maxDeltaX,o=e.maxDeltaY,u=e.maxDistSq;return!(!e.shouldCancelWhenOutside||this.isPointInView({x:i,y:n}))||((0,c.TEST_MAX_IF_NOT_NAN)(Math.abs(a),s)||(0,c.TEST_MAX_IF_NOT_NAN)(Math.abs(r),o)||(0,c.TEST_MAX_IF_NOT_NAN)(Math.abs(r*r+a*a),u))}},{key:"transformNativeEvent",value:function(t){var e=t.center,i=e.x,n=e.y,a=this.view.getBoundingClientRect();return{absoluteX:i,absoluteY:n,x:i-a.left,y:n-a.top}}},{key:"isGestureEnabledForEvent",value:function(t,e,i){var n=t.minPointers,a=t.maxPointers,r=t.maxDeltaX,s=t.maxDeltaY,o=t.maxDistSq,u=t.shouldCancelWhenOutside,l=i.maxPointers,c=i.center,h=i.deltaX,f=i.deltaY,d=l&gt;=n&amp;&amp;l&lt;=a;return this.shouldFailUnderCustomCriteria(Object.assign({},c,{deltaX:h,deltaY:f}),{maxDeltaX:r,maxDeltaY:s,maxDistSq:o,shouldCancelWhenOutside:u})||!d&amp;&amp;this.isGestureRunning?{failed:!0}:{success:d}}}])}(l.default);e.default=f},44789:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=i(31587),o=i(99459);function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var l=e.default=function(){function t(e,i){(0,a.default)(this,t),u(this,"x",void 0),u(this,"y",void 0),u(this,"unitX",void 0),u(this,"unitY",void 0),u(this,"_magnitude",void 0),this.x=e,this.y=i,this._magnitude=Math.hypot(this.x,this.y);var n=this._magnitude&gt;o.MINIMAL_FLING_VELOCITY;this.unitX=n?this.x/this._magnitude:0,this.unitY=n?this.y/this._magnitude:0}return(0,r.default)(t,[{key:"magnitude",get:function(){return this._magnitude}},{key:"computeSimilarity",value:function(t){return this.unitX*t.unitX+this.unitY*t.unitY}},{key:"isSimilar",value:function(t,e){return this.computeSimilarity(t)&gt;e}}],[{key:"fromDirection",value:function(t){return c.get(t)}},{key:"fromVelocity",value:function(e,i){return new t(e.getVelocityX(i),e.getVelocityY(i))}}])}(),c=new Map([[s.Directions.LEFT,new l(-1,0)],[s.Directions.RIGHT,new l(1,0)],[s.Directions.UP,new l(0,-1)],[s.Directions.DOWN,new l(0,1)],[s.DiagonalDirections.UP_RIGHT,new l(1,-1)],[s.DiagonalDirections.DOWN_RIGHT,new l(1,1)],[s.DiagonalDirections.UP_LEFT,new l(-1,-1)],[s.DiagonalDirections.DOWN_LEFT,new l(-1,1)]])},45703:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(29511)),l=n(i(25722)),c=n(i(99518));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}var f=function(t){function e(){return(0,a.default)(this,e),t=this,i=e,n=arguments,i=(0,o.default)(i),(0,s.default)(t,h()?Reflect.construct(i,n||[],(0,o.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,u.default)(e,t),(0,r.default)(e,[{key:"shouldEnableGestureOnSetup",get:function(){return!0}},{key:"transformNativeEvent",value:function(t){var e=t.deltaX,i=t.deltaY,n=t.velocityX,a=t.velocityY,r=t.center,s=r.x,o=r.y,u=this.view.getBoundingClientRect(),l=c.default.get();return{translationX:e-(this.__initialX||0),translationY:i-(this.__initialY||0),absoluteX:s,absoluteY:o,velocityX:n*l,velocityY:a*l,x:s-u.left,y:o-u.top}}}])}(l.default);e.default=f},46319:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(85715)),r=n(i(17383)),s=n(i(34579)),o=i(83414);function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,s.default)((function t(e){(0,r.default)(this,t),u(this,"onRotationBegin",void 0),u(this,"onRotation",void 0),u(this,"onRotationEnd",void 0),u(this,"currentTime",0),u(this,"previousTime",0),u(this,"previousAngle",0),u(this,"rotation",0),u(this,"anchorX",0),u(this,"anchorY",0),u(this,"isInProgress",!1),u(this,"keyPointers",[NaN,NaN]),this.onRotationBegin=e.onRotationBegin,this.onRotation=e.onRotation,this.onRotationEnd=e.onRotationEnd}),[{key:"updateCurrent",value:function(t,e){this.previousTime=this.currentTime,this.currentTime=t.time;var i=(0,a.default)(this.keyPointers,2),n=i[0],r=i[1],s=e.getLastX(n),o=e.getLastY(n),u=e.getLastX(r),l=e.getLastY(r),c=u-s,h=l-o;this.anchorX=(s+u)/2,this.anchorY=(o+l)/2;var f=-Math.atan2(h,c);this.rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-f,this.previousAngle=f,this.rotation&gt;Math.PI?this.rotation-=Math.PI:this.rotation&lt;-Math.PI&amp;&amp;(this.rotation+=Math.PI),this.rotation&gt;Math.PI/2?this.rotation-=Math.PI:this.rotation&lt;-Math.PI/2&amp;&amp;(this.rotation+=Math.PI)}},{key:"finish",value:function(){this.isInProgress&amp;&amp;(this.isInProgress=!1,this.keyPointers=[NaN,NaN],this.onRotationEnd(this))}},{key:"setKeyPointers",value:function(t){if(!this.keyPointers[0]||!this.keyPointers[1]){var e=t.getData().keys();this.keyPointers[0]=e.next().value,this.keyPointers[1]=e.next().value}}},{key:"onTouchEvent",value:function(t,e){switch(t.eventType){case o.EventTypes.DOWN:this.isInProgress=!1;break;case o.EventTypes.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=t.time,this.previousAngle=NaN,this.setKeyPointers(e),this.updateCurrent(t,e),this.onRotationBegin(this);break;case o.EventTypes.MOVE:if(!this.isInProgress)break;this.updateCurrent(t,e),this.onRotation(this);break;case o.EventTypes.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(t.pointerId)&gt;=0&amp;&amp;this.finish();break;case o.EventTypes.UP:this.isInProgress&amp;&amp;this.finish()}return!0}},{key:"getTimeDelta",value:function(){return this.currentTime+this.previousTime}},{key:"getAnchorX",value:function(){return this.anchorX}},{key:"getAnchorY",value:function(){return this.anchorY}},{key:"getRotation",value:function(){return this.rotation}},{key:"reset",value:function(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}}])},46522:(t,e)=&gt;{Object.defineProperty(e,"__esModule",{value:!0}),e.VEC_LEN_SQ=e.TEST_MIN_IF_NOT_NAN=e.TEST_MAX_IF_NOT_NAN=void 0,e.fireAfterInterval=function(t,e){if(!e)return t(),null;return setTimeout((function(){return t()}),e)},e.isnan=e.isValidNumber=void 0;var i=e.isnan=function(t){return Number.isNaN(t)};e.isValidNumber=function(t){return"number"==typeof t&amp;&amp;!Number.isNaN(t)},e.TEST_MIN_IF_NOT_NAN=function(t,e){return!i(e)&amp;&amp;(e&lt;0&amp;&amp;t&lt;=e||e&gt;=0&amp;&amp;t&gt;=e)},e.VEC_LEN_SQ=function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},e=t.x,i=void 0===e?0:e,n=t.y,a=void 0===n?0:n;return i*i+a*a},e.TEST_MAX_IF_NOT_NAN=function(t,e){return!i(e)&amp;&amp;(e&lt;0&amp;&amp;t&lt;e||e&gt;=0&amp;&amp;t&gt;e)}},50331:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(43693)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=n(i(86318)),f=i(10988),d=n(i(98973)),v=i(46522);function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var y=function(t){function e(){return(0,r.default)(this,e),t=this,i=e,n=arguments,i=(0,u.default)(i),(0,o.default)(t,g()?Reflect.construct(i,n||[],(0,u.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"minDurationMs",get:function(){return(0,v.isnan)(this.config.minDurationMs)?251:this.config.minDurationMs}},{key:"maxDist",get:function(){return(0,v.isnan)(this.config.maxDist)?9:this.config.maxDist}},{key:"updateHasCustomActivationCriteria",value:function(t){var e=t.maxDistSq;return!(0,v.isValidNumber)(e)}},{key:"getConfig",value:function(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}},{key:"getHammerConfig",value:function(){return Object.assign({},(t=e,i="getHammerConfig",n=this,a=3,r=(0,l.default)((0,u.default)(1&amp;a?t.prototype:t),i,n),2&amp;a&amp;&amp;"function"==typeof r?function(t){return r.apply(n,t)}:r)([]),{time:this.minDurationMs});var t,i,n,a,r}},{key:"getState",value:function(t){return(0,a.default)((0,a.default)((0,a.default)((0,a.default)({},h.default.INPUT_START,f.State.ACTIVE),h.default.INPUT_MOVE,f.State.ACTIVE),h.default.INPUT_END,f.State.END),h.default.INPUT_CANCEL,f.State.FAILED)[t]}}])}(d.default);e.default=y},50722:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=n(i(25722)),f=["minPointers","maxPointers"];function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}var v=function(t){function e(){return(0,r.default)(this,e),t=this,i=e,n=arguments,i=(0,u.default)(i),(0,o.default)(t,d()?Reflect.construct(i,n||[],(0,u.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"shouldEnableGestureOnSetup",get:function(){return!1}},{key:"updateGestureConfig",value:function(t){var i,n,r,s,o,c=t.minPointers,h=void 0===c?2:c,d=t.maxPointers,v=void 0===d?2:d,g=(0,a.default)(t,f);return(i=e,n="updateGestureConfig",r=this,s=3,o=(0,l.default)((0,u.default)(1&amp;s?i.prototype:i),n,r),2&amp;s&amp;&amp;"function"==typeof o?function(t){return o.apply(r,t)}:o)([Object.assign({minPointers:h,maxPointers:v},g)])}},{key:"isGestureEnabledForEvent",value:function(t,e,i){var n=t.minPointers,a=t.maxPointers,r=i.maxPointers;return r&gt;a?{failed:!0}:{success:r&gt;=n}}}])}(h.default);e.default=v},58189:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(83917)),o=n(i(96673));function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,r.default)((function t(){(0,a.default)(this,t),u(this,"assumePointerMoveStoppedMilliseconds",40),u(this,"historySize",20),u(this,"horizonMilliseconds",300),u(this,"minSampleSize",3),u(this,"samples",void 0),this.samples=new s.default(this.historySize)}),[{key:"add",value:function(t){this.samples.push(t)}},{key:"getVelocityEstimate",value:function(){var t=[],e=[],i=[],n=[],a=0,r=this.samples.size-1,s=this.samples.get(r);if(!s)return null;for(var u=s;a&lt;this.samples.size;){var l=this.samples.get(r),c=s.time-l.time,h=Math.abs(l.time-u.time);if(u=l,c&gt;this.horizonMilliseconds||h&gt;this.assumePointerMoveStoppedMilliseconds)break;t.push(l.x),e.push(l.y),i.push(1),n.push(-c),a++,r--}if(a&gt;=this.minSampleSize){var f=new o.default(n,t,i).solve(2);if(null!==f){var d=new o.default(n,e,i).solve(2);if(null!==d)return[1e3*f.coefficients[1],1e3*d.coefficients[1]]}}return null}},{key:"getVelocity",value:function(){var t=this.getVelocityEstimate();return null!==t?t:[0,0]}},{key:"reset",value:function(){this.samples.clear()}}])},58223:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=i(26704),o=i(10988),u=n(i(3813));function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c=e.default=function(){function t(){(0,a.default)(this,t),l(this,"gestureHandlers",[]),l(this,"awaitingHandlers",[]),l(this,"awaitingHandlersTags",new Set),l(this,"handlingChangeSemaphore",0),l(this,"activationIndex",0)}return(0,r.default)(t,[{key:"scheduleFinishedHandlersCleanup",value:function(){0===this.handlingChangeSemaphore&amp;&amp;this.cleanupFinishedHandlers()}},{key:"cleanHandler",value:function(t){t.reset(),t.setActive(!1),t.setAwaiting(!1),t.setActivationIndex(Number.MAX_VALUE)}},{key:"removeHandlerFromOrchestrator",value:function(t){var e=this.gestureHandlers.indexOf(t),i=this.awaitingHandlers.indexOf(t);e&gt;=0&amp;&amp;this.gestureHandlers.splice(e,1),i&gt;=0&amp;&amp;(this.awaitingHandlers.splice(i,1),this.awaitingHandlersTags.delete(t.getTag()))}},{key:"cleanupFinishedHandlers",value:function(){for(var t=new Set,e=this.gestureHandlers.length-1;e&gt;=0;--e){var i=this.gestureHandlers[e];this.isFinished(i.getState())&amp;&amp;!i.isAwaiting()&amp;&amp;(this.cleanHandler(i),t.add(i))}this.gestureHandlers=this.gestureHandlers.filter((function(e){return!t.has(e)}))}},{key:"hasOtherHandlerToWaitFor",value:function(t){var e=this;return this.gestureHandlers.some((function(i){return!e.isFinished(i.getState())&amp;&amp;e.shouldHandlerWaitForOther(t,i)}))}},{key:"shouldBeCancelledByFinishedHandler",value:function(t){var e=this;return this.gestureHandlers.some((function(i){return e.shouldHandlerWaitForOther(t,i)&amp;&amp;i.getState()===o.State.END}))}},{key:"tryActivate",value:function(t){if(this.shouldBeCancelledByFinishedHandler(t))t.cancel();else if(this.hasOtherHandlerToWaitFor(t))this.addAwaitingHandler(t);else{var e=t.getState();e!==o.State.CANCELLED&amp;&amp;e!==o.State.FAILED&amp;&amp;(this.shouldActivate(t)?this.makeActive(t):e!==o.State.ACTIVE?e===o.State.BEGAN&amp;&amp;t.cancel():t.fail())}}},{key:"shouldActivate",value:function(t){var e=this;return!this.gestureHandlers.some((function(i){return e.shouldHandlerBeCancelledBy(t,i)}))}},{key:"cleanupAwaitingHandlers",value:function(t){var e=this,i=function(i){return!i.isAwaiting()&amp;&amp;e.shouldHandlerWaitForOther(i,t)};for(var n of this.awaitingHandlers)i(n)&amp;&amp;(this.cleanHandler(n),this.awaitingHandlersTags.delete(n.getTag()));this.awaitingHandlers=this.awaitingHandlers.filter((function(t){return e.awaitingHandlersTags.has(t.getTag())}))}},{key:"onHandlerStateChange",value:function(t,e,i,n){if(t.isEnabled()||n){if(this.handlingChangeSemaphore+=1,this.isFinished(e))for(var a of this.awaitingHandlers)this.shouldHandlerWaitForOther(a,t)&amp;&amp;this.awaitingHandlersTags.has(a.getTag())&amp;&amp;(e===o.State.END?(a.cancel(),a.getState()===o.State.END&amp;&amp;a.sendEvent(o.State.CANCELLED,o.State.BEGAN),a.setAwaiting(!1)):this.tryActivate(a));e===o.State.ACTIVE?this.tryActivate(t):i===o.State.ACTIVE||i===o.State.END?t.isActive()?t.sendEvent(e,i):i!==o.State.ACTIVE||e!==o.State.CANCELLED&amp;&amp;e!==o.State.FAILED||t.sendEvent(e,o.State.BEGAN):i===o.State.UNDETERMINED&amp;&amp;e===o.State.CANCELLED||t.sendEvent(e,i),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(t)||this.cleanupAwaitingHandlers(t)}}},{key:"makeActive",value:function(t){var e=t.getState();t.setActive(!0),t.setShouldResetProgress(!0),t.setActivationIndex(this.activationIndex++);for(var i=this.gestureHandlers.length-1;i&gt;=0;--i)this.shouldHandlerBeCancelledBy(this.gestureHandlers[i],t)&amp;&amp;this.gestureHandlers[i].cancel();for(var n of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(n,t)&amp;&amp;n.setAwaiting(!1);t.sendEvent(o.State.ACTIVE,o.State.BEGAN),e!==o.State.ACTIVE&amp;&amp;(t.sendEvent(o.State.END,o.State.ACTIVE),e!==o.State.END&amp;&amp;t.sendEvent(o.State.UNDETERMINED,o.State.END)),t.isAwaiting()&amp;&amp;(t.setAwaiting(!1),this.awaitingHandlers=this.awaitingHandlers.filter((function(e){return e!==t})))}},{key:"addAwaitingHandler",value:function(t){this.awaitingHandlers.includes(t)||(this.awaitingHandlers.push(t),this.awaitingHandlersTags.add(t.getTag()),t.setAwaiting(!0),t.setActivationIndex(this.activationIndex++))}},{key:"recordHandlerIfNotPresent",value:function(t){this.gestureHandlers.includes(t)||(this.gestureHandlers.push(t),t.setActive(!1),t.setAwaiting(!1),t.setActivationIndex(Number.MAX_SAFE_INTEGER))}},{key:"shouldHandlerWaitForOther",value:function(t,e){return t!==e&amp;&amp;(t.shouldWaitForHandlerFailure(e)||e.shouldRequireToWaitForFailure(t))}},{key:"canRunSimultaneously",value:function(t,e){return t===e||t.shouldRecognizeSimultaneously(e)||e.shouldRecognizeSimultaneously(t)}},{key:"shouldHandlerBeCancelledBy",value:function(t,e){if(this.canRunSimultaneously(t,e))return!1;if(t.isAwaiting()||t.getState()===o.State.ACTIVE)return t.shouldBeCancelledByOther(e);var i=t.getTrackedPointersID(),n=e.getTrackedPointersID();return!(!u.default.shareCommonPointers(i,n)&amp;&amp;t.getDelegate().getView()!==e.getDelegate().getView())||this.checkOverlap(t,e)}},{key:"checkOverlap",value:function(t,e){var i=function(i){var n={x:t.getTracker().getLastX(i),y:t.getTracker().getLastY(i)};return t.getDelegate().isPointerInBounds(n)&amp;&amp;e.getDelegate().isPointerInBounds(n)},n=t.getTrackedPointersID(),a=e.getTrackedPointersID();return n.some(i)||a.some(i)}},{key:"isFinished",value:function(t){return t===o.State.END||t===o.State.FAILED||t===o.State.CANCELLED}},{key:"cancelMouseAndPenGestures",value:function(t){this.gestureHandlers.forEach((function(e){e.getPointerType()!==s.PointerType.MOUSE&amp;&amp;e.getPointerType()!==s.PointerType.STYLUS||(e!==t?e.cancel():e.getTracker().resetTracker())}))}}],[{key:"getInstance",value:function(){return t.instance||(t.instance=new t),t.instance}}])}();l(c,"instance",void 0)},59142:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=i(99459),d=n(i(15987)),v=["enabled"];function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var E=f.DEFAULT_TOUCH_SLOP*f.DEFAULT_TOUCH_SLOP;e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),p(t=(0,o.default)(i,g()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"customActivationProperties",["activeOffsetXStart","activeOffsetXEnd","failOffsetXStart","failOffsetXEnd","activeOffsetYStart","activeOffsetYEnd","failOffsetYStart","failOffsetYEnd","minVelocityX","minVelocityY","minVelocity"]),p(t,"velocityX",0),p(t,"velocityY",0),p(t,"minDistSq",E),p(t,"activeOffsetXStart",-Number.MAX_SAFE_INTEGER),p(t,"activeOffsetXEnd",Number.MIN_SAFE_INTEGER),p(t,"failOffsetXStart",Number.MIN_SAFE_INTEGER),p(t,"failOffsetXEnd",Number.MAX_SAFE_INTEGER),p(t,"activeOffsetYStart",Number.MAX_SAFE_INTEGER),p(t,"activeOffsetYEnd",Number.MIN_SAFE_INTEGER),p(t,"failOffsetYStart",Number.MIN_SAFE_INTEGER),p(t,"failOffsetYEnd",Number.MAX_SAFE_INTEGER),p(t,"minVelocityX",Number.MAX_SAFE_INTEGER),p(t,"minVelocityY",Number.MAX_SAFE_INTEGER),p(t,"minVelocitySq",Number.MAX_SAFE_INTEGER),p(t,"minPointers",1),p(t,"maxPointers",10),p(t,"startX",0),p(t,"startY",0),p(t,"offsetX",0),p(t,"offsetY",0),p(t,"lastX",0),p(t,"lastY",0),p(t,"activateAfterLongPress",0),p(t,"activationTimeout",0),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){y(e,"init",this,3)([t,i])}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,v);this.resetConfig(),y(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)]),this.checkCustomActivationCriteria(this.customActivationProperties),void 0!==this.config.minDist?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&amp;&amp;(this.minDistSq=Number.MAX_SAFE_INTEGER),void 0!==this.config.minPointers&amp;&amp;(this.minPointers=this.config.minPointers),void 0!==this.config.maxPointers&amp;&amp;(this.maxPointers=this.config.maxPointers),void 0!==this.config.minVelocity&amp;&amp;(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),void 0!==this.config.minVelocityX&amp;&amp;(this.minVelocityX=this.config.minVelocityX),void 0!==this.config.minVelocityY&amp;&amp;(this.minVelocityY=this.config.minVelocityY),void 0!==this.config.activateAfterLongPress&amp;&amp;(this.activateAfterLongPress=this.config.activateAfterLongPress),void 0!==this.config.activeOffsetXStart&amp;&amp;(this.activeOffsetXStart=this.config.activeOffsetXStart,void 0===this.config.activeOffsetXEnd&amp;&amp;(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetXEnd&amp;&amp;(this.activeOffsetXEnd=this.config.activeOffsetXEnd,void 0===this.config.activeOffsetXStart&amp;&amp;(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetXStart&amp;&amp;(this.failOffsetXStart=this.config.failOffsetXStart,void 0===this.config.failOffsetXEnd&amp;&amp;(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetXEnd&amp;&amp;(this.failOffsetXEnd=this.config.failOffsetXEnd,void 0===this.config.failOffsetXStart&amp;&amp;(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.activeOffsetYStart&amp;&amp;(this.activeOffsetYStart=this.config.activeOffsetYStart,void 0===this.config.activeOffsetYEnd&amp;&amp;(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetYEnd&amp;&amp;(this.activeOffsetYEnd=this.config.activeOffsetYEnd,void 0===this.config.activeOffsetYStart&amp;&amp;(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetYStart&amp;&amp;(this.failOffsetYStart=this.config.failOffsetYStart,void 0===this.config.failOffsetYEnd&amp;&amp;(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetYEnd&amp;&amp;(this.failOffsetYEnd=this.config.failOffsetYEnd,void 0===this.config.failOffsetYStart&amp;&amp;(this.failOffsetYStart=Number.MIN_SAFE_INTEGER))}},{key:"resetConfig",value:function(){y(e,"resetConfig",this,3)([]),this.activeOffsetXStart=-Number.MAX_SAFE_INTEGER,this.activeOffsetXEnd=Number.MIN_SAFE_INTEGER,this.failOffsetXStart=Number.MIN_SAFE_INTEGER,this.failOffsetXEnd=Number.MAX_SAFE_INTEGER,this.activeOffsetYStart=Number.MAX_SAFE_INTEGER,this.activeOffsetYEnd=Number.MIN_SAFE_INTEGER,this.failOffsetYStart=Number.MIN_SAFE_INTEGER,this.failOffsetYEnd=Number.MAX_SAFE_INTEGER,this.minVelocityX=Number.MAX_SAFE_INTEGER,this.minVelocityY=Number.MAX_SAFE_INTEGER,this.minVelocitySq=Number.MAX_SAFE_INTEGER,this.minDistSq=E,this.minPointers=1,this.maxPointers=10,this.activateAfterLongPress=0}},{key:"transformNativeEvent",value:function(){var t=this.getTranslationX(),i=this.getTranslationY();return Object.assign({},y(e,"transformNativeEvent",this,3)([]),{translationX:isNaN(t)?0:t,translationY:isNaN(i)?0:i,velocityX:this.velocityX,velocityY:this.velocityY})}},{key:"getTranslationX",value:function(){return this.lastX-this.startX+this.offsetX}},{key:"getTranslationY",value:function(){return this.lastY-this.startY+this.offsetY}},{key:"clearActivationTimeout",value:function(){clearTimeout(this.activationTimeout)}},{key:"onPointerDown",value:function(t){this.isButtonInConfig(t.button)&amp;&amp;(this.tracker.addToTracker(t),y(e,"onPointerDown",this,3)([t]),this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(t),this.checkBegan())}},{key:"onPointerAdd",value:function(t){this.tracker.addToTracker(t),y(e,"onPointerAdd",this,3)([t]),this.tryBegin(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.startX=this.lastX,this.startY=this.lastY,this.tracker.getTrackedPointersCount()&gt;this.maxPointers?this.currentState===h.State.ACTIVE?this.cancel():this.fail():this.checkBegan()}},{key:"onPointerUp",value:function(t){y(e,"onPointerUp",this,3)([t]),this.currentState===h.State.ACTIVE&amp;&amp;(this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY()),this.tracker.removeFromTracker(t.pointerId),this.currentState===h.State.ACTIVE?this.end():(this.resetProgress(),this.fail())}},{key:"onPointerRemove",value:function(t){y(e,"onPointerRemove",this,3)([t]),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.startX=this.lastX,this.startY=this.lastY,this.currentState===h.State.ACTIVE&amp;&amp;this.tracker.getTrackedPointersCount()&lt;this.minPointers||this.checkBegan()}},{key:"onPointerMove",value:function(t){this.tracker.track(t),this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.velocityX=this.tracker.getVelocityX(t.pointerId),this.velocityY=this.tracker.getVelocityY(t.pointerId),this.checkBegan(),y(e,"onPointerMove",this,3)([t])}},{key:"onPointerOutOfBounds",value:function(t){this.getShouldCancelWhenOutside()||(this.tracker.track(t),this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.velocityX=this.tracker.getVelocityX(t.pointerId),this.velocityY=this.tracker.getVelocityY(t.pointerId),this.checkBegan(),this.currentState===h.State.ACTIVE&amp;&amp;y(e,"onPointerOutOfBounds",this,3)([t]))}},{key:"shouldActivate",value:function(){var t=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&amp;&amp;t&lt;this.activeOffsetXStart)return!0;if(this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&amp;&amp;t&gt;this.activeOffsetXEnd)return!0;var e=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&amp;&amp;e&lt;this.activeOffsetYStart)return!0;if(this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&amp;&amp;e&gt;this.activeOffsetYEnd)return!0;var i=t*t+e*e;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&amp;&amp;i&gt;=this.minDistSq)return!0;var n=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&amp;&amp;(this.minVelocityX&lt;0&amp;&amp;n&lt;=this.minVelocityX||this.minVelocityX&gt;=0&amp;&amp;this.minVelocityX&lt;=n))return!0;var a=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&amp;&amp;(this.minVelocityY&lt;0&amp;&amp;a&lt;=this.minVelocityY||this.minVelocityY&gt;=0&amp;&amp;this.minVelocityY&lt;=a))return!0;var r=n*n+a*a;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&amp;&amp;r&gt;=this.minVelocitySq}},{key:"shouldFail",value:function(){var t=this.getTranslationX(),e=this.getTranslationY(),i=t*t+e*e;return this.activateAfterLongPress&gt;0&amp;&amp;i&gt;E?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&amp;&amp;t&lt;this.failOffsetXStart||(this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&amp;&amp;t&gt;this.failOffsetXEnd||(this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&amp;&amp;e&lt;this.failOffsetYStart||this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&amp;&amp;e&gt;this.failOffsetYEnd))}},{key:"tryBegin",value:function(t){var e=this;this.currentState===h.State.UNDETERMINED&amp;&amp;this.tracker.getTrackedPointersCount()&gt;=this.minPointers?(this.resetProgress(),this.offsetX=0,this.offsetY=0,this.velocityX=0,this.velocityY=0,this.begin(),this.activateAfterLongPress&gt;0&amp;&amp;(this.activationTimeout=setTimeout((function(){e.activate()}),this.activateAfterLongPress))):(this.velocityX=this.tracker.getVelocityX(t.pointerId),this.velocityY=this.tracker.getVelocityY(t.pointerId))}},{key:"checkBegan",value:function(){this.currentState===h.State.BEGAN&amp;&amp;(this.shouldFail()?this.fail():this.shouldActivate()&amp;&amp;this.activate())}},{key:"activate",value:function(){var t=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]&amp;&amp;arguments[0];this.currentState!==h.State.ACTIVE&amp;&amp;this.resetProgress(),y(e,"activate",this,3)([t])}},{key:"onCancel",value:function(){this.clearActivationTimeout()}},{key:"onReset",value:function(){this.clearActivationTimeout()}},{key:"resetProgress",value:function(){this.currentState!==h.State.ACTIVE&amp;&amp;(this.startX=this.lastX,this.startY=this.lastY)}}])}(d.default)},63159:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=i(31587),d=n(i(15987)),v=n(i(44789)),g=i(9197),y=["enabled"];function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function E(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function m(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var T=f.Directions.RIGHT,k=(0,g.coneToDeviation)(30),P=(0,g.coneToDeviation)(60);e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),m(t=(0,o.default)(i,p()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"numberOfPointersRequired",1),m(t,"direction",T),m(t,"maxDurationMs",800),m(t,"minVelocity",700),m(t,"delayTimeout",void 0),m(t,"maxNumberOfPointersSimultaneously",0),m(t,"keyPointer",NaN),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){E(e,"init",this,3)([t,i])}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,y);E(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)]),this.config.direction&amp;&amp;(this.direction=this.config.direction),this.config.numberOfPointers&amp;&amp;(this.numberOfPointersRequired=this.config.numberOfPointers)}},{key:"startFling",value:function(){var t=this;this.begin(),this.maxNumberOfPointersSimultaneously=1,this.delayTimeout=setTimeout((function(){return t.fail()}),this.maxDurationMs)}},{key:"tryEndFling",value:function(){var t=this,e=v.default.fromVelocity(this.tracker,this.keyPointer),i=function(i,n){return(i&amp;t.direction)===i&amp;&amp;e.isSimilar(v.default.fromDirection(i),n)},n=Object.values(f.Directions),a=Object.values(f.DiagonalDirections),r=n.map((function(t){return i(t,k)})),s=a.map((function(t){return i(t,P)})),o=r.some(Boolean)||s.some(Boolean),u=e.magnitude&gt;this.minVelocity;return!(this.maxNumberOfPointersSimultaneously!==this.numberOfPointersRequired||!o||!u)&amp;&amp;(clearTimeout(this.delayTimeout),this.activate(),!0)}},{key:"endFling",value:function(){this.tryEndFling()||this.fail()}},{key:"onPointerDown",value:function(t){this.isButtonInConfig(t.button)&amp;&amp;(this.tracker.addToTracker(t),this.keyPointer=t.pointerId,E(e,"onPointerDown",this,3)([t]),this.newPointerAction())}},{key:"onPointerAdd",value:function(t){this.tracker.addToTracker(t),E(e,"onPointerAdd",this,3)([t]),this.newPointerAction()}},{key:"newPointerAction",value:function(){this.currentState===h.State.UNDETERMINED&amp;&amp;this.startFling(),this.currentState===h.State.BEGAN&amp;&amp;(this.tryEndFling(),this.tracker.getTrackedPointersCount()&gt;this.maxNumberOfPointersSimultaneously&amp;&amp;(this.maxNumberOfPointersSimultaneously=this.tracker.getTrackedPointersCount()))}},{key:"pointerMoveAction",value:function(t){this.tracker.track(t),this.currentState===h.State.BEGAN&amp;&amp;this.tryEndFling()}},{key:"onPointerMove",value:function(t){this.pointerMoveAction(t),E(e,"onPointerMove",this,3)([t])}},{key:"onPointerOutOfBounds",value:function(t){this.pointerMoveAction(t),E(e,"onPointerOutOfBounds",this,3)([t])}},{key:"onPointerUp",value:function(t){E(e,"onPointerUp",this,3)([t]),this.onUp(t),this.keyPointer=NaN}},{key:"onPointerRemove",value:function(t){E(e,"onPointerRemove",this,3)([t]),this.onUp(t)}},{key:"onUp",value:function(t){this.currentState===h.State.BEGAN&amp;&amp;this.endFling(),this.tracker.removeFromTracker(t.pointerId)}},{key:"activate",value:function(t){E(e,"activate",this,3)([t]),this.end()}},{key:"resetConfig",value:function(){E(e,"resetConfig",this,3)([]),this.numberOfPointersRequired=1,this.direction=T}}])}(d.default)},66301:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=i(10988);function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u=e.default=function(){function t(){(0,a.default)(this,t),o(this,"waitForRelations",new Map),o(this,"simultaneousRelations",new Map),o(this,"blocksHandlersRelations",new Map)}return(0,r.default)(t,[{key:"configureInteractions",value:function(t,e){if(this.dropRelationsForHandlerWithTag(t.getTag()),e.waitFor){var i=[];e.waitFor.forEach((function(t){"number"==typeof t?i.push(t):i.push(t.handlerTag)})),this.waitForRelations.set(t.getTag(),i)}if(e.simultaneousHandlers){var n=[];e.simultaneousHandlers.forEach((function(t){"number"==typeof t?n.push(t):n.push(t.handlerTag)})),this.simultaneousRelations.set(t.getTag(),n)}if(e.blocksHandlers){var a=[];e.blocksHandlers.forEach((function(t){"number"==typeof t?a.push(t):a.push(t.handlerTag)})),this.blocksHandlersRelations.set(t.getTag(),a)}}},{key:"shouldWaitForHandlerFailure",value:function(t,e){var i=this.waitForRelations.get(t.getTag());return void 0!==(null==i?void 0:i.find((function(t){return t===e.getTag()})))}},{key:"shouldRecognizeSimultaneously",value:function(t,e){var i=this.simultaneousRelations.get(t.getTag());return void 0!==(null==i?void 0:i.find((function(t){return t===e.getTag()})))}},{key:"shouldRequireHandlerToWaitForFailure",value:function(t,e){var i=this.blocksHandlersRelations.get(t.getTag());return void 0!==(null==i?void 0:i.find((function(t){return t===e.getTag()})))}},{key:"shouldHandlerBeCancelledBy",value:function(t,e){var i,n="NativeViewGestureHandler"===e.constructor.name,a=e.getState()===s.State.ACTIVE,r=!0===(null===(i=e.isButton)||void 0===i?void 0:i.call(e));return n&amp;&amp;a&amp;&amp;!r}},{key:"dropRelationsForHandlerWithTag",value:function(t){this.waitForRelations.delete(t),this.simultaneousRelations.delete(t),this.blocksHandlersRelations.delete(t)}},{key:"reset",value:function(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}}])}();o(u,"instance",void 0)},80170:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.HammerGestures=e.Gestures=void 0;var a=n(i(59142)),r=n(i(95556)),s=n(i(18460)),o=n(i(39389)),u=n(i(14277)),l=n(i(63159)),c=n(i(377)),h=n(i(29337)),f=n(i(21963)),d=n(i(35072)),v=n(i(95485)),g=n(i(1267)),y=n(i(50331)),p=n(i(24894)),E=n(i(232)),m=n(i(81640));e.Gestures={NativeViewGestureHandler:c.default,PanGestureHandler:a.default,TapGestureHandler:r.default,LongPressGestureHandler:s.default,PinchGestureHandler:o.default,RotationGestureHandler:u.default,FlingGestureHandler:l.default,ManualGestureHandler:h.default,HoverGestureHandler:f.default},e.HammerGestures={NativeViewGestureHandler:d.default,PanGestureHandler:v.default,TapGestureHandler:g.default,LongPressGestureHandler:y.default,PinchGestureHandler:p.default,RotationGestureHandler:E.default,FlingGestureHandler:m.default}},81640:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(41132)),s=n(i(17383)),o=n(i(34579)),u=n(i(28452)),l=n(i(63072)),c=n(i(32395)),h=n(i(29511)),f=n(i(86318)),d=i(4802),v=i(10792),g=n(i(45703)),y=i(46522),p=["numberOfPointers","direction"];function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function m(t,e,i,n){var a=(0,c.default)((0,l.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}var T=function(t){function e(){return(0,s.default)(this,e),t=this,i=e,n=arguments,i=(0,l.default)(i),(0,u.default)(t,E()?Reflect.construct(i,n||[],(0,l.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,h.default)(e,t),(0,o.default)(e,[{key:"name",get:function(){return"swipe"}},{key:"NativeGestureClass",get:function(){return f.default.Swipe}},{key:"onGestureActivated",value:function(t){this.sendEvent(Object.assign({},t,{eventType:f.default.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object.assign({},t,{eventType:f.default.INPUT_END,isFinal:!0}))}},{key:"onRawEvent",value:function(t){var i=this;if(m(e,"onRawEvent",this,3)([t]),!this.hasGestureFailed)if(t.isFinal)setTimeout((function(){i.isGestureRunning&amp;&amp;i.cancelEvent(t)}));else if(!this.hasGestureFailed&amp;&amp;!this.isGestureRunning){var n=this.hammer.get(this.name);n.options.enable(n,t)&amp;&amp;(this.onStart(t),this.sendEvent(t))}}},{key:"getHammerConfig",value:function(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}},{key:"getTargetDirections",value:function(t){var e=[];return t&amp;d.Direction.RIGHT&amp;&amp;e.push(f.default.DIRECTION_RIGHT),t&amp;d.Direction.LEFT&amp;&amp;e.push(f.default.DIRECTION_LEFT),t&amp;d.Direction.UP&amp;&amp;e.push(f.default.DIRECTION_UP),t&amp;d.Direction.DOWN&amp;&amp;e.push(f.default.DIRECTION_DOWN),e}},{key:"getDirection",value:function(){var t=this.getConfig().direction,e=[];return t&amp;d.Direction.RIGHT&amp;&amp;e.push(f.default.DIRECTION_HORIZONTAL),t&amp;d.Direction.LEFT&amp;&amp;e.push(f.default.DIRECTION_HORIZONTAL),t&amp;d.Direction.UP&amp;&amp;e.push(f.default.DIRECTION_VERTICAL),t&amp;d.Direction.DOWN&amp;&amp;e.push(f.default.DIRECTION_VERTICAL),0===(e=(0,r.default)(new Set(e))).length?f.default.DIRECTION_NONE:1===e.length?e[0]:f.default.DIRECTION_ALL}},{key:"isGestureEnabledForEvent",value:function(t,e,i){var n=t.numberOfPointers,a=i.maxPointers===n;return!a&amp;&amp;this.isGestureRunning?{failed:!0}:{success:a}}},{key:"updateGestureConfig",value:function(t){var i=t.numberOfPointers,n=void 0===i?1:i,r=t.direction,s=(0,a.default)(t,p);if((0,y.isnan)(r)||"number"!=typeof r)throw new v.GesturePropError("direction",r,"number");return m(e,"updateGestureConfig",this,3)([Object.assign({numberOfPointers:n,direction:r},s)])}}])}(g.default);e.default=T},82513:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=i(99459),o=i(83414);function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,r.default)((function t(e){(0,a.default)(this,t),u(this,"onScaleBegin",void 0),u(this,"onScale",void 0),u(this,"onScaleEnd",void 0),u(this,"focusX",void 0),u(this,"focusY",void 0),u(this,"currentSpan",void 0),u(this,"prevSpan",void 0),u(this,"initialSpan",void 0),u(this,"currentTime",void 0),u(this,"prevTime",void 0),u(this,"inProgress",!1),u(this,"spanSlop",void 0),u(this,"minSpan",void 0),this.onScaleBegin=e.onScaleBegin,this.onScale=e.onScale,this.onScaleEnd=e.onScaleEnd,this.spanSlop=2*s.DEFAULT_TOUCH_SLOP,this.minSpan=0}),[{key:"onTouchEvent",value:function(t,e){this.currentTime=t.time;var i=t.eventType,n=e.getTrackedPointersCount(),a=i===o.EventTypes.UP||i===o.EventTypes.ADDITIONAL_POINTER_UP||i===o.EventTypes.CANCEL;if((i===o.EventTypes.DOWN||a)&amp;&amp;(this.inProgress&amp;&amp;(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),a))return!0;var r=i===o.EventTypes.DOWN||i===o.EventTypes.ADDITIONAL_POINTER_UP||i===o.EventTypes.ADDITIONAL_POINTER_DOWN,s=i===o.EventTypes.ADDITIONAL_POINTER_UP,u=s?t.pointerId:void 0,l=s?n-1:n,c=e.getSumX(u),h=e.getSumY(u),f=c/l,d=h/l,v=0,g=0;e.getData().forEach((function(t,e){e!==u&amp;&amp;(v+=Math.abs(t.lastX-f),g+=Math.abs(t.lastY-d))}));var y=v/l*2,p=g/l*2,E=Math.hypot(y,p),m=this.inProgress;return this.focusX=f,this.focusY=d,this.inProgress&amp;&amp;(E&lt;this.minSpan||r)&amp;&amp;(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=E),r&amp;&amp;(this.initialSpan=this.prevSpan=this.currentSpan=E),!this.inProgress&amp;&amp;E&gt;=this.minSpan&amp;&amp;(m||Math.abs(E-this.initialSpan)&gt;this.spanSlop)&amp;&amp;(this.prevSpan=this.currentSpan=E,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),i!==o.EventTypes.MOVE||(this.currentSpan=E,this.inProgress&amp;&amp;!this.onScale(this)||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0)}},{key:"getCurrentSpan",value:function(){return this.currentSpan}},{key:"getFocusX",value:function(){return this.focusX}},{key:"getFocusY",value:function(){return this.focusY}},{key:"getTimeDelta",value:function(){return this.currentTime-this.prevTime}},{key:"getScaleFactor",value:function(t){return t&lt;2?1:this.prevSpan&gt;0?this.currentSpan/this.prevSpan:1}}])},82982:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(32395)),l=n(i(29511)),c=n(i(37609)),h=i(30959),f=i(83414),d=i(9197),v=i(26704);function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var p=new Set(["SELECT","INPUT"]),E="touch",m="pen";e.default=function(t){function e(t){var i,n,r,u;return(0,a.default)(this,e),n=this,r=e,u=[t],r=(0,o.default)(r),y(i=(0,s.default)(n,g()?Reflect.construct(r,u||[],(0,o.default)(n).constructor):r.apply(n,u)),"trackedPointers",new Set),y(i,"mouseButtonsMapper",new Map),y(i,"lastPosition",void 0),y(i,"pointerDownCallback",(function(t){if(t.pointerType!==E&amp;&amp;(0,d.isPointerInBounds)(i.view,{x:t.clientX,y:t.clientY})){var e=i.mapEvent(t,f.EventTypes.DOWN),n=t.target;p.has(n.tagName)||n.setPointerCapture(e.pointerId),i.markAsInBounds(e.pointerId),i.trackedPointers.add(e.pointerId),++i.activePointersCounter&gt;1?(e.eventType=f.EventTypes.ADDITIONAL_POINTER_DOWN,i.onPointerAdd(e)):i.onPointerDown(e)}})),y(i,"pointerUpCallback",(function(t){if(t.pointerType!==E&amp;&amp;0!==i.activePointersCounter){var e=i.mapEvent(t,f.EventTypes.UP),n=t.target;p.has(n.tagName)||n.releasePointerCapture(e.pointerId),i.markAsOutOfBounds(e.pointerId),i.trackedPointers.delete(e.pointerId),--i.activePointersCounter&gt;0?(e.eventType=f.EventTypes.ADDITIONAL_POINTER_UP,i.onPointerRemove(e)):i.onPointerUp(e)}})),y(i,"pointerMoveCallback",(function(t){if(t.pointerType!==E&amp;&amp;(t.pointerType!==m||t.x!==i.lastPosition.x||t.y!==i.lastPosition.y)){var e=i.mapEvent(t,f.EventTypes.MOVE),n=t.target;n.hasPointerCapture(t.pointerId)||p.has(n.tagName)||n.setPointerCapture(t.pointerId);var a=(0,d.isPointerInBounds)(i.view,{x:e.x,y:e.y}),r=i.pointersInBounds.indexOf(e.pointerId);a?r&lt;0?(e.eventType=f.EventTypes.ENTER,i.onPointerEnter(e),i.markAsInBounds(e.pointerId)):i.onPointerMove(e):r&gt;=0?(e.eventType=f.EventTypes.LEAVE,i.onPointerLeave(e),i.markAsOutOfBounds(e.pointerId)):i.onPointerOutOfBounds(e),i.lastPosition.x=t.x,i.lastPosition.y=t.y}})),y(i,"pointerCancelCallback",(function(t){if(t.pointerType!==E){var e=i.mapEvent(t,f.EventTypes.CANCEL);i.onPointerCancel(e),i.markAsOutOfBounds(e.pointerId),i.activePointersCounter=0,i.trackedPointers.clear()}})),y(i,"pointerEnterCallback",(function(t){if(t.pointerType!==E){var e=i.mapEvent(t,f.EventTypes.ENTER);i.onPointerMoveOver(e)}})),y(i,"pointerLeaveCallback",(function(t){if(t.pointerType!==E){var e=i.mapEvent(t,f.EventTypes.LEAVE);i.onPointerMoveOut(e)}})),y(i,"lostPointerCaptureCallback",(function(t){var e=i.mapEvent(t,f.EventTypes.CANCEL);i.trackedPointers.has(e.pointerId)&amp;&amp;(i.onPointerCancel(e),i.activePointersCounter=0,i.trackedPointers.clear())})),i.mouseButtonsMapper.set(0,h.MouseButton.LEFT),i.mouseButtonsMapper.set(1,h.MouseButton.MIDDLE),i.mouseButtonsMapper.set(2,h.MouseButton.RIGHT),i.mouseButtonsMapper.set(3,h.MouseButton.BUTTON_4),i.mouseButtonsMapper.set(4,h.MouseButton.BUTTON_5),i.lastPosition={x:-1/0,y:-1/0},i}return(0,l.default)(e,t),(0,r.default)(e,[{key:"registerListeners",value:function(){this.view.addEventListener("pointerdown",this.pointerDownCallback),this.view.addEventListener("pointerup",this.pointerUpCallback),this.view.addEventListener("pointermove",this.pointerMoveCallback),this.view.addEventListener("pointercancel",this.pointerCancelCallback),this.view.addEventListener("pointerenter",this.pointerEnterCallback),this.view.addEventListener("pointerleave",this.pointerLeaveCallback),this.view.addEventListener("lostpointercapture",this.lostPointerCaptureCallback)}},{key:"unregisterListeners",value:function(){this.view.removeEventListener("pointerdown",this.pointerDownCallback),this.view.removeEventListener("pointerup",this.pointerUpCallback),this.view.removeEventListener("pointermove",this.pointerMoveCallback),this.view.removeEventListener("pointercancel",this.pointerCancelCallback),this.view.removeEventListener("pointerenter",this.pointerEnterCallback),this.view.removeEventListener("pointerleave",this.pointerLeaveCallback),this.view.removeEventListener("lostpointercapture",this.lostPointerCaptureCallback)}},{key:"mapEvent",value:function(t,e){var i;return{x:t.clientX,y:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,pointerId:t.pointerId,eventType:e,pointerType:null!==(i=d.PointerTypeMapping.get(t.pointerType))&amp;&amp;void 0!==i?i:v.PointerType.OTHER,button:this.mouseButtonsMapper.get(t.button),time:t.timeStamp}}},{key:"resetManager",value:function(){var t,i,n,a,r;(t=e,i="resetManager",n=this,a=3,r=(0,u.default)((0,o.default)(1&amp;a?t.prototype:t),i,n),2&amp;a&amp;&amp;"function"==typeof r?function(t){return r.apply(n,t)}:r)([]),this.trackedPointers.clear()}}])}(c.default)},83414:(t,e)=&gt;{var i,n;Object.defineProperty(e,"__esModule",{value:!0}),e.TouchEventType=e.EventTypes=void 0,function(t){t[t.DOWN=0]="DOWN",t[t.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",t[t.UP=2]="UP",t[t.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",t[t.MOVE=4]="MOVE",t[t.ENTER=5]="ENTER",t[t.LEAVE=6]="LEAVE",t[t.CANCEL=7]="CANCEL"}(i||(e.EventTypes=i={})),function(t){t[t.UNDETERMINED=0]="UNDETERMINED",t[t.DOWN=1]="DOWN",t[t.MOVE=2]="MOVE",t[t.UP=3]="UP",t[t.CANCELLED=4]="CANCELLED"}(n||(e.TouchEventType=n={}))},83917:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579));function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=(0,r.default)((function t(e){(0,a.default)(this,t),s(this,"bufferSize",void 0),s(this,"buffer",void 0),s(this,"index",void 0),s(this,"actualSize",void 0),this.bufferSize=e,this.buffer=new Array(e),this.index=0,this.actualSize=0}),[{key:"size",get:function(){return this.actualSize}},{key:"push",value:function(t){this.buffer[this.index]=t,this.index=(this.index+1)%this.bufferSize,this.actualSize=Math.min(this.actualSize+1,this.bufferSize)}},{key:"get",value:function(t){if(this.actualSize===this.bufferSize){var e=(this.index+t)%this.bufferSize;return e&lt;0&amp;&amp;(e+=this.bufferSize),this.buffer[e]}return this.buffer[t]}},{key:"clear",value:function(){this.buffer=new Array(this.bufferSize),this.index=0,this.actualSize=0}}])},84004:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(29511)),l=i(83414),c=n(i(37609)),h=i(9197),f=i(26704);function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=function(t){function e(){var t,i,n,r;(0,a.default)(this,e);for(var u=arguments.length,c=new Array(u),f=0;f&lt;u;f++)c[f]=arguments[f];return i=this,n=e,r=[].concat(c),n=(0,o.default)(n),v(t=(0,s.default)(i,d()?Reflect.construct(n,r||[],(0,o.default)(i).constructor):n.apply(i,r)),"touchStartCallback",(function(e){for(var i=0;i&lt;e.changedTouches.length;++i){var n=t.mapEvent(e,l.EventTypes.DOWN,i,l.TouchEventType.DOWN);(0,h.isPointerInBounds)(t.view,{x:n.x,y:n.y})&amp;&amp;"stylus"!==e.changedTouches[i].touchType&amp;&amp;(t.markAsInBounds(n.pointerId),++t.activePointersCounter&gt;1?(n.eventType=l.EventTypes.ADDITIONAL_POINTER_DOWN,t.onPointerAdd(n)):t.onPointerDown(n))}})),v(t,"touchMoveCallback",(function(e){for(var i=0;i&lt;e.changedTouches.length;++i){var n=t.mapEvent(e,l.EventTypes.MOVE,i,l.TouchEventType.MOVE);if("stylus"!==e.changedTouches[i].touchType){var a=(0,h.isPointerInBounds)(t.view,{x:n.x,y:n.y}),r=t.pointersInBounds.indexOf(n.pointerId);a?r&lt;0?(n.eventType=l.EventTypes.ENTER,t.onPointerEnter(n),t.markAsInBounds(n.pointerId)):t.onPointerMove(n):r&gt;=0?(n.eventType=l.EventTypes.LEAVE,t.onPointerLeave(n),t.markAsOutOfBounds(n.pointerId)):t.onPointerOutOfBounds(n)}}})),v(t,"touchEndCallback",(function(e){for(var i=0;i&lt;e.changedTouches.length&amp;&amp;0!==t.activePointersCounter;++i)if("stylus"!==e.changedTouches[i].touchType){var n=t.mapEvent(e,l.EventTypes.UP,i,l.TouchEventType.UP);t.markAsOutOfBounds(n.pointerId),--t.activePointersCounter&gt;0?(n.eventType=l.EventTypes.ADDITIONAL_POINTER_UP,t.onPointerRemove(n)):t.onPointerUp(n)}})),v(t,"touchCancelCallback",(function(e){for(var i=0;i&lt;e.changedTouches.length;++i){var n=t.mapEvent(e,l.EventTypes.CANCEL,i,l.TouchEventType.CANCELLED);"stylus"!==e.changedTouches[i].touchType&amp;&amp;(t.onPointerCancel(n),t.markAsOutOfBounds(n.pointerId),t.activePointersCounter=0)}})),t}return(0,u.default)(e,t),(0,r.default)(e,[{key:"registerListeners",value:function(){this.view.addEventListener("touchstart",this.touchStartCallback),this.view.addEventListener("touchmove",this.touchMoveCallback),this.view.addEventListener("touchend",this.touchEndCallback),this.view.addEventListener("touchcancel",this.touchCancelCallback)}},{key:"unregisterListeners",value:function(){this.view.removeEventListener("touchstart",this.touchStartCallback),this.view.removeEventListener("touchmove",this.touchMoveCallback),this.view.removeEventListener("touchend",this.touchEndCallback),this.view.removeEventListener("touchcancel",this.touchCancelCallback)}},{key:"mapEvent",value:function(t,e,i,n){var a=this.view.getBoundingClientRect(),r=t.changedTouches[i].clientX,s=t.changedTouches[i].clientY;return{x:r,y:s,offsetX:r-a.left,offsetY:s-a.top,pointerId:t.changedTouches[i].identifier,eventType:e,pointerType:f.PointerType.TOUCH,time:t.timeStamp,allTouches:t.touches,changedTouches:t.changedTouches,touchEventType:n}}}])}(c.default)},95485:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579)),s=n(i(28452)),o=n(i(63072)),u=n(i(32395)),l=n(i(29511)),c=n(i(86318)),h=i(4802),f=n(i(45703)),d=i(46522),v=i(10988);function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i,n){var a=(0,u.default)((0,o.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}var p=function(t){function e(){return(0,a.default)(this,e),t=this,i=e,n=arguments,i=(0,o.default)(i),(0,s.default)(t,g()?Reflect.construct(i,n||[],(0,o.default)(t).constructor):i.apply(t,n));var t,i,n}return(0,l.default)(e,t),(0,r.default)(e,[{key:"name",get:function(){return"pan"}},{key:"NativeGestureClass",get:function(){return c.default.Pan}},{key:"getHammerConfig",value:function(){return Object.assign({},y(e,"getHammerConfig",this,3)([]),{direction:this.getDirection()})}},{key:"getState",value:function(t){var i=y(e,"getState",this,3)([t]);return this.previousState===v.State.UNDETERMINED&amp;&amp;i===v.State.ACTIVE?v.State.BEGAN:i}},{key:"getDirection",value:function(){var t=this.getConfig(),e=t.activeOffsetXStart,i=t.activeOffsetXEnd,n=t.activeOffsetYStart,a=t.activeOffsetYEnd,r=t.minDist,s=[],o=[];if(!(0,d.isnan)(r))return c.default.DIRECTION_ALL;(0,d.isnan)(e)||o.push(c.default.DIRECTION_LEFT),(0,d.isnan)(i)||o.push(c.default.DIRECTION_RIGHT),2===o.length&amp;&amp;(o=[c.default.DIRECTION_HORIZONTAL]),s=s.concat(o);var u=[];return(0,d.isnan)(n)||u.push(c.default.DIRECTION_UP),(0,d.isnan)(a)||u.push(c.default.DIRECTION_DOWN),2===u.length&amp;&amp;(u=[c.default.DIRECTION_VERTICAL]),(s=s.concat(u)).length?s[0]===c.default.DIRECTION_HORIZONTAL&amp;&amp;s[1]===c.default.DIRECTION_VERTICAL||o.length&amp;&amp;u.length?c.default.DIRECTION_ALL:s[0]:c.default.DIRECTION_NONE}},{key:"getConfig",value:function(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}},{key:"shouldFailUnderCustomCriteria",value:function(t,e){var i=t.deltaX,n=t.deltaY;return!(0,d.isnan)(e.failOffsetXStart)&amp;&amp;i&lt;e.failOffsetXStart||!(0,d.isnan)(e.failOffsetXEnd)&amp;&amp;i&gt;e.failOffsetXEnd||!(0,d.isnan)(e.failOffsetYStart)&amp;&amp;n&lt;e.failOffsetYStart||!(0,d.isnan)(e.failOffsetYEnd)&amp;&amp;n&gt;e.failOffsetYEnd}},{key:"shouldActivateUnderCustomCriteria",value:function(t,e){var i=t.deltaX,n=t.deltaY,a=t.velocity;return!(0,d.isnan)(e.activeOffsetXStart)&amp;&amp;i&lt;e.activeOffsetXStart||!(0,d.isnan)(e.activeOffsetXEnd)&amp;&amp;i&gt;e.activeOffsetXEnd||!(0,d.isnan)(e.activeOffsetYStart)&amp;&amp;n&lt;e.activeOffsetYStart||!(0,d.isnan)(e.activeOffsetYEnd)&amp;&amp;n&gt;e.activeOffsetYEnd||(0,d.TEST_MIN_IF_NOT_NAN)((0,d.VEC_LEN_SQ)({x:i,y:n}),e.minDistSq)||(0,d.TEST_MIN_IF_NOT_NAN)(a.x,e.minVelocityX)||(0,d.TEST_MIN_IF_NOT_NAN)(a.y,e.minVelocityY)||(0,d.TEST_MIN_IF_NOT_NAN)((0,d.VEC_LEN_SQ)(a),e.minVelocitySq)}},{key:"shouldMultiFingerPanFail",value:function(t){var e=t.pointerLength,i=t.scale,n=t.deltaRotation;if(e&lt;=1)return!1;var a=Math.abs(i-1),r=Math.abs(n);return a&gt;h.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD||r&gt;h.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD}},{key:"updateHasCustomActivationCriteria",value:function(t){return(0,d.isValidNumber)(t.minDistSq)||(0,d.isValidNumber)(t.minVelocityX)||(0,d.isValidNumber)(t.minVelocityY)||(0,d.isValidNumber)(t.minVelocitySq)||(0,d.isValidNumber)(t.activeOffsetXStart)||(0,d.isValidNumber)(t.activeOffsetXEnd)||(0,d.isValidNumber)(t.activeOffsetYStart)||(0,d.isValidNumber)(t.activeOffsetYEnd)}},{key:"isGestureEnabledForEvent",value:function(t,e,i){if(this.shouldFailUnderCustomCriteria(i,t))return{failed:!0};var n={x:i.velocityX,y:i.velocityY};return this.hasCustomActivationCriteria&amp;&amp;this.shouldActivateUnderCustomCriteria({deltaX:i.deltaX,deltaY:i.deltaY,velocity:n},t)?this.shouldMultiFingerPanFail({pointerLength:i.maxPointers,scale:i.scale,deltaRotation:i.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}}])}(f.default);e.default=p},95556:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(17383)),s=n(i(34579)),o=n(i(28452)),u=n(i(63072)),l=n(i(32395)),c=n(i(29511)),h=i(10988),f=i(83414),d=n(i(15987)),v=["enabled"];function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function y(t,e,i,n){var a=(0,l.default)((0,u.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=function(t){function e(){var t,i,n,a;(0,r.default)(this,e);for(var s=arguments.length,l=new Array(s),c=0;c&lt;s;c++)l[c]=arguments[c];return i=this,n=e,a=[].concat(l),n=(0,u.default)(n),p(t=(0,o.default)(i,g()?Reflect.construct(n,a||[],(0,u.default)(i).constructor):n.apply(i,a)),"maxDeltaX",Number.MIN_SAFE_INTEGER),p(t,"maxDeltaY",Number.MIN_SAFE_INTEGER),p(t,"maxDistSq",Number.MIN_SAFE_INTEGER),p(t,"maxDurationMs",500),p(t,"maxDelayMs",500),p(t,"numberOfTaps",1),p(t,"minNumberOfPointers",1),p(t,"currentMaxNumberOfPointers",1),p(t,"startX",0),p(t,"startY",0),p(t,"offsetX",0),p(t,"offsetY",0),p(t,"lastX",0),p(t,"lastY",0),p(t,"waitTimeout",void 0),p(t,"delayTimeout",void 0),p(t,"tapsSoFar",0),t}return(0,c.default)(e,t),(0,s.default)(e,[{key:"init",value:function(t,i){y(e,"init",this,3)([t,i])}},{key:"updateGestureConfig",value:function(t){var i=t.enabled,n=void 0===i||i,r=(0,a.default)(t,v);y(e,"updateGestureConfig",this,3)([Object.assign({enabled:n},r)]),void 0!==this.config.numberOfTaps&amp;&amp;(this.numberOfTaps=this.config.numberOfTaps),void 0!==this.config.maxDurationMs&amp;&amp;(this.maxDurationMs=this.config.maxDurationMs),void 0!==this.config.maxDelayMs&amp;&amp;(this.maxDelayMs=this.config.maxDelayMs),void 0!==this.config.maxDeltaX&amp;&amp;(this.maxDeltaX=this.config.maxDeltaX),void 0!==this.config.maxDeltaY&amp;&amp;(this.maxDeltaY=this.config.maxDeltaY),void 0!==this.config.maxDist&amp;&amp;(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.minPointers&amp;&amp;(this.minNumberOfPointers=this.config.minPointers)}},{key:"resetConfig",value:function(){y(e,"resetConfig",this,3)([]),this.maxDeltaX=Number.MIN_SAFE_INTEGER,this.maxDeltaY=Number.MIN_SAFE_INTEGER,this.maxDistSq=Number.MIN_SAFE_INTEGER,this.maxDurationMs=500,this.maxDelayMs=500,this.numberOfTaps=1,this.minNumberOfPointers=1}},{key:"clearTimeouts",value:function(){clearTimeout(this.waitTimeout),clearTimeout(this.delayTimeout)}},{key:"startTap",value:function(){var t=this;this.clearTimeouts(),this.waitTimeout=setTimeout((function(){return t.fail()}),this.maxDurationMs)}},{key:"endTap",value:function(){var t=this;this.clearTimeouts(),++this.tapsSoFar===this.numberOfTaps&amp;&amp;this.currentMaxNumberOfPointers&gt;=this.minNumberOfPointers?this.activate():this.delayTimeout=setTimeout((function(){return t.fail()}),this.maxDelayMs)}},{key:"onPointerDown",value:function(t){this.isButtonInConfig(t.button)&amp;&amp;(this.tracker.addToTracker(t),y(e,"onPointerDown",this,3)([t]),this.trySettingPosition(t),this.startX=t.x,this.startY=t.y,this.lastX=t.x,this.lastY=t.y,this.updateState(t))}},{key:"onPointerAdd",value:function(t){y(e,"onPointerAdd",this,3)([t]),this.tracker.addToTracker(t),this.trySettingPosition(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.startX=this.tracker.getLastAvgX(),this.startY=this.tracker.getLastAvgY(),this.updateState(t)}},{key:"onPointerUp",value:function(t){y(e,"onPointerUp",this,3)([t]),this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.tracker.removeFromTracker(t.pointerId),this.updateState(t)}},{key:"onPointerRemove",value:function(t){y(e,"onPointerRemove",this,3)([t]),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY,this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}},{key:"onPointerMove",value:function(t){this.trySettingPosition(t),this.tracker.track(t),this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.updateState(t),y(e,"onPointerMove",this,3)([t])}},{key:"onPointerOutOfBounds",value:function(t){this.trySettingPosition(t),this.tracker.track(t),this.lastX=this.tracker.getLastAvgX(),this.lastY=this.tracker.getLastAvgY(),this.updateState(t),y(e,"onPointerOutOfBounds",this,3)([t])}},{key:"updateState",value:function(t){if(this.currentMaxNumberOfPointers&lt;this.tracker.getTrackedPointersCount()&amp;&amp;(this.currentMaxNumberOfPointers=this.tracker.getTrackedPointersCount()),this.shouldFail())this.fail();else switch(this.currentState){case h.State.UNDETERMINED:t.eventType===f.EventTypes.DOWN&amp;&amp;this.begin(),this.startTap();break;case h.State.BEGAN:t.eventType===f.EventTypes.UP&amp;&amp;this.endTap(),t.eventType===f.EventTypes.DOWN&amp;&amp;this.startTap()}}},{key:"trySettingPosition",value:function(t){this.currentState===h.State.UNDETERMINED&amp;&amp;(this.offsetX=0,this.offsetY=0,this.startX=t.x,this.startY=t.y)}},{key:"shouldFail",value:function(){var t=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&amp;&amp;Math.abs(t)&gt;this.maxDeltaX)return!0;var e=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&amp;&amp;Math.abs(e)&gt;this.maxDeltaY)return!0;var i=e*e+t*t;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&amp;&amp;i&gt;this.maxDistSq}},{key:"activate",value:function(){y(e,"activate",this,3)([]),this.end()}},{key:"onCancel",value:function(){this.resetProgress(),this.clearTimeouts()}},{key:"resetProgress",value:function(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}}])}(d.default)},96673:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(17383)),r=n(i(34579));function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o=function(){function t(e){(0,a.default)(this,t),s(this,"offset",void 0),s(this,"length",void 0),s(this,"elements",void 0),this.offset=0,this.length=e,this.elements=new Array(e)}return(0,r.default)(t,[{key:"get",value:function(t){return this.elements[this.offset+t]}},{key:"set",value:function(t,e){this.elements[this.offset+t]=e}},{key:"dot",value:function(t){for(var e=0,i=0;i&lt;this.length;i++)e+=this.get(i)*t.get(i);return e}},{key:"norm",value:function(){return Math.sqrt(this.dot(this))}}],[{key:"fromVOL",value:function(e,i,n){var a=new t(0);return a.offset=i,a.length=n,a.elements=e,a}}])}(),u=(0,r.default)((function t(e,i){(0,a.default)(this,t),s(this,"columns",void 0),s(this,"elements",void 0),this.columns=i,this.elements=new Array(e*i)}),[{key:"get",value:function(t,e){return this.elements[t*this.columns+e]}},{key:"set",value:function(t,e,i){this.elements[t*this.columns+e]=i}},{key:"getRow",value:function(t){return o.fromVOL(this.elements,t*this.columns,this.columns)}}]),l=(0,r.default)((function t(e){(0,a.default)(this,t),s(this,"coefficients",void 0),this.coefficients=new Array(e+1)}));e.default=(0,r.default)((function t(e,i,n){(0,a.default)(this,t),s(this,"x",void 0),s(this,"y",void 0),s(this,"w",void 0),this.x=e,this.y=i,this.w=n}),[{key:"solve",value:function(t){if(t&gt;this.x.length)return null;for(var e=new l(t),i=this.x.length,n=t+1,a=new u(n,i),r=0;r&lt;i;r++){a.set(0,r,this.w[r]);for(var s=1;s&lt;n;s++)a.set(s,r,a.get(s-1,r)*this.x[r])}for(var c=new u(n,i),h=new u(n,i),f=0;f&lt;n;f+=1){for(var d=0;d&lt;i;d+=1)c.set(f,d,a.get(f,d));for(var v=0;v&lt;f;v+=1)for(var g=c.getRow(f).dot(c.getRow(v)),y=0;y&lt;i;y+=1)c.set(f,y,c.get(f,y)-g*c.get(v,y));var p=c.getRow(f).norm();if(p&lt;1e-10)return null;for(var E=1/p,m=0;m&lt;i;m+=1)c.set(f,m,c.get(f,m)*E);for(var T=0;T&lt;n;T+=1)h.set(f,T,T&lt;f?0:c.getRow(f).dot(a.getRow(T)))}for(var k=new o(i),P=0;P&lt;i;P+=1)k.set(P,this.y[P]*this.w[P]);for(var S=n-1;S&gt;=0;S-=1){e.coefficients[S]=c.getRow(S).dot(k);for(var O=n-1;O&gt;S;O-=1)e.coefficients[S]-=h.get(S,O)*e.coefficients[O];e.coefficients[S]/=h.get(S,S)}return e}}])},98724:(t,e)=&gt;{Object.defineProperty(e,"__esModule",{value:!0}),e.createGestureHandler=function(t,e){if(t in i)throw new Error(`Handler with tag ${t} already exists`);i[t]=e,i[t].handlerTag=t},e.dropGestureHandler=function(t){if(!(t in i))return;n(t).destroy(),delete i[t]},e.getHandler=n,e.getNodes=function(){return Object.assign({},i)};var i={};function n(t){if(t in i)return i[t];throw new Error(`No handler for tag ${t}`)}},98973:(t,e,i)=&gt;{var n=i(24994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i(91847)),r=n(i(43693)),s=n(i(17383)),o=n(i(34579)),u=n(i(28452)),l=n(i(63072)),c=n(i(32395)),h=n(i(29511)),f=n(i(86318)),d=i(10988),v=i(4802),g=n(i(44737)),y=i(46522),p=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function m(t,e,i,n){var a=(0,c.default)((0,l.default)(1&amp;n?t.prototype:t),e,i);return 2&amp;n&amp;&amp;"function"==typeof a?function(t){return a.apply(i,t)}:a}function T(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var k=function(t){function e(){var t,i,n,a;(0,s.default)(this,e);for(var r=arguments.length,o=new Array(r),c=0;c&lt;r;c++)o[c]=arguments[c];return i=this,n=e,a=[].concat(o),n=(0,l.default)(n),T(t=(0,u.default)(i,E()?Reflect.construct(n,a||[],(0,l.default)(i).constructor):n.apply(i,a)),"visualFeedbackTimer",void 0),T(t,"initialEvent",null),T(t,"shouldDelayTouches",!0),t}return(0,h.default)(e,t),(0,o.default)(e,[{key:"name",get:function(){return"press"}},{key:"minDurationMs",get:function(){return(0,y.isnan)(this.config.minDurationMs)?5:this.config.minDurationMs}},{key:"maxDist",get:function(){return(0,y.isnan)(this.config.maxDist)?9:this.config.maxDist}},{key:"NativeGestureClass",get:function(){return f.default.Press}},{key:"simulateCancelEvent",value:function(t){this.hasGestureFailed=!0,this.cancelEvent(t)}},{key:"updateHasCustomActivationCriteria",value:function(t){var e=t.shouldCancelWhenOutside,i=t.maxDistSq;return e||!(0,y.isValidNumber)(i)}},{key:"getState",value:function(t){return(0,r.default)((0,r.default)((0,r.default)((0,r.default)({},f.default.INPUT_START,d.State.BEGAN),f.default.INPUT_MOVE,d.State.ACTIVE),f.default.INPUT_END,d.State.END),f.default.INPUT_CANCEL,d.State.CANCELLED)[t]}},{key:"getConfig",value:function(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}},{key:"getHammerConfig",value:function(){return Object.assign({},m(e,"getHammerConfig",this,3)([]),{time:this.minDurationMs})}},{key:"onGestureActivated",value:function(t){this.onGestureStart(t)}},{key:"shouldDelayTouchForEvent",value:function(t){var e=t.pointerType;return this.shouldDelayTouches&amp;&amp;"touch"===e}},{key:"onGestureStart",value:function(t){var e=this;this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=t,this.visualFeedbackTimer=(0,y.fireAfterInterval)((function(){e.sendGestureStartedEvent(e.initialEvent),e.initialEvent=null}),this.shouldDelayTouchForEvent(t)&amp;&amp;v.CONTENT_TOUCHES_DELAY)}},{key:"sendGestureStartedEvent",value:function(t){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object.assign({},t,{eventType:f.default.INPUT_MOVE,isFirst:!0}))}},{key:"forceInvalidate",value:function(t){m(e,"forceInvalidate",this,3)([t]),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}},{key:"onRawEvent",value:function(t){var i,n=this;(m(e,"onRawEvent",this,3)([t]),this.isGestureRunning)&amp;&amp;(t.isFinal?(this.visualFeedbackTimer&amp;&amp;(i=v.CONTENT_TOUCHES_QUICK_TAP_END_DELAY,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),(0,y.fireAfterInterval)((function(){n.sendEvent(Object.assign({},t,{eventType:f.default.INPUT_END,isFinal:!0})),n.onGestureEnded()}),i)):this.sendEvent(Object.assign({},t,{eventType:f.default.INPUT_MOVE,isFinal:!1})))}},{key:"updateGestureConfig",value:function(t){var i=t.shouldActivateOnStart,n=void 0!==i&amp;&amp;i,r=t.disallowInterruption,s=void 0!==r&amp;&amp;r,o=t.shouldCancelWhenOutside,u=void 0===o||o,l=t.minDurationMs,c=void 0===l?Number.NaN:l,h=t.maxDist,f=void 0===h?Number.NaN:h,d=t.minPointers,v=void 0===d?1:d,g=t.maxPointers,y=void 0===g?1:g,E=(0,a.default)(t,p);return m(e,"updateGestureConfig",this,3)([Object.assign({shouldActivateOnStart:n,disallowInterruption:s,shouldCancelWhenOutside:u,minDurationMs:c,maxDist:f,minPointers:v,maxPointers:y},E)])}}])}(g.default);e.default=k},99459:(t,e)=&gt;{Object.defineProperty(e,"__esModule",{value:!0}),e.MINIMAL_FLING_VELOCITY=e.DEFAULT_TOUCH_SLOP=void 0;e.DEFAULT_TOUCH_SLOP=15,e.MINIMAL_FLING_VELOCITY=.1}}]);</pre></body></html>