text: !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("javascript-interface-library"),require("svelte-coordinate-conversion")):"function"==typeof define&&define.amd?define(["exports","javascript-interface-library","svelte-coordinate-conversion"],n):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var r=e.DragAndDropActions,o=e.DragAndDropActions={};n(o,e.JIL,e.Conversion),o.noConflict=function(){return e.DragAndDropActions=r,o}}())}(this,(function(e,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(r),t="__DragAndDropActions"in n.global?n.global.__DragAndDropActions:n.global.__DragAndDropActions={};function l(e){var r,o,a,t,l,i,s,d,c,p,u,f,m,D,v,g,y;switch(r=(e=n.allowedPlainObject("drag options",e)||{}).Extras,!0){case null==e.relativeTo:o="parent";break;case"parent"===e.relativeTo:case"body"===e.relativeTo:case n.ValueIsNonEmptyString(e.relativeTo):case e.relativeTo instanceof HTMLElement:case e.relativeTo instanceof SVGElement:o=e.relativeTo;break;default:n.throwError("InvalidArgument: invalid position reference given")}switch(a=n.allowedNonEmptyString('"onlyFrom" CSS selector',e.onlyFrom),t=n.allowedNonEmptyString('"neverFrom" CSS selector',e.neverFrom),!0){case null==e.Dummy:l=void 0;break;case"standard"===e.Dummy:case"none"===e.Dummy:case n.ValueIsNonEmptyString(e.Dummy):case e.Dummy instanceof HTMLElement:case e.Dummy instanceof SVGElement:case n.ValueIsFunction(e.Dummy):l=e.Dummy;break;default:n.throwError("InvalidArgument: invalid drag dummy specification given")}switch(i=n.allowedFiniteNumber("dummy x offset",e.DummyOffsetX),s=n.allowedFiniteNumber("dummy y offset",e.DummyOffsetY),null==(d=n.allowedFiniteNumber("min. x position",e.minX))&&(d=-1/0),null==(c=n.allowedFiniteNumber("min. y position",e.minY))&&(c=-1/0),null==(p=n.allowedFiniteNumber("max. x position",e.maxX))&&(p=1/0),null==(u=n.allowedFiniteNumber("max. y position",e.maxY))&&(u=1/0),!0){case null==e.Pannable:f=void 0;break;case n.ValueIsNonEmptyString(e.Pannable):case e.Pannable instanceof HTMLElement:case e.Pannable instanceof SVGElement:f=e.Pannable;break;default:n.throwError('InvalidArgument: invalid "Pannable" specification given')}if(null==(m=n.allowedOrdinal("panning sensor width",e.PanSensorWidth))&&(m=20),null==(D=n.allowedOrdinal("panning sensor height",e.PanSensorHeight))&&(D=20),null==(v=n.allowedOrdinal("panning speed",e.PanSpeed))&&(v=10),y=e.onDragStart,n.ValueIsPlainObject(y)&&n.ValueIsFiniteNumber(y.x)&&n.ValueIsFiniteNumber(y.y)){var b=e.onDragStart,T=b.x,E=b.y;g=function(){return{x:T,y:E}}}else g=n.allowedFunction('"onDragStart" handler',e.onDragStart);return{Extras:r,relativeTo:o,onlyFrom:a,neverFrom:t,Dummy:l,DummyOffsetX:i,DummyOffsetY:s,minX:d,minY:c,maxX:p,maxY:u,Pannable:f,PanSensorWidth:m,PanSensorHeight:D,PanSpeed:v,onDragStart:g,onDragMove:n.allowedFunction('"onDragMove" handler',e.onDragMove),onDragEnd:n.allowedFunction('"onDragEnd" handler',e.onDragEnd),onDragCancel:undefined}}function i(e,n,r){if(null!=n.onlyFrom||null!=n.neverFrom){var o,a=r.clientX,t=r.clientY,l=document.elementFromPoint(a,t);if(l=s(l,a,t),null!=n.onlyFrom)if(e!==(o=l.closest(n.onlyFrom))&&!e.contains(o))return!0;if(null!=n.neverFrom)if(e===(o=l.closest(n.neverFrom))||e.contains(o))return!0}return!1}function s(e,n,r){for(var o=e.children,t=0,l=o.length;t<l;t++){var i=o[t],d=a.default.fromLocalTo("viewport",{left:0,top:0},i);if(!(n<d.left||r<d.top)&&!(n>d.left+i.offsetWidth-1||r>d.top+i.offsetHeight-1))return s(i,n,r)}return e}var d=["copy","move","link"];function c(e){var r,o;return r=v("list of allowed operations",(e=n.allowedPlainObject("drop options",e)||{}).Operations,"copy"),"none"in(o=Object.assign({},n.allowedPlainObject("data to be offered",e.DataToOffer)))&&n.throwError('InvalidArgument: "none" is not a valid data type'),{Operations:r,DataToOffer:o,onDropZoneEnter:n.allowedFunction('"onDropZoneEnter" handler',e.onDropZoneEnter),onDropZoneHover:n.allowedFunction('"onDropZoneHover" handler',e.onDropZoneHover),onDropZoneLeave:n.allowedFunction('"onDropZoneLeave" handler',e.onDropZoneLeave),onDropped:n.allowedFunction('"onDropped" handler',e.onDropped)}}function p(e){var r,o,a,t,l,i,s;for(var d in r=(e=n.allowedPlainObject("drop zone options",e)||{}).Extras,n.allowPlainObject("data types to be accepted",e.TypesToAccept),o=Object.create(null),null!=e.TypesToAccept&&"none"in e.TypesToAccept&&n.throwError('InvalidArgument: "none" is not a valid data type'),e.TypesToAccept)e.TypesToAccept.hasOwnProperty(d)&&(o[d]=v("list of accepted operations for type "+n.quoted(d),e.TypesToAccept[d]));switch(a=n.allowedIntegerInRange("min. time to hold",e.HoldDelay,0),!0){case null==e.Pannable:t=void 0;break;case"this"===e.Pannable:case n.ValueIsNonEmptyString(e.Pannable):case e.Pannable instanceof HTMLElement:case e.Pannable instanceof SVGElement:t=e.Pannable;break;default:n.throwError('InvalidArgument: invalid "Pannable" specification given')}return null==(l=n.allowedOrdinal("panning sensor width",e.PanSensorWidth))&&(l=20),null==(i=n.allowedOrdinal("panning sensor height",e.PanSensorHeight))&&(i=20),null==(s=n.allowedOrdinal("panning speed",e.PanSpeed))&&(s=10),{Extras:r,TypesToAccept:o,HoldDelay:a,Pannable:t,PanSensorWidth:l,PanSensorHeight:i,PanSpeed:s,onDroppableEnter:n.allowedFunction('"onDroppableEnter" handler',e.onDroppableEnter),onDroppableMove:n.allowedFunction('"onDroppableMove" handler',e.onDroppableMove),onDroppableLeave:n.allowedFunction('"onDroppableLeave" handler',e.onDroppableLeave),onDroppableHold:n.allowedFunction('"onDroppableHold" handler',e.onDroppableHold),onDroppableRelease:n.allowedFunction('"onDroppableRelease" handler',e.onDroppableRelease),onDrop:n.allowedFunction('"onDrop" handler',e.onDrop)}}function u(e){return{x:e.left,y:e.top}}function f(e,r){var o;switch(!0){case"parent"===r.relativeTo:o=e.parentElement;break;case"body"===r.relativeTo:o=document.body;break;case r.relativeTo instanceof HTMLElement:case r.relativeTo instanceof SVGElement:(o=r.relativeTo)==document.body||document.body.contains(o)||n.throwError('InvalidArgument: the HTML element given as "relativeTo" option is not part of this HTML document');break;default:o=e.closest(r.relativeTo)}return null==o?document.body:o}function m(e,r){switch(!0){case"standard"===r.Dummy:return;case"none"===r.Dummy:var o=document.createElement("div");return o.setAttribute("style","display:block; position:absolute; width:1px; height:1px; background:transparent; border:none; margin:0px; padding:0px; cursor:auto"),document.body.appendChild(o),o;case n.ValueIsNonEmptyString(r.Dummy):var a=document.createElement("div");return a.style.display="block",a.style.position="absolute",a.style.left=document.body.scrollWidth+100+"px",document.body.appendChild(a),a.innerHTML=r.Dummy,a.children[0];case r.Dummy instanceof HTMLElement:case r.Dummy instanceof SVGElement:return r.Dummy;case n.ValueIsFunction(r.Dummy):var t=void 0;try{t=r.Dummy(r.Extras,e)}catch(e){console.error("RuntimeError: creating draggable dummy failed",e)}if(null!=t){if(t instanceof HTMLElement||t instanceof SVGElement)return t;console.error("InvalidArgument: the newly created draggable dummy is neither an HTML nor an SVG element")}}}function D(e,r,o,l,i){if("draggable"!==e||!t.DropZonePanning)if(null==o.Pannable||0===o.PanSensorWidth&&0===o.PanSensorHeight||0===o.PanSpeed)t.DropZonePanning=!1;else{var s;switch(!0){case n.ValueIsNonEmptyString(o.Pannable):null!=(s=r.parentElement)&&(s=s.closest(o.Pannable));break;case"this"===o.Pannable&&"dropzone"===e:s=r;break;case o.Pannable instanceof HTMLElement:case o.Pannable instanceof SVGElement:s=o.Pannable}if(null!=s){var d=a.default.fromDocumentTo("local",{left:l,top:i},s),c=d.left,p=d.top;c>=0&&c<o.PanSensorWidth&&(s.scrollLeft=Math.max(0,s.scrollLeft-o.PanSpeed));var u=s.clientWidth;c>=u-o.PanSensorWidth&&c<u&&(s.scrollLeft=Math.min(s.scrollLeft+o.PanSpeed,s.scrollWidth-u)),p>=0&&p<o.PanSensorHeight&&(s.scrollTop=Math.max(0,s.scrollTop-o.PanSpeed));var f=s.clientHeight;p>=f-o.PanSensorHeight&&p<f&&(s.scrollTop=Math.min(s.scrollTop+o.PanSpeed,s.scrollHeight-f)),t.DropZonePanning="dropzone"===e}else t.DropZonePanning=!1}}function v(e,r,o){void 0===o&&(o="copy move link");var a=n.allowedString(e,r)||o;switch(a.trim()){case"all":return"copy move link";case"none":return""}var t=a.trim().replace(/\s+/g," ").split(" ");return n.allowListSatisfying(e,t,(function(e){return n.ValueIsOneOf(e,d)})),t.reduce((function(e,n){return e.indexOf(n)<0?e+n+" ":e})," ")}function g(e,r){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];if(null!=r[e])try{return r[e].apply(null,o)}catch(r){console.error(n.quoted(e)+" handler failed",r)}}var y=g;e.DropOperations=d,e.asDraggable=function(e,r){var o,t,s,d,c,p,u,v,y;return o=!1,t=l(r),e.setAttribute("draggable","true"),e.addEventListener("dragstart",(function(r){var l=t;if(i(e,l,r))return r.stopPropagation(),r.preventDefault(),!1;s=f(e,l);var D=a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},s);if(d=c=0,v={x:0,y:0},null==l.onDragStart)v={x:0,y:0};else try{var g=l.onDragStart(l.Extras);if(n.ValueIsPlainObject(g)){var b=n.allowedFiniteNumber("x start position",g.x),T=n.allowedFiniteNumber("y start position",g.y);d=b-D.left,c=T-D.top,b=n.constrained(b,l.minX,l.maxX),T=n.constrained(T,l.minY,l.maxY),v={x:b,y:T}}}catch(e){console.error('"onDragStart" handler failed',e)}if(y=v,p=!1,null==l.Dummy&&(l.Dummy="none"),null!=(u=m(e,l))&&null!=r.dataTransfer){var E=l.DummyOffsetX,x=l.DummyOffsetY;if(null==E||null==x){var P=a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},e);null==E&&(E=P.left),null==x&&(x=P.top)}switch(!0){case"none"===l.Dummy:r.dataTransfer.setDragImage(u,0,0),setTimeout((function(){document.body.removeChild(u)}),0);break;case n.ValueIsString(l.Dummy):r.dataTransfer.setDragImage(u,E,x),setTimeout((function(){document.body.removeChild(u.parentElement)}),0);break;default:r.dataTransfer.setDragImage(u,E,x)}}null!=r.dataTransfer&&(r.dataTransfer.effectAllowed="none"),o=!0,setTimeout((function(){return e.classList.add("dragged")}),0),r.stopPropagation()})),e.addEventListener("drag",(function(r){if(!o)return!1;var l=t;if(0!==r.screenX||0!==r.screenY||p){p=!1,D("draggable",e,l,r.pageX,r.pageY);var i=a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},s),u=i.left+d,f=i.top+c;u=n.constrained(u,l.minX,l.maxX),f=n.constrained(f,l.minY,l.maxY);var m=u-y.x,v=f-y.y;y={x:u,y:f},g("onDragMove",l,u,f,m,v,l.Extras)}else p=!0;r.stopPropagation()})),e.addEventListener("dragend",(function(r){if(!o)return!1;var a=t;if(null!=a.onDragEnd){var l=n.constrained(y.x,a.minX,a.maxX),i=n.constrained(y.y,a.minY,a.maxY);g("onDragEnd",a,l,i,l-y.x,i-y.y,a.Extras)}o=!1,e.classList.remove("dragged"),r.stopPropagation()})),{update:function(e){e=l(e),null==t.Extras&&null!=e.Extras&&(t.Extras=e.Extras),t.Dummy=e.Dummy||t.Dummy,t.minX=e.minX,t.minY=e.minY,t.maxX=e.maxX,t.maxY=e.maxY,t.Pannable=e.Pannable,t.PanSensorWidth=e.PanSensorWidth,t.PanSensorHeight=e.PanSensorHeight,t.PanSpeed=e.PanSpeed,t.onDragStart=e.onDragStart||t.onDragStart}}},e.asDropZone=function(e,r){var o;function l(e){t.HoldPosition=e,null!=t.HoldTimer&&clearTimeout(t.HoldTimer),t.HoldTimer=setTimeout(d,r.HoldDelay)}function i(e){Math.pow(t.HoldPosition.x-e.x,2)+Math.pow(t.HoldPosition.y-e.y,2)>25&&(t.HoldPosition=e,clearTimeout(t.HoldTimer),t.HoldTimer=setTimeout(d,r.HoldDelay))}function s(){delete t.HoldPosition,null!=t.HoldTimer&&(clearTimeout(t.HoldTimer),delete t.HoldTimer),delete t.HoldWasTriggeredForElement}function d(){var n=t.currentDropZonePosition||t.HoldPosition;delete t.HoldPosition,delete t.HoldTimer,t.HoldWasTriggeredForElement=e,g("onDroppableHold",r,n.x,n.y,t.currentDroppableExtras,r.Extras)}return o=p(r),e.setAttribute("draggable","true"),e.addEventListener("dragenter",(function(r){var i=o;D("dropzone",e,i,r.pageX,r.pageY);var s=u(a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},e));if(n.ValueIsNumber(i.HoldDelay)&&i.HoldDelay>0&&t.HoldWasTriggeredForElement!==e&&l(s),null!=r.dataTransfer&&"none"!==r.dataTransfer.effectAllowed){var d=r.dataTransfer.dropEffect;if("none"===d)switch(r.dataTransfer.effectAllowed){case"copy":case"move":case"link":d=r.dataTransfer.effectAllowed;break;default:d=void 0}var c=i.TypesToAccept,p=r.dataTransfer.types.filter((function(e){return e in c&&""!==c[e]}));if(0!==p.length)!1!==y("onDroppableEnter",i,s.x,s.y,d,p,t.currentDroppableExtras,i.Extras)&&(t.currentDropZoneExtras=i.Extras,t.currentDropZoneElement=e,t.currentDropZonePosition=s,e.classList.add("hovered"),r.preventDefault(),r.stopPropagation())}})),e.addEventListener("dragover",(function(r){var s=o;D("dropzone",e,s,r.pageX,r.pageY);var d=u(a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},e));if(n.ValueIsNumber(s.HoldDelay)&&s.HoldDelay>0&&t.HoldWasTriggeredForElement!==e&&(null==t.HoldPosition?l(d):i(d)),null==r.dataTransfer||"none"===r.dataTransfer.effectAllowed||null!=t.currentDropZoneElement&&t.currentDropZoneElement!==e)e.classList.remove("hovered");else{var c=r.dataTransfer.dropEffect;if("none"===c)switch(r.dataTransfer.effectAllowed){case"copy":case"move":case"link":c=r.dataTransfer.effectAllowed;break;default:c=void 0}var p=s.TypesToAccept,f=r.dataTransfer.types.filter((function(e){return e in p&&""!==p[e]}));if(0===f.length)return t.currentDropZoneElement===e&&(t.currentDropZoneExtras=void 0,t.currentDropZoneElement=void 0,t.currentDropZonePosition=void 0),void e.classList.remove("hovered");if(t.currentDropZonePosition=d,!1!==y("onDroppableMove",s,t.currentDropZonePosition.x,t.currentDropZonePosition.y,c,f,t.currentDroppableExtras,s.Extras))return t.currentDropZoneExtras=s.Extras,t.currentDropZoneElement=e,e.classList.add("hovered"),r.preventDefault(),!1;t.currentDropZoneExtras=void 0,t.currentDropZoneElement=void 0,t.currentDropZonePosition=void 0,e.classList.remove("hovered")}})),e.addEventListener("dragleave",(function(n){e.classList.remove("hovered"),t.DropZonePanning=!1,s();var r=o;t.currentDropZoneElement===e&&(null==t.currentTypeTransferred&&(t.currentDropZoneExtras=void 0,t.currentDropZoneElement=void 0,t.DroppableWasDropped=!1,t.currentDropZonePosition=void 0,t.currentTypeTransferred=void 0,t.currentDataTransferred=void 0,g("onDroppableLeave",r,t.currentDroppableExtras,r.Extras)),n.preventDefault(),n.stopPropagation())})),e.addEventListener("drop",(function(r){if(e.classList.remove("hovered"),t.DropZonePanning=!1,s(),null!=r.dataTransfer&&"none"!==r.dataTransfer.effectAllowed&&t.currentDropZoneElement===e){r.stopPropagation();var l=o,i=r.dataTransfer.dropEffect;if("none"===i)switch(r.dataTransfer.effectAllowed){case"copy":case"move":case"link":i=r.dataTransfer.effectAllowed;break;default:i=void 0}var d=l.TypesToAccept,c=r.dataTransfer.types.filter((function(e){return e in d&&(null==i||d[e].indexOf(i)>=0)}));if(0===c.length)return t.currentDropZoneExtras=void 0,t.currentDropZonePosition=void 0,t.DroppableWasDropped=!1,t.currentDropOperation=void 0,t.currentTypeTransferred=void 0,t.currentDataTransferred=void 0,void g("onDroppableLeave",l,t.currentDroppableExtras,l.Extras);t.currentDropZonePosition=u(a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},e));var p={};c.forEach((function(e){return p[e]=r.dataTransfer.getData(e)}));var f=y("onDrop",l,t.currentDropZonePosition.x,t.currentDropZonePosition.y,i,p,t.currentDroppableExtras,l.Extras);switch(!0){case null==f:t.DroppableWasDropped=!0,t.currentDropOperation=i,t.currentTypeTransferred=void 0,t.currentDataTransferred=void 0;break;case n.ValueIsOneOf(f,c):t.DroppableWasDropped=!0,t.currentDropOperation=i,t.currentTypeTransferred=f,t.currentDataTransferred=p[f];break;default:t.DroppableWasDropped=!1,t.currentDropZoneExtras=void 0,t.currentDropZonePosition=void 0,t.currentDropOperation=void 0,t.currentTypeTransferred=void 0,t.currentDataTransferred=void 0}t.currentDropZoneElement=void 0}})),{update:function(e){e=p(e),null==o.Extras&&null!=e.Extras&&(o.Extras=e.Extras),o.TypesToAccept=e.TypesToAccept,o.HoldDelay=e.HoldDelay,o.Pannable=e.Pannable,o.PanSensorWidth=e.PanSensorWidth,o.PanSensorHeight=e.PanSensorHeight,o.PanSpeed=e.PanSpeed}}},e.asDroppable=function(e,r){var o,s,d,p,u,v,y,b,T,E,x,P;return o=!1,s=l(r),d=c(r),e.setAttribute("draggable","true"),e.addEventListener("dragstart",(function(r){var l=Object.assign({},s,d);if(i(e,l,r))return r.stopPropagation(),r.preventDefault(),!1;p=f(e,l);var c,D=a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},p);if(u=v=0,T={x:0,y:0},null==l.onDragStart)T={x:0,y:0};else try{var g=l.onDragStart(l.Extras);if(n.ValueIsPlainObject(g)){var h=n.allowedFiniteNumber("x start position",g.x),S=n.allowedFiniteNumber("y start position",g.y);u=h-D.left,v=S-D.top,h=n.constrained(h,l.minX,l.maxX),S=n.constrained(S,l.minY,l.maxY),T={x:h,y:S}}}catch(e){console.error('"onDragStart" handler failed',e)}if(E=T,x=void 0,P=void 0,y=!1,null==l.Dummy&&(l.Dummy="standard"),null!=(b=m(e,l))&&null!=r.dataTransfer){var w=l.DummyOffsetX,Z=l.DummyOffsetY;if(null==w||null==Z){var H=a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},e);null==w&&(w=H.left),null==Z&&(Z=H.top)}switch(!0){case"none"===l.Dummy:r.dataTransfer.setDragImage(b,0,0),setTimeout((function(){document.body.removeChild(b)}),0);break;case n.ValueIsString(l.Dummy):r.dataTransfer.setDragImage(b,w,Z),setTimeout((function(){document.body.removeChild(b.parentElement)}),0);break;default:r.dataTransfer.setDragImage(b,w,Z)}}if(null!=r.dataTransfer){var O=["none","copy","link","copyLink","move","copyMove","linkMove","all"][2*(2*((c=l.Operations).indexOf("move")<0?0:1)+(c.indexOf("link")<0?0:1))+(c.indexOf("copy")<0?0:1)];if(r.dataTransfer.effectAllowed=O,n.ObjectIsNotEmpty(l.DataToOffer))for(var L in l.DataToOffer)l.DataToOffer.hasOwnProperty(L)&&r.dataTransfer.setData(L,l.DataToOffer[L])}t.currentDroppableExtras=l.Extras,t.currentDropZoneExtras=void 0,t.currentDropZonePosition=void 0,t.currentDropZoneElement=void 0,t.DroppableWasDropped=!1,t.currentDropOperation=void 0,t.currentTypeTransferred=void 0,t.currentDataTransferred=void 0,o=!0,setTimeout((function(){return e.classList.add("dragged")}),0),r.stopPropagation()})),e.addEventListener("drag",(function(r){if(!o)return!1;var l=Object.assign({},s,d);if(0!==r.screenX||0!==r.screenY||y){y=!1,D("draggable",e,l,r.pageX,r.pageY);var i=a.default.fromDocumentTo("local",{left:r.pageX,top:r.pageY},p),c=i.left+u,f=i.top+v;c=n.constrained(c,l.minX,l.maxX),f=n.constrained(f,l.minY,l.maxY);var m=c-E.x,b=f-E.y;E={x:c,y:f},g("onDragMove",l,c,f,m,b,l.Extras)}else y=!0;t.currentDropZoneElement===x?null!=t.currentDropZoneElement&&g("onDropZoneHover",l,t.currentDropZonePosition.x,t.currentDropZonePosition.y,t.currentDropZoneExtras,l.Extras):(null==t.currentDropZoneElement?(e.classList.remove("droppable"),g("onDropZoneLeave",l,P,l.Extras)):(e.classList.add("droppable"),g("onDropZoneEnter",l,t.currentDropZonePosition.x,t.currentDropZonePosition.y,P,l.Extras)),x=t.currentDropZoneElement,P=t.currentDropZoneExtras),r.stopPropagation()})),e.addEventListener("dragend",(function(r){if(!o)return!1;var a=Object.assign({},s,d);if(t.DroppableWasDropped&&(g("onDropped",a,t.currentDropZonePosition.x,t.currentDropZonePosition.y,t.currentDropOperation,t.currentTypeTransferred,t.currentDataTransferred,t.currentDropZoneExtras,a.Extras),t.currentDropZoneExtras=void 0,t.currentDropZonePosition=void 0,t.currentDropZoneElement=void 0,t.DroppableWasDropped=!1,t.currentDropOperation=void 0,t.currentTypeTransferred=void 0,t.currentDataTransferred=void 0),null!=a.onDragEnd){var l=n.constrained(E.x,a.minX,a.maxX),i=n.constrained(E.y,a.minY,a.maxY);g("onDragEnd",a,l,i,l-E.x,i-E.y,a.Extras)}t.currentDroppableExtras=void 0,o=!1,e.classList.remove("dragged","droppable"),r.stopPropagation()})),{update:function(e){!function(e){e=l(e),null==s.Extras&&null!=e.Extras&&(s.Extras=e.Extras),s.Dummy=e.Dummy||s.Dummy,s.minX=e.minX,s.minY=e.minY,s.maxX=e.maxX,s.maxY=e.maxY,s.Pannable=e.Pannable,s.PanSensorWidth=e.PanSensorWidth,s.PanSensorHeight=e.PanSensorHeight,s.PanSpeed=e.PanSpeed,s.onDragStart=e.onDragStart||s.onDragStart}(e),function(e){e=c(e),d.Operations=e.Operations,d.DataToOffer=e.DataToOffer}(e)}}},Object.defineProperty(e,"__esModule",{value:!0})}));
  //# sourceMappingURL=svelte-drag-and-drop-actions.js.map
  