<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunkwebpack_react=self.webpackChunkwebpack_react||[]).push([[6241],{90027:function(t,e,i){"use strict";i.d(e,{c0:function(){return ut},T2:function(){return lt}});const s={toVector:(t,e)=&gt;(void 0===t&amp;&amp;(t=e),Array.isArray(t)?t:[t,t]),add:(t,e)=&gt;[t[0]+e[0],t[1]+e[1]],sub:(t,e)=&gt;[t[0]-e[0],t[1]-e[1]],addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function n(t,e,i){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*i):t*e*i/(e+i*t)}function o(t,e,i,s=.15){return 0===s?function(t,e,i){return Math.max(e,Math.min(t,i))}(t,e,i):t&lt;e?-n(e-t,i-e,s)+e:t&gt;i?+n(t-i,i-e,s)+i:t}function r(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&amp;&amp;(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function c(t){for(var e=1;e&lt;arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}const h={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function u(t){return t?t[0].toUpperCase()+t.slice(1):""}const l=["enter","leave"];const d=["gotpointercapture","lostpointercapture"];function p(t){let e=t.substring(2).toLowerCase();const i=!!~e.indexOf("passive");i&amp;&amp;(e=e.replace("passive",""));const s=d.includes(e)?"capturecapture":"capture",n=!!~e.indexOf(s);return n&amp;&amp;(e=e.replace("capture","")),{device:e,capture:n,passive:i}}function f(t){return"touches"in t}function v(t){return f(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function m(t){return f(t)?function(t){return"touchend"===t.type||"touchcancel"===t.type?t.changedTouches:t.targetTouches}(t)[0]:t}function g(t,e){try{const i=e.clientX-t.clientX,s=e.clientY-t.clientY,n=(e.clientX+t.clientX)/2,o=(e.clientY+t.clientY)/2,r=Math.hypot(i,s);return{angle:-180*Math.atan2(i,s)/Math.PI,distance:r,origin:[n,o]}}catch(t){}return null}function _(t,e){const[i,s]=Array.from(t.touches).filter((t=&gt;e.includes(t.identifier)));return g(i,s)}function b(t){const e=m(t);return f(t)?e.identifier:e.pointerId}function y(t){const e=m(t);return[e.clientX,e.clientY]}function w(t){let{deltaX:e,deltaY:i,deltaMode:s}=t;return 1===s?(e*=40,i*=40):2===s&amp;&amp;(e*=800,i*=800),[e,i]}function S(t,...e){return"function"==typeof t?t(...e):t}function k(){}function T(...t){return 0===t.length?k:1===t.length?t[0]:function(){let e;for(const i of t)e=i.apply(this,arguments)||e;return e}}function E(t,e){return Object.assign({},e,t||{})}class x{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&amp;&amp;this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:s}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=s,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?S(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:n}=this;e.args=this.args;let r=0;if(t&amp;&amp;(e.event=t,i.preventDefault&amp;&amp;t.cancelable&amp;&amp;e.event.preventDefault(),e.type=t.type,n.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,n.locked=!!document.pointerLockElement,Object.assign(n,function(t){const e={};if("buttons"in t&amp;&amp;(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:i,altKey:s,metaKey:n,ctrlKey:o}=t;Object.assign(e,{shiftKey:i,altKey:s,metaKey:n,ctrlKey:o})}return e}(t)),n.down=n.pressed=n.buttons%2==1||n.touches&gt;0,r=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const t=e._delta.map(Math.abs);s.addTo(e._distance,t)}this.axisIntent&amp;&amp;this.axisIntent(t);const[a,c]=e._movement,[h,u]=i.threshold,{_step:l,values:d}=e;if(i.hasCustomTransform?(!1===l[0]&amp;&amp;(l[0]=Math.abs(a)&gt;=h&amp;&amp;d[0]),!1===l[1]&amp;&amp;(l[1]=Math.abs(c)&gt;=u&amp;&amp;d[1])):(!1===l[0]&amp;&amp;(l[0]=Math.abs(a)&gt;=h&amp;&amp;Math.sign(a)*h),!1===l[1]&amp;&amp;(l[1]=Math.abs(c)&gt;=u&amp;&amp;Math.sign(c)*u)),e.intentional=!1!==l[0]||!1!==l[1],!e.intentional)return;const p=[0,0];if(i.hasCustomTransform){const[t,e]=d;p[0]=!1!==l[0]?t-l[0]:0,p[1]=!1!==l[1]?e-l[1]:0}else p[0]=!1!==l[0]?a-l[0]:0,p[1]=!1!==l[1]?c-l[1]:0;this.restrictToAxis&amp;&amp;!e._blocked&amp;&amp;this.restrictToAxis(p);const f=e.offset,v=e._active&amp;&amp;!e._blocked||e.active;v&amp;&amp;(e.first=e._active&amp;&amp;!e.active,e.last=!e._active&amp;&amp;e.active,e.active=n[this.ingKey]=e._active,t&amp;&amp;(e.first&amp;&amp;("bounds"in i&amp;&amp;(e._bounds=S(i.bounds,e)),this.setup&amp;&amp;this.setup()),e.movement=p,this.computeOffset()));const[m,g]=e.offset,[[_,b],[y,w]]=e._bounds;e.overflow=[m&lt;_?-1:m&gt;b?1:0,g&lt;y?-1:g&gt;w?1:0],e._movementBound[0]=!!e.overflow[0]&amp;&amp;(!1===e._movementBound[0]?e._movement[0]:e._movementBound[0]),e._movementBound[1]=!!e.overflow[1]&amp;&amp;(!1===e._movementBound[1]?e._movement[1]:e._movementBound[1]);const k=e._active&amp;&amp;i.rubberband||[0,0];if(e.offset=function(t,[e,i],[s,n]){const[[r,a],[c,h]]=t;return[o(e,r,a,s),o(i,c,h,n)]}(e._bounds,e.offset,k),e.delta=s.sub(e.offset,f),this.computeMovement(),v&amp;&amp;(!e.last||r&gt;32)){e.delta=s.sub(e.offset,f);const t=e.delta.map(Math.abs);s.addTo(e.distance,t),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&amp;&amp;r&gt;0&amp;&amp;(e.velocity=[t[0]/r,t[1]/r],e.timeDelta=r)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&amp;&amp;!t._force&amp;&amp;!i.triggerAllEvents)return;const s=this.handler(c(c(c({},e),t),{},{[this.aliasKey]:t.values}));void 0!==s&amp;&amp;(t.memo=s)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class O extends x{constructor(...t){super(...t),r(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=s.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=s.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&amp;&amp;t){const s="object"==typeof i.axisThreshold?i.axisThreshold[v(t)]:i.axisThreshold;e.axis=function([t,e],i){const s=Math.abs(t),n=Math.abs(e);return s&gt;n&amp;&amp;s&gt;i?"x":n&gt;s&amp;&amp;n&gt;i?"y":void 0}(e._movement,s)}e._blocked=(i.lockDirection||!!i.axis)&amp;&amp;!e.axis||!!i.axis&amp;&amp;i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0}}}const I=t=&gt;t,M={enabled:(t=!0)=&gt;t,eventOptions:(t,e,i)=&gt;c(c({},i.shared.eventOptions),t),preventDefault:(t=!1)=&gt;t,triggerAllEvents:(t=!1)=&gt;t,rubberband(t=0){switch(t){case!0:return[.15,.15];case!1:return[0,0];default:return s.toVector(t)}},from:t=&gt;"function"==typeof t?t:null!=t?s.toVector(t):void 0,transform(t,e,i){const s=t||i.shared.transform;return this.hasCustomTransform=!!s,s||I},threshold:t=&gt;s.toVector(t,0)},D=c(c({},M),{},{axis(t,e,{axis:i}){if(this.lockDirection="lock"===i,!this.lockDirection)return i},axisThreshold:(t=0)=&gt;t,bounds(t={}){if("function"==typeof t)return e=&gt;D.bounds(t(e));if("current"in t)return()=&gt;t.current;if("function"==typeof HTMLElement&amp;&amp;t instanceof HTMLElement)return t;const{left:e=-1/0,right:i=1/0,top:s=-1/0,bottom:n=1/0}=t;return[[e,i],[s,n]]}}),A={ArrowRight:(t,e=1)=&gt;[t*e,0],ArrowLeft:(t,e=1)=&gt;[-1*t*e,0],ArrowUp:(t,e=1)=&gt;[0,-1*t*e],ArrowDown:(t,e=1)=&gt;[0,t*e]},C="undefined"!=typeof window&amp;&amp;window.document&amp;&amp;window.document.createElement;function P(){return C&amp;&amp;"ontouchstart"in window}const K={isBrowser:C,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:P(),touchscreen:P()||C&amp;&amp;window.navigator.maxTouchPoints&gt;1,pointer:C&amp;&amp;"onpointerdown"in window,pointerLock:C&amp;&amp;"exitPointerLock"in window.document},j={mouse:0,touch:0,pen:8},L=c(c({},D),{},{device(t,e,{pointer:{touch:i=!1,lock:s=!1,mouse:n=!1}={}}){return this.pointerLock=s&amp;&amp;K.pointerLock,K.touch&amp;&amp;i?"touch":this.pointerLock?"mouse":K.pointer&amp;&amp;!n?"pointer":K.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:i}){if(this.preventScrollDelay="number"==typeof i?i:i||void 0===i&amp;&amp;t?250:void 0,K.touchscreen&amp;&amp;!1!==i)return t||(void 0!==i?"y":void 0)},pointerCapture(t,e,{pointer:{capture:i=!0,buttons:s=1,keys:n=!0}={}}){return this.pointerButtons=s,this.keys=n,!this.pointerLock&amp;&amp;"pointer"===this.device&amp;&amp;i},threshold(t,e,{filterTaps:i=!1,tapsThreshold:n=3,axis:o}){const r=s.toVector(t,i?n:o?1:0);return this.filterTaps=i,this.tapsThreshold=n,r},swipe({velocity:t=.5,distance:e=50,duration:i=250}={}){return{velocity:this.transform(s.toVector(t)),distance:this.transform(s.toVector(e)),duration:i}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}},axisThreshold:t=&gt;t?c(c({},j),t):j,keyboardDisplacement:(t=10)=&gt;t});function V(t){const[e,i]=t.overflow,[s,n]=t._delta,[o,r]=t._direction;(e&lt;0&amp;&amp;s&gt;0&amp;&amp;o&lt;0||e&gt;0&amp;&amp;s&lt;0&amp;&amp;o&gt;0)&amp;&amp;(t._movement[0]=t._movementBound[0]),(i&lt;0&amp;&amp;n&gt;0&amp;&amp;r&lt;0||i&gt;0&amp;&amp;n&lt;0&amp;&amp;r&gt;0)&amp;&amp;(t._movement[1]=t._movementBound[1])}const B=c(c({},M),{},{device(t,e,{shared:i,pointer:{touch:s=!1}={}}){if(i.target&amp;&amp;!K.touch&amp;&amp;K.gesture)return"gesture";if(K.touch&amp;&amp;s)return"touch";if(K.touchscreen){if(K.pointer)return"pointer";if(K.touch)return"touch"}},bounds(t,e,{scaleBounds:i={},angleBounds:s={}}){const n=t=&gt;{const e=E(S(i,t),{min:-1/0,max:1/0});return[e.min,e.max]},o=t=&gt;{const e=E(S(s,t),{min:-1/0,max:1/0});return[e.min,e.max]};return"function"!=typeof i&amp;&amp;"function"!=typeof s?[n(),o()]:t=&gt;[n(t),o(t)]},threshold(t,e,i){return this.lockDirection="lock"===i.axis,s.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey:t=&gt;void 0===t?"ctrlKey":t,pinchOnWheel:(t=!0)=&gt;t}),H=c(c({},D),{},{mouseOnly:(t=!0)=&gt;t}),X=D,Y=D,U=c(c({},D),{},{mouseOnly:(t=!0)=&gt;t}),z=new Map,R=new Map;function W(t){z.set(t.key,t.engine),R.set(t.key,t.resolver)}const q={key:"drag",engine:class extends O{constructor(...t){super(...t),r(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),s={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=D.bounds(s)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout((()=&gt;{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(null!=t.buttons&amp;&amp;(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):-1!==e.pointerButtons&amp;&amp;e.pointerButtons!==t.buttons))return;const s=this.ctrl.setEventIds(t);e.pointerCapture&amp;&amp;t.target.setPointerCapture(t.pointerId),s&amp;&amp;s.size&gt;1&amp;&amp;i._pointerActive||(this.start(t),this.setupPointer(t),i._pointerId=b(t),i._pointerActive=!0,this.computeValues(y(t)),this.computeInitial(),e.preventScrollAxis&amp;&amp;"mouse"!==v(t)?(i._active=!1,this.setupScrollPrevention(t)):e.delay&gt;0?(this.setupDelayTrigger(t),e.triggerAllEvents&amp;&amp;(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const n=b(t);if(void 0!==e._pointerId&amp;&amp;n!==e._pointerId)return;const o=y(t);return document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=s.sub(o,e._values),this.computeValues(o)),s.addTo(e._movement,e._delta),this.compute(t),e._delayed&amp;&amp;e.intentional?(this.timeoutStore.remove("dragDelay"),e.active=!1,void this.startPointerDrag(t)):i.preventScrollAxis&amp;&amp;!e._preventScroll?e.axis?e.axis===i.preventScrollAxis||"xy"===i.preventScrollAxis?(e._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(t)):void 0:void this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&amp;&amp;t.target.hasPointerCapture(t.pointerId)&amp;&amp;t.target.releasePointerCapture(t.pointerId)}catch(t){}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const s=b(t);if(void 0!==e._pointerId&amp;&amp;s!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[n,o]=e._distance;if(e.tap=n&lt;=i.tapsThreshold&amp;&amp;o&lt;=i.tapsThreshold,e.tap&amp;&amp;i.filterTaps)e._force=!0;else{const[t,s]=e._delta,[n,o]=e._movement,[r,a]=i.swipe.velocity,[c,h]=i.swipe.distance,u=i.swipe.duration;if(e.elapsedTime&lt;u){const i=Math.abs(t/e.timeDelta),u=Math.abs(s/e.timeDelta);i&gt;r&amp;&amp;Math.abs(n)&gt;c&amp;&amp;(e.swipe[0]=Math.sign(t)),u&gt;a&amp;&amp;Math.abs(o)&gt;h&amp;&amp;(e.swipe[1]=Math.sign(s))}}this.emit()}pointerClick(t){!this.state.tap&amp;&amp;t.detail&gt;0&amp;&amp;(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;e.pointerLock&amp;&amp;t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&amp;&amp;document.pointerLockElement===this.state.currentTarget&amp;&amp;document.exitPointerLock()}preventScroll(t){this.state._preventScroll&amp;&amp;t.cancelable&amp;&amp;t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,function(t){"persist"in t&amp;&amp;"function"==typeof t.persist&amp;&amp;t.persist()}(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=&gt;{this.state._step=[0,0],this.startPointerDrag(t)}),this.config.delay)}keyDown(t){const e=A[t.key];if(e){const i=this.state,n=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,n),i._keyboardActive=!0,s.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in A&amp;&amp;(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&amp;&amp;(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&amp;&amp;(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&amp;&amp;t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:L},G={key:"hover",engine:class extends O{constructor(...t){super(...t),r(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&amp;&amp;"mouse"!==t.pointerType||(this.start(t),this.computeValues(y(t)),this.compute(t),this.emit())}leave(t){if(this.config.mouseOnly&amp;&amp;"mouse"!==t.pointerType)return;const e=this.state;if(!e._active)return;e._active=!1;const i=y(t);e._movement=e._delta=s.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}},resolver:U},F={key:"move",engine:class extends O{constructor(...t){super(...t),r(this,"ingKey","moving")}move(t){this.config.mouseOnly&amp;&amp;"mouse"!==t.pointerType||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(y(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=y(t),i=this.state;i._delta=s.sub(e,i._values),s.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&amp;&amp;(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}},resolver:H},J={key:"pinch",engine:class extends x{constructor(...t){super(...t),r(this,"ingKey","pinching"),r(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;this.state.offset="wheel"===t?s.add(e,i):[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const s=30*Math.abs(e)-Math.abs(i);s&lt;0?t.axis="angle":s&gt;0&amp;&amp;(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&amp;&amp;("scale"===this.state.axis?t[1]=0:"angle"===this.state.axis&amp;&amp;(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout((()=&gt;{t.canceled=!0,t._active=!1,this.compute(),this.emit()}),0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&amp;&amp;e._touchIds.every((t=&gt;i.has(t))))return;if(i.size&lt;2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const s=_(t,e._touchIds);s&amp;&amp;this.pinchStart(t,s)}pointerStart(t){if(null!=t.buttons&amp;&amp;t.buttons%2!=1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,s=this.ctrl.pointerIds;if(e._active&amp;&amp;Array.from(i.keys()).every((t=&gt;s.has(t))))return;if(i.size&lt;2&amp;&amp;i.set(t.pointerId,t),e._pointerEvents.size&lt;2)return;this.start(t);const n=g(...Array.from(i.values()));n&amp;&amp;this.pinchStart(t,n)}pinchStart(t,e){this.state.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=_(t,this.state._touchIds);e&amp;&amp;this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&amp;&amp;e.set(t.pointerId,t),!this.state._active)return;const i=g(...Array.from(e.values()));i&amp;&amp;this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,s=i._values[1],n=e.angle-s;let o=0;Math.abs(n)&gt;270&amp;&amp;(o+=Math.sign(n)),this.computeValues([e.distance,e.angle-360*o]),i.origin=e.origin,i.turns=o,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&amp;&amp;this.state._touchIds.some((t=&gt;!this.ctrl.touchIds.has(t)))&amp;&amp;(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch(t){}e._pointerEvents.has(t.pointerId)&amp;&amp;e._pointerEvents.delete(t.pointerId),e._active&amp;&amp;e._pointerEvents.size&lt;2&amp;&amp;(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&amp;&amp;t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&amp;&amp;t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=s.sub(e._movement,i),this.compute(t),this.emit()}gestureEnd(t){this.state._active&amp;&amp;(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&amp;&amp;!(Array.isArray(e)?e.find((e=&gt;t[e])):t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&amp;&amp;t.preventDefault();const e=this.state;e._delta=[-w(t)[1]/100*e.offset[0],0],s.addTo(e._movement,e._delta),V(e),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&amp;&amp;(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&amp;&amp;(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&amp;&amp;t("wheel","",this.wheel.bind(this),{passive:!1})}},resolver:B},N={key:"scroll",engine:class extends O{constructor(...t){super(...t),r(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&amp;&amp;t.preventDefault();const e=this.state,i=function(t){var e,i;const{scrollX:s,scrollY:n,scrollLeft:o,scrollTop:r}=t.currentTarget;return[null!==(e=null!=s?s:o)&amp;&amp;void 0!==e?e:0,null!==(i=null!=n?n:r)&amp;&amp;void 0!==i?i:0]}(t);e._delta=s.sub(i,e._values),s.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&amp;&amp;(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}},resolver:X},Q={key:"wheel",engine:class extends O{constructor(...t){super(...t),r(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=w(t),s.addTo(e._movement,e._delta),V(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&amp;&amp;(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}},resolver:Y};var Z=i(67294);const $={target(t){if(t)return()=&gt;"current"in t?t.current:t},enabled:(t=!0)=&gt;t,window:(t=(K.isBrowser?window:void 0))=&gt;t,eventOptions:({passive:t=!0,capture:e=!1}={})=&gt;({passive:t,capture:e}),transform:t=&gt;t},tt=["target","eventOptions","window","enabled","transform"];function et(t={},e){const i={};for(const[s,n]of Object.entries(e))switch(typeof n){case"function":i[s]=n.call(i,t[s],s,t);break;case"object":i[s]=et(t[s],n);break;case"boolean":n&amp;&amp;(i[s]=t[s])}return i}class it{constructor(t,e){r(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,i,s,n){const o=this._listeners,r=function(t,e=""){const i=h[t];return t+(i&amp;&amp;i[e]||e)}(e,i),a=c(c({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),n);t.addEventListener(r,s,a);const u=()=&gt;{t.removeEventListener(r,s,a),o.delete(u)};return o.add(u),u}clean(){this._listeners.forEach((t=&gt;t())),this._listeners.clear()}}class st{constructor(){r(this,"_timeouts",new Map)}add(t,e,i=140,...s){this.remove(t),this._timeouts.set(t,window.setTimeout(e,i,...s))}remove(t){const e=this._timeouts.get(t);e&amp;&amp;window.clearTimeout(e)}clean(){this._timeouts.forEach((t=&gt;{window.clearTimeout(t)})),this._timeouts.clear()}}class nt{constructor(t){var e,i;r(this,"gestures",new Set),r(this,"_targetEventStore",new it(this)),r(this,"gestureEventStores",{}),r(this,"gestureTimeoutStores",{}),r(this,"handlers",{}),r(this,"config",{}),r(this,"pointerIds",new Set),r(this,"touchIds",new Set),r(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),e=this,(i=t).drag&amp;&amp;ot(e,"drag"),i.wheel&amp;&amp;ot(e,"wheel"),i.scroll&amp;&amp;ot(e,"scroll"),i.move&amp;&amp;ot(e,"move"),i.pinch&amp;&amp;ot(e,"pinch"),i.hover&amp;&amp;ot(e,"hover")}setEventIds(t){return f(t)?(this.touchIds=new Set(function(t){return function(t){return Array.from(t.touches).filter((e=&gt;{var i,s;return e.target===t.currentTarget||(null===(i=t.currentTarget)||void 0===i||null===(s=i.contains)||void 0===s?void 0:s.call(i,e.target))}))}(t).map((t=&gt;t.identifier))}(t)),this.touchIds):"pointerId"in t?("pointerup"===t.type||"pointercancel"===t.type?this.pointerIds.delete(t.pointerId):"pointerdown"===t.type&amp;&amp;this.pointerIds.add(t.pointerId),this.pointerIds):void 0}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=function(t,e,i={}){const s=t,{target:n,eventOptions:o,window:r,enabled:a,transform:h}=s,u=function(t,e){if(null==t)return{};var i,s,n=function(t,e){if(null==t)return{};var i,s,n={},o=Object.keys(t);for(s=0;s&lt;o.length;s++)i=o[s],e.indexOf(i)&gt;=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s&lt;o.length;s++)i=o[s],e.indexOf(i)&gt;=0||Object.prototype.propertyIsEnumerable.call(t,i)&amp;&amp;(n[i]=t[i])}return n}(s,tt);if(i.shared=et({target:n,eventOptions:o,window:r,enabled:a,transform:h},$),e){const t=R.get(e);i[e]=et(c({shared:i.shared},u),t)}else for(const t in u){const e=R.get(t);e&amp;&amp;(i[t]=et(c({shared:i.shared},u[t]),e))}return i}(t,e,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&amp;&amp;this.bind(),()=&gt;this._targetEventStore.clean()}bind(...t){const e=this.config.shared,i={};let s;if(!e.target||(s=e.target(),s)){if(e.enabled){for(const e of this.gestures){const n=this.config[e],o=rt(i,n.eventOptions,!!s);n.enabled&amp;&amp;new(z.get(e))(this,t,e).bind(o)}const n=rt(i,e.eventOptions,!!s);for(const e in this.nativeHandlers)n(e,"",(i=&gt;this.nativeHandlers[e](c(c({},this.state.shared),{},{event:i,args:t}))),void 0,!0)}for(const t in i)i[t]=T(...i[t]);if(!s)return i;for(const t in i){const{device:e,capture:n,passive:o}=p(t);this._targetEventStore.add(s,e,"",i[t],{capture:n,passive:o})}}}}function ot(t,e){t.gestures.add(e),t.gestureEventStores[e]=new it(t,e),t.gestureTimeoutStores[e]=new st}const rt=(t,e,i)=&gt;(s,n,o,r={},a=!1)=&gt;{var c,d;const p=null!==(c=r.capture)&amp;&amp;void 0!==c?c:e.capture,f=null!==(d=r.passive)&amp;&amp;void 0!==d?d:e.passive;let v=a?s:function(t,e="",i=!1){const s=h[t],n=s&amp;&amp;s[e]||e;return"on"+u(t)+u(n)+(function(t=!1,e){return t&amp;&amp;!l.includes(e)}(i,n)?"Capture":"")}(s,n,p);i&amp;&amp;f&amp;&amp;(v+="Passive"),t[v]=t[v]||[],t[v].push(o)},at=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function ct(t,e,i,s,n,o){if(!t.has(i))return;if(!z.has(s))return;const r=i+"Start",a=i+"End";n[s]=t=&gt;{let s;return t.first&amp;&amp;r in e&amp;&amp;e[r](t),i in e&amp;&amp;(s=e[i](t)),t.last&amp;&amp;a in e&amp;&amp;e[a](t),s},o[s]=o[s]||{}}function ht(t,e={},i,s){const n=Z.useMemo((()=&gt;new nt(t)),[]);if(n.applyHandlers(t,s),n.applyConfig(e,i),Z.useEffect(n.effect.bind(n)),Z.useEffect((()=&gt;n.clean.bind(n)),[]),void 0===e.target)return n.bind.bind(n)}function ut(t,e){return W(q),ht({drag:t},e||{},"drag")}function lt(t,e){return([q,J,N,Q,F,G].forEach(W),function(t,e){const{handlers:i,nativeHandlers:s,config:n}=function(t,e){const[i,s,n]=function(t){const e={},i={},s=new Set;for(let n in t)at.test(n)?(s.add(RegExp.lastMatch),i[n]=t[n]):e[n]=t[n];return[i,e,s]}(t),o={};return ct(n,i,"onDrag","drag",o,e),ct(n,i,"onWheel","wheel",o,e),ct(n,i,"onScroll","scroll",o,e),ct(n,i,"onPinch","pinch",o,e),ct(n,i,"onMove","move",o,e),ct(n,i,"onHover","hover",o,e),{handlers:o,config:e,nativeHandlers:s}}(t,e||{});return ht(i,n,void 0,s)})(t,e||{})}}}]);
//# sourceMappingURL=npm.use-gesture.e4dba8ab266f61627f5f.react.bundle.js.map</pre></body></html>