5 lines
146 KiB
JavaScript
5 lines
146 KiB
JavaScript
/* interact.js 1.7.1 | https://raw.github.com/taye/interact.js/master/LICENSE */
|
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).interact=e()}}(function(){function e(t){var n;return function(e){return n||t(n={exports:{},parent:e},n.exports),n.exports}}var b=e(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=t.ActionName=void 0;var n=f(T),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt),i=f(zt),a=f(Rt),u=f(Bt),l=f(pn),s=f(In),r=f(E({}));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O,P=o.win,_=o.browser,x=o.raf,S=o.events;(t.ActionName=O)||(t.ActionName=O={});var j=function(){function e(){var t=this;m(this,e),w(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),w(this,"listenerMaps",[]),w(this,"browser",_),w(this,"events",S),w(this,"utils",o),w(this,"defaults",o.clone(i.default)),w(this,"Eventable",a.default),w(this,"actions",{names:[],methodDict:{},eventTypes:[]}),w(this,"InteractEvent",s.default),w(this,"Interactable",void 0),w(this,"interactables",new l.default(this)),w(this,"_win",void 0),w(this,"document",void 0),w(this,"window",void 0),w(this,"documents",[]),w(this,"_plugins",{list:[],map:{}}),w(this,"onWindowUnload",function(e){return t.removeDocument(e.target)});var r=this;this.Interactable=function(){function n(){return m(this,n),d(this,y(n).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(n,u["default"]),b(n,[{key:"set",value:function(e){return v(y(n.prototype),"set",this).call(this,e),r.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){v(y(n.prototype),"unset",this).call(this);for(var e=r.interactions.list.length-1;0<=e;e--){var t=r.interactions.list[e];t.interactable===this&&(t.stop(),r.fire("interactions:destroy",{interaction:t}),t.destroy(),2<r.interactions.list.length&&r.interactions.list.splice(e,1))}r.fire("interactable:unset",{interactable:this})}},{key:"_defaults",get:function(){return r.defaults}}]),n}()}return b(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var r=this.listenerMaps[n].map[e];if(r&&!1===r(t,this,e))return!1}}},{key:"init",value:function(e){return M(this,e)}},{key:"pluginIsInstalled",value:function(e){return this._plugins.map[e.id]||-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0;n<this.listenerMaps.length;n++){if(this.listenerMaps[n].id===e.before)break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,t){if(-1!==this.getDocIndex(e))return!1;var n=P.getWindow(e);t=t?o.extend({},t):{},this.documents.push({doc:e,options:t}),S.documents.push(e),e!==this.document&&S.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:n,scope:this,options:t})}},{key:"removeDocument",value:function(e){var t=this.getDocIndex(e),n=P.getWindow(e),r=this.documents[t].options;S.remove(n,"unload",this.onWindowUnload),this.documents.splice(t,1),S.documents.splice(t,1),this.fire("scope:remove-document",{doc:e,window:n,scope:this,options:r})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function M(e,t){return P.init(t),n.default.init(t),_.init(t),x.init(t),S.init(t),e.usePlugin(r.default),e.document=t.document,e.window=t,e}t.Scope=j}),E=e(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var P=n(j),u=n(T),f=n(me),_=n(ie),l=n(g({})),o=n(Jn);function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function y(w,O){return function(e){var t=O.interactions.list,n=_.default.getPointerType(e),r=x(_.default.getEventTargets(e),2),o=r[0],i=r[1],a=[];if(/^touch/.test(e.type)){O.prevTouchTime=O.now();for(var u=0;u<e.changedTouches.length;u++){var l=e.changedTouches[u],s={pointer:l,pointerId:_.default.getPointerId(l),pointerType:n,eventType:e.type,eventTarget:o,curEventTarget:i,scope:O},c=S(s);a.push([s.pointer,s.eventTarget,s.curEventTarget,c])}}else{var f=!1;if(!P.default.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<t.length&&!f;p++)f="mouse"!==t[p].pointerType&&t[p].pointerIsDown;f=f||O.now()-O.prevTouchTime<500||0===e.timeStamp}if(!f){var d={pointer:e,pointerId:_.default.getPointerId(e),pointerType:n,eventType:e.type,curEventTarget:i,eventTarget:o,scope:O},v=S(d);a.push([d.pointer,d.eventTarget,d.curEventTarget,v])}}for(var y=0;y<a.length;y++){var g=x(a[y],4),m=g[0],h=g[1],b=g[2];g[3][w](m,e,h,b)}}}function S(e){var t=e.pointerType,n=e.scope,r={interaction:o.default.search(e),searchDetails:e};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:t})}function i(e,t){var n=e.doc,r=e.scope,o=e.options,i=r.interactions.docEvents,a=f.default[t];for(var u in r.browser.isIOS&&!o.events&&(o.events={passive:!1}),f.default.delegatedEvents)a(n,u,f.default.delegateListener),a(n,u,f.default.delegateUseCapture,!0);for(var l=o&&o.events,s=0;s<i.length;s++){var c=i[s];a(n,c.type,c.listener,l)}}var a={id:"core/interactions",install:function(o){for(var e={},t=0;t<v.length;t++){var n=v[t];e[n]=y(n,o)}var r,i=P.default.pEventTypes;function a(){for(var e=0;e<o.interactions.list.length;e++){var t=o.interactions.list[e];if(t.pointerIsDown&&"touch"===t.pointerType&&!t._interacting)for(var n=function(){var n=t.pointers[r];o.documents.some(function(e){var t=e.doc;return(0,C.nodeContains)(t,n.downTarget)})||t.removePointer(n.pointer,n.event)},r=0;r<t.pointers.length;r++){n()}}}(r=u.default.PointerEvent?[{type:i.down,listener:a},{type:i.down,listener:e.pointerDown},{type:i.move,listener:e.pointerMove},{type:i.up,listener:e.pointerUp},{type:i.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var t=0;t<o.interactions.list.length;t++){o.interactions.list[t].documentBlur(e)}}}),o.prevTouchTime=0,o.Interaction=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(e,l["default"]),function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(e,[{key:"_now",value:function(){return o.now()}},{key:"pointerMoveTolerance",get:function(){return o.interactions.pointerMoveTolerance},set:function(e){o.interactions.pointerMoveTolerance=e}}]),e}(),o.interactions={list:[],new:function(e){e.scopeFire=function(e,t){return o.fire(e,t)};var t=new o.Interaction(e);return o.interactions.list.push(t),t},listeners:e,docEvents:r,pointerMoveTolerance:1}},listeners:{"scope:add-document":function(e){return i(e,"add")},"scope:remove-document":function(e){return i(e,"remove")}},onDocSignal:i,doOnInteractions:y,methodNames:v};t.default=a}),g=e(function(e,t){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PointerInfo",{enumerable:!0,get:function(){return u.default}}),t.default=t.Interaction=t._ProxyMethods=t._ProxyValues=void 0;var n,c,r,f,o,p=d(dt),i=d(In),u=(n=Kn)&&n.__esModule?n:{default:n},l=b({});function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t._ProxyValues=c,(r=c||(t._ProxyValues=c={})).interactable="",r.element="",r.prepared="",r.pointerIsDown="",r.pointerWasMoved="",r._proxy="",t._ProxyMethods=f,(o=f||(t._ProxyMethods=f={})).start="",o.move="",o.end="",o.stop="",o.interacting="";var m=function(){function s(e){var t=this,n=e.pointerType,r=e.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),g(this,"interactable",null),g(this,"element",null),g(this,"rect",void 0),g(this,"edges",void 0),g(this,"_scopeFire",void 0),g(this,"prepared",{name:null,axis:null,edges:null}),g(this,"pointerType",void 0),g(this,"pointers",[]),g(this,"downEvent",null),g(this,"downPointer",{}),g(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),g(this,"prevEvent",null),g(this,"pointerIsDown",!1),g(this,"pointerWasMoved",!1),g(this,"_interacting",!1),g(this,"_ending",!1),g(this,"_stopped",!0),g(this,"_proxy",null),g(this,"simulation",null),g(this,"doMove",p.warnOnce(function(e){this.move(e)},"The interaction.doMove() method has been renamed to interaction.move()")),g(this,"coords",{start:p.pointer.newCoords(),prev:p.pointer.newCoords(),cur:p.pointer.newCoords(),delta:p.pointer.newCoords(),velocity:p.pointer.newCoords()}),this._scopeFire=r,this.pointerType=n;var o=this;this._proxy={};function i(e){Object.defineProperty(t._proxy,e,{get:function(){return o[e]}})}for(var a in c)i(a);function u(e){Object.defineProperty(t._proxy,e,{value:function(){return o[e].apply(o,arguments)}})}for(var l in f)u(l);this._scopeFire("interactions:new",{interaction:this})}return y(s,[{key:"pointerMoveTolerance",get:function(){return 1}}]),y(s,[{key:"pointerDown",value:function(e,t,n){var r=this.updatePointer(e,t,n,!0);this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name===l.ActionName.Gesture?2:1)||!t.options[e.name].enabled)&&(p.copyAction(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges,this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:i.EventPhase.Start})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modifiers&&this.modifiers.endPrevented||(this.updatePointer(e,t,n,!1),p.pointer.setCoords(this.coords.cur,this.pointers.map(function(e){return e.pointer}),this._now()));var r,o,i=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=p.hypot(r,o)>this.pointerMoveTolerance);var a={pointer:e,pointerIndex:this.getPointerIndex(e),event:t,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||(p.pointer.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),p.pointer.setCoordVelocity(this.coords.velocity,this.coords.delta)),this._scopeFire("interactions:move",a),i||(this.interacting()&&(a.type=null,this.move(a)),this.pointerWasMoved&&p.pointer.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){(e=p.extend({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase=i.EventPhase.Move,this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,r){var o=this.getPointerIndex(e);-1===o&&(o=this.updatePointer(e,t,n,!1));var i=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(i),{pointer:e,pointerIndex:o,event:t,eventTarget:n,type:i,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.pointerIsDown=!1,this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:i.EventPhase.End})),!(this._ending=!1)===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=p.pointer.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:p.arr.findIndex(this.pointers,function(e){return e.id===t})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,r){var o=p.pointer.getPointerId(e),i=this.getPointerIndex(e),a=this.pointers[i];return r=!1!==r&&(r||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new u.default(o,e,t,null,null),i=this.pointers.length,this.pointers.push(a)),r&&(this.pointerIsDown=!0,this.interacting()||(p.pointer.setCoords(this.coords.start,this.pointers.map(function(e){return e.pointer}),this._now()),p.pointer.copyCoords(this.coords.cur,this.coords.start),p.pointer.copyCoords(this.coords.prev,this.coords.start),p.pointer.pointerExtend(this.downPointer,e),this.downEvent=t,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:r,pointerInfo:a,pointerIndex:i,interaction:this}),i}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1)}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,r){var o=this.prepared.name;return new i.default(this,e,o,t,this.element,null,n,r)}},{key:"_fireEvent",value:function(e){this.interactable.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,r=e.preEnd,o=e.type;if(!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var i=e.iEvent=this._createPreparedEvent(t,n,r,o),a=this.rect;if(a){var u=this.edges||this.prepared.edges||{left:!0,right:!0,top:!0,bottom:!0};u.top&&(a.top+=i.delta.y),u.bottom&&(a.bottom+=i.delta.y),u.left&&(a.left+=i.delta.x),u.right&&(a.right+=i.delta.x),a.width=a.right-a.left,a.height=a.bottom-a.top}return this._scopeFire("interactions:action-".concat(n),e),this._fireEvent(i),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}]),s}(),h=t.Interaction=m;t.default=h}),T={};Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var n={init:function(e){var t=e;n.document=t.document,n.DocumentFragment=t.DocumentFragment||r,n.SVGElement=t.SVGElement||r,n.SVGSVGElement=t.SVGSVGElement||r,n.SVGElementInstance=t.SVGElementInstance||r,n.Element=t.Element||r,n.HTMLElement=t.HTMLElement||n.Element,n.Event=t.Event,n.Touch=t.Touch||r,n.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function r(){}var t=n;T.default=t;var u={};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}function i(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}Object.defineProperty(u,"__esModule",{value:!0}),u.contains=function(e,t){return-1!==e.indexOf(t)},u.remove=function(e,t){return e.splice(e.indexOf(t),1)},u.merge=o,u.from=function(e){return o([],e)},u.findIndex=i,u.find=function(e,t){return e[i(e,t)]};var a={};Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;a.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var l={};Object.defineProperty(l,"__esModule",{value:!0}),l.init=p,l.getWindow=d,l.default=void 0;var s,c=(s=a)&&s.__esModule?s:{default:s};var f={realWindow:void 0,window:void 0,getWindow:d,init:p};function p(e){var t=(f.realWindow=e).document.createTextNode("");t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t&&(e=e.wrap(e)),f.window=e}function d(e){return(0,c.default)(e)?e:(e.ownerDocument||e).defaultView||f.window}"undefined"==typeof window?(f.window=void 0,f.realWindow=void 0):p(window),f.init=p;var v=f;l.default=v;var y={};Object.defineProperty(y,"__esModule",{value:!0}),y.array=y.plainObject=y.element=y.string=y.bool=y.number=y.func=y.object=y.docFrag=y.window=void 0;var m=w(a),h=w(l);function w(e){return e&&e.__esModule?e:{default:e}}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}y.window=function(e){return e===h.default.window||(0,m.default)(e)};y.docFrag=function(e){return P(e)&&11===e.nodeType};var P=function(e){return!!e&&"object"===O(e)};y.object=P;function _(e){return"function"==typeof e}y.func=_;y.number=function(e){return"number"==typeof e};y.bool=function(e){return"boolean"==typeof e};y.string=function(e){return"string"==typeof e};y.element=function(e){if(!e||"object"!==O(e))return!1;var t=h.default.getWindow(e)||h.default.window;return/object|function/.test(O(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName};y.plainObject=function(e){return P(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())};y.array=function(e){return P(e)&&void 0!==e.length&&_(e.splice)};var j={};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var S=I(T),M=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==x(e)&&"function"!=typeof e)return{default:e};var t=D();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y),k=I(l);function D(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return D=function(){return e},e}function I(e){return e&&e.__esModule?e:{default:e}}var z={init:function(e){var t=S.default.Element,n=k.default.window.navigator;z.supportsTouch="ontouchstart"in e||M.func(e.DocumentTouch)&&S.default.document instanceof e.DocumentTouch,z.supportsPointerEvent=!1!==n.pointerEnabled&&!!S.default.PointerEvent,z.isIOS=/iP(hone|od|ad)/.test(n.platform),z.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),z.isIe9=/MSIE 9/.test(n.userAgent),z.isOperaMobile="Opera"===n.appName&&z.supportsTouch&&/Presto/.test(n.userAgent),z.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",z.pEventTypes=z.supportsPointerEvent?S.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,z.wheelEvent="onmousewheel"in S.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};var A=z;j.default=A;var C={};function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(C,"__esModule",{value:!0}),C.nodeContains=function(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1},C.closest=function(e,t){for(;Y.element(e);){if(G(e,t))return e;e=q(e)}return null},C.parentNode=q,C.matchesSelector=G,C.indexOfDeepestElement=function(e){var t,n,r=[],o=e[0],i=o?0:-1;for(t=1;t<e.length;t++){var a=e[t];if(a&&a!==o)if(o){if(a.parentNode!==a.ownerDocument)if(o.parentNode!==a.ownerDocument)if(a.parentNode!==o.parentNode){if(!r.length)for(var u=o,l=void 0;(l=U(u))&&l!==u.ownerDocument;)r.unshift(u),u=l;var s=void 0;if(o instanceof X.default.HTMLElement&&a instanceof X.default.SVGElement&&!(a instanceof X.default.SVGSVGElement)){if(a===o.parentNode)continue;s=a.ownerSVGElement}else s=a;for(var c=[];s.parentNode!==s.ownerDocument;)c.unshift(s),s=U(s);for(n=0;c[n]&&c[n]===r[n];)n++;for(var f=[c[n-1],c[n],r[n]],p=f[0].lastChild;p;){if(p===f[1]){o=a,i=t,r=c;break}if(p===f[2])break;p=p.previousSibling}}else{var d=parseInt((0,F.getWindow)(o).getComputedStyle(o).zIndex,10)||0,v=parseInt((0,F.getWindow)(a).getComputedStyle(a).zIndex,10)||0;d<=v&&(o=a,i=t)}else o=a,i=t}else o=a,i=t}return i},C.matchesUpTo=function(e,t,n){for(;Y.element(e);){if(G(e,t))return!0;if((e=q(e))===n)return G(e,t)}return!1},C.getActualElement=function(e){return e instanceof X.default.SVGElementInstance?e.correspondingUseElement:e},C.getScrollXY=B,C.getElementClientRect=H,C.getElementRect=function(e){var t=H(e);if(!W.default.isIOS7&&t){var n=B(F.default.getWindow(e));t.left+=n.x,t.right+=n.x,t.top+=n.y,t.bottom+=n.y}return t},C.getPath=function(e){var t=[];for(;e;)t.push(e),e=q(e);return t},C.trySelector=function(e){return!!Y.string(e)&&(X.default.document.querySelector(e),!0)};var W=V(j),X=V(T),Y=L(y),F=L(l);function N(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return N=function(){return e},e}function L(e){if(e&&e.__esModule)return e;if(null===e||"object"!==R(e)&&"function"!=typeof e)return{default:e};var t=N();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function V(e){return e&&e.__esModule?e:{default:e}}function q(e){var t=e.parentNode;if(Y.docFrag(t)){for(;(t=t.host)&&Y.docFrag(t););return t}return t}function G(e,t){return F.default.window!==F.default.realWindow&&(t=t.replace(/\/deep\//g," ")),e[W.default.prefixedMatchesSelector](t)}var U=function(e){return e.parentNode?e.parentNode:e.host};function B(e){return{x:(e=e||F.default.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function H(e){var t=e instanceof X.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var K={};function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(K,"__esModule",{value:!0}),K.default=function e(t){var n={};for(var r in t){var o=t[r];J.plainObject(o)?n[r]=e(o):J.array(o)?n[r]=Q.from(o):n[r]=o}return n};var Q=ee(u),J=ee(y);function Z(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Z=function(){return e},e}function ee(e){if(e&&e.__esModule)return e;if(null===e||"object"!==$(e)&&"function"!=typeof e)return{default:e};var t=Z();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}var te={};function ne(e,t){for(var n in t){var r=ne.prefixedPropREs,o=!1;for(var i in r)if(0===n.indexOf(i)&&r[i].test(n)){o=!0;break}o||"function"==typeof t[n]||(e[n]=t[n])}return e}Object.defineProperty(te,"__esModule",{value:!0}),te.default=void 0,ne.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var re=ne;te.default=re;var oe={};Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;oe.default=function(e,t){return Math.sqrt(e*e+t*t)};var ie={};function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(ie,"__esModule",{value:!0}),ie.default=void 0;var ue=ve(j),le=ve(T),se=de(C),ce=ve(oe),fe=de(y);function pe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return pe=function(){return e},e}function de(e){if(e&&e.__esModule)return e;if(null===e||"object"!==ae(e)&&"function"!=typeof e)return{default:e};var t=pe();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function ve(e){return e&&e.__esModule?e:{default:e}}var ye={copyCoords:function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},setCoordDeltas:function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},setCoordVelocity:function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},isNativePointer:function(e){return e instanceof le.default.Event||e instanceof le.default.Touch},getXY:function(e,t,n){return(n=n||{}).x=t[(e=e||"page")+"X"],n.y=t[e+"Y"],n},getPageXY:function(e,t){return t=t||{x:0,y:0},ue.default.isOperaMobile&&ye.isNativePointer(e)?(ye.getXY("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):ye.getXY("page",e,t),t},getClientXY:function(e,t){return t=t||{},ue.default.isOperaMobile&&ye.isNativePointer(e)?ye.getXY("screen",e,t):ye.getXY("client",e,t),t},getPointerId:function(e){return fe.number(e.pointerId)?e.pointerId:e.identifier},setCoords:function(e,t,n){var r=1<t.length?ye.pointerAverage(t):t[0],o={};ye.getPageXY(r,o),e.page.x=o.x,e.page.y=o.y,ye.getClientXY(r,o),e.client.x=o.x,e.client.y=o.y,e.timeStamp=n},pointerExtend:ve(te).default,getTouchPair:function(e){var t=[];return fe.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t},pointerAverage:function(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var o in t)t[o]+=r[o]}for(var i in t)t[i]/=e.length;return t},touchBBox:function(e){if(!(e.length||e.touches&&1<e.touches.length))return null;var t=ye.getTouchPair(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),o=Math.max(t[0].pageX,t[1].pageX),i=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,right:o,bottom:i,width:o-n,height:i-r}},touchDistance:function(e,t){var n=t+"X",r=t+"Y",o=ye.getTouchPair(e),i=o[0][n]-o[1][n],a=o[0][r]-o[1][r];return(0,ce.default)(i,a)},touchAngle:function(e,t){var n=t+"X",r=t+"Y",o=ye.getTouchPair(e),i=o[1][n]-o[0][n],a=o[1][r]-o[0][r];return 180*Math.atan2(a,i)/Math.PI},getPointerType:function(e){return fe.string(e.pointerType)?e.pointerType:fe.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof le.default.Touch?"touch":"mouse"},getEventTargets:function(e){var t=fe.func(e.composedPath)?e.composedPath():e.path;return[se.getActualElement(t?t[0]:e.target),se.getActualElement(e.currentTarget)]},newCoords:function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},coordsToEvent:function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons}}}},ge=ye;ie.default=ge;var me={};function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(me,"__esModule",{value:!0}),me.default=me.FakeEvent=void 0;var be=Se(C),we=Se(y),Oe=_e(te),Pe=_e(ie);function _e(e){return e&&e.__esModule?e:{default:e}}function xe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return xe=function(){return e},e}function Se(e){if(e&&e.__esModule)return e;if(null===e||"object"!==he(e)&&"function"!=typeof e)return{default:e};var t=xe();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ee=[],Te=[],ke={},De=[];function Ie(e,t,n,r){var o=Re(r),i=Ee.indexOf(e),a=Te[i];a||(a={events:{},typeCount:0},i=Ee.push(e)-1,Te.push(a)),a.events[t]||(a.events[t]=[],a.typeCount++),(0,u.contains)(a.events[t],n)||(e.addEventListener(t,n,Xe.supportsOptions?o:!!o.capture),a.events[t].push(n))}function ze(e,t,n,r){var o=Re(r),i=Ee.indexOf(e),a=Te[i];if(a&&a.events)if("all"!==t){if(a.events[t]){var u=a.events[t].length;if("all"===n){for(var l=0;l<u;l++)ze(e,t,a.events[t][l],o);return}for(var s=0;s<u;s++)if(a.events[t][s]===n){e.removeEventListener(t,n,Xe.supportsOptions?o:!!o.capture),a.events[t].splice(s,1);break}a.events[t]&&0===a.events[t].length&&(a.events[t]=null,a.typeCount--)}a.typeCount||(Te.splice(i,1),Ee.splice(i,1))}else for(t in a.events)a.events.hasOwnProperty(t)&&ze(e,t,"all")}function Ae(e,t){for(var n=Re(t),r=new We(e),o=ke[e.type],i=Me(Pe.default.getEventTargets(e),1)[0],a=i;we.element(a);){for(var u=0;u<o.selectors.length;u++){var l=o.selectors[u],s=o.contexts[u];if(be.matchesSelector(a,l)&&be.nodeContains(s,i)&&be.nodeContains(s,a)){var c=o.listeners[u];r.currentTarget=a;for(var f=0;f<c.length;f++){var p=Me(c[f],3),d=p[0],v=p[1],y=p[2];v===!!n.capture&&y===n.passive&&d(r)}}}a=be.parentNode(a)}}function Ce(e){return Ae.call(this,e,!0)}function Re(e){return we.object(e)?e:{capture:e}}var We=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.originalEvent=e,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"currentTarget",void 0),(0,Oe.default)(this,e)}return function(e,t,n){t&&je(e.prototype,t),n&&je(e,n)}(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();me.FakeEvent=We;var Xe={add:Ie,remove:ze,addDelegate:function(e,t,n,r,o){var i=Re(o);if(!ke[n]){ke[n]={contexts:[],listeners:[],selectors:[]};for(var a=0;a<De.length;a++){var u=De[a];Ie(u,n,Ae),Ie(u,n,Ce,!0)}}var l,s=ke[n];for(l=s.selectors.length-1;0<=l&&(s.selectors[l]!==e||s.contexts[l]!==t);l--);-1===l&&(l=s.selectors.length,s.selectors.push(e),s.contexts.push(t),s.listeners.push([])),s.listeners[l].push([r,!!i.capture,i.passive])},removeDelegate:function(e,t,n,r,o){var i,a=Re(o),u=ke[n],l=!1;if(u)for(i=u.selectors.length-1;0<=i;i--)if(u.selectors[i]===e&&u.contexts[i]===t){for(var s=u.listeners[i],c=s.length-1;0<=c;c--){var f=Me(s[c],3),p=f[0],d=f[1],v=f[2];if(p===r&&d===!!a.capture&&v===a.passive){s.splice(c,1),s.length||(u.selectors.splice(i,1),u.contexts.splice(i,1),u.listeners.splice(i,1),ze(t,n,Ae),ze(t,n,Ce,!0),u.selectors.length||(ke[n]=null)),l=!0;break}}if(l)break}},delegateListener:Ae,delegateUseCapture:Ce,delegatedEvents:ke,documents:De,supportsOptions:!1,supportsPassive:!1,_elements:Ee,_targets:Te,init:function(e){e.document.createElement("div").addEventListener("test",null,{get capture(){return Xe.supportsOptions=!0},get passive(){return Xe.supportsPassive=!0}})}},Ye=Xe;me.default=Ye;var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=function(e,t){for(var n in t)e[n]=t[n];return e};var Ne={};function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getStringOptionResult=He,Ne.resolveRectLike=Ke,Ne.rectToXY=$e,Ne.xywhToTlbr=Qe,Ne.tlbrToXywh=Je,Ne.default=void 0;var Ve,qe=(Ve=Fe)&&Ve.__esModule?Ve:{default:Ve},Ge=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Le(e)&&"function"!=typeof e)return{default:e};var t=Ue();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y);function Ue(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ue=function(){return e},e}function Be(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function He(e,t,n){return"parent"===e?(0,C.parentNode)(n):"self"===e?t.getRect(n):(0,C.closest)(n,e)}function Ke(e,t,n,r){return Ge.string(e)?e=He(e,t,n):Ge.func(e)&&(e=e.apply(void 0,Be(r))),Ge.element(e)&&(e=(0,C.getElementRect)(e)),e}function $e(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}}function Qe(e){return!e||"left"in e&&"top"in e||((e=(0,qe.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e}function Je(e){return!e||"x"in e&&"y"in e||((e=(0,qe.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||e.right-e.x,e.height=e.height||e.bottom-e.y),e}var Ze={getStringOptionResult:He,resolveRectLike:Ke,rectToXY:$e,xywhToTlbr:Qe,tlbrToXywh:Je};Ne.default=Ze;var et={};Object.defineProperty(et,"__esModule",{value:!0}),et.default=function(e,t,n){var r=e.options[n],o=r&&r.origin||e.options.origin,i=(0,Ne.resolveRectLike)(o,e,t,[e&&t]);return(0,Ne.rectToXY)(i)||{x:0,y:0}};var tt={};function nt(e){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=function n(t,r,o){o=o||{};it.string(t)&&-1!==t.search(" ")&&(t=ut(t));if(it.array(t))return t.reduce(function(e,t){return(0,ot.default)(e,n(t,r,o))},o);it.object(t)&&(r=t,t="");if(it.func(r))o[t]=o[t]||[],o[t].push(r);else if(it.array(r))for(var e=0;e<r.length;e++){var i=r[e];n(t,i,o)}else if(it.object(r))for(var a in r){var u=ut(a).map(function(e){return"".concat(t).concat(e)});n(u,r[a],o)}return o};var rt,ot=(rt=Fe)&&rt.__esModule?rt:{default:rt},it=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==nt(e)&&"function"!=typeof e)return{default:e};var t=at();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y);function at(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return at=function(){return e},e}function ut(e){return e.trim().split(/ +/)}var lt={};Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=void 0;var st,ct,ft=0;var pt={request:function(e){return st(e)},cancel:function(e){return ct(e)},init:function(e){if(st=e.requestAnimationFrame,ct=e.cancelAnimationFrame,!st)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var r=t[n];st=e["".concat(r,"RequestAnimationFrame")],ct=e["".concat(r,"CancelAnimationFrame")]||e["".concat(r,"CancelRequestAnimationFrame")]}st||(st=function(e){var t=Date.now(),n=Math.max(0,16-(t-ft)),r=setTimeout(function(){e(t+n)},n);return ft=t+n,r},ct=function(e){return clearTimeout(e)})}};lt.default=pt;var dt={};function vt(e){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(dt,"__esModule",{value:!0}),dt.warnOnce=function(e,t){var n=!1;return function(){return n||(ht.default.window.console.warn(t),n=!0),e.apply(this,arguments)}},dt._getQBezierValue=It,dt.getQuadraticCurvePoint=function(e,t,n,r,o,i,a){return{x:It(a,e,n,o),y:It(a,t,r,i)}},dt.easeOutQuad=function(e,t,n,r){return-n*(e/=r)*(e-2)+t},dt.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Object.defineProperty(dt,"win",{enumerable:!0,get:function(){return ht.default}}),Object.defineProperty(dt,"browser",{enumerable:!0,get:function(){return bt.default}}),Object.defineProperty(dt,"clone",{enumerable:!0,get:function(){return wt.default}}),Object.defineProperty(dt,"events",{enumerable:!0,get:function(){return Ot.default}}),Object.defineProperty(dt,"extend",{enumerable:!0,get:function(){return Pt.default}}),Object.defineProperty(dt,"getOriginXY",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(dt,"hypot",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(dt,"normalizeListeners",{enumerable:!0,get:function(){return St.default}}),Object.defineProperty(dt,"pointer",{enumerable:!0,get:function(){return jt.default}}),Object.defineProperty(dt,"raf",{enumerable:!0,get:function(){return Mt.default}}),Object.defineProperty(dt,"rect",{enumerable:!0,get:function(){return Et.default}}),dt.is=dt.dom=dt.arr=void 0;var yt=Dt(u);dt.arr=yt;var gt=Dt(C);dt.dom=gt;var mt=Dt(y);dt.is=mt;var ht=Tt(l),bt=Tt(j),wt=Tt(K),Ot=Tt(me),Pt=Tt(Fe),_t=Tt(et),xt=Tt(oe),St=Tt(tt),jt=Tt(ie),Mt=Tt(lt),Et=Tt(Ne);function Tt(e){return e&&e.__esModule?e:{default:e}}function kt(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return kt=function(){return e},e}function Dt(e){if(e&&e.__esModule)return e;if(null===e||"object"!==vt(e)&&"function"!=typeof e)return{default:e};var t=kt();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function It(e,t,n,r){var o=1-e;return o*o*t+2*o*e*n+e*e*r}var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=zt.defaults=void 0;var At={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ct=zt.defaults=At;zt.default=Ct;var Rt={};function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.default=void 0;var Xt=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Wt(e)&&"function"!=typeof e)return{default:e};var t=Lt();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(u),Yt=Nt(Fe),Ft=Nt(tt);function Nt(e){return e&&e.__esModule?e:{default:e}}function Lt(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Lt=function(){return e},e}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}var Ut=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qt(this,"options",void 0),qt(this,"types",{}),qt(this,"propagationStopped",!1),qt(this,"immediatePropagationStopped",!1),qt(this,"global",void 0),this.options=(0,Yt.default)({},e||{})}return function(e,t,n){t&&Vt(e.prototype,t),n&&Vt(e,n)}(t,[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&Gt(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&Gt(e,t)}},{key:"on",value:function(e,t){var n=(0,Ft.default)(e,t);for(e in n)this.types[e]=Xt.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,Ft.default)(e,t);for(e in n){var r=this.types[e];if(r&&r.length)for(var o=0;o<n[e].length;o++){var i=n[e][o],a=r.indexOf(i);-1!==a&&r.splice(a,1)}}}},{key:"getRect",value:function(){return null}}]),t}();Rt.default=Ut;var Bt={};function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.default=Bt.Interactable=void 0;var Kt=an(u),$t=rn(j),Qt=rn(K),Jt=rn(me),Zt=rn(Fe),en=an(y),tn=rn(tt),nn=rn(Rt);function rn(e){return e&&e.__esModule?e:{default:e}}function on(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return on=function(){return e},e}function an(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Ht(e)&&"function"!=typeof e)return{default:e};var t=on();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t,n){return t&&un(e.prototype,t),n&&un(e,n),e}function sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=function(){function r(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),sn(this,"options",void 0),sn(this,"_actions",void 0),sn(this,"target",void 0),sn(this,"events",new nn.default),sn(this,"_context",void 0),sn(this,"_win",void 0),sn(this,"_doc",void 0),this._actions=t.actions,this.target=e,this._context=t.context||n,this._win=(0,l.getWindow)((0,C.trySelector)(e)?this._context:e),this._doc=this._win.document,this.set(t)}return ln(r,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}}]),ln(r,[{key:"setOnEvents",value:function(e,t){return en.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),en.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),en.func(t.onend)&&this.on("".concat(e,"end"),t.onend),en.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(en.array(t)||en.object(t))&&this.off(e,t),(en.array(n)||en.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var r in t){var o=this.options[e],i=t[r],a=en.array(i);"listeners"===r&&this.updatePerActionListeners(e,o.listeners,i),a?o[r]=Kt.from(i):!a&&en.plainObject(i)?(o[r]=(0,Zt.default)(o[r]||{},(0,Qt.default)(i)),en.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==i.enabled)):en.bool(i)&&en.object(n.perAction[r])?o[r].enabled=i:o[r]=i}}},{key:"getRect",value:function(e){return e=e||(en.element(this.target)?this.target:null),en.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,C.getElementRect)(e)}},{key:"rectChecker",value:function(e){return en.func(e)?(this.getRect=e,this):null===e?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,C.trySelector)(t)||en.object(t)){this.options[e]=t;for(var n=0;n<this._actions.names.length;n++){var r=this._actions.names[n];this.options[r][e]=t}return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,C.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!en.element(n)&&(en.string(e)?(0,C.matchesUpTo)(n,e,t):!!en.element(e)&&(0,C.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!en.element(n))&&(en.string(e)?(0,C.matchesUpTo)(n,e,t):!!en.element(e)&&(0,C.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,r){en.object(t)&&!en.array(t)&&(r=n,n=null);var o="on"===e?"add":"remove",i=(0,tn.default)(t,n);for(var a in i){"wheel"===a&&(a=$t.default.wheelEvent);for(var u=0;u<i[a].length;u++){var l=i[a][u];Kt.contains(this._actions.eventTypes,a)?this.events[e](a,l):en.string(this.target)?Jt.default["".concat(o,"Delegate")](this.target,this._context,a,l,r):Jt.default[o](this.target,a,l,r)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in en.object(e)||(e={}),this.options=(0,Qt.default)(t.base),this._actions.methodDict){var r=this._actions.methodDict[n];this.options[n]={},this.setPerAction(n,(0,Zt.default)((0,Zt.default)({},t.perAction),t.actions[n])),this[r](e[n])}for(var o in e)en.func(this[o])&&this[o](e[o]);return this}},{key:"unset",value:function(){if(Jt.default.remove(this.target,"all"),en.string(this.target))for(var e in Jt.default.delegatedEvents){var t=Jt.default.delegatedEvents[e];t.selectors[0]===this.target&&t.contexts[0]===this._context&&(t.selectors.splice(0,1),t.contexts.splice(0,1),t.listeners.splice(0,1),t.selectors.length||(t[e]=null)),Jt.default.remove(this._context,e,Jt.default.delegateListener),Jt.default.remove(this._context,e,Jt.default.delegateUseCapture,!0)}else Jt.default.remove(this.target,"all")}}]),r}(),fn=Bt.Interactable=cn;Bt.default=fn;var pn={};function dn(e){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var vn,yn=wn(u),gn=wn(C),mn=(vn=Fe)&&vn.__esModule?vn:{default:vn},hn=wn(y);function bn(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return bn=function(){return e},e}function wn(e){if(e&&e.__esModule)return e;if(null===e||"object"!==dn(e)&&"function"!=typeof e)return{default:e};var t=bn();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function On(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _n=function(){function t(e){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.scope=e,Pn(this,"list",[]),Pn(this,"selectorMap",{}),e.addListeners({"interactable:unset":function(e){var t=e.interactable,n=t.target,r=t._context,o=hn.string(n)?a.selectorMap[n]:n[a.scope.id],i=o.findIndex(function(e){return e.context===r});o[i]&&(o[i].context=null,o[i].interactable=null),o.splice(i,1)}})}return function(e,t,n){t&&On(e.prototype,t),n&&On(e,n)}(t,[{key:"new",value:function(e,t){t=(0,mn.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),hn.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(t,e){var n=e&&e.context||this.scope.document,r=hn.string(t),o=r?this.selectorMap[t]:t[this.scope.id];if(!o)return null;var i=yn.find(o,function(e){return e.context===n&&(r||e.interactable.inContext(t))});return i&&i.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var r=this.list[n],o=void 0;if((hn.string(r.target)?hn.element(e)&&gn.matchesSelector(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}}}]),t}();pn.default=_n;var xn,Sn,jn={};function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function En(e,t,n){return t&&Mn(e.prototype,t),n&&Mn(e,n),e}function Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=jn.BaseEvent=jn.EventPhase=void 0,jn.EventPhase=xn,(Sn=xn||(jn.EventPhase=xn={})).Start="start",Sn.Move="move",Sn.End="end",Sn._NONE="";var kn=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Tn(this,"type",void 0),Tn(this,"target",void 0),Tn(this,"currentTarget",void 0),Tn(this,"interactable",void 0),Tn(this,"_interaction",void 0),Tn(this,"timeStamp",void 0),Tn(this,"immediatePropagationStopped",!1),Tn(this,"propagationStopped",!1),this._interaction=e}return En(t,[{key:"interaction",get:function(){return this._interaction._proxy}}]),En(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}(),Dn=jn.BaseEvent=kn;jn.default=Dn;var In={};Object.defineProperty(In,"__esModule",{value:!0}),In.default=In.InteractEvent=In.EventPhase=void 0;var zn,An,Cn=Fn(Fe),Rn=Fn(et),Wn=Fn(oe),Xn=Fn(jn),Yn=Fn(zt);function Fn(e){return e&&e.__esModule?e:{default:e}}function Nn(e){return(Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e){return(Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gn(e,t){return(Gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}In.EventPhase=zn,(An=zn||(In.EventPhase=zn={})).Start="start",An.Move="move",An.End="end",An._NONE="";var Bn=function(){function g(e,t,n,r,o,i,a,u){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),l=function(e,t){return!t||"object"!==Nn(t)&&"function"!=typeof t?qn(e):t}(this,Vn(g).call(this,e)),Un(qn(l),"target",void 0),Un(qn(l),"currentTarget",void 0),Un(qn(l),"relatedTarget",void 0),Un(qn(l),"screenX",void 0),Un(qn(l),"screenY",void 0),Un(qn(l),"button",void 0),Un(qn(l),"buttons",void 0),Un(qn(l),"ctrlKey",void 0),Un(qn(l),"shiftKey",void 0),Un(qn(l),"altKey",void 0),Un(qn(l),"metaKey",void 0),Un(qn(l),"page",void 0),Un(qn(l),"client",void 0),Un(qn(l),"delta",void 0),Un(qn(l),"rect",void 0),Un(qn(l),"x0",void 0),Un(qn(l),"y0",void 0),Un(qn(l),"t0",void 0),Un(qn(l),"dt",void 0),Un(qn(l),"duration",void 0),Un(qn(l),"clientX0",void 0),Un(qn(l),"clientY0",void 0),Un(qn(l),"velocity",void 0),Un(qn(l),"speed",void 0),Un(qn(l),"swipe",void 0),Un(qn(l),"timeStamp",void 0),Un(qn(l),"dragEnter",void 0),Un(qn(l),"dragLeave",void 0),Un(qn(l),"axes",void 0),Un(qn(l),"preEnd",void 0),o=o||e.element;var s=e.interactable,c=(s&&s.options||Yn.default).deltaSource,f=(0,Rn.default)(s,o,n),p="start"===r,d="end"===r,v=p?qn(l):e.prevEvent,y=p?e.coords.start:d?{page:v.page,client:v.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return l.page=(0,Cn.default)({},y.page),l.client=(0,Cn.default)({},y.client),l.rect=(0,Cn.default)({},e.rect),l.timeStamp=y.timeStamp,d||(l.page.x-=f.x,l.page.y-=f.y,l.client.x-=f.x,l.client.y-=f.y),l.ctrlKey=t.ctrlKey,l.altKey=t.altKey,l.shiftKey=t.shiftKey,l.metaKey=t.metaKey,l.button=t.button,l.buttons=t.buttons,l.target=o,l.currentTarget=o,l.relatedTarget=i||null,l.preEnd=a,l.type=u||n+(r||""),l.interactable=s,l.t0=p?e.pointers[e.pointers.length-1].downTime:v.t0,l.x0=e.coords.start.page.x-f.x,l.y0=e.coords.start.page.y-f.y,l.clientX0=e.coords.start.client.x-f.x,l.clientY0=e.coords.start.client.y-f.y,l.delta=p||d?{x:0,y:0}:{x:l[c].x-v[c].x,y:l[c].y-v[c].y},l.dt=e.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,Cn.default)({},e.coords.velocity[c]),l.speed=(0,Wn.default)(l.velocity.x,l.velocity.y),l.swipe=d||"inertiastart"===r?l.getSwipe():null,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gn(e,t)}(g,Xn["default"]),function(e,t,n){t&&Ln(e.prototype,t),n&&Ln(e,n)}(g,[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||150<this.timeStamp-e.prevEvent.timeStamp)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5;return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"pageX",get:function(){return this.page.x},set:function(e){this.page.x=e}},{key:"pageY",get:function(){return this.page.y},set:function(e){this.page.y=e}},{key:"clientX",get:function(){return this.client.x},set:function(e){this.client.x=e}},{key:"clientY",get:function(){return this.client.y},set:function(e){this.client.y=e}},{key:"dx",get:function(){return this.delta.x},set:function(e){this.delta.x=e}},{key:"dy",get:function(){return this.delta.y},set:function(e){this.delta.y=e}},{key:"velocityX",get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},{key:"velocityY",get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}]),g}(),Hn=In.InteractEvent=Bn;In.default=Hn;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.default=Kn.PointerInfo=void 0;function $n(e,t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,$n),this.id=e,this.pointer=t,this.event=n,this.downTime=r,this.downTarget=o}var Qn=Kn.PointerInfo=$n;Kn.default=Qn;var Jn={};function Zn(e){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=void 0;var er=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Zn(e)&&"function"!=typeof e)return{default:e};var t=tr();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(C);function tr(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return tr=function(){return e},e}var nr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<nr.methodOrder.length;t++){var n;n=nr.methodOrder[t];var r=nr[n](e);if(r)return r}},simulationResume:function(e){var t=e.pointerType,n=e.eventType,r=e.eventTarget,o=e.scope;if(!/down|start/i.test(n))return null;for(var i=0;i<o.interactions.list.length;i++){var a=o.interactions.list[i],u=r;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;u;){if(u===a.element)return a;u=er.parentNode(u)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,r=e.pointerType,o=e.eventType,i=e.scope;if("mouse"!==r&&"pen"!==r)return null;for(var a=0;a<i.interactions.list.length;a++){var u=i.interactions.list[a];if(u.pointerType===r){if(u.simulation&&!rr(u,n))continue;if(u.interacting())return u;t=t||u}}if(t)return t;for(var l=0;l<i.interactions.list.length;l++){var s=i.interactions.list[l];if(!(s.pointerType!==r||/down/i.test(o)&&s.simulation))return s}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(rr(o,t))return o}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(1===o.pointers.length){var i=o.interactable;if(i&&(!i.options.gesture||!i.options.gesture.enabled))continue}else if(2<=o.pointers.length)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};function rr(e,t){return e.pointers.some(function(e){return e.id===t})}var or=nr;Jn.default=or;var ir={};function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0;var ur=b({}),lr=fr(u),sr=fr(y);function cr(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return cr=function(){return e},e}function fr(e){if(e&&e.__esModule)return e;if(null===e||"object"!==ar(e)&&"function"!=typeof e)return{default:e};var t=cr();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function pr(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function dr(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var r=n.prepared.axis;if("x"===r||"y"===r){var o="x"===r?"y":"x";t.page[o]=n.coords.start.page[o],t.client[o]=n.coords.start.client[o],t.delta[o]=0}}}ur.ActionName.Drag="drag";var vr={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;e.addListeners({"interactions:before-action-move":pr,"interactions:action-resume":pr,"interactions:action-move":dr}),n.prototype.draggable=vr.draggable,t[ur.ActionName.Drag]=vr,t.names.push(ur.ActionName.Drag),lr.merge(t.eventTypes,["dragstart","dragmove","draginertiastart","dragresume","dragend"]),t.methodDict.drag="draggable",r.actions.drag=vr.defaults},draggable:function(e){return sr.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):sr.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:pr,move:dr,defaults:{startAxis:"xy",lockAxis:"xy"},checker:function(e,t,n){var r=n.options.drag;return r.enabled?{name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis}:null},getCursor:function(){return"move"}},yr=vr;ir.default=yr;var gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=void 0;var mr,hr=(mr=jn)&&mr.__esModule?mr:{default:mr},br=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Or(e)&&"function"!=typeof e)return{default:e};var t=wr();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(u);function wr(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return wr=function(){return e},e}function Or(e){return(Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pr(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xr(e){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e,t){return(jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Er=function(){function u(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),r=function(e,t){return!t||"object"!==Or(t)&&"function"!=typeof t?Sr(e):t}(this,xr(u).call(this,t._interaction)),Mr(Sr(r),"target",void 0),Mr(Sr(r),"dropzone",void 0),Mr(Sr(r),"dragEvent",void 0),Mr(Sr(r),"relatedTarget",void 0),Mr(Sr(r),"draggable",void 0),Mr(Sr(r),"timeStamp",void 0),Mr(Sr(r),"propagationStopped",!1),Mr(Sr(r),"immediatePropagationStopped",!1);var o="dragleave"===n?e.prev:e.cur,i=o.element,a=o.dropzone;return r.type=n,r.target=i,r.currentTarget=i,r.dropzone=a,r.dragEvent=t,r.relatedTarget=t.target,r.draggable=t.interactable,r.timeStamp=t.timeStamp,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}(u,hr["default"]),function(e,t,n){t&&_r(e.prototype,t),n&&_r(e,n)}(u,[{key:"reject",value:function(){var r=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var t=e.activeDrops,n=br.findIndex(t,function(e){var t=e.dropzone,n=e.element;return t===r.dropzone&&n===r.target});e.activeDrops=[].concat(Pr(t.slice(0,n)),Pr(t.slice(n+1)));var o=new u(e,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new u(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),u}();gr.default=Er;var Tr={};function kr(e){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.default=void 0;var Dr=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==kr(e)&&"function"!=typeof e)return{default:e};var t=Cr();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt),Ir=Ar(ir),zr=Ar(gr);function Ar(e){return e&&e.__esModule?e:{default:e}}function Cr(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Cr=function(){return e},e}function Rr(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.dropzone,i=r.element;t.dropzone=o,t.target=i,o.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function Wr(e,t){for(var n=function(e,t){for(var n=e.interactables,r=[],o=0;o<n.list.length;o++){var i=n.list[o];if(i.options.drop.enabled){var a=i.options.drop.accept;if(!(Dr.is.element(a)&&a!==t||Dr.is.string(a)&&!Dr.dom.matchesSelector(t,a)||Dr.is.func(a)&&!a({dropzone:i,draggableElement:t})))for(var u=Dr.is.string(i.target)?i._context.querySelectorAll(i.target):Dr.is.array(i.target)?i.target:[i.target],l=0;l<u.length;l++){var s=u[l];s!==t&&r.push({dropzone:i,element:s})}}}return r}(e,t),r=0;r<n.length;r++){var o=n[r];o.rect=o.dropzone.getRect(o.element)}return n}function Xr(e,t,n){for(var r=e.dropState,o=e.interactable,i=e.element,a=[],u=0;u<r.activeDrops.length;u++){var l=r.activeDrops[u],s=l.dropzone,c=l.element,f=l.rect;a.push(s.dropCheck(t,n,o,i,c,f)?c:null)}var p=Dr.dom.indexOfDeepestElement(a);return r.activeDrops[p]||null}function Yr(e,t,n){var r=e.dropState,o={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(o.activate=new zr.default(r,n,"dropactivate"),o.activate.target=null,o.activate.dropzone=null),"dragend"===n.type&&(o.deactivate=new zr.default(r,n,"dropdeactivate"),o.deactivate.target=null,o.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(o.leave=new zr.default(r,n,"dragleave"),n.dragLeave=o.leave.target=r.prev.element,n.prevDropzone=o.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(o.enter=new zr.default(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(o.drop=new zr.default(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(o.move=new zr.default(r,n,"dropmove"),(o.move.dragmove=n).dropzone=r.cur.dropzone)),o}function Fr(e,t){var n=e.dropState,r=n.activeDrops,o=n.cur,i=n.prev;t.leave&&i.dropzone.fire(t.leave),t.move&&o.dropzone.fire(t.move),t.enter&&o.dropzone.fire(t.enter),t.drop&&o.dropzone.fire(t.drop),t.deactivate&&Rr(r,t.deactivate),n.prev.dropzone=o.dropzone,n.prev.element=o.element}function Nr(e,t){var n=e.interaction,r=e.iEvent,o=e.event;if("dragmove"===r.type||"dragend"===r.type){var i=n.dropState;t.dynamicDrop&&(i.activeDrops=Wr(t,n.element));var a=r,u=Xr(n,a,o);i.rejected=i.rejected&&!!u&&u.dropzone===i.cur.dropzone&&u.element===i.cur.element,i.cur.dropzone=u&&u.dropzone,i.cur.element=u&&u.element,i.events=Yr(n,0,a)}}var Lr={id:"actions/drop",install:function(t){var e=t.actions,n=t.interact,r=t.Interactable,o=t.defaults;t.usePlugin(Ir.default),r.prototype.dropzone=function(e){return function(e,t){if(Dr.is.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=Dr.normalizeListeners(t.listeners),r=Object.keys(n).reduce(function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e},{});e.off(e.options.drop.listeners),e.on(r),e.options.drop.listeners=r}return Dr.is.func(t.ondrop)&&e.on("drop",t.ondrop),Dr.is.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),Dr.is.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),Dr.is.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),Dr.is.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),Dr.is.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:Dr.is.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}if(Dr.is.bool(t))return e.options.drop.enabled=t,e;return e.options.drop}(this,e)},r.prototype.dropCheck=function(e,t,n,r,o,i){return function(e,t,n,r,o,i,a){var u=!1;if(!(a=a||e.getRect(i)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,u,e,i,r,o);var l=e.options.drop.overlap;if("pointer"===l){var s=Dr.getOriginXY(r,o,"drag"),c=Dr.pointer.getPageXY(t);c.x+=s.x,c.y+=s.y;var f=c.x>a.left&&c.x<a.right,p=c.y>a.top&&c.y<a.bottom;u=f&&p}var d=r.getRect(o);if(d&&"center"===l){var v=d.left+d.width/2,y=d.top+d.height/2;u=v>=a.left&&v<=a.right&&y>=a.top&&y<=a.bottom}if(d&&Dr.is.number(l)){var g=Math.max(0,Math.min(a.right,d.right)-Math.max(a.left,d.left))*Math.max(0,Math.min(a.bottom,d.bottom)-Math.max(a.top,d.top))/(d.width*d.height);u=l<=g}e.options.drop.checker&&(u=e.options.drop.checker(t,n,u,e,i,r,o));return u}(this,e,t,n,r,o,i)},n.dynamicDrop=function(e){return Dr.is.bool(e)?(t.dynamicDrop=e,n):t.dynamicDrop},Dr.arr.merge(e.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),e.methodDict.drop="dropzone",t.dynamicDrop=!1,o.actions.drop=Lr.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:null})},"interactions:after-action-start":function(e,t){var n=e.interaction,r=(e.event,e.iEvent);if("drag"===n.prepared.name){var o=n.dropState;o.activeDrops=null,o.events=null,o.activeDrops=Wr(t,n.element),o.events=Yr(n,0,r),o.events.activate&&Rr(o.activeDrops,o.events.activate)}},"interactions:action-move":Nr,"interactions:action-end":Nr,"interactions:after-action-move":function(e){var t=e.interaction;"drag"===t.prepared.name&&(Fr(t,t.dropState.events),t.dropState.events={})},"interactions:after-action-end":function(e){var t=e.interaction;"drag"===t.prepared.name&&Fr(t,t.dropState.events)},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Wr,getDrop:Xr,getDropEvents:Yr,fireDropEvents:Fr,defaults:{enabled:!1,accept:null,overlap:"pointer"}},Vr=Lr;Tr.default=Vr;var qr={};function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=void 0;var Ur,Br=(Ur=In)&&Ur.__esModule?Ur:{default:Ur},Hr=b({}),Kr=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Gr(e)&&"function"!=typeof e)return{default:e};var t=$r();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt);function $r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return $r=function(){return e},e}Hr.ActionName.Gesture="gesture";var Qr={id:"actions/gesture",install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.gesturable=function(e){return Kr.is.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):Kr.is.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t[Hr.ActionName.Gesture]=Qr,t.names.push(Hr.ActionName.Gesture),Kr.arr.merge(t.eventTypes,["gesturestart","gesturemove","gestureend"]),t.methodDict.gesture="gesturable",r.actions.gesture=Qr.defaults},listeners:{"interactions:action-start":Jr,"interactions:action-move":Jr,"interactions:action-end":Jr,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}}},defaults:{},checker:function(e,t,n,r,o){return 2<=o.pointers.length?{name:"gesture"}:null},getCursor:function(){return""}};function Jr(e){var t=e.interaction,n=e.iEvent,r=e.event,o=e.phase;if("gesture"===t.prepared.name){var i=t.pointers.map(function(e){return e.pointer}),a="start"===o,u="end"===o,l=t.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],a)n.distance=Kr.pointer.touchDistance(i,l),n.box=Kr.pointer.touchBBox(i),n.scale=1,n.ds=0,n.angle=Kr.pointer.touchAngle(i,l),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(u||r instanceof Br.default){var s=t.prevEvent;n.distance=s.distance,n.box=s.box,n.scale=s.scale,n.ds=0,n.angle=s.angle,n.da=0}else n.distance=Kr.pointer.touchDistance(i,l),n.box=Kr.pointer.touchBBox(i),n.scale=n.distance/t.gesture.startDistance,n.angle=Kr.pointer.touchAngle(i,l),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,Kr.is.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}var Zr=Qr;qr.default=Zr;var eo={};function to(e){return(to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var no,ro=b({}),oo=so(u),io=so(C),ao=(no=Fe)&&no.__esModule?no:{default:no},uo=so(y);function lo(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return lo=function(){return e},e}function so(e){if(e&&e.__esModule)return e;if(null===e||"object"!==to(e)&&"function"!=typeof e)return{default:e};var t=lo();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}var co={id:"actions/resize",install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,o=t.defaults;co.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),co.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(e,t,n){if(uo.object(t))return e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),uo.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),uo.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:uo.bool(t.square)&&(e.options.resize.square=t.square),e;if(uo.bool(t))return e.options.resize.enabled=t,e;return e.options.resize}(this,e,t)},e[ro.ActionName.Resize]=co,e.names.push(ro.ActionName.Resize),oo.merge(e.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeresume","resizeend"]),e.methodDict.resize="resizable",o.actions.resize=co.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"!==n.prepared.name||!n.prepared.edges)return;var r=(0,ao.default)({},n.rect),o=n.interactable.options.resize;if(o.square||o.preserveAspectRatio){var i=(0,ao.default)({},n.prepared.edges);i.top=i.top||i.left&&!i.bottom,i.left=i.left||i.top&&!i.right,i.bottom=i.bottom||i.right&&!i.top,i.right=i.right||i.bottom&&!i.left,n.prepared._linkedEdges=i}else n.prepared._linkedEdges=null;o.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height);n.resizeRects={start:r,current:{left:r.left,right:r.right,top:r.top,bottom:r.bottom},inverted:(0,ao.default)({},r),previous:(0,ao.default)({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},t.edges=n.prepared.edges,t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}(e),po(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"!==n.prepared.name||!n.prepared.edges)return;var r=n.interactable.options.resize,o=r.invert,i="reposition"===o||"negate"===o,a=n.prepared.edges,u=n.resizeRects.start,l=n.resizeRects.current,s=n.resizeRects.inverted,c=n.resizeRects.delta,f=(0,ao.default)(n.resizeRects.previous,s),p=a,d=(0,ao.default)({},t.delta);if(r.preserveAspectRatio||r.square){var v=r.preserveAspectRatio?n.resizeStartAspectRatio:1;a=n.prepared._linkedEdges,p.left&&p.bottom||p.right&&p.top?d.y=-d.x/v:p.left||p.right?d.y=d.x/v:(p.top||p.bottom)&&(d.x=d.y*v)}a.top&&(l.top+=d.y);a.bottom&&(l.bottom+=d.y);a.left&&(l.left+=d.x);a.right&&(l.right+=d.x);if(i){var y;if((0,ao.default)(s,l),"reposition"===o)s.top>s.bottom&&(y=s.top,s.top=s.bottom,s.bottom=y),s.left>s.right&&(y=s.left,s.left=s.right,s.right=y)}else s.top=Math.min(l.top,u.bottom),s.bottom=Math.max(l.bottom,u.top),s.left=Math.min(l.left,u.right),s.right=Math.max(l.right,u.left);for(var g in s.width=s.right-s.left,s.height=s.bottom-s.top,s)c[g]=s[g]-f[g];t.edges=n.prepared.edges,t.rect=s,t.deltaRect=c}(e),po(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"!==n.prepared.name||!n.prepared.edges)return;t.edges=n.prepared.edges,t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}},defaults:{square:!(ro.ActionName.Resize="resize"),preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(e,t,n,r,o,i){if(!i)return null;var a=(0,ao.default)({},o.coords.cur.page),u=n.options;if(u.resize.enabled){var l=u.resize,s={left:!1,right:!1,top:!1,bottom:!1};if(uo.object(l.edges)){for(var c in s)s[c]=fo(c,l.edges[c],a,o._latestPointer.eventTarget,r,i,l.margin||this.defaultMargin);if(s.left=s.left&&!s.right,s.top=s.top&&!s.bottom,s.left||s.right||s.top||s.bottom)return{name:"resize",edges:s}}else{var f="y"!==u.resize.axis&&a.x>i.right-this.defaultMargin,p="x"!==u.resize.axis&&a.y>i.bottom-this.defaultMargin;if(f||p)return{name:"resize",axes:(f?"x":"")+(p?"y":"")}}}return null},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,o=co.cursors,i=null;if(n)i=o[r+n];else if(t){for(var a="",u=["top","bottom","left","right"],l=0;l<u.length;l++){var s=u[l];t[s]&&(a+=s)}i=o[a]}return i},defaultMargin:null};function fo(e,t,n,r,o,i,a){if(!t)return!1;if(!0===t){var u=uo.number(i.width)?i.width:i.right-i.left,l=uo.number(i.height)?i.height:i.bottom-i.top;if(a=Math.min(a,("left"===e||"right"===e?u:l)/2),u<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(0<=u?i.left:i.right)+a;if("top"===e)return n.y<(0<=l?i.top:i.bottom)+a;if("right"===e)return n.x>(0<=u?i.right:i.left)-a;if("bottom"===e)return n.y>(0<=l?i.bottom:i.top)-a}return!!uo.element(r)&&(uo.element(t)?t===r:io.matchesUpTo(r,t,o))}function po(e){var t=e.iEvent,n=e.interaction;n.prepared.name===ro.ActionName.Resize&&n.resizeAxes&&(n.interactable.options.resize.square?("y"===n.resizeAxes?t.delta.x=t.delta.y:t.delta.y=t.delta.x,t.axes="xy"):(t.axes=n.resizeAxes,"x"===n.resizeAxes?t.delta.y=0:"y"===n.resizeAxes&&(t.delta.x=0)))}var vo=co;eo.default=vo;var yo={};Object.defineProperty(yo,"__esModule",{value:!0}),yo.install=function(e){e.usePlugin(ho.default),e.usePlugin(bo.default),e.usePlugin(go.default),e.usePlugin(mo.default)},Object.defineProperty(yo,"drag",{enumerable:!0,get:function(){return go.default}}),Object.defineProperty(yo,"drop",{enumerable:!0,get:function(){return mo.default}}),Object.defineProperty(yo,"gesture",{enumerable:!0,get:function(){return ho.default}}),Object.defineProperty(yo,"resize",{enumerable:!0,get:function(){return bo.default}}),yo.id=void 0;var go=wo(ir),mo=wo(Tr),ho=wo(qr),bo=wo(eo);function wo(e){return e&&e.__esModule?e:{default:e}}yo.id="actions";var Oo={};function Po(e){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.getContainer=ko,Oo.getScroll=Do,Oo.getScrollSize=function(e){So.window(e)&&(e=window.document.body);return{x:e.scrollWidth,y:e.scrollHeight}},Oo.getScrollSizeDelta=function(e,t){var n=e.interaction,r=e.element,o=n&&n.interactable.options[n.prepared.name].autoScroll;if(!o||!o.enabled)return t(),{x:0,y:0};var i=ko(o.container,n.interactable,r),a=Do(i);t();var u=Do(i);return{x:u.x-a.x,y:u.y-a.y}},Oo.default=void 0;var _o,xo=Eo(C),So=Eo(y),jo=(_o=lt)&&_o.__esModule?_o:{default:_o};function Mo(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Mo=function(){return e},e}function Eo(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Po(e)&&"function"!=typeof e)return{default:e};var t=Mo();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}var To={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){To.isScrolling=!0,jo.default.cancel(To.i),(e.autoScroll=To).interaction=e,To.prevTime=To.now(),To.i=jo.default.request(To.scroll)},stop:function(){To.isScrolling=!1,To.interaction&&(To.interaction.autoScroll=null),jo.default.cancel(To.i)},scroll:function(){var e=To.interaction,t=e.interactable,n=e.element,r=t.options[To.interaction.prepared.name].autoScroll,o=ko(r.container,t,n),i=To.now(),a=(i-To.prevTime)/1e3,u=r.speed*a;if(1<=u){var l={x:To.x*u,y:To.y*u};if(l.x||l.y){var s=Do(o);So.window(o)?o.scrollBy(l.x,l.y):o&&(o.scrollLeft+=l.x,o.scrollTop+=l.y);var c=Do(o),f={x:c.x-s.x,y:c.y-s.y};(f.x||f.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:f,interaction:e,container:o})}To.prevTime=i}To.isScrolling&&(jo.default.cancel(To.i),To.i=jo.default.request(To.scroll))},check:function(e,t){var n=e.options;return n[t].autoScroll&&n[t].autoScroll.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&To.check(t.interactable,t.prepared.name))if(t.simulation)To.x=To.y=0;else{var r,o,i,a,u=t.interactable,l=t.element,s=u.options[t.prepared.name].autoScroll,c=ko(s.container,u,l);if(So.window(c))a=n.clientX<To.margin,r=n.clientY<To.margin,o=n.clientX>c.innerWidth-To.margin,i=n.clientY>c.innerHeight-To.margin;else{var f=xo.getElementClientRect(c);a=n.clientX<f.left+To.margin,r=n.clientY<f.top+To.margin,o=n.clientX>f.right-To.margin,i=n.clientY>f.bottom-To.margin}To.x=o?1:a?-1:0,To.y=i?1:r?-1:0,To.isScrolling||(To.margin=s.margin,To.speed=s.speed,To.start(t))}}};function ko(e,t,n){return(So.string(e)?(0,Ne.getStringOptionResult)(e,t,n):e)||(0,l.getWindow)(n)}function Do(e){return So.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Io={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;(e.autoScroll=To).now=function(){return e.now()},n.eventTypes.push("autoscroll"),t.perAction.autoScroll=To.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,To.stop(),To.interaction&&(To.interaction=null)},"interactions:stop":To.stop,"interactions:action-move":function(e){return To.onInteractionMove(e)}}};Oo.default=Io;var zo={};function Ao(e){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(zo,"__esModule",{value:!0}),zo.default=void 0;var Co=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Ao(e)&&"function"!=typeof e)return{default:e};var t=Ro();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y);function Ro(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ro=function(){return e},e}function Wo(e,t,n,r){var o=this.defaultActionChecker(e,t,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,o,this,r,n):o}function Xo(e){return Co.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Yo(e){return Co.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}var Fo={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable,o=e.actions;t.prototype.getAction=Wo,t.prototype.ignoreFrom=(0,dt.warnOnce)(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,dt.warnOnce)(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Yo,t.prototype.styleCursor=Xo,t.prototype.defaultActionChecker=function(e,t,n,r){return function(e,t,n,r,o,i){for(var a=e.getRect(o),u=n.buttons||{0:1,1:4,3:8,4:16}[n.button],l=null,s=0;s<i.names.length;s++){var c=i.names[s];if((!r.pointerIsDown||!/mouse|pointer/.test(r.pointerType)||0!=(u&e.options[c].mouseButtons))&&(l=i[c].checker(t,n,e,o,r,a)))return l}}(this,e,t,n,r,o)}}};zo.default=Fo;var No={};function Lo(e){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var Vo,qo=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Lo(e)&&"function"!=typeof e)return{default:e};var t=Uo();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt),Go=(Vo=zo)&&Vo.__esModule?Vo:{default:Vo};function Uo(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Uo=function(){return e},e}function Bo(e,t,n,r,o){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&Qo(t,n,e,o)?e:null}function Ho(e,t,n,r,o,i,a){for(var u=0,l=r.length;u<l;u++){var s=r[u],c=o[u],f=s.getAction(t,n,e,c);if(f){var p=Bo(f,s,c,i,a);if(p)return{action:p,interactable:s,element:c}}}return{action:null,interactable:null,element:null}}function Ko(e,t,n,r,o){var i=[],a=[],u=r;function l(e){i.push(e),a.push(u)}for(;qo.is.element(u);){i=[],a=[],o.interactables.forEachMatch(u,l);var s=Ho(e,t,n,i,a,r,o);if(s.action&&!s.interactable.options[s.action.name].manualStart)return s;u=qo.dom.parentNode(u)}return{action:null,interactable:null,element:null}}function $o(e,t,n){var r=t.action,o=t.interactable,i=t.element;r=r||{name:null},e.interactable&&e.interactable.options.styleCursor&&Zo(e.element,"",n),e.interactable=o,e.element=i,qo.copyAction(e.prepared,r),e.rect=o&&r.name?o.getRect(i):null,ei(e,n),n.fire("autoStart:prepared",{interaction:e})}function Qo(e,t,n,r){var o=e.options,i=o[n.name].max,a=o[n.name].maxPerElement,u=r.autoStart.maxInteractions,l=0,s=0,c=0;if(!(i&&a&&u))return!1;for(var f=0;f<r.interactions.list.length;f++){var p=r.interactions.list[f],d=p.prepared.name;if(p.interacting()){if(u<=++l)return!1;if(p.interactable===e){if(i<=(s+=d===n.name?1:0))return!1;if(p.element===t&&(c++,d===n.name&&a<=c))return!1}}}return 0<u}function Jo(e,t){return qo.is.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Zo(e,t,n){n.autoStart.cursorElement&&(n.autoStart.cursorElement.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function ei(e,t){var n=e.interactable,r=e.element,o=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var i="";if(o.name){var a=n.options[o.name].cursorChecker;i=qo.is.func(a)?a(o,n,r,e._interacting):t.actions[o.name].getCursor(o)}Zo(e.element,i||"",t)}}var ti={id:"auto-start/base",install:function(t){var e=t.interact,n=t.defaults;t.usePlugin(Go.default),n.base.actionChecker=null,n.base.styleCursor=!0,qo.extend(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return Jo(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:Qo,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.interacting()||$o(n,Ko(n,r,o,i,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||$o(n,Ko(n,r,o,i,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var r=n.interactable;n.prepared.name&&r&&(r.options[n.prepared.name].manualStart||!Qo(r,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,r,n.element),ei(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,r=n.interactable;r&&r.options.styleCursor&&Zo(n.element,"",t)}},before:"ations",maxInteractions:Jo,withinInteractionLimit:Qo,validateAction:Bo};No.default=ti;var ni={};function ri(e){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=void 0;var oi,ii=b({}),ai=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==ri(e)&&"function"!=typeof e)return{default:e};var t=li();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y),ui=(oi=No)&&oi.__esModule?oi:{default:oi};function li(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return li=function(){return e},e}var si={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,r){var o=e.interaction,i=e.eventTarget,t=e.dx,n=e.dy;if("drag"===o.prepared.name){var a=Math.abs(t),u=Math.abs(n),l=o.interactable.options.drag,s=l.startAxis,c=u<a?"x":a<u?"y":"xy";if(o.prepared.axis="start"===l.lockAxis?c[0]:l.lockAxis,"xy"!=c&&"xy"!==s&&s!==c){o.prepared.name=null;function f(e){if(e!==o.interactable){var t=o.interactable.options.drag;if(!t.manualStart&&e.testIgnoreAllow(t,p,i)){var n=e.getAction(o.downPointer,o.downEvent,o,p);if(n&&n.name===ii.ActionName.Drag&&function(e,t){if(!t)return!1;var n=t.options[ii.ActionName.Drag].startAxis;return"xy"===e||"xy"===n||n===e}(c,e)&&ui.default.validateAction(n,e,p,i,r))return e}}}for(var p=i;ai.element(p);){var d=r.interactables.forEachMatch(p,f);if(d){o.prepared.name=ii.ActionName.Drag,o.interactable=d,o.element=p;break}p=(0,C.parentNode)(p)}}}}}};ni.default=si;var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.default=void 0;var fi,pi=(fi=No)&&fi.__esModule?fi:{default:fi};function di(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}var vi={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(pi.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=di(t);0<n&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.pointerWasMoved&&!n&&clearTimeout(t.autoStartHoldTimer)},"autoStart:before-start":function(e){var t=e.interaction;0<di(t)&&(t.prepared.name=null)}},getHoldDuration:di};ci.default=vi;var yi={};Object.defineProperty(yi,"__esModule",{value:!0}),yi.install=function(e){e.usePlugin(gi.default),e.usePlugin(hi.default),e.usePlugin(mi.default)},Object.defineProperty(yi,"autoStart",{enumerable:!0,get:function(){return gi.default}}),Object.defineProperty(yi,"dragAxis",{enumerable:!0,get:function(){return mi.default}}),Object.defineProperty(yi,"hold",{enumerable:!0,get:function(){return hi.default}}),yi.id=void 0;var gi=bi(No),mi=bi(ni),hi=bi(ci);function bi(e){return e&&e.__esModule?e:{default:e}}yi.id="auto-start";var wi={};function Oi(e){return(Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(wi,"__esModule",{value:!0}),wi.install=Ei,wi.default=void 0;var Pi,_i=(Pi=me)&&Pi.__esModule?Pi:{default:Pi},xi=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Oi(e)&&"function"!=typeof e)return{default:e};var t=Si();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y);function Si(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Si=function(){return e},e}function ji(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):xi.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function Mi(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function Ei(r){var e=r.Interactable;e.prototype.preventDefault=ji,e.prototype.checkAndPreventDefault=function(e){return function(e,t,n){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(_i.default.supportsPassive&&/^touch(start|move)$/.test(n.type)){var o=(0,l.getWindow)(n.target).document,i=t.getDocOptions(o);if(!i||!i.events||!1!==i.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||xi.element(n.target)&&(0,C.matchesSelector)(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,r,e)},r.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var t=0;t<r.interactions.list.length;t++){var n=r.interactions.list[t];if(n.element&&(n.element===e.target||(0,C.nodeContains)(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}}})}var Ti={id:"core/interactablePreventDefault",install:Ei,listeners:["down","move","up","cancel"].reduce(function(e,t){return e["interactions:".concat(t)]=Mi,e},{})};wi.default=Ti;var ki={};function Di(e){return(Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=void 0;var Ii,zi,Ai=Yi(T),Ci=Yi(Fe),Ri=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Di(e)&&"function"!=typeof e)return{default:e};var t=Xi();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y),Wi=Yi(l);function Xi(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Xi=function(){return e},e}function Yi(e){return e&&e.__esModule?e:{default:e}}function Fi(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(zi=Ii=Ii||{}).touchAction="",zi.boxSizing="",zi.noListeners="";var Ni="[interact.js] ",Li={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"};var Vi=[{name:"touchAction",perform:function(e){return!function(e,t,n){var r=e;for(;Ri.element(r);){if(qi(r,t,n))return!0;r=(0,C.parentNode)(r)}return!1}(e.element,"touchAction",/pan-|pinch|none/)},getInfo:function(e){return[e.element,Li.touchAction]},text:'Consider adding CSS "touch-action: none" to this element\n'},{name:"boxSizing",perform:function(e){var t=e.element;return"resize"===e.prepared.name&&t instanceof Ai.default.HTMLElement&&!qi(t,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo:function(e){return[e.element,Li.boxSizing]}},{name:"noListeners",perform:function(e){var t=e.prepared.name;return!(e.interactable.events.types["".concat(t,"move")]||[]).length},getInfo:function(e){return[e.prepared.name,e.interactable]},text:"There are no listeners set for this action"}];function qi(e,t,n){return n.test(e.style[t]||Wi.default.window.getComputedStyle(e)[t])}var Gi="dev-tools",Ui={id:Gi,install:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).logger,n=e.Interactable,r=e.defaults;e.logger=t||console,r.base.devTools={ignore:{}},n.prototype.devTools=function(e){return e?((0,Ci.default)(this.options.devTools,e),this):this.options.devTools}},listeners:{"interactions:action-start":function(e,t){for(var n=e.interaction,r=0;r<Vi.length;r++){var o,i=Vi[r],a=n.interactable&&n.interactable.options[n.prepared.name];if(!(a&&a.devTools&&a.devTools.ignore[i.name])&&i.perform(n))(o=t.logger).warn.apply(o,[Ni+i.text].concat(Fi(i.getInfo(n))))}}},checks:Vi,CheckName:Ii,links:Li,prefix:Ni};ki.default=Ui;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.startAll=Ji,Bi.setAll=Zi,Bi.prepareStates=oa,Bi.setCoords=ia,Bi.restoreCoords=aa,Bi.makeModifier=sa,Bi.default=void 0;var Hi,Ki=(Hi=Fe)&&Hi.__esModule?Hi:{default:Hi};function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Qi(e,t,n){var r=e.interaction,o=e.phase,i=r.interactable,a=r.element,u=oa(ra(r)),l=(0,Ki.default)({},r.rect);"width"in l||(l.width=l.right-l.left),"height"in l||(l.height=l.bottom-l.top);var s=la(l,t);r.modifiers.startOffset=s,r.modifiers.startDelta={x:0,y:0};var c={interaction:r,interactable:i,element:a,pageCoords:t,phase:o,rect:l,startOffset:s,states:u,preEnd:!1,requireEndOnly:!1,prevCoords:n||(r.modifiers.result?r.modifiers.result.coords:r.coords.prev.page)};return r.modifiers.states=u,r.modifiers.result=null,Ji(c),r.modifiers.result=Zi(c)}function Ji(e){for(var t=e.states,n=0;n<t.length;n++){var r=t[n];r.methods.start&&(e.state=r).methods.start(e)}}function Zi(e){var t=e.prevCoords,n=e.phase,r=e.preEnd,o=e.requireEndOnly,i=e.rect,a=e.states;e.coords=(0,Ki.default)({},e.pageCoords),e.rect=(0,Ki.default)({},i);for(var u={delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},coords:e.coords,changed:!0},l=0;l<a.length;l++){var s=a[l],c=s.options;s.methods.set&&ua(c,r,o,n)&&(e.state=s).methods.set(e)}u.delta.x=e.coords.x-e.pageCoords.x,u.delta.y=e.coords.y-e.pageCoords.y;var f=!1;return i&&(u.rectDelta.left=e.rect.left-i.left,u.rectDelta.right=e.rect.right-i.right,u.rectDelta.top=e.rect.top-i.top,u.rectDelta.bottom=e.rect.bottom-i.bottom,f=0!==u.rectDelta.left||0!==u.rectDelta.right||0!==u.rectDelta.top||0!==u.rectDelta.bottom),u.changed=!t||t.x!==u.coords.x||t.y!==u.coords.y||f,u}function ea(e){var t=e.interaction,n=e.phase,r=e.preEnd,o=e.skipModifiers,i=t.interactable,a=t.element,u=o?t.modifiers.states.slice(o):t.modifiers.states,l=e.prevCoords||(t.modifiers.result?t.modifiers.result.coords:t.coords.prev.page),s=Zi({interaction:t,interactable:i,element:a,preEnd:r,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page,prevCoords:l,rect:t.rect,states:u,requireEndOnly:!1});if(!(t.modifiers.result=s).changed&&t.interacting())return!1;if(e.modifiedCoords){var c=t.coords.cur.page,f=e.modifiedCoords.x-c.x,p=e.modifiedCoords.y-c.y;s.coords.x+=f,s.coords.y+=p,s.delta.x+=f,s.delta.y+=p}ia(e)}function ta(e){var t=e.interaction,n=e.event,r=e.noPreEnd,o=t.modifiers.states;if(!r&&o&&o.length)for(var i=!1,a=0;a<o.length;a++){var u=o[a],l=(e.state=u).options,s=u.methods;if(!1===(s.beforeEnd&&s.beforeEnd(e)))return!(t.modifiers.endPrevented=!0);!i&&ua(l,!0,!0)&&(t.move({event:n,preEnd:!0}),i=!0)}}function na(e){var t=e.interaction,n=t.modifiers.states;if(n&&n.length){for(var r=(0,Ki.default)({states:n,interactable:t.interactable,element:t.element,rect:null},e),o=0;o<n.length;o++){var i=n[o];(r.state=i).methods.stop&&i.methods.stop(r)}e.interaction.modifiers.states=null,e.interaction.modifiers.endPrevented=null}}function ra(e){var n=e.interactable.options[e.prepared.name],t=n.modifiers;return t&&t.length?t.filter(function(e){return!e.options||!1!==e.options.enabled}):["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(e){var t=n[e];return t&&t.enabled&&{options:t,methods:t._methods}}).filter(function(e){return!!e})}function oa(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=r.options,i=r.methods,a=r.name;o&&!1===o.enabled||t.push({options:o,methods:i,index:n,name:a})}return t}function ia(e){var t=e.interaction,n=e.phase,r=t.coords.cur,o=t.coords.start,i=t.modifiers,a=i.result,u=i.startDelta,l=a.delta;"start"===n&&(0,Ki.default)(t.modifiers.startDelta,a.delta);for(var s=[[o,u],[r,l]],c=0;c<s.length;c++){var f=$i(s[c],2),p=f[0],d=f[1];p.page.x+=d.x,p.page.y+=d.y,p.client.x+=d.x,p.client.y+=d.y}var v=t.modifiers.result.rectDelta,y=e.rect||t.rect;y.left+=v.left,y.right+=v.right,y.top+=v.top,y.bottom+=v.bottom,y.width=y.right-y.left,y.height=y.bottom-y.top}function aa(e){var t=e.interaction,n=t.coords,r=t.rect,o=t.modifiers;if(o.result){for(var i=o.startDelta,a=o.result,u=a.delta,l=a.rectDelta,s=[[n.start,i],[n.cur,u]],c=0;c<s.length;c++){var f=$i(s[c],2),p=f[0],d=f[1];p.page.x-=d.x,p.page.y-=d.y,p.client.x-=d.x,p.client.y-=d.y}r.left-=l.left,r.right-=l.right,r.top-=l.top,r.bottom-=l.bottom}}function ua(e,t,n,r){return e?!1!==e.enabled&&(t||!e.endOnly)&&(!n||e.endOnly||e.alwaysOnEnd)&&(e.setStart||"start"!==r):!n}function la(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}function sa(e,r){function t(e){var t=e||{};for(var n in t.enabled=!1!==t.enabled,o)n in t||(t[n]=o[n]);return{options:t,methods:i,name:r}}var o=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop};return r&&"string"==typeof r&&(t._defaults=o,t._methods=i),t}var ca={id:"modifiers/base",install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){e.interaction.modifiers={startOffset:{left:0,right:0,top:0,bottom:0},offsets:{},states:null,result:null,endPrevented:!1,startDelta:null}},"interactions:before-action-start":function(e){Qi(e,e.interaction.coords.start.page,e.interaction.coords.prev.page),ia(e)},"interactions:action-resume":function(e){na(e),Qi(e,e.interaction.coords.cur.page,e.interaction.modifiers.result.coords),ea(e)},"interactions:after-action-move":aa,"interactions:before-action-move":ea,"interactions:after-action-start":aa,"interactions:before-action-end":ta,"interactions:stop":na},before:"ations",startAll:Ji,setAll:Zi,prepareStates:oa,start:Qi,beforeMove:ea,beforeEnd:ta,stop:na,shouldDo:ua,getModifierList:ra,getRectOffset:la,makeModifier:sa};Bi.default=ca;var fa={};function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=void 0;var da,va=ha(Bi),ya=ha(dt),ga=(da=lt)&&da.__esModule?da:{default:da};function ma(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return ma=function(){return e},e}function ha(e){if(e&&e.__esModule)return e;if(null===e||"object"!==pa(e)&&"function"!=typeof e)return{default:e};var t=ma();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function ba(e,t){var n=_a(e),r=n.resistance,o=-Math.log(n.endSpeed/t.v0)/r;t.x0=e.prevEvent.page.x,t.y0=e.prevEvent.page.y,t.t0=t.startEvent.timeStamp/1e3,t.sx=t.sy=0,t.modifiedXe=t.xe=(t.vx0-o)/r,t.modifiedYe=t.ye=(t.vy0-o)/r,t.te=o,t.lambda_v0=r/t.v0,t.one_ve_v0=1-n.endSpeed/t.v0}function wa(e){Pa(e),ya.pointer.setCoordDeltas(e.coords.delta,e.coords.prev,e.coords.cur),ya.pointer.setCoordVelocity(e.coords.velocity,e.coords.delta);var t=e.inertia,n=_a(e).resistance,r=e._now()/1e3-t.t0;if(r<t.te){var o=1-(Math.exp(-n*r)-t.lambda_v0)/t.one_ve_v0;if(t.modifiedXe===t.xe&&t.modifiedYe===t.ye)t.sx=t.xe*o,t.sy=t.ye*o;else{var i=ya.getQuadraticCurvePoint(0,0,t.xe,t.ye,t.modifiedXe,t.modifiedYe,o);t.sx=i.x,t.sy=i.y}e.move(),t.timeout=ga.default.request(function(){return wa(e)})}else t.sx=t.modifiedXe,t.sy=t.modifiedYe,e.move(),e.end(t.startEvent),t.active=!1,e.simulation=null;ya.pointer.copyCoords(e.coords.prev,e.coords.cur)}function Oa(e){Pa(e);var t=e.inertia,n=e._now()-t.t0,r=_a(e).smoothEndDuration;n<r?(t.sx=ya.easeOutQuad(n,0,t.xe,r),t.sy=ya.easeOutQuad(n,0,t.ye,r),e.move(),t.timeout=ga.default.request(function(){return Oa(e)})):(t.sx=t.xe,t.sy=t.ye,e.move(),e.end(t.startEvent),t.smoothEnd=t.active=!1,e.simulation=null)}function Pa(e){var t=e.inertia;if(t.active){var n=t.upCoords.page,r=t.upCoords.client;ya.pointer.setCoords(e.coords.cur,[{pageX:n.x+t.sx,pageY:n.y+t.sy,clientX:r.x+t.sx,clientY:r.y+t.sy}],e._now())}}function _a(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}In.EventPhase.Resume="resume",In.EventPhase.InertiaStart="inertiastart";var xa={id:"inertia",install:function(e){var t=e.defaults;e.usePlugin(va.default),t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){e.interaction.inertia={active:!1,smoothEnd:!1,allowResume:!1,upCoords:{},timeout:null}},"interactions:before-action-end":function(e,t){var n=e.interaction,r=e.event,o=e.noPreEnd,i=n.inertia;if(!n.interacting()||n.simulation&&n.simulation.active||o)return null;var a,u=_a(n),l=n._now(),s=n.coords.velocity.client,c=ya.hypot(s.x,s.y),f=!1,p=u&&u.enabled&&"gesture"!==n.prepared.name&&r!==i.startEvent,d=p&&l-n.coords.cur.timeStamp<50&&c>u.minSpeed&&c>u.endSpeed,v={interaction:n,interactable:n.interactable,element:n.element,rect:n.rect,pageCoords:n.coords.cur.page,states:p&&n.modifiers.states.map(function(e){return ya.extend({},e)}),preEnd:!0,prevCoords:null,requireEndOnly:null,phase:In.EventPhase.InertiaStart};return p&&!d&&(v.prevCoords=n.modifiers.result?n.modifiers.result.coords:n.prevEvent.page,v.requireEndOnly=!1,(a=va.default.setAll(v)).changed&&(f=!0)),d||f?(ya.pointer.copyCoords(i.upCoords,n.coords.cur),(0,va.setCoords)(v),n.pointers[0].pointer=i.startEvent=new t.InteractEvent(n,r,n.prepared.name,In.EventPhase.InertiaStart,n.element),(0,va.restoreCoords)(v),i.t0=l,i.active=!0,i.allowResume=u.allowResume,n.simulation=i,n.interactable.fire(i.startEvent),d?(i.vx0=n.coords.velocity.client.x,i.vy0=n.coords.velocity.client.y,i.v0=c,ba(n,i),ya.extend(v.pageCoords,n.coords.cur.page),v.pageCoords.x+=i.xe,v.pageCoords.y+=i.ye,v.prevCoords=null,v.requireEndOnly=!0,a=va.default.setAll(v),i.modifiedXe+=a.delta.x,i.modifiedYe+=a.delta.y,i.timeout=ga.default.request(function(){return wa(n)})):(i.smoothEnd=!0,i.xe=a.delta.x,i.ye=a.delta.y,i.sx=i.sy=0,i.timeout=ga.default.request(function(){return Oa(n)})),!1):null},"interactions:down":function(e,t){var n=e.interaction,r=e.event,o=e.pointer,i=e.eventTarget,a=n.inertia;if(a.active)for(var u=i;ya.is.element(u);){if(u===n.element){ga.default.cancel(a.timeout),a.active=!1,n.simulation=null,n.updatePointer(o,r,i,!0),ya.pointer.setCoords(n.coords.cur,n.pointers.map(function(e){return e.pointer}),n._now());var l={interaction:n,phase:In.EventPhase.Resume};t.fire("interactions:action-resume",l);var s=new t.InteractEvent(n,r,n.prepared.name,In.EventPhase.Resume,n.element);n._fireEvent(s),ya.pointer.copyCoords(n.coords.prev,n.coords.cur);break}u=ya.dom.parentNode(u)}},"interactions:stop":function(e){var t=e.interaction,n=t.inertia;n.active&&(ga.default.cancel(n.timeout),n.active=!1,t.simulation=null)}},before:"modifiers/base",calcInertia:ba,inertiaTick:wa,smothEndTick:Oa,updateInertiaCoords:Pa};fa.default=xa;var Sa={};function ja(e){return(ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.getRestrictionRect=Ia,Sa.default=void 0;var Ma=Da(Fe),Ea=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==ja(e)&&"function"!=typeof e)return{default:e};var t=ka();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y),Ta=Da(Ne);function ka(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return ka=function(){return e},e}function Da(e){return e&&e.__esModule?e:{default:e}}function Ia(e,t,n){return Ea.func(e)?Ta.default.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):Ta.default.resolveRectLike(e,t.interactable,t.element)}var za={start:function(e){var t=e.rect,n=e.startOffset,r=e.state,o=e.interaction,i=e.pageCoords,a=r.options,u=a.elementRect,l=(0,Ma.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&u){var s=Ia(a.restriction,o,i);if(s){var c=s.right-s.left-t.width,f=s.bottom-s.top-t.height;c<0&&(l.left+=c,l.right+=c),f<0&&(l.top+=f,l.bottom+=f)}l.left+=n.left-t.width*u.left,l.top+=n.top-t.height*u.top,l.right+=n.right-t.width*(1-u.right),l.bottom+=n.bottom-t.height*(1-u.bottom)}r.offset=l},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.options,i=r.offset,a=Ia(o.restriction,n,t);if(a){var u=Ta.default.xywhToTlbr(a);t.x=Math.max(Math.min(u.right-i.right,t.x),u.left+i.left),t.y=Math.max(Math.min(u.bottom-i.bottom,t.y),u.top+i.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};Sa.default=za;var Aa={};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=void 0;var Ca=Wa(Fe),Ra=Wa(Ne);function Wa(e){return e&&e.__esModule?e:{default:e}}var Xa={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ya={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Fa(e,t){for(var n=["top","left","bottom","right"],r=0;r<n.length;r++){var o=n[r];o in e||(e[o]=t[o])}return e}var Na={noInner:Xa,noOuter:Ya,start:function(e){var t,n=e.interaction,r=e.state,o=r.options,i=n.modifiers.startOffset;if(o){var a=(0,Sa.getRestrictionRect)(o.offset,n,n.coords.start.page);t=Ra.default.rectToXY(a)}t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.offset,i=r.options,a=n.prepared._linkedEdges||n.prepared.edges;if(a){var u=(0,Ca.default)({},t),l=(0,Sa.getRestrictionRect)(i.inner,n,u)||{},s=(0,Sa.getRestrictionRect)(i.outer,n,u)||{};Fa(l,Xa),Fa(s,Ya),a.top?t.y=Math.min(Math.max(s.top+o.top,u.y),l.top+o.top):a.bottom&&(t.y=Math.max(Math.min(s.bottom+o.bottom,u.y),l.bottom+o.bottom)),a.left?t.x=Math.min(Math.max(s.left+o.left,u.x),l.left+o.left):a.right&&(t.x=Math.max(Math.min(s.right+o.right,u.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};Aa.default=Na;var La={};Object.defineProperty(La,"__esModule",{value:!0}),La.default=void 0;var Va=Ga(Fe),qa=Ga(Sa);function Ga(e){return e&&e.__esModule?e:{default:e}}var Ua=(0,Va.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},qa.default.defaults),Ba={start:qa.default.start,set:qa.default.set,defaults:Ua};La.default=Ba;var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var Ka=Ja(Fe),$a=Ja(Ne),Qa=Ja(Aa);function Ja(e){return e&&e.__esModule?e:{default:e}}var Za={width:-1/0,height:-1/0},eu={width:1/0,height:1/0};var tu={start:function(e){return Qa.default.start(e)},set:function(e){var t=e.interaction,n=e.state,r=n.options,o=t.prepared._linkedEdges||t.prepared.edges;if(o){var i=$a.default.xywhToTlbr(t.resizeRects.inverted),a=$a.default.tlbrToXywh((0,Sa.getRestrictionRect)(r.min,t,e.coords))||Za,u=$a.default.tlbrToXywh((0,Sa.getRestrictionRect)(r.max,t,e.coords))||eu;n.options={endOnly:r.endOnly,inner:(0,Ka.default)({},Qa.default.noInner),outer:(0,Ka.default)({},Qa.default.noOuter)},o.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-u.height):o.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+u.height),o.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-u.width):o.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+u.width),Qa.default.set(e),n.options=r}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Ha.default=tu;var nu={};function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=void 0;var ou=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==ru(e)&&"function"!=typeof e)return{default:e};var t=iu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt);function iu(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return iu=function(){return e},e}var au={start:function(e){var t,n=e.interaction,r=e.interactable,o=e.element,i=e.rect,a=e.state,u=e.startOffset,l=a.options,s=[],c=l.offsetWithOrigin?function(e){var t=e.interaction.element;return ou.rect.rectToXY(ou.rect.resolveRectLike(e.state.options.origin,null,null,[t]))||ou.getOriginXY(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===l.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var f=ou.rect.resolveRectLike(l.offset,r,o,[n]);(t=ou.rect.rectToXY(f)||{x:0,y:0}).x+=c.x,t.y+=c.y}var p=l.relativePoints||[];if(i&&l.relativePoints&&l.relativePoints.length)for(var d=0;d<p.length;d++){var v=p[d];s.push({index:d,relativePoint:v,x:u.left-i.width*v.x+t.x,y:u.top-i.height*v.y+t.y})}else s.push(ou.extend({index:0,relativePoint:null},t));a.offsets=s},set:function(e){var t,n=e.interaction,r=e.coords,o=e.state,i=o.options,a=o.offsets,u=ou.getOriginXY(n.interactable,n.element,n.prepared.name),l=ou.extend({},r),s=[];i.offsetWithOrigin||(l.x-=u.x,l.y-=u.y),o.realX=l.x,o.realY=l.y;for(var c=0;c<a.length;c++)for(var f=a[c],p=l.x-f.x,d=l.y-f.y,v=0,y=i.targets.length;v<y;v++){var g=i.targets[v];(t=ou.is.func(g)?g(p,d,n,f,v):g)&&s.push({x:(ou.is.number(t.x)?t.x:p)+f.x,y:(ou.is.number(t.y)?t.y:d)+f.y,range:ou.is.number(t.range)?t.range:i.range})}for(var m={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0},h=0,b=s.length;h<b;h++){var w=(t=s[h]).range,O=t.x-l.x,P=t.y-l.y,_=ou.hypot(O,P),x=_<=w;w===1/0&&m.inRange&&m.range!==1/0&&(x=!1),m.target&&!(x?m.inRange&&w!==1/0?_/w<m.distance/m.range:w===1/0&&m.range!==1/0||_<m.distance:!m.inRange&&_<m.distance)||(m.target=t,m.distance=_,m.range=w,m.inRange=x,m.dx=O,m.dy=P,o.range=w)}m.inRange&&(r.x=m.target.x,r.y=m.target.y),o.closest=m},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};nu.default=au;var uu={};function lu(e){return(lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0;var su=du(Fe),cu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==lu(e)&&"function"!=typeof e)return{default:e};var t=pu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(y),fu=du(nu);function pu(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return pu=function(){return e},e}function du(e){return e&&e.__esModule?e:{default:e}}function vu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var yu={start:function(e){var t=e.interaction,n=e.state,r=n.options,o=t.prepared.edges;if(!o)return null;e.state={options:{targets:null,relativePoints:[{x:o.left?0:1,y:o.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},n.targetFields=n.targetFields||[["width","height"],["x","y"]],fu.default.start(e),n.offsets=e.state.offsets,e.state=n},set:function(e){var t=e.interaction,n=e.state,r=e.coords,o=n.options,i=n.offsets,a={x:r.x-i[0].x,y:r.y-i[0].y};n.options=(0,su.default)({},o),n.options.targets=[];for(var u=0;u<(o.targets||[]).length;u++){var l=(o.targets||[])[u],s=void 0;if(s=cu.func(l)?l(a.x,a.y,t):l){for(var c=0;c<n.targetFields.length;c++){var f=vu(n.targetFields[c],2),p=f[0],d=f[1];if(p in s||d in s){s.x=s[p],s.y=s[d];break}}n.options.targets.push(s)}}fu.default.set(e),n.options=o},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};uu.default=yu;var gu={};Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var mu=wu(K),hu=wu(Fe),bu=wu(uu);function wu(e){return e&&e.__esModule?e:{default:e}}var Ou={start:function(e){var t=e.interaction.prepared.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],bu.default.start(e)):null},set:function(e){return bu.default.set(e)},defaults:(0,hu.default)((0,mu.default)(bu.default.defaults),{offset:{x:0,y:0}})};gu.default=Ou;var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.restrictSize=Pu.restrictEdges=Pu.restrictRect=Pu.restrict=Pu.snapEdges=Pu.snapSize=Pu.snap=void 0;var _u=Du(Bi),xu=Du(Aa),Su=Du(Sa),ju=Du(La),Mu=Du(Ha),Eu=Du(gu),Tu=Du(nu),ku=Du(uu);function Du(e){return e&&e.__esModule?e:{default:e}}var Iu=_u.default.makeModifier,zu=Iu(Tu.default,"snap");Pu.snap=zu;var Au=Iu(ku.default,"snapSize");Pu.snapSize=Au;var Cu=Iu(Eu.default,"snapEdges");Pu.snapEdges=Cu;var Ru=Iu(Su.default,"restrict");Pu.restrict=Ru;var Wu=Iu(ju.default,"restrictRect");Pu.restrictRect=Wu;var Xu=Iu(xu.default,"restrictEdges");Pu.restrictEdges=Xu;var Yu=Iu(Mu.default,"restrictSize");Pu.restrictSize=Yu;var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.default=void 0;var Nu=Vu(jn),Lu=Vu(ie);function Vu(e){return e&&e.__esModule?e:{default:e}}function qu(e){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uu(e){return(Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hu(e,t){return(Hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ku(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $u=function(){function s(e,t,n,r,o,i){var a;if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a=function(e,t){return!t||"object"!==qu(t)&&"function"!=typeof t?Bu(e):t}(this,Uu(s).call(this,o)),Ku(Bu(a),"type",void 0),Ku(Bu(a),"originalEvent",void 0),Ku(Bu(a),"pointerId",void 0),Ku(Bu(a),"pointerType",void 0),Ku(Bu(a),"double",void 0),Ku(Bu(a),"pageX",void 0),Ku(Bu(a),"pageY",void 0),Ku(Bu(a),"clientX",void 0),Ku(Bu(a),"clientY",void 0),Ku(Bu(a),"dt",void 0),Ku(Bu(a),"eventable",void 0),Lu.default.pointerExtend(Bu(a),n),n!==t&&Lu.default.pointerExtend(Bu(a),t),a.timeStamp=i,a.originalEvent=n,a.type=e,a.pointerId=Lu.default.getPointerId(t),a.pointerType=Lu.default.getPointerType(t),a.target=r,a.currentTarget=null,"tap"===e){var u=o.getPointerIndex(t);a.dt=a.timeStamp-o.pointers[u].downTime;var l=a.timeStamp-o.tapTime;a.double=!!(o.prevTap&&"doubletap"!==o.prevTap.type&&o.prevTap.target===a.target&&l<500)}else"doubletap"===e&&(a.dt=t.timeStamp-o.tapTime);return a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hu(e,t)}(s,Nu["default"]),function(e,t,n){t&&Gu(e.prototype,t),n&&Gu(e,n)}(s,[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),s}();Fu.default=$u;var Qu={};function Ju(e){return(Ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.default=void 0;var Zu,el=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Ju(e)&&"function"!=typeof e)return{default:e};var t=nl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt),tl=(Zu=Fu)&&Zu.__esModule?Zu:{default:Zu};function nl(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return nl=function(){return e},e}var rl={id:"pointer-events/base",install:function(e){e.pointerEvents=rl,e.defaults.actions.pointerEvents=rl.defaults},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;if(!t&&n.hold)return;n.hold={duration:1/0,timeout:null}},"interactions:move":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.duplicate,u=n.getPointerIndex(r);a||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&clearTimeout(n.pointers[u].hold.timeout),ol({interaction:n,pointer:r,event:o,eventTarget:i,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.pointerIndex,u=n.pointers[a].hold,l=el.dom.getPath(i),s={interaction:n,pointer:r,event:o,eventTarget:i,type:"hold",targets:[],path:l,node:null},c=0;c<l.length;c++){var f=l[c];s.node=f,t.fire("pointerEvents:collect-targets",s)}if(!s.targets.length)return;for(var p=1/0,d=0;d<s.targets.length;d++){var v=s.targets[d].eventable.options.holdDuration;v<p&&(p=v)}u.duration=p,u.timeout=setTimeout(function(){ol({interaction:n,eventTarget:i,pointer:r,event:o,type:"hold"},t)},p)}(e,t),ol(e,t)},"interactions:up":function(e,t){al(e),ol(e,t),function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.pointerWasMoved||ol({interaction:n,eventTarget:i,pointer:r,event:o,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){al(e),ol(e,t)}},PointerEvent:tl.default,fire:ol,collectEventTargets:il,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up","cancel","tap","doubletap","hold"]};function ol(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,u=e.targets,l=void 0===u?il(e,t):u,s=new tl.default(a,r,o,i,n,t.now());t.fire("pointerEvents:new",{pointerEvent:s});for(var c={interaction:n,pointer:r,event:o,eventTarget:i,targets:l,type:a,pointerEvent:s},f=0;f<l.length;f++){var p=l[f];for(var d in p.props||{})s[d]=p.props[d];var v=el.getOriginXY(p.eventable,p.node);if(s._subtractOrigin(v),s.eventable=p.eventable,s.currentTarget=p.node,p.eventable.fire(s),s._addOrigin(v),s.immediatePropagationStopped||s.propagationStopped&&f+1<l.length&&l[f+1].node!==s.currentTarget)break}if(t.fire("pointerEvents:fired",c),"tap"===a){var y=s.double?ol({interaction:n,pointer:r,event:o,eventTarget:i,type:"doubletap"},t):s;n.prevTap=y,n.tapTime=y.timeStamp}return s}function il(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,u=n.getPointerIndex(r),l=n.pointers[u];if("tap"===a&&(n.pointerWasMoved||!l||l.downTarget!==i))return[];for(var s=el.dom.getPath(i),c={interaction:n,pointer:r,event:o,eventTarget:i,type:a,path:s,targets:[],node:null},f=0;f<s.length;f++){var p=s[f];c.node=p,t.fire("pointerEvents:collect-targets",c)}return"hold"===a&&(c.targets=c.targets.filter(function(e){return e.eventable.options.holdDuration===n.pointers[u].hold.duration})),c.targets}function al(e){var t=e.interaction,n=e.pointerIndex;t.pointers[n].hold&&clearTimeout(t.pointers[n].hold.timeout)}var ul=rl;Qu.default=ul;var ll={};Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var sl,cl=(sl=Qu)&&sl.__esModule?sl:{default:sl};function fl(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}var pl={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(cl.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.push("holdrepeat")},listeners:["move","up","cancel","endall"].reduce(function(e,t){return e["pointerEvents:".concat(t)]=fl,e},{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,r=e.pointerEvent,o=e.eventTarget,i=e.targets;if("hold"===r.type&&i.length){var a=i[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:n,eventTarget:o,type:"hold",pointer:r,event:r},t)},a))}}})};ll.default=pl;var dl={};Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var vl,yl=(vl=Fe)&&vl.__esModule?vl:{default:vl};function gl(e){return(0,yl.default)(this.events.options,e),this}var ml={id:"pointer-events/interactableTargets",install:function(e){var t=e.pointerEvents,n=e.actions,r=e.Interactable;(0,u.merge)(n.eventTypes,t.types),r.prototype.pointerEvents=gl;var o=r.prototype._backCompatOption;r.prototype._backCompatOption=function(e,t){var n=o.call(this,e,t);return n===this&&(this.events.options[e]=t),n}},listeners:{"pointerEvents:collect-targets":function(e,t){var r=e.targets,o=e.node,i=e.type,a=e.eventTarget;t.interactables.forEachMatch(o,function(e){var t=e.events,n=t.options;t.types[i]&&t.types[i].length&&e.testIgnoreAllow(n,o,a)&&r.push({node:o,eventable:t,props:{interactable:e}})})},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,r=e.options;(0,yl.default)(n.events.options,t.pointerEvents.defaults),(0,yl.default)(n.events.options,r.pointerEvents||{})}}};dl.default=ml;var hl={};Object.defineProperty(hl,"__esModule",{value:!0}),hl.install=function(e){e.usePlugin(bl.default),e.usePlugin(wl.default),e.usePlugin(Ol.default)},Object.defineProperty(hl,"pointerEvents",{enumerable:!0,get:function(){return bl.default}}),Object.defineProperty(hl,"holdRepeat",{enumerable:!0,get:function(){return wl.default}}),Object.defineProperty(hl,"interactableTargets",{enumerable:!0,get:function(){return Ol.default}}),hl.id=void 0;var bl=Pl(Qu),wl=Pl(ll),Ol=Pl(dl);function Pl(e){return e&&e.__esModule?e:{default:e}}hl.id="pointer-events";var _l={};function xl(t){for(var e=t.actions,n=t.Interactable,r=0;r<e.names.length;r++){var o=e.names[r];e.eventTypes.push("".concat(o,"reflow"))}n.prototype.reflow=function(e){return function(u,l,s){function e(){var t=c[d],e=u.getRect(t);if(!e)return"break";var n=dt.arr.find(s.interactions.list,function(e){return e.interacting()&&e.interactable===u&&e.element===t&&e.prepared.name===l.name}),r=void 0;if(n)n.move(),p&&(r=n._reflowPromise||new f(function(e){n._reflowResolve=e}));else{var o=dt.rect.tlbrToXywh(e),i={page:{x:o.x,y:o.y},client:{x:o.x,y:o.y},timeStamp:s.now()},a=dt.pointer.coordsToEvent(i);r=function(e,t,n,r,o){var i=e.interactions.new({pointerType:"reflow"}),a={interaction:i,event:o,pointer:o,eventTarget:n,phase:In.EventPhase.Reflow};i.interactable=t,i.element=n,i.prepared=(0,dt.extend)({},r),i.prevEvent=o,i.updatePointer(o,o,n,!0),i._doPhase(a);var u=dt.win.window.Promise?new dt.win.window.Promise(function(e){i._reflowResolve=e}):null;i._reflowPromise=u,i.start(r,t,n),i._interacting?(i.move(a),i.end(o)):i.stop();return i.removePointer(o,o),i.pointerIsDown=!1,u}(s,u,t,l,a)}p&&p.push(r)}for(var c=dt.is.string(u.target)?dt.arr.from(u._context.querySelectorAll(u.target)):[u.target],f=dt.win.window.Promise,p=f?[]:null,d=0;d<c.length;d++){if("break"===e())break}return p&&f.all(p).then(function(){return u})}(this,e,t)}}Object.defineProperty(_l,"__esModule",{value:!0}),_l.install=xl,_l.default=void 0;var Sl={id:In.EventPhase.Reflow="reflow",install:xl,listeners:{"interactions:stop":function(e,t){var n=e.interaction;n.pointerType===In.EventPhase.Reflow&&(n._reflowResolve&&n._reflowResolve(),dt.arr.remove(t.interactions.list,n))}}};_l.default=Sl;var jl={};function Ml(e){return(Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=jl.scope=jl.interact=void 0;var El=b({}),Tl=zl(j),kl=zl(me),Dl=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Ml(e)&&"function"!=typeof e)return{default:e};var t=Il();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(dt);function Il(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Il=function(){return e},e}function zl(e){return e&&e.__esModule?e:{default:e}}var Al={},Cl=new El.Scope;jl.scope=Cl;function Rl(e,t){var n=Cl.interactables.get(e,t);return n||((n=Cl.interactables.new(e,t)).events.global=Al),n}(jl.interact=Rl).use=function(e,t){return Cl.usePlugin(e,t),Rl},Rl.isSet=function(e,t){return!!Cl.interactables.get(e,t&&t.context)},Rl.on=function(e,t,n){Dl.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/));if(Dl.is.array(e)){for(var r=0;r<e.length;r++){var o;o=e[r],Rl.on(o,t,n)}return Rl}if(Dl.is.object(e)){for(var i in e)Rl.on(i,e[i],t);return Rl}Dl.arr.contains(Cl.actions.eventTypes,e)?Al[e]?Al[e].push(t):Al[e]=[t]:kl.default.add(Cl.document,e,t,{options:n});return Rl},Rl.off=function(e,t,n){Dl.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/));if(Dl.is.array(e)){for(var r=0;r<e.length;r++){var o;o=e[r],Rl.off(o,t,n)}return Rl}if(Dl.is.object(e)){for(var i in e)Rl.off(i,e[i],t);return Rl}var a;Dl.arr.contains(Cl.actions.eventTypes,e)?e in Al&&-1!==(a=Al[e].indexOf(t))&&Al[e].splice(a,1):kl.default.remove(Cl.document,e,t,n);return Rl},Rl.debug=function(){return Cl},Rl.getPointerAverage=Dl.pointer.pointerAverage,Rl.getTouchBBox=Dl.pointer.touchBBox,Rl.getTouchDistance=Dl.pointer.touchDistance,Rl.getTouchAngle=Dl.pointer.touchAngle,Rl.getElementRect=Dl.dom.getElementRect,Rl.getElementClientRect=Dl.dom.getElementClientRect,Rl.matchesSelector=Dl.dom.matchesSelector,Rl.closest=Dl.dom.closest,Rl.supportsTouch=function(){return Tl.default.supportsTouch},Rl.supportsPointerEvent=function(){return Tl.default.supportsPointerEvent},Rl.stop=function(){for(var e=0;e<Cl.interactions.list.length;e++){Cl.interactions.list[e].stop()}return Rl},Rl.pointerMoveTolerance=function(e){if(Dl.is.number(e))return Cl.interactions.pointerMoveTolerance=e,Rl;return Cl.interactions.pointerMoveTolerance},Cl.addListeners({"interactable:unset":function(e){var t=e.interactable;Cl.interactables.list.splice(Cl.interactables.list.indexOf(t),1);for(var n=0;n<Cl.interactions.list.length;n++){var r=Cl.interactions.list[n];r.interactable===t&&r.interacting()&&!r._ending&&r.stop()}}}),Rl.addDocument=function(e,t){return Cl.addDocument(e,t)},Rl.removeDocument=function(e){return Cl.removeDocument(e)};var Wl=Cl.interact=Rl;jl.default=Wl;var Xl={};function Yl(e){return(Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.init=function(e){for(var t in $l.scope.init(e),$l.default.use(Vl.default),$l.default.use(Hl),$l.default.use(Gl.default),$l.default.use(Ul.default),$l.default.use(Ll),$l.default.use(Fl),Bl){var n=Bl[t],r=n._defaults,o=n._methods;r._methods=o,$l.scope.defaults.perAction[t]=r}$l.default.use(Nl.default),$l.default.use(Kl.default),$l.default.use(ql.default);return $l.default},Object.defineProperty(Xl,"autoScroll",{enumerable:!0,get:function(){return Nl.default}}),Object.defineProperty(Xl,"interactablePreventDefault",{enumerable:!0,get:function(){return Vl.default}}),Object.defineProperty(Xl,"inertia",{enumerable:!0,get:function(){return Gl.default}}),Object.defineProperty(Xl,"modifiers",{enumerable:!0,get:function(){return Ul.default}}),Object.defineProperty(Xl,"reflow",{enumerable:!0,get:function(){return Kl.default}}),Object.defineProperty(Xl,"interact",{enumerable:!0,get:function(){return $l.default}}),Xl.pointerEvents=Xl.actions=Xl.default=void 0;var Fl=Zl(yo);Xl.actions=Fl;var Nl=Ql(Oo),Ll=Zl(yi),Vl=Ql(wi),ql=Ql(ki),Gl=Ql(fa),Ul=Ql(Bi),Bl=Zl(Pu),Hl=Zl(hl);Xl.pointerEvents=Hl;var Kl=Ql(_l),$l=Zl(jl);function Ql(e){return e&&e.__esModule?e:{default:e}}function Jl(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Jl=function(){return e},e}function Zl(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Yl(e)&&"function"!=typeof e)return{default:e};var t=Jl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}$l.default.version="1.7.1";var es=$l.default;Xl.default=es;var ts={};function ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;function rs(v){function e(e,t){for(var n=v.range,r=v.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,i=v.offset,a=void 0===i?{x:0,y:0}:i,u={range:n},l=0;l<y.length;l++){var s=ns(y[l],2),c=s[0],f=s[1],p=Math.round((e-a.x)/v[c]),d=Math.round((t-a.y)/v[f]);u[c]=Math.max(o.left,Math.min(o.right,p*v[c]+a.x)),u[f]=Math.max(o.top,Math.min(o.bottom,d*v[f]+a.y))}return u}var y=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(e){var t=ns(e,2),n=t[0],r=t[1];return n in v||r in v});return e._isSnapGrid=!0,e.grid=v,e.coordFields=y,e}ts.default=rs;var os={};Object.defineProperty(os,"__esModule",{value:!0}),Object.defineProperty(os,"grid",{enumerable:!0,get:function(){return as.default}});var is,as=(is=ts)&&is.__esModule?is:{default:is};var us={};Object.defineProperty(us,"__esModule",{value:!0}),us.init=gs,us.default=void 0;var ls,ss=vs(Xl),cs=vs(Pu),fs=(ls=Fe)&&ls.__esModule?ls:{default:ls},ps=vs(os);function ds(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return ds=function(){return e},e}function vs(e){if(e&&e.__esModule)return e;if(null===e||"object"!==ys(e)&&"function"!=typeof e)return{default:e};var t=ds();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function ys(e){return(ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gs(e){return(0,ss.init)(e),ss.default.use({id:"interactjs",install:function(){ss.default.modifiers=(0,fs.default)({},cs),ss.default.snappers=ps,ss.default.createSnapGrid=ss.default.snappers.grid}})}"object"===("undefined"==typeof window?"undefined":ys(window))&&window&&gs(window);var ms=ss.default;us.default=ms;var hs={exports:{}};Object.defineProperty(hs.exports,"__esModule",{value:!0});var bs=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Os(e)&&"function"!=typeof e)return{default:e};var t=ws();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(us);function ws(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return ws=function(){return e},e}function Os(e){return(Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}return Object.keys(bs).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(hs.exports,e,{enumerable:!0,get:function(){return bs[e]}})}),"object"===Os(hs)&&hs&&(hs.exports=bs.default),bs.default.default=bs.default,bs.default.init=bs.init,hs=hs.exports});
|
|
|
|
//# sourceMappingURL=interact.min.js.map
|