!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).dragula=e()}((function(){return function e(t,n,o){function r(u,c){if(!n[u]){if(!t[u]){var a="function"==typeof require&&require;if(!c&&a)return a(u,!0);if(i)return i(u,!0);throw(a=new Error("Cannot find module '"+u+"'")).code="MODULE_NOT_FOUND",a}a=n[u]={exports:{}},t[u][0].call(a.exports,(function(e){return r(t[u][1][e]||e)}),a,a.exports,e,t,n,o)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;ue.left+v(e)/2:o>e.top+p(e)/2)}:function(){var t,i,u,c=e.children.length;for(t=0;tn)return i;if(!r&&u.top+u.height/2>o)return i}return null})();function i(e){return e?y(t):t}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var o=e("ticky");t.exports=function(e,t,n){e&&o((function(){e.apply(n||null,t||[])}))}},{ticky:10}],5:[function(e,t,n){"use strict";var o=e("atoa"),r=e("./debounce");t.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var o=arguments.length;if(1===o)delete i[t];else if(0===o)i={};else{if(!(t=i[t]))return e;t.splice(t.indexOf(n),1)}return e},e.emit=function(){var t=o(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var u=(i[t]||[]).slice(0);return function(){var i=o(arguments),c=this||e;if("error"===t&&!1!==n.throws&&!u.length)throw 1===i.length?i[0]:i;return u.forEach((function(o){n.async?r(o,i,c):o.apply(c,i),o._once&&e.off(t,o)})),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,n){(function(n){"use strict";var o=e("custom-event"),r=e("./eventmap"),i=n.document,u=function(e,t,n,o){return e.addEventListener(t,n,o)},c=function(e,t,n,o){return e.removeEventListener(t,n,o)},a=[];function l(e,t,n){if(t=function(e,t,n){var o,r;for(o=0;o