Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-dnd

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dnd - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

dist/ReactDnD.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactDnD=e(require("react")):t.ReactDnD=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t["default"]:t}e.__esModule=!0;var o=n(29);e.DragDropContext=r(o);var i=n(30);e.DragLayer=r(i);var a=n(31);e.DragSource=r(a);var u=n(32);e.DropTarget=r(u)},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],f=0;s=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[f++]}))}throw s.framesToPop=1,s}};t.exports=r},function(t,e,n){var r=n(17),o=n(18),i=n(10),a="[object Array]",u=Object.prototype,s=u.toString,c=r(Array,"isArray"),f=c||function(t){return i(t)&&o(t.length)&&s.call(t)==a};t.exports=f},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t){var e;if(!a(t)||f.call(t)!=u||i(t)||!c.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return o(t,function(t,e){n=e}),void 0===n||c.call(t,n)}var o=n(64),i=n(28),a=n(10),u="[object Object]",s=Object.prototype,c=s.hasOwnProperty,f=s.toString;t.exports=r},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e){}e.__esModule=!0,e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.publishSource,r=void 0===n?!0:n,o=e.clientOffset,i=void 0===o?null:o,a=e.getSourceClientOffset;d["default"](g["default"](t),"Expected sourceIds to be an array.");var u=this.getMonitor(),s=this.getRegistry();d["default"](!u.isDragging(),"Cannot call beginDrag while dragging.");for(var c=0;c<t.length;c++)d["default"](s.getSource(t[c]),"Expected sourceIds to be registered.");for(var f=null,c=t.length-1;c>=0;c--)if(u.canDragSource(t[c])){f=t[c];break}if(null!==f){var l=null;i&&(d["default"]("function"==typeof a,"When clientOffset is provided, getSourceClientOffset must be a function."),l=a(f));var p=s.getSource(f),h=p.beginDrag(u,f);d["default"](y["default"](h),"Item must be an object."),s.pinSource(f);var m=s.getSourceType(f);return{type:v,itemType:m,item:h,sourceId:f,clientOffset:i,sourceClientOffset:l,isSourcePublic:r}}}function i(t){var e=this.getMonitor();if(e.isDragging())return{type:m}}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.clientOffset,r=void 0===n?null:n;d["default"](g["default"](t),"Expected targetIds to be an array."),t=t.slice(0);var o=this.getMonitor(),i=this.getRegistry();d["default"](o.isDragging(),"Cannot call hover while not dragging."),d["default"](!o.didDrop(),"Cannot call hover after drop.");for(var a=o.getItemType(),u=0;u<t.length;u++){var s=t[u];d["default"](t.lastIndexOf(s)===u,"Expected targetIds to be unique in the passed array.");var c=i.getTarget(s);d["default"](c,"Expected targetIds to be registered.");var l=i.getTargetType(s);f["default"](l,a)&&c.hover(o,s)}return{type:b,targetIds:t,clientOffset:r}}function u(){var t=this,e=this.getMonitor(),n=this.getRegistry();d["default"](e.isDragging(),"Cannot call drop while not dragging."),d["default"](!e.didDrop(),"Cannot call drop twice during one drag operation.");var r=e.getTargetIds().filter(e.canDropOnTarget,e);r.reverse(),r.forEach(function(r,o){var i=n.getTarget(r),a=i.drop(e,r);d["default"]("undefined"==typeof a||y["default"](a),"Drop result must either be an object or undefined."),"undefined"==typeof a&&(a=0===o?{}:e.getDropResult()),t.store.dispatch({type:D,dropResult:a})})}function s(){var t=this.getMonitor(),e=this.getRegistry();d["default"](t.isDragging(),"Cannot call endDrag while not dragging.");var n=t.getSourceId(),r=e.getSource(n,!0);return r.endDrag(t,n),e.unpinSource(),{type:O}}e.__esModule=!0,e.beginDrag=o,e.publishDragSource=i,e.hover=a,e.drop=u,e.endDrag=s;var c=n(25),f=r(c),l=n(1),d=r(l),p=n(2),g=r(p),h=n(3),y=r(h),v="dnd-core/BEGIN_DRAG";e.BEGIN_DRAG=v;var m="dnd-core/PUBLISH_DRAG_SOURCE";e.PUBLISH_DRAG_SOURCE=m;var b="dnd-core/HOVER";e.HOVER=b;var D="dnd-core/DROP";e.DROP=D;var O="dnd-core/END_DRAG";e.END_DRAG=O},function(t,e){"use strict";function n(t){return{type:a,sourceId:t}}function r(t){return{type:u,targetId:t}}function o(t){return{type:s,sourceId:t}}function i(t){return{type:c,targetId:t}}e.__esModule=!0,e.addSource=n,e.addTarget=r,e.removeSource=o,e.removeTarget=i;var a="dnd-core/ADD_SOURCE";e.ADD_SOURCE=a;var u="dnd-core/ADD_TARGET";e.ADD_TARGET=u;var s="dnd-core/REMOVE_SOURCE";e.REMOVE_SOURCE=s;var c="dnd-core/REMOVE_TARGET";e.REMOVE_TARGET=c},function(t,e,n){function r(t){return null!=t&&i(o(t))}var o=n(69),i=n(18);t.exports=r},function(t,e){function n(t){return!!t&&"object"==typeof t}t.exports=n},function(t,e){"use strict";function n(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++){if(!o.call(e,n[i])||t[n[i]]!==e[n[i]])return!1;var a=t[n[i]],u=e[n[i]];if(a!==u)return!1}return!0}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{"default":t}};e.__esModule=!0;var o=n(13),i=r(o);e.isDisposable=i["default"];var a=n(45),u=r(a);e.Disposable=u["default"];var s=n(44),c=r(s);e.CompositeDisposable=c["default"];var f=n(46),l=r(f);e.SerialDisposable=l["default"]},function(t,e){"use strict";function n(t){return Boolean(t&&"function"==typeof t.dispose)}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){function r(t,e,n){if(e!==e)return o(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}var o=n(70);t.exports=r},function(t,e,n){function r(t,e){var n=t.data,r="string"==typeof e||o(e)?n.set.has(e):n.hash[e];return r?0:-1}var o=n(3);t.exports=r},function(t,e,n){(function(e){function r(t){return u&&a?new o(t):null}var o=n(61),i=n(17),a=i(e,"Set"),u=i(Object,"create");t.exports=r}).call(e,function(){return this}())},function(t,e,n){function r(t,e){var n=null==t?void 0:t[e];return o(n)?n:void 0}var o=n(74);t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&r>=t}var r=9007199254740991;t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.DecoratedComponent,n=t.createHandler,r=t.createMonitor,a=t.createConnector,d=t.registerHandler,g=t.containerDisplayName,y=t.getType,v=t.collect,b=t.options,O=b.arePropsEqual,_=void 0===O?h["default"]:O,x=e.displayName||e.name||"Component";return function(t){function h(e,i){o(this,h),t.call(this,e,i),this.handleChange=this.handleChange.bind(this),this.handleChildRef=this.handleChildRef.bind(this),m["default"]("object"==typeof this.context.dragDropManager,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",x,x),this.manager=this.context.dragDropManager,this.handlerMonitor=r(this.manager),this.handler=n(this.handlerMonitor),this.disposable=new l.SerialDisposable,this.receiveProps(e),this.state=this.getCurrentState()}return i(h,t),h.prototype.getHandlerId=function(){return this.handlerId},h.prototype.getDecoratedComponentInstance=function(){return this.decoratedComponentInstance},h.prototype.shouldComponentUpdate=function(t,e){return!_(t,this.props)||!p["default"](e,this.state)},s(h,null,[{key:"DecoratedComponent",value:e,enumerable:!0},{key:"displayName",value:g+"("+x+")",enumerable:!0},{key:"contextTypes",value:{dragDropManager:c.PropTypes.object.isRequired},enumerable:!0}]),h.prototype.componentWillReceiveProps=function(t){_(t,this.props)||(this.receiveProps(t),this.handleChange())},h.prototype.componentWillUnmount=function(){this.disposable.dispose()},h.prototype.receiveProps=function(t){this.handler.receiveProps(t),this.receiveType(y(t))},h.prototype.receiveType=function(t){if(t!==this.currentType){this.currentType=t;var e=d(t,this.handler,this.manager),n=e.handlerId,r=e.unregister,o=a(this.manager.getBackend()),i=D["default"](o,n),u=i.handlerConnector,s=i.disposable;this.handlerId=n,this.handlerConnector=u,this.handlerMonitor.receiveHandlerId(n);var c=this.manager.getMonitor(),f=c.subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new l.CompositeDisposable(new l.Disposable(f),new l.Disposable(r),s))}},h.prototype.handleChange=function(){var t=this.getCurrentState();p["default"](t,this.state)||this.setState(t)},h.prototype.handleChildRef=function(t){this.decoratedComponentInstance=t,this.handler.receiveComponent(t)},h.prototype.getCurrentState=function(){var t=v(this.handlerConnector,this.handlerMonitor);return t},h.prototype.render=function(){return f["default"].createElement(e,u({},this.props,this.state,{ref:this.handleChildRef}))},h}(c.Component)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=a;var c=n(5),f=r(c),l=n(12),d=n(11),p=r(d),g=n(21),h=r(g),y=n(4),v=(r(y),n(1)),m=r(v),b=n(33),D=r(b);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return"string"==typeof t||"symbol"==typeof t||e&&a["default"](t)&&t.every(function(t){return o(t,!1)})}e.__esModule=!0,e["default"]=o;var i=n(2),a=r(i);t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(t===e)return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++){if(!o.call(e,n[i]))return!1;var a=t[n[i]],u=e[n[i]];if(a!==u||"object"==typeof a||"object"==typeof u)return!1}return!0}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return t&&t.constructor===Symbol?"symbol":typeof t}function a(t){d["default"]("function"==typeof t.canDrag,"Expected canDrag to be a function."),d["default"]("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),d["default"]("function"==typeof t.endDrag,"Expected endDrag to be a function.")}function u(t){d["default"]("function"==typeof t.canDrop,"Expected canDrop to be a function."),d["default"]("function"==typeof t.hover,"Expected hover to be a function."),d["default"]("function"==typeof t.drop,"Expected beginDrag to be a function.")}function s(t,e){return e&&y["default"](t)?void t.forEach(function(t){return s(t,!1)}):void d["default"]("string"==typeof t||"symbol"===("undefined"==typeof t?"undefined":i(t)),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function c(t){var e=m["default"]().toString();switch(t){case D.SOURCE:return"S"+e;case D.TARGET:return"T"+e;default:d["default"](!1,"Unknown role: "+t)}}function f(t){switch(t[0]){case"S":return D.SOURCE;case"T":return D.TARGET;default:d["default"](!1,"Cannot parse handler ID: "+t)}}e.__esModule=!0;var l=n(1),d=r(l),p=n(57),g=r(p),h=n(2),y=r(h),v=n(56),m=r(v),b=n(8),D=g["default"]({SOURCE:null,TARGET:null}),O=function(){function t(e){o(this,t),this.store=e,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return t.prototype.addSource=function(t,e){s(t),a(e);var n=this.addHandler(D.SOURCE,t,e);return this.store.dispatch(b.addSource(n)),n},t.prototype.addTarget=function(t,e){s(t,!0),u(e);var n=this.addHandler(D.TARGET,t,e);return this.store.dispatch(b.addTarget(n)),n},t.prototype.addHandler=function(t,e,n){var r=c(t);return this.types[r]=e,this.handlers[r]=n,r},t.prototype.containsHandler=function(t){var e=this;return Object.keys(this.handlers).some(function(n){return e.handlers[n]===t})},t.prototype.getSource=function(t,e){d["default"](this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.handlers[t];return r},t.prototype.getTarget=function(t){return d["default"](this.isTargetId(t),"Expected a valid target ID."),this.handlers[t]},t.prototype.getSourceType=function(t){return d["default"](this.isSourceId(t),"Expected a valid source ID."),this.types[t]},t.prototype.getTargetType=function(t){return d["default"](this.isTargetId(t),"Expected a valid target ID."),this.types[t]},t.prototype.isSourceId=function(t){var e=f(t);return e===D.SOURCE},t.prototype.isTargetId=function(t){var e=f(t);return e===D.TARGET},t.prototype.removeSource=function(t){d["default"](this.getSource(t),"Expected an existing source."),this.store.dispatch(b.removeSource(t)),delete this.handlers[t],delete this.types[t]},t.prototype.removeTarget=function(t){d["default"](this.getTarget(t),"Expected an existing target."),this.store.dispatch(b.removeTarget(t)),delete this.handlers[t],delete this.types[t]},t.prototype.pinSource=function(t){var e=this.getSource(t);d["default"](e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e},t.prototype.unpinSource=function(){d["default"](this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},t}();e["default"]=O,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){switch(void 0===t&&(t=d),e.type){case f.HOVER:break;case l.ADD_SOURCE:case l.ADD_TARGET:case l.REMOVE_TARGET:case l.REMOVE_SOURCE:return d;case f.BEGIN_DRAG:case f.PUBLISH_DRAG_SOURCE:case f.END_DRAG:case f.DROP:default:return p}var r=e.targetIds,o=n.targetIds,i=u["default"](r,o),a=!1;if(0===i.length){for(var s=0;s<r.length;s++)if(r[s]!==o[s]){a=!0;break}}else a=!0;if(!a)return d;var c=o[o.length-1],g=r[r.length-1];return c!==g&&(c&&i.push(c),g&&i.push(g)),i}function i(t,e){return t===d?!1:t===p||"undefined"==typeof e?!0:c["default"](e,t).length>0}e.__esModule=!0,e["default"]=o,e.areDirty=i;var a=n(60),u=r(a),s=n(58),c=r(s),f=n(7),l=n(8),d=[],p=[]},function(t,e,n){"use strict";function r(t,e){return t===e?!0:t&&e&&t.x===e.x&&t.y===e.y}function o(t,e){switch(void 0===t&&(t=c),e.type){case s.BEGIN_DRAG:return{initialSourceClientOffset:e.sourceClientOffset,initialClientOffset:e.clientOffset,clientOffset:e.clientOffset};case s.HOVER:return r(t.clientOffset,e.clientOffset)?t:u({},t,{clientOffset:e.clientOffset});case s.END_DRAG:case s.DROP:return c;default:return t}}function i(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return e&&n&&r?{x:e.x+r.x-n.x,y:e.y+r.y-n.y}:null}function a(t){var e=t.clientOffset,n=t.initialClientOffset;return e&&n?{x:e.x-n.x,y:e.y-n.y}:null}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e["default"]=o,e.getSourceClientOffset=i,e.getDifferenceFromInitialOffset=a;var s=n(7),c={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return a["default"](t)?t.some(function(t){return t===e}):t===e}e.__esModule=!0,e["default"]=o;var i=n(2),a=r(i);t.exports=e["default"]},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=o(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,i=o(n.length-e,0),a=Array(i);++r<i;)a[r]=n[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,n[0],a);case 2:return t.call(this,n[0],n[1],a)}var u=Array(e+1);for(r=-1;++r<e;)u[r]=n[r];return u[e]=a,t.apply(this,u)}}var r="Expected a function",o=Math.max;t.exports=n},function(t,e,n){function r(t,e){var n=t?t.length:0,r=[];if(!n)return r;var s=-1,c=o,f=!0,l=f&&e.length>=u?a(e):null,d=e.length;l&&(c=i,f=!1,e=l);t:for(;++s<n;){var p=t[s];if(f&&p===p){for(var g=d;g--;)if(e[g]===p)continue t;r.push(p)}else c(e,p,0)<0&&r.push(p)}return r}var o=n(14),i=n(15),a=n(16),u=200;t.exports=r},function(t,e,n){function r(t){return i(t)&&o(t)&&u.call(t,"callee")&&!s.call(t,"callee")}var o=n(9),i=n(10),a=Object.prototype,u=a.hasOwnProperty,s=a.propertyIsEnumerable;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){y["default"].apply(void 0,["DragDropContext","backend"].concat(s.call(arguments)));var e=void 0;e="object"==typeof t&&"function"==typeof t["default"]?t["default"]:t,g["default"]("function"==typeof e,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://gaearon.github.io/react-dnd/docs-drag-drop-context.html");var n={dragDropManager:new d.DragDropManager(e)};return function(t){var e=t.displayName||t.name||"Component";return function(r){function a(){o(this,a),r.apply(this,arguments)}return i(a,r),a.prototype.getDecoratedComponentInstance=function(){return this.refs.child},a.prototype.getManager=function(){return n.dragDropManager},a.prototype.getChildContext=function(){return n},a.prototype.render=function(){return l["default"].createElement(t,u({},this.props,{ref:"child"}))},c(a,null,[{key:"DecoratedComponent",value:t,enumerable:!0},{key:"displayName",value:"DragDropContext("+e+")",enumerable:!0},{key:"childContextTypes",value:{dragDropManager:f.PropTypes.object.isRequired},enumerable:!0}]),a}(f.Component)}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=Array.prototype.slice,c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=a;var f=n(5),l=r(f),d=n(52),p=n(1),g=r(p),h=n(6),y=r(h);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return O["default"].apply(void 0,["DragLayer","collect[, options]"].concat(s.call(arguments))),b["default"]("function"==typeof t,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-layer.html",t),b["default"](v["default"](e),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-layer.html',e),function(n){var r=e.arePropsEqual,a=void 0===r?h["default"]:r,s=n.displayName||n.name||"Component";return function(e){function r(t,n){o(this,r),e.call(this,t),this.handleChange=this.handleChange.bind(this),this.manager=n.dragDropManager,b["default"]("object"==typeof this.manager,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",s,s),this.state=this.getCurrentState()}return i(r,e),r.prototype.getDecoratedComponentInstance=function(){return this.refs.child},r.prototype.shouldComponentUpdate=function(t,e){return!a(t,this.props)||!p["default"](e,this.state)},c(r,null,[{key:"DecoratedComponent",value:n,enumerable:!0},{key:"displayName",value:"DragLayer("+s+")",enumerable:!0},{key:"contextTypes",value:{dragDropManager:f.PropTypes.object.isRequired},enumerable:!0}]),r.prototype.componentDidMount=function(){var t=this.manager.getMonitor();this.unsubscribe=t.subscribeToOffsetChange(this.handleChange)},r.prototype.componentWillUnmount=function(){this.unsubscribe()},r.prototype.handleChange=function(){var t=this.getCurrentState();p["default"](t,this.state)||this.setState(t)},r.prototype.getCurrentState=function(){var e=this.manager.getMonitor();return t(e)},r.prototype.render=function(){return l["default"].createElement(n,u({},this.props,this.state,{ref:"child"}))},r}(f.Component)}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=Array.prototype.slice,c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=a;var f=n(5),l=r(f),d=n(11),p=r(d),g=n(21),h=r(g),y=n(4),v=r(y),m=n(1),b=r(m),D=n(6),O=r(D);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];l["default"].apply(void 0,["DragSource","type, spec, collect[, options]"].concat(i.call(arguments)));var o=t;"function"!=typeof t&&(u["default"](x["default"](t),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',t),o=function(){return t}),u["default"](c["default"](e),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',e);var a=v["default"](e);return u["default"]("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',n),u["default"](c["default"](r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',n),function(t){return p["default"]({connectBackend:function(t,e){return t.connectDragSource(e)},containerDisplayName:"DragSource",createHandler:a,registerHandler:h["default"],createMonitor:b["default"],createConnector:O["default"],DecoratedComponent:t,getType:o,collect:n,options:r})}}e.__esModule=!0;var i=Array.prototype.slice;e["default"]=o;var a=n(1),u=r(a),s=n(4),c=r(s),f=n(6),l=r(f),d=n(19),p=r(d),g=n(41),h=r(g),y=n(36),v=r(y),m=n(37),b=r(m),D=n(35),O=r(D),_=n(20),x=r(_);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];l["default"].apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(i.call(arguments)));var o=t;"function"!=typeof t&&(u["default"](x["default"](t,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',t),o=function(){return t}),u["default"](c["default"](e),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',e);var a=v["default"](e);return u["default"]("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',n),u["default"](c["default"](r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',n),function(t){return p["default"]({connectBackend:function(t,e){return t.connectDropTarget(e)},containerDisplayName:"DropTarget",createHandler:a,registerHandler:h["default"],createMonitor:b["default"],createConnector:O["default"],DecoratedComponent:t,getType:o,collect:n,options:r})}}e.__esModule=!0;var i=Array.prototype.slice;e["default"]=o;var a=n(1),u=r(a),s=n(4),c=r(s),f=n(6),l=r(f),d=n(19),p=r(d),g=n(42),h=r(g),y=n(39),v=r(y),m=n(40),b=r(m),D=n(38),O=r(D),_=n(20),x=r(_);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n=new u.CompositeDisposable,r={};return Object.keys(t).forEach(function(o){var i=a["default"](e,t[o]),u=i.disposable,s=i.ref;n.add(u),r[o]=function(){return s}}),{disposable:n,handlerConnector:r}}e.__esModule=!0,e["default"]=o;var i=n(34),a=r(i),u=n(12);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){function n(u,l){if(f.isValidElement(u)){if("string"!=typeof u.type){var d=u.type.displayName||u.type.name||"the component";throw new Error("Only native element nodes can now be passed to "+e.name+"(). "+("You can either wrap "+d+" into a <div>, or turn it into a ")+"drag source or a drop target itself.")}var p=u;return s["default"](p,function(t){return n(t,l)})}var g=u;if(g!=o||i!=l&&!a["default"](i,l)){if(o=g,i=l,!g)return void r.setDisposable(null);var h=e(t,g,l);r.setDisposable(new c.Disposable(h))}}var r=new c.SerialDisposable,o=null,i=null;return{ref:n,disposable:r}}e.__esModule=!0,e["default"]=o;var i=n(11),a=r(i),u=n(43),s=r(u),c=n(12),f=n(5);t.exports=e["default"]},function(t,e){"use strict";function n(t){return{dragSource:function(){return t.connectDragSource.apply(t,arguments)},dragPreview:function(){return t.connectDragPreview.apply(t,arguments)}}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){Object.keys(t).forEach(function(e){u["default"](c.indexOf(e)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',c.join(", "),e),u["default"]("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html",e,e,t[e])}),f.forEach(function(e){u["default"]("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html",e,e,t[e])});var e=function(){function e(t){o(this,e),this.monitor=t,this.props=null,this.component=null}return e.prototype.receiveProps=function(t){this.props=t},e.prototype.receiveComponent=function(t){this.component=t},e.prototype.canDrag=function(){return t.canDrag?t.canDrag(this.props,this.monitor):!0},e.prototype.isDragging=function(e,n){return t.isDragging?t.isDragging(this.props,this.monitor):n===e.getSourceId()},e.prototype.beginDrag=function(){var e=t.beginDrag(this.props,this.monitor,this.component);return e},e.prototype.endDrag=function(){t.endDrag&&t.endDrag(this.props,this.monitor,this.component)},e}();return function(t){return new e(t)}}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=n(4),c=(r(s),["canDrag","beginDrag","canDrag","isDragging","endDrag"]),f=["beginDrag"];t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new f(t)}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=!1,c=!1,f=function(){function t(e){o(this,t),this.internalMonitor=e.getMonitor()}return t.prototype.receiveHandlerId=function(t){this.sourceId=t},t.prototype.canDrag=function(){u["default"](!s,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drag-source-monitor.html");try{return s=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{s=!1}},t.prototype.isDragging=function(){u["default"](!c,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drag-source-monitor.html");try{return c=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{c=!1}},t.prototype.getItemType=function(){return this.internalMonitor.getItemType()},t.prototype.getItem=function(){return this.internalMonitor.getItem()},t.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},t.prototype.didDrop=function(){return this.internalMonitor.didDrop()},t.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();t.exports=e["default"]},function(t,e){"use strict";function n(t){return{dropTarget:function(){return t.connectDropTarget.apply(t,arguments)}}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){Object.keys(t).forEach(function(e){u["default"](c.indexOf(e)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',c.join(", "),e),
u["default"]("function"==typeof t[e],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html",e,e,t[e])});var e=function(){function e(t){o(this,e),this.monitor=t,this.props=null,this.component=null}return e.prototype.receiveProps=function(t){this.props=t},e.prototype.receiveMonitor=function(t){this.monitor=t},e.prototype.receiveComponent=function(t){this.component=t},e.prototype.canDrop=function(){return t.canDrop?t.canDrop(this.props,this.monitor):!0},e.prototype.hover=function(){t.hover&&t.hover(this.props,this.monitor,this.component)},e.prototype.drop=function(){if(t.drop){var e=t.drop(this.props,this.monitor,this.component);return e}},e}();return function(t){return new e(t)}}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=n(4),c=(r(s),["canDrop","hover","drop"]);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new c(t)}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=!1,c=function(){function t(e){o(this,t),this.internalMonitor=e.getMonitor()}return t.prototype.receiveHandlerId=function(t){this.targetId=t},t.prototype.canDrop=function(){u["default"](!s,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drop-target-monitor.html");try{return s=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{s=!1}},t.prototype.isOver=function(t){return this.internalMonitor.isOverTarget(this.targetId,t)},t.prototype.getItemType=function(){return this.internalMonitor.getItemType()},t.prototype.getItem=function(){return this.internalMonitor.getItem()},t.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},t.prototype.didDrop=function(){return this.internalMonitor.didDrop()},t.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();t.exports=e["default"]},function(t,e){"use strict";function n(t,e,n){function r(){o.removeSource(i)}var o=n.getRegistry(),i=o.addSource(t,e);return{handlerId:i,unregister:r}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e){"use strict";function n(t,e,n){function r(){o.removeTarget(i)}var o=n.getRegistry(),i=o.addTarget(t,e);return{handlerId:i,unregister:r}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n=t.ref;return a["default"]("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),u.cloneElement(t,{ref:function(t){e(t),n&&n(t)}})}e.__esModule=!0,e["default"]=o;var i=n(1),a=r(i),u=n(5);t.exports=e["default"]},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{"default":t}},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};e.__esModule=!0;var i=n(13),a=r(i),u=function(){function t(){for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];o(this,t),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var i=0;i<n.length;i++)if(!a["default"](n[i]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return t.prototype.add=function(t){this.isDisposed?t.dispose():this.disposables.push(t)},t.prototype.remove=function(t){if(this.isDisposed)return!1;var e=this.disposables.indexOf(t);return-1===e?!1:(this.disposables.splice(e,1),t.dispose(),!0)},t.prototype.dispose=function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),n=0;t>n;n++)e[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;t>n;n++)e[n].dispose()}},t}();e["default"]=u,t.exports=e["default"]},function(t,e){"use strict";var n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.__esModule=!0;var o=function(){},i=function(){function t(e){n(this,t),this.isDisposed=!1,this.action=e||o}return t.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},r(t,null,[{key:"empty",enumerable:!0,value:{dispose:o}}]),t}();e["default"]=i,t.exports=e["default"]},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{"default":t}},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};e.__esModule=!0;var i=n(13),a=r(i),u=function(){function t(){o(this,t),this.isDisposed=!1,this.current=null}return t.prototype.getDisposable=function(){return this.current},t.prototype.setDisposable=function(){var t=void 0===arguments[0]?null:arguments[0];if(null!=t&&!a["default"](t))throw new Error("Expected either an empty value or a valid disposable");var e=this.isDisposed,n=void 0;e||(n=this.current,this.current=t),n&&n.dispose(),e&&t&&t.dispose()},t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var t=this.current;this.current=null,t&&t.dispose()}},t}();e["default"]=u,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=n(77),u=o(a),s=n(54),c=o(s),f=n(7),l=r(f),d=n(48),p=o(d),g=n(22),h=(o(g),function(){function t(e){i(this,t);var n=u["default"](c["default"]);this.store=n,this.monitor=new p["default"](n),this.registry=this.monitor.registry,this.backend=e(this),n.subscribe(this.handleRefCountChange.bind(this))}return t.prototype.handleRefCountChange=function(){var t=this.store.getState().refCount>0;t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)},t.prototype.getMonitor=function(){return this.monitor},t.prototype.getBackend=function(){return this.backend},t.prototype.getRegistry=function(){return this.registry},t.prototype.getActions=function(){function t(t){return function(){var r=t.apply(e,arguments);"undefined"!=typeof r&&n(r)}}var e=this,n=this.store.dispatch;return Object.keys(l).filter(function(t){return"function"==typeof l[t]}).reduce(function(e,n){return e[n]=t(l[n]),e},{})},t}());e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(1),a=r(i),u=n(25),s=r(u),c=n(2),f=r(c),l=n(22),d=r(l),p=n(24),g=n(23),h=function(){function t(e){o(this,t),this.store=e,this.registry=new d["default"](e)}return t.prototype.subscribeToStateChange=function(t){var e=this,n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.handlerIds;a["default"]("function"==typeof t,"listener must be a function."),a["default"]("undefined"==typeof r||f["default"](r),"handlerIds, when specified, must be an array of strings.");var o=function(){g.areDirty(e.store.getState().dirtyHandlerIds,r)&&t()};return this.store.subscribe(o)},t.prototype.subscribeToOffsetChange=function(t){var e=this;a["default"]("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset,r=function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())};return this.store.subscribe(r)},t.prototype.canDragSource=function(t){var e=this.registry.getSource(t);return a["default"](e,"Expected to find a valid source."),this.isDragging()?!1:e.canDrag(this,t)},t.prototype.canDropOnTarget=function(t){var e=this.registry.getTarget(t);if(a["default"](e,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(t),r=this.getItemType();return s["default"](n,r)&&e.canDrop(this,t)},t.prototype.isDragging=function(){return Boolean(this.getItemType())},t.prototype.isDraggingSource=function(t){var e=this.registry.getSource(t,!0);if(a["default"](e,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var n=this.registry.getSourceType(t),r=this.getItemType();return n!==r?!1:e.isDragging(this,t)},t.prototype.isOverTarget=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.shallow,r=void 0===n?!1:n;if(!this.isDragging())return!1;var o=this.registry.getTargetType(t),i=this.getItemType();if(!s["default"](o,i))return!1;var a=this.getTargetIds();if(!a.length)return!1;var u=a.indexOf(t);return r?u===a.length-1:u>-1},t.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},t.prototype.getItem=function(){return this.store.getState().dragOperation.item},t.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},t.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},t.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},t.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},t.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},t.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},t.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},t.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},t.prototype.getSourceClientOffset=function(){return p.getSourceClientOffset(this.store.getState().dragOffset)},t.prototype.getDifferenceFromInitialOffset=function(){return p.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},t}();e["default"]=h,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(){n(this,t)}return t.prototype.canDrag=function(){return!0},t.prototype.isDragging=function(t,e){return e===t.getSourceId()},t.prototype.endDrag=function(){},t}();e["default"]=r,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(){n(this,t)}return t.prototype.canDrop=function(){return!0},t.prototype.hover=function(){},t.prototype.drop=function(){},t}();e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new s(t)}e.__esModule=!0,e["default"]=i;var a=n(76),u=r(a),s=function(){function t(e){o(this,t),this.actions=e.getActions()}return t.prototype.setup=function(){this.didCallSetup=!0},t.prototype.teardown=function(){this.didCallTeardown=!0},t.prototype.connectDragSource=function(){return u["default"]},t.prototype.connectDragPreview=function(){return u["default"]},t.prototype.connectDropTarget=function(){return u["default"]},t.prototype.simulateBeginDrag=function(t,e){this.actions.beginDrag(t,e)},t.prototype.simulatePublishDragSource=function(){this.actions.publishDragSource()},t.prototype.simulateHover=function(t,e){this.actions.hover(t,e)},t.prototype.simulateDrop=function(){this.actions.drop()},t.prototype.simulateEndDrag=function(){this.actions.endDrag()},t}();t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t["default"]:t}e.__esModule=!0;var o=n(47);e.DragDropManager=r(o);var i=n(49);e.DragSource=r(i);var a=n(50);e.DropTarget=r(a);var u=n(51);e.createTestBackend=r(u)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){switch(void 0===t&&(t=f),e.type){case a.BEGIN_DRAG:return i({},t,{itemType:e.itemType,item:e.item,sourceId:e.sourceId,isSourcePublic:e.isSourcePublic,dropResult:null,didDrop:!1});case a.PUBLISH_DRAG_SOURCE:return i({},t,{isSourcePublic:!0});case a.HOVER:return i({},t,{targetIds:e.targetIds});case a.PUBLISH_DRAG_SOURCE:return i({},t,{isSourcePublic:!0});case u.REMOVE_TARGET:return-1===t.targetIds.indexOf(e.targetId)?t:i({},t,{targetIds:c["default"](t.targetIds,e.targetId)});case a.DROP:return i({},t,{dropResult:e.dropResult,didDrop:!0,targetIds:[]});case a.END_DRAG:return i({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e["default"]=o;var a=n(7),u=n(8),s=n(59),c=r(s),f={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(24),i=r(o),a=n(53),u=r(a),s=n(55),c=r(s),f=n(23),l=r(f);e["default"]=function(t,e){return void 0===t&&(t={}),{dirtyHandlerIds:l["default"](t.dirtyHandlerIds,e,t.dragOperation),dragOffset:i["default"](t.dragOffset,e),refCount:c["default"](t.refCount,e),dragOperation:u["default"](t.dragOperation,e)}},t.exports=e["default"]},function(t,e,n){"use strict";function r(t,e){switch(void 0===t&&(t=0),e.type){case o.ADD_SOURCE:case o.ADD_TARGET:return t+1;case o.REMOVE_SOURCE:case o.REMOVE_TARGET:return t-1;default:return t}}e.__esModule=!0,e["default"]=r;var o=n(8);t.exports=e["default"]},function(t,e){"use strict";function n(){return r++}e.__esModule=!0,e["default"]=n;var r=0;t.exports=e["default"]},function(t,e){"use strict";var n=function(t){var e,n={};if(!(t instanceof Object)||Array.isArray(t))throw new Error("keyMirror(...): Argument must be an object.");for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=n},function(t,e,n){var r=n(14),o=n(15),i=n(16),a=n(9),u=n(26),s=u(function(t){for(var e=t.length,n=e,u=Array(g),s=r,c=!0,f=[];n--;){var l=t[n]=a(l=t[n])?l:[];u[n]=c&&l.length>=120?i(n&&l):null}var d=t[0],p=-1,g=d?d.length:0,h=u[0];t:for(;++p<g;)if(l=d[p],(h?o(h,l):s(f,l,0))<0){for(var n=e;--n;){var y=u[n];if((y?o(y,l):s(t[n],l,0))<0)continue t}h&&h.push(l),f.push(l)}return f});t.exports=s},function(t,e,n){var r=n(27),o=n(9),i=n(26),a=i(function(t,e){return o(t)?r(t,e):[]});t.exports=a},function(t,e,n){function r(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(u(n))var r=r?o(i(r,n),i(n,r)):n}return r?a(r):[]}var o=n(62),i=n(27),a=n(66),u=n(9);t.exports=r},function(t,e,n){(function(e){function r(t){var e=t?t.length:0;for(this.data={hash:u(null),set:new a};e--;)this.push(t[e])}var o=n(67),i=n(17),a=i(e,"Set"),u=i(Object,"create");r.prototype.push=o,t.exports=r}).call(e,function(){return this}())},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(68),o=r();t.exports=o},function(t,e,n){function r(t,e){return o(t,e,i)}var o=n(63),i=n(75);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t,e){var n=-1,r=o,s=t.length,c=!0,f=c&&s>=u,l=f?a():null,d=[];l?(r=i,c=!1):(f=!1,l=e?[]:d);t:for(;++n<s;){var p=t[n],g=e?e(p,n,t):p;if(c&&p===p){for(var h=l.length;h--;)if(l[h]===g)continue t;e&&l.push(g),d.push(p)}else r(l,g,0)<0&&((e||f)&&l.push(g),d.push(p))}return d}var o=n(14),i=n(15),a=n(16),u=200;t.exports=r},function(t,e,n){function r(t){var e=this.data;"string"==typeof t||o(t)?e.set.add(t):e.hash[t]=!0}var o=n(3);t.exports=r},function(t,e,n){function r(t){return function(e,n,r){for(var i=o(e),a=r(e),u=a.length,s=t?u:-1;t?s--:++s<u;){var c=a[s];if(n(i[c],c,i)===!1)break}return e}}var o=n(72);t.exports=r},function(t,e,n){var r=n(65),o=r("length");t.exports=o},function(t,e){function n(t,e,n){for(var r=t.length,o=e+(n?0:-1);n?o--:++o<r;){var i=t[o];if(i!==i)return o}return-1}t.exports=n},function(t,e){function n(t,e){return t="number"==typeof t||r.test(t)?+t:-1,e=null==e?o:e,t>-1&&t%1==0&&e>t}var r=/^\d+$/,o=9007199254740991;t.exports=n},function(t,e,n){function r(t){return o(t)?t:Object(t)}var o=n(3);t.exports=r},function(t,e,n){function r(t){return o(t)&&u.call(t)==i}var o=n(3),i="[object Function]",a=Object.prototype,u=a.toString;t.exports=r},function(t,e,n){function r(t){return null==t?!1:o(t)?f.test(s.call(t)):i(t)&&a.test(t)}var o=n(73),i=n(10),a=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){if(null==t)return[];s(t)||(t=Object(t));var e=t.length;e=e&&u(e)&&(i(t)||o(t))&&e||0;for(var n=t.constructor,r=-1,c="function"==typeof n&&n.prototype===t,l=Array(e),d=e>0;++r<e;)l[r]=r+"";for(var p in t)d&&a(p,e)||"constructor"==p&&(c||!f.call(t,p))||l.push(p);return l}var o=n(28),i=n(2),a=n(71),u=n(18),s=n(3),c=Object.prototype,f=c.hasOwnProperty;t.exports=r},function(t,e){function n(){}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){function n(){return c}function r(t){return f.push(t),function(){var e=f.indexOf(t);f.splice(e,1)}}function o(t){if(!a["default"](t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,c=s(c,t)}finally{l=!1}return f.slice().forEach(function(t){return t()}),t}function i(t){s=t,o({type:u.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,c=e,f=[],l=!1;return o({type:u.INIT}),{dispatch:o,subscribe:r,getState:n,replaceReducer:i}}e.__esModule=!0,e["default"]=o;var i=n(78),a=r(i),u={INIT:"@@redux/INIT"};e.ActionTypes=u},function(t,e){"use strict";function n(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&r(n)===r(Object)}e.__esModule=!0,e["default"]=n;var r=function(t){return Function.prototype.toString.call(t)};t.exports=e["default"]}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactDnD=e(require("react")):t.ReactDnD=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t["default"]:t}e.__esModule=!0;var o=n(29);e.DragDropContext=r(o);var i=n(30);e.DragLayer=r(i);var a=n(31);e.DragSource=r(a);var u=n(32);e.DropTarget=r(u)},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],f=0;s=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[f++]}))}throw s.framesToPop=1,s}};t.exports=r},function(t,e,n){var r=n(17),o=n(18),i=n(10),a="[object Array]",u=Object.prototype,s=u.toString,c=r(Array,"isArray"),f=c||function(t){return i(t)&&o(t.length)&&s.call(t)==a};t.exports=f},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t){var e;if(!a(t)||f.call(t)!=u||i(t)||!c.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return o(t,function(t,e){n=e}),void 0===n||c.call(t,n)}var o=n(64),i=n(28),a=n(10),u="[object Object]",s=Object.prototype,c=s.hasOwnProperty,f=s.toString;t.exports=r},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e){}e.__esModule=!0,e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.publishSource,r=void 0===n?!0:n,o=e.clientOffset,i=void 0===o?null:o,a=e.getSourceClientOffset;d["default"](g["default"](t),"Expected sourceIds to be an array.");var u=this.getMonitor(),s=this.getRegistry();d["default"](!u.isDragging(),"Cannot call beginDrag while dragging.");for(var c=0;c<t.length;c++)d["default"](s.getSource(t[c]),"Expected sourceIds to be registered.");for(var f=null,c=t.length-1;c>=0;c--)if(u.canDragSource(t[c])){f=t[c];break}if(null!==f){var l=null;i&&(d["default"]("function"==typeof a,"When clientOffset is provided, getSourceClientOffset must be a function."),l=a(f));var p=s.getSource(f),h=p.beginDrag(u,f);d["default"](y["default"](h),"Item must be an object."),s.pinSource(f);var m=s.getSourceType(f);return{type:v,itemType:m,item:h,sourceId:f,clientOffset:i,sourceClientOffset:l,isSourcePublic:r}}}function i(t){var e=this.getMonitor();if(e.isDragging())return{type:m}}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.clientOffset,r=void 0===n?null:n;d["default"](g["default"](t),"Expected targetIds to be an array."),t=t.slice(0);var o=this.getMonitor(),i=this.getRegistry();d["default"](o.isDragging(),"Cannot call hover while not dragging."),d["default"](!o.didDrop(),"Cannot call hover after drop.");for(var a=o.getItemType(),u=0;u<t.length;u++){var s=t[u];d["default"](t.lastIndexOf(s)===u,"Expected targetIds to be unique in the passed array.");var c=i.getTarget(s);d["default"](c,"Expected targetIds to be registered.");var l=i.getTargetType(s);f["default"](l,a)&&c.hover(o,s)}return{type:b,targetIds:t,clientOffset:r}}function u(){var t=this,e=this.getMonitor(),n=this.getRegistry();d["default"](e.isDragging(),"Cannot call drop while not dragging."),d["default"](!e.didDrop(),"Cannot call drop twice during one drag operation.");var r=e.getTargetIds().filter(e.canDropOnTarget,e);r.reverse(),r.forEach(function(r,o){var i=n.getTarget(r),a=i.drop(e,r);d["default"]("undefined"==typeof a||y["default"](a),"Drop result must either be an object or undefined."),"undefined"==typeof a&&(a=0===o?{}:e.getDropResult()),t.store.dispatch({type:D,dropResult:a})})}function s(){var t=this.getMonitor(),e=this.getRegistry();d["default"](t.isDragging(),"Cannot call endDrag while not dragging.");var n=t.getSourceId(),r=e.getSource(n,!0);return r.endDrag(t,n),e.unpinSource(),{type:O}}e.__esModule=!0,e.beginDrag=o,e.publishDragSource=i,e.hover=a,e.drop=u,e.endDrag=s;var c=n(25),f=r(c),l=n(1),d=r(l),p=n(2),g=r(p),h=n(3),y=r(h),v="dnd-core/BEGIN_DRAG";e.BEGIN_DRAG=v;var m="dnd-core/PUBLISH_DRAG_SOURCE";e.PUBLISH_DRAG_SOURCE=m;var b="dnd-core/HOVER";e.HOVER=b;var D="dnd-core/DROP";e.DROP=D;var O="dnd-core/END_DRAG";e.END_DRAG=O},function(t,e){"use strict";function n(t){return{type:a,sourceId:t}}function r(t){return{type:u,targetId:t}}function o(t){return{type:s,sourceId:t}}function i(t){return{type:c,targetId:t}}e.__esModule=!0,e.addSource=n,e.addTarget=r,e.removeSource=o,e.removeTarget=i;var a="dnd-core/ADD_SOURCE";e.ADD_SOURCE=a;var u="dnd-core/ADD_TARGET";e.ADD_TARGET=u;var s="dnd-core/REMOVE_SOURCE";e.REMOVE_SOURCE=s;var c="dnd-core/REMOVE_TARGET";e.REMOVE_TARGET=c},function(t,e,n){function r(t){return null!=t&&i(o(t))}var o=n(69),i=n(18);t.exports=r},function(t,e){function n(t){return!!t&&"object"==typeof t}t.exports=n},function(t,e){"use strict";function n(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++){if(!o.call(e,n[i])||t[n[i]]!==e[n[i]])return!1;var a=t[n[i]],u=e[n[i]];if(a!==u)return!1}return!0}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{"default":t}};e.__esModule=!0;var o=n(13),i=r(o);e.isDisposable=i["default"];var a=n(45),u=r(a);e.Disposable=u["default"];var s=n(44),c=r(s);e.CompositeDisposable=c["default"];var f=n(46),l=r(f);e.SerialDisposable=l["default"]},function(t,e){"use strict";function n(t){return Boolean(t&&"function"==typeof t.dispose)}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){function r(t,e,n){if(e!==e)return o(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}var o=n(70);t.exports=r},function(t,e,n){function r(t,e){var n=t.data,r="string"==typeof e||o(e)?n.set.has(e):n.hash[e];return r?0:-1}var o=n(3);t.exports=r},function(t,e,n){(function(e){function r(t){return u&&a?new o(t):null}var o=n(61),i=n(17),a=i(e,"Set"),u=i(Object,"create");t.exports=r}).call(e,function(){return this}())},function(t,e,n){function r(t,e){var n=null==t?void 0:t[e];return o(n)?n:void 0}var o=n(74);t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&r>=t}var r=9007199254740991;t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.DecoratedComponent,n=t.createHandler,r=t.createMonitor,a=t.createConnector,d=t.registerHandler,g=t.containerDisplayName,y=t.getType,v=t.collect,b=t.options,O=b.arePropsEqual,_=void 0===O?h["default"]:O,x=e.displayName||e.name||"Component";return function(t){function h(e,i){o(this,h),t.call(this,e,i),this.handleChange=this.handleChange.bind(this),this.handleChildRef=this.handleChildRef.bind(this),m["default"]("object"==typeof this.context.dragDropManager,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",x,x),this.manager=this.context.dragDropManager,this.handlerMonitor=r(this.manager),this.handler=n(this.handlerMonitor),this.disposable=new l.SerialDisposable,this.receiveProps(e),this.state=this.getCurrentState()}return i(h,t),h.prototype.getHandlerId=function(){return this.handlerId},h.prototype.getDecoratedComponentInstance=function(){return this.decoratedComponentInstance},h.prototype.shouldComponentUpdate=function(t,e){return!_(t,this.props)||!p["default"](e,this.state)},s(h,null,[{key:"DecoratedComponent",value:e,enumerable:!0},{key:"displayName",value:g+"("+x+")",enumerable:!0},{key:"contextTypes",value:{dragDropManager:c.PropTypes.object.isRequired},enumerable:!0}]),h.prototype.componentWillReceiveProps=function(t){_(t,this.props)||(this.receiveProps(t),this.handleChange())},h.prototype.componentWillUnmount=function(){this.disposable.dispose()},h.prototype.receiveProps=function(t){this.handler.receiveProps(t),this.receiveType(y(t))},h.prototype.receiveType=function(t){if(t!==this.currentType){this.currentType=t;var e=d(t,this.handler,this.manager),n=e.handlerId,r=e.unregister,o=a(this.manager.getBackend()),i=D["default"](o,n),u=i.handlerConnector,s=i.disposable;this.handlerId=n,this.handlerConnector=u,this.handlerMonitor.receiveHandlerId(n);var c=this.manager.getMonitor(),f=c.subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new l.CompositeDisposable(new l.Disposable(f),new l.Disposable(r),s))}},h.prototype.handleChange=function(){var t=this.getCurrentState();p["default"](t,this.state)||this.setState(t)},h.prototype.handleChildRef=function(t){this.decoratedComponentInstance=t,this.handler.receiveComponent(t)},h.prototype.getCurrentState=function(){var t=v(this.handlerConnector,this.handlerMonitor);return t},h.prototype.render=function(){return f["default"].createElement(e,u({},this.props,this.state,{ref:this.handleChildRef}))},h}(c.Component)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=a;var c=n(5),f=r(c),l=n(12),d=n(11),p=r(d),g=n(21),h=r(g),y=n(4),v=(r(y),n(1)),m=r(v),b=n(33),D=r(b);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return"string"==typeof t||"symbol"==typeof t||e&&a["default"](t)&&t.every(function(t){return o(t,!1)})}e.__esModule=!0,e["default"]=o;var i=n(2),a=r(i);t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(t===e)return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++){if(!o.call(e,n[i]))return!1;var a=t[n[i]],u=e[n[i]];if(a!==u||"object"==typeof a||"object"==typeof u)return!1}return!0}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return t&&t.constructor===Symbol?"symbol":typeof t}function a(t){d["default"]("function"==typeof t.canDrag,"Expected canDrag to be a function."),d["default"]("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),d["default"]("function"==typeof t.endDrag,"Expected endDrag to be a function.")}function u(t){d["default"]("function"==typeof t.canDrop,"Expected canDrop to be a function."),d["default"]("function"==typeof t.hover,"Expected hover to be a function."),d["default"]("function"==typeof t.drop,"Expected beginDrag to be a function.")}function s(t,e){return e&&y["default"](t)?void t.forEach(function(t){return s(t,!1)}):void d["default"]("string"==typeof t||"symbol"===("undefined"==typeof t?"undefined":i(t)),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function c(t){var e=m["default"]().toString();switch(t){case D.SOURCE:return"S"+e;case D.TARGET:return"T"+e;default:d["default"](!1,"Unknown role: "+t)}}function f(t){switch(t[0]){case"S":return D.SOURCE;case"T":return D.TARGET;default:d["default"](!1,"Cannot parse handler ID: "+t)}}e.__esModule=!0;var l=n(1),d=r(l),p=n(57),g=r(p),h=n(2),y=r(h),v=n(56),m=r(v),b=n(8),D=g["default"]({SOURCE:null,TARGET:null}),O=function(){function t(e){o(this,t),this.store=e,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return t.prototype.addSource=function(t,e){s(t),a(e);var n=this.addHandler(D.SOURCE,t,e);return this.store.dispatch(b.addSource(n)),n},t.prototype.addTarget=function(t,e){s(t,!0),u(e);var n=this.addHandler(D.TARGET,t,e);return this.store.dispatch(b.addTarget(n)),n},t.prototype.addHandler=function(t,e,n){var r=c(t);return this.types[r]=e,this.handlers[r]=n,r},t.prototype.containsHandler=function(t){var e=this;return Object.keys(this.handlers).some(function(n){return e.handlers[n]===t})},t.prototype.getSource=function(t,e){d["default"](this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.handlers[t];return r},t.prototype.getTarget=function(t){return d["default"](this.isTargetId(t),"Expected a valid target ID."),this.handlers[t]},t.prototype.getSourceType=function(t){return d["default"](this.isSourceId(t),"Expected a valid source ID."),this.types[t]},t.prototype.getTargetType=function(t){return d["default"](this.isTargetId(t),"Expected a valid target ID."),this.types[t]},t.prototype.isSourceId=function(t){var e=f(t);return e===D.SOURCE},t.prototype.isTargetId=function(t){var e=f(t);return e===D.TARGET},t.prototype.removeSource=function(t){d["default"](this.getSource(t),"Expected an existing source."),this.store.dispatch(b.removeSource(t)),delete this.handlers[t],delete this.types[t]},t.prototype.removeTarget=function(t){d["default"](this.getTarget(t),"Expected an existing target."),this.store.dispatch(b.removeTarget(t)),delete this.handlers[t],delete this.types[t]},t.prototype.pinSource=function(t){var e=this.getSource(t);d["default"](e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e},t.prototype.unpinSource=function(){d["default"](this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null},t}();e["default"]=O,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){switch(void 0===t&&(t=d),e.type){case f.HOVER:break;case l.ADD_SOURCE:case l.ADD_TARGET:case l.REMOVE_TARGET:case l.REMOVE_SOURCE:return d;case f.BEGIN_DRAG:case f.PUBLISH_DRAG_SOURCE:case f.END_DRAG:case f.DROP:default:return p}var r=e.targetIds,o=n.targetIds,i=u["default"](r,o),a=!1;if(0===i.length){for(var s=0;s<r.length;s++)if(r[s]!==o[s]){a=!0;break}}else a=!0;if(!a)return d;var c=o[o.length-1],g=r[r.length-1];return c!==g&&(c&&i.push(c),g&&i.push(g)),i}function i(t,e){return t===d?!1:t===p||"undefined"==typeof e?!0:c["default"](e,t).length>0}e.__esModule=!0,e["default"]=o,e.areDirty=i;var a=n(60),u=r(a),s=n(58),c=r(s),f=n(7),l=n(8),d=[],p=[]},function(t,e,n){"use strict";function r(t,e){return t===e?!0:t&&e&&t.x===e.x&&t.y===e.y}function o(t,e){switch(void 0===t&&(t=c),e.type){case s.BEGIN_DRAG:return{initialSourceClientOffset:e.sourceClientOffset,initialClientOffset:e.clientOffset,clientOffset:e.clientOffset};case s.HOVER:return r(t.clientOffset,e.clientOffset)?t:u({},t,{clientOffset:e.clientOffset});case s.END_DRAG:case s.DROP:return c;default:return t}}function i(t){var e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset;return e&&n&&r?{x:e.x+r.x-n.x,y:e.y+r.y-n.y}:null}function a(t){var e=t.clientOffset,n=t.initialClientOffset;return e&&n?{x:e.x-n.x,y:e.y-n.y}:null}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e["default"]=o,e.getSourceClientOffset=i,e.getDifferenceFromInitialOffset=a;var s=n(7),c={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return a["default"](t)?t.some(function(t){return t===e}):t===e}e.__esModule=!0,e["default"]=o;var i=n(2),a=r(i);t.exports=e["default"]},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=o(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,i=o(n.length-e,0),a=Array(i);++r<i;)a[r]=n[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,n[0],a);case 2:return t.call(this,n[0],n[1],a)}var u=Array(e+1);for(r=-1;++r<e;)u[r]=n[r];return u[e]=a,t.apply(this,u)}}var r="Expected a function",o=Math.max;t.exports=n},function(t,e,n){function r(t,e){var n=t?t.length:0,r=[];if(!n)return r;var s=-1,c=o,f=!0,l=f&&e.length>=u?a(e):null,d=e.length;l&&(c=i,f=!1,e=l);t:for(;++s<n;){var p=t[s];if(f&&p===p){for(var g=d;g--;)if(e[g]===p)continue t;r.push(p)}else c(e,p,0)<0&&r.push(p)}return r}var o=n(14),i=n(15),a=n(16),u=200;t.exports=r},function(t,e,n){function r(t){return i(t)&&o(t)&&u.call(t,"callee")&&!s.call(t,"callee")}var o=n(9),i=n(10),a=Object.prototype,u=a.hasOwnProperty,s=a.propertyIsEnumerable;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){y["default"].apply(void 0,["DragDropContext","backend"].concat(s.call(arguments)));var e=void 0;e="object"==typeof t&&"function"==typeof t["default"]?t["default"]:t,g["default"]("function"==typeof e,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://gaearon.github.io/react-dnd/docs-drag-drop-context.html");var n={dragDropManager:new d.DragDropManager(e)};return function(t){var e=t.displayName||t.name||"Component";return function(r){function a(){o(this,a),r.apply(this,arguments)}return i(a,r),a.prototype.getDecoratedComponentInstance=function(){return this.refs.child},a.prototype.getManager=function(){return n.dragDropManager},a.prototype.getChildContext=function(){return n},a.prototype.render=function(){return l["default"].createElement(t,u({},this.props,{ref:"child"}))},c(a,null,[{key:"DecoratedComponent",value:t,enumerable:!0},{key:"displayName",value:"DragDropContext("+e+")",enumerable:!0},{key:"childContextTypes",value:{dragDropManager:f.PropTypes.object.isRequired},enumerable:!0}]),a}(f.Component)}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=Array.prototype.slice,c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=a;var f=n(5),l=r(f),d=n(52),p=n(1),g=r(p),h=n(6),y=r(h);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return O["default"].apply(void 0,["DragLayer","collect[, options]"].concat(s.call(arguments))),b["default"]("function"==typeof t,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-layer.html",t),b["default"](v["default"](e),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-layer.html',e),function(n){var r=e.arePropsEqual,a=void 0===r?h["default"]:r,s=n.displayName||n.name||"Component";return function(e){function r(t,n){o(this,r),e.call(this,t),this.handleChange=this.handleChange.bind(this),this.manager=n.dragDropManager,b["default"]("object"==typeof this.manager,"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",s,s),this.state=this.getCurrentState()}return i(r,e),r.prototype.getDecoratedComponentInstance=function(){return this.refs.child},r.prototype.shouldComponentUpdate=function(t,e){return!a(t,this.props)||!p["default"](e,this.state)},c(r,null,[{key:"DecoratedComponent",value:n,enumerable:!0},{key:"displayName",value:"DragLayer("+s+")",enumerable:!0},{key:"contextTypes",value:{dragDropManager:f.PropTypes.object.isRequired},enumerable:!0}]),r.prototype.componentDidMount=function(){var t=this.manager.getMonitor();this.unsubscribe=t.subscribeToOffsetChange(this.handleChange)},r.prototype.componentWillUnmount=function(){this.unsubscribe()},r.prototype.handleChange=function(){var t=this.getCurrentState();p["default"](t,this.state)||this.setState(t)},r.prototype.getCurrentState=function(){var e=this.manager.getMonitor();return t(e)},r.prototype.render=function(){return l["default"].createElement(n,u({},this.props,this.state,{ref:"child"}))},r}(f.Component)}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=Array.prototype.slice,c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=a;var f=n(5),l=r(f),d=n(11),p=r(d),g=n(21),h=r(g),y=n(4),v=r(y),m=n(1),b=r(m),D=n(6),O=r(D);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];l["default"].apply(void 0,["DragSource","type, spec, collect[, options]"].concat(i.call(arguments)));var o=t;"function"!=typeof t&&(u["default"](x["default"](t),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',t),o=function(){return t}),u["default"](c["default"](e),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',e);var a=v["default"](e);return u["default"]("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',n),u["default"](c["default"](r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',n),function(t){return p["default"]({connectBackend:function(t,e){return t.connectDragSource(e)},containerDisplayName:"DragSource",createHandler:a,registerHandler:h["default"],createMonitor:b["default"],createConnector:O["default"],DecoratedComponent:t,getType:o,collect:n,options:r})}}e.__esModule=!0;var i=Array.prototype.slice;e["default"]=o;var a=n(1),u=r(a),s=n(4),c=r(s),f=n(6),l=r(f),d=n(19),p=r(d),g=n(41),h=r(g),y=n(36),v=r(y),m=n(37),b=r(m),D=n(35),O=r(D),_=n(20),x=r(_);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3];l["default"].apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(i.call(arguments)));var o=t;"function"!=typeof t&&(u["default"](x["default"](t,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',t),o=function(){return t}),u["default"](c["default"](e),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',e);var a=v["default"](e);return u["default"]("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',n),u["default"](c["default"](r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',n),function(t){return p["default"]({connectBackend:function(t,e){return t.connectDropTarget(e)},containerDisplayName:"DropTarget",createHandler:a,registerHandler:h["default"],createMonitor:b["default"],createConnector:O["default"],DecoratedComponent:t,getType:o,collect:n,options:r})}}e.__esModule=!0;var i=Array.prototype.slice;e["default"]=o;var a=n(1),u=r(a),s=n(4),c=r(s),f=n(6),l=r(f),d=n(19),p=r(d),g=n(42),h=r(g),y=n(39),v=r(y),m=n(40),b=r(m),D=n(38),O=r(D),_=n(20),x=r(_);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n=new u.CompositeDisposable,r={};return Object.keys(t).forEach(function(o){var i=a["default"](e,t[o]),u=i.disposable,s=i.ref;n.add(u),r[o]=function(){return s}}),{disposable:n,handlerConnector:r}}e.__esModule=!0,e["default"]=o;var i=n(34),a=r(i),u=n(12);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return t===e?!0:null!==t&&null!==e&&u["default"](t,e)}function i(t,e){function n(){var u=arguments.length<=0||void 0===arguments[0]?null:arguments[0],s=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(l.isValidElement(u)){if("string"!=typeof u.type){var d=u.type.displayName||u.type.name||"the component";throw new Error("Only native element nodes can now be passed to "+e.name+"(). "+("You can either wrap "+d+" into a <div>, or turn it into a ")+"drag source or a drop target itself.")}var p=u;return c["default"](p,function(t){return n(t,s)})}var g=u;if(g!==i||!o(a,s)){if(i=g,a=s,!g)return void r.setDisposable(null);var h=e(t,g,s);r.setDisposable(new f.Disposable(h))}}var r=new f.SerialDisposable,i=null,a=null;return{ref:n,disposable:r}}e.__esModule=!0,e["default"]=i;var a=n(11),u=r(a),s=n(43),c=r(s),f=n(12),l=n(5);t.exports=e["default"]},function(t,e){"use strict";function n(t){return{dragSource:function(){return t.connectDragSource.apply(t,arguments)},dragPreview:function(){return t.connectDragPreview.apply(t,arguments)}}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){Object.keys(t).forEach(function(e){u["default"](c.indexOf(e)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html',c.join(", "),e),u["default"]("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html",e,e,t[e])}),f.forEach(function(e){u["default"]("function"==typeof t[e],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drag-source.html",e,e,t[e])});var e=function(){function e(t){o(this,e),this.monitor=t,this.props=null,this.component=null}return e.prototype.receiveProps=function(t){this.props=t},e.prototype.receiveComponent=function(t){this.component=t},e.prototype.canDrag=function(){return t.canDrag?t.canDrag(this.props,this.monitor):!0},e.prototype.isDragging=function(e,n){return t.isDragging?t.isDragging(this.props,this.monitor):n===e.getSourceId()},e.prototype.beginDrag=function(){var e=t.beginDrag(this.props,this.monitor,this.component);return e},e.prototype.endDrag=function(){t.endDrag&&t.endDrag(this.props,this.monitor,this.component)},e}();return function(t){return new e(t)}}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=n(4),c=(r(s),["canDrag","beginDrag","canDrag","isDragging","endDrag"]),f=["beginDrag"];t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new f(t)}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=!1,c=!1,f=function(){function t(e){o(this,t),this.internalMonitor=e.getMonitor()}return t.prototype.receiveHandlerId=function(t){this.sourceId=t},t.prototype.canDrag=function(){u["default"](!s,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drag-source-monitor.html");try{return s=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{s=!1}},t.prototype.isDragging=function(){u["default"](!c,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drag-source-monitor.html");try{return c=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{c=!1}},t.prototype.getItemType=function(){return this.internalMonitor.getItemType()},t.prototype.getItem=function(){return this.internalMonitor.getItem()},t.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},t.prototype.didDrop=function(){return this.internalMonitor.didDrop()},t.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();t.exports=e["default"]},function(t,e){"use strict";function n(t){return{dropTarget:function(){return t.connectDropTarget.apply(t,arguments)}}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){Object.keys(t).forEach(function(e){u["default"](c.indexOf(e)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html',c.join(", "),e),u["default"]("function"==typeof t[e],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://gaearon.github.io/react-dnd/docs-drop-target.html",e,e,t[e])});var e=function(){function e(t){o(this,e),this.monitor=t,this.props=null,this.component=null}return e.prototype.receiveProps=function(t){this.props=t},e.prototype.receiveMonitor=function(t){this.monitor=t},e.prototype.receiveComponent=function(t){this.component=t},e.prototype.canDrop=function(){return t.canDrop?t.canDrop(this.props,this.monitor):!0},e.prototype.hover=function(){t.hover&&t.hover(this.props,this.monitor,this.component)},e.prototype.drop=function(){if(t.drop){var e=t.drop(this.props,this.monitor,this.component);return e}},e}();return function(t){return new e(t)}}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=n(4),c=(r(s),["canDrop","hover","drop"]);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new c(t)}e.__esModule=!0,e["default"]=i;var a=n(1),u=r(a),s=!1,c=function(){function t(e){o(this,t),this.internalMonitor=e.getMonitor()}return t.prototype.receiveHandlerId=function(t){this.targetId=t},t.prototype.canDrop=function(){u["default"](!s,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://gaearon.github.io/react-dnd/docs-drop-target-monitor.html");try{return s=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{s=!1}},t.prototype.isOver=function(t){return this.internalMonitor.isOverTarget(this.targetId,t)},t.prototype.getItemType=function(){return this.internalMonitor.getItemType()},t.prototype.getItem=function(){return this.internalMonitor.getItem()},t.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},t.prototype.didDrop=function(){return this.internalMonitor.didDrop()},t.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();t.exports=e["default"]},function(t,e){"use strict";function n(t,e,n){function r(){o.removeSource(i)}var o=n.getRegistry(),i=o.addSource(t,e);return{handlerId:i,unregister:r}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e){"use strict";function n(t,e,n){function r(){o.removeTarget(i)}var o=n.getRegistry(),i=o.addTarget(t,e);return{handlerId:i,unregister:r}}e.__esModule=!0,e["default"]=n,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n=t.ref;return a["default"]("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),u.cloneElement(t,{ref:function(t){e(t),n&&n(t)}})}e.__esModule=!0,e["default"]=o;var i=n(1),a=r(i),u=n(5);t.exports=e["default"]},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{"default":t}},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};e.__esModule=!0;var i=n(13),a=r(i),u=function(){function t(){for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];o(this,t),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var i=0;i<n.length;i++)if(!a["default"](n[i]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return t.prototype.add=function(t){this.isDisposed?t.dispose():this.disposables.push(t)},t.prototype.remove=function(t){if(this.isDisposed)return!1;var e=this.disposables.indexOf(t);return-1===e?!1:(this.disposables.splice(e,1),t.dispose(),!0)},t.prototype.dispose=function(){if(!this.isDisposed){for(var t=this.disposables.length,e=new Array(t),n=0;t>n;n++)e[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;t>n;n++)e[n].dispose()}},t}();e["default"]=u,t.exports=e["default"]},function(t,e){"use strict";var n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.__esModule=!0;var o=function(){},i=function(){function t(e){n(this,t),this.isDisposed=!1,this.action=e||o}return t.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},r(t,null,[{key:"empty",enumerable:!0,value:{dispose:o}}]),t}();e["default"]=i,t.exports=e["default"]},function(t,e,n){"use strict";var r=function(t){return t&&t.__esModule?t:{"default":t}},o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};e.__esModule=!0;var i=n(13),a=r(i),u=function(){function t(){o(this,t),this.isDisposed=!1,this.current=null}return t.prototype.getDisposable=function(){return this.current},t.prototype.setDisposable=function(){var t=void 0===arguments[0]?null:arguments[0];if(null!=t&&!a["default"](t))throw new Error("Expected either an empty value or a valid disposable");var e=this.isDisposed,n=void 0;e||(n=this.current,this.current=t),n&&n.dispose(),e&&t&&t.dispose()},t.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var t=this.current;this.current=null,t&&t.dispose()}},t}();e["default"]=u,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=n(77),u=o(a),s=n(54),c=o(s),f=n(7),l=r(f),d=n(48),p=o(d),g=n(22),h=(o(g),function(){function t(e){i(this,t);var n=u["default"](c["default"]);this.store=n,this.monitor=new p["default"](n),this.registry=this.monitor.registry,this.backend=e(this),n.subscribe(this.handleRefCountChange.bind(this))}return t.prototype.handleRefCountChange=function(){var t=this.store.getState().refCount>0;t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)},t.prototype.getMonitor=function(){return this.monitor},t.prototype.getBackend=function(){return this.backend},t.prototype.getRegistry=function(){return this.registry},t.prototype.getActions=function(){function t(t){return function(){var r=t.apply(e,arguments);"undefined"!=typeof r&&n(r)}}var e=this,n=this.store.dispatch;return Object.keys(l).filter(function(t){return"function"==typeof l[t]}).reduce(function(e,n){return e[n]=t(l[n]),e},{})},t}());e["default"]=h,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=n(1),a=r(i),u=n(25),s=r(u),c=n(2),f=r(c),l=n(22),d=r(l),p=n(24),g=n(23),h=function(){function t(e){o(this,t),this.store=e,this.registry=new d["default"](e)}return t.prototype.subscribeToStateChange=function(t){var e=this,n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.handlerIds;a["default"]("function"==typeof t,"listener must be a function."),a["default"]("undefined"==typeof r||f["default"](r),"handlerIds, when specified, must be an array of strings.");var o=function(){g.areDirty(e.store.getState().dirtyHandlerIds,r)&&t()};return this.store.subscribe(o)},t.prototype.subscribeToOffsetChange=function(t){var e=this;a["default"]("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset,r=function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())};return this.store.subscribe(r)},t.prototype.canDragSource=function(t){var e=this.registry.getSource(t);return a["default"](e,"Expected to find a valid source."),this.isDragging()?!1:e.canDrag(this,t)},t.prototype.canDropOnTarget=function(t){var e=this.registry.getTarget(t);if(a["default"](e,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(t),r=this.getItemType();return s["default"](n,r)&&e.canDrop(this,t)},t.prototype.isDragging=function(){return Boolean(this.getItemType())},t.prototype.isDraggingSource=function(t){var e=this.registry.getSource(t,!0);if(a["default"](e,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var n=this.registry.getSourceType(t),r=this.getItemType();return n!==r?!1:e.isDragging(this,t)},t.prototype.isOverTarget=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.shallow,r=void 0===n?!1:n;if(!this.isDragging())return!1;var o=this.registry.getTargetType(t),i=this.getItemType();if(!s["default"](o,i))return!1;var a=this.getTargetIds();if(!a.length)return!1;var u=a.indexOf(t);return r?u===a.length-1:u>-1},t.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},t.prototype.getItem=function(){return this.store.getState().dragOperation.item},t.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},t.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},t.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},t.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},t.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},t.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},t.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},t.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},t.prototype.getSourceClientOffset=function(){return p.getSourceClientOffset(this.store.getState().dragOffset)},t.prototype.getDifferenceFromInitialOffset=function(){return p.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},t}();e["default"]=h,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(){n(this,t)}return t.prototype.canDrag=function(){return!0},t.prototype.isDragging=function(t,e){return e===t.getSourceId()},t.prototype.endDrag=function(){},t}();e["default"]=r,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(){n(this,t)}return t.prototype.canDrop=function(){return!0},t.prototype.hover=function(){},t.prototype.drop=function(){},t}();e["default"]=r,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return new s(t)}e.__esModule=!0,e["default"]=i;var a=n(76),u=r(a),s=function(){function t(e){o(this,t),this.actions=e.getActions()}return t.prototype.setup=function(){this.didCallSetup=!0},t.prototype.teardown=function(){this.didCallTeardown=!0},t.prototype.connectDragSource=function(){return u["default"]},t.prototype.connectDragPreview=function(){return u["default"]},t.prototype.connectDropTarget=function(){return u["default"]},t.prototype.simulateBeginDrag=function(t,e){this.actions.beginDrag(t,e)},t.prototype.simulatePublishDragSource=function(){this.actions.publishDragSource()},t.prototype.simulateHover=function(t,e){this.actions.hover(t,e)},t.prototype.simulateDrop=function(){this.actions.drop()},t.prototype.simulateEndDrag=function(){this.actions.endDrag()},t}();t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t["default"]:t}e.__esModule=!0;var o=n(47);e.DragDropManager=r(o);var i=n(49);e.DragSource=r(i);var a=n(50);e.DropTarget=r(a);var u=n(51);e.createTestBackend=r(u)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){switch(void 0===t&&(t=f),e.type){case a.BEGIN_DRAG:return i({},t,{itemType:e.itemType,item:e.item,sourceId:e.sourceId,isSourcePublic:e.isSourcePublic,dropResult:null,didDrop:!1});case a.PUBLISH_DRAG_SOURCE:return i({},t,{isSourcePublic:!0});case a.HOVER:return i({},t,{targetIds:e.targetIds});case a.PUBLISH_DRAG_SOURCE:return i({},t,{isSourcePublic:!0});case u.REMOVE_TARGET:return-1===t.targetIds.indexOf(e.targetId)?t:i({},t,{targetIds:c["default"](t.targetIds,e.targetId)});case a.DROP:return i({},t,{dropResult:e.dropResult,didDrop:!0,targetIds:[]});case a.END_DRAG:return i({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e["default"]=o;var a=n(7),u=n(8),s=n(59),c=r(s),f={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=n(24),i=r(o),a=n(53),u=r(a),s=n(55),c=r(s),f=n(23),l=r(f);e["default"]=function(t,e){return void 0===t&&(t={}),{dirtyHandlerIds:l["default"](t.dirtyHandlerIds,e,t.dragOperation),dragOffset:i["default"](t.dragOffset,e),refCount:c["default"](t.refCount,e),dragOperation:u["default"](t.dragOperation,e)}},t.exports=e["default"]},function(t,e,n){"use strict";function r(t,e){switch(void 0===t&&(t=0),e.type){case o.ADD_SOURCE:case o.ADD_TARGET:return t+1;case o.REMOVE_SOURCE:case o.REMOVE_TARGET:return t-1;default:return t}}e.__esModule=!0,e["default"]=r;var o=n(8);t.exports=e["default"]},function(t,e){"use strict";function n(){return r++}e.__esModule=!0,e["default"]=n;var r=0;t.exports=e["default"]},function(t,e){"use strict";var n=function(t){var e,n={};if(!(t instanceof Object)||Array.isArray(t))throw new Error("keyMirror(...): Argument must be an object.");for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=n},function(t,e,n){var r=n(14),o=n(15),i=n(16),a=n(9),u=n(26),s=u(function(t){for(var e=t.length,n=e,u=Array(g),s=r,c=!0,f=[];n--;){var l=t[n]=a(l=t[n])?l:[];u[n]=c&&l.length>=120?i(n&&l):null}var d=t[0],p=-1,g=d?d.length:0,h=u[0];t:for(;++p<g;)if(l=d[p],(h?o(h,l):s(f,l,0))<0){for(var n=e;--n;){var y=u[n];if((y?o(y,l):s(t[n],l,0))<0)continue t}h&&h.push(l),f.push(l)}return f});t.exports=s},function(t,e,n){var r=n(27),o=n(9),i=n(26),a=i(function(t,e){return o(t)?r(t,e):[]});t.exports=a},function(t,e,n){function r(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(u(n))var r=r?o(i(r,n),i(n,r)):n}return r?a(r):[]}var o=n(62),i=n(27),a=n(66),u=n(9);t.exports=r},function(t,e,n){(function(e){function r(t){var e=t?t.length:0;for(this.data={hash:u(null),set:new a};e--;)this.push(t[e])}var o=n(67),i=n(17),a=i(e,"Set"),u=i(Object,"create");r.prototype.push=o,t.exports=r}).call(e,function(){return this}())},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(68),o=r();t.exports=o},function(t,e,n){function r(t,e){return o(t,e,i)}var o=n(63),i=n(75);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t,e){var n=-1,r=o,s=t.length,c=!0,f=c&&s>=u,l=f?a():null,d=[];l?(r=i,c=!1):(f=!1,l=e?[]:d);t:for(;++n<s;){var p=t[n],g=e?e(p,n,t):p;if(c&&p===p){for(var h=l.length;h--;)if(l[h]===g)continue t;e&&l.push(g),d.push(p)}else r(l,g,0)<0&&((e||f)&&l.push(g),d.push(p))}return d}var o=n(14),i=n(15),a=n(16),u=200;t.exports=r},function(t,e,n){function r(t){var e=this.data;"string"==typeof t||o(t)?e.set.add(t):e.hash[t]=!0}var o=n(3);t.exports=r},function(t,e,n){function r(t){return function(e,n,r){for(var i=o(e),a=r(e),u=a.length,s=t?u:-1;t?s--:++s<u;){var c=a[s];if(n(i[c],c,i)===!1)break}return e}}var o=n(72);t.exports=r},function(t,e,n){var r=n(65),o=r("length");t.exports=o},function(t,e){function n(t,e,n){for(var r=t.length,o=e+(n?0:-1);n?o--:++o<r;){var i=t[o];if(i!==i)return o}return-1}t.exports=n},function(t,e){function n(t,e){return t="number"==typeof t||r.test(t)?+t:-1,e=null==e?o:e,t>-1&&t%1==0&&e>t}var r=/^\d+$/,o=9007199254740991;t.exports=n},function(t,e,n){function r(t){return o(t)?t:Object(t)}var o=n(3);t.exports=r},function(t,e,n){function r(t){return o(t)&&u.call(t)==i}var o=n(3),i="[object Function]",a=Object.prototype,u=a.toString;t.exports=r},function(t,e,n){function r(t){return null==t?!1:o(t)?f.test(s.call(t)):i(t)&&a.test(t)}var o=n(73),i=n(10),a=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){if(null==t)return[];s(t)||(t=Object(t));var e=t.length;e=e&&u(e)&&(i(t)||o(t))&&e||0;for(var n=t.constructor,r=-1,c="function"==typeof n&&n.prototype===t,l=Array(e),d=e>0;++r<e;)l[r]=r+"";for(var p in t)d&&a(p,e)||"constructor"==p&&(c||!f.call(t,p))||l.push(p);return l}var o=n(28),i=n(2),a=n(71),u=n(18),s=n(3),c=Object.prototype,f=c.hasOwnProperty;t.exports=r},function(t,e){function n(){}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){function n(){return c}function r(t){return f.push(t),function(){var e=f.indexOf(t);f.splice(e,1)}}function o(t){if(!a["default"](t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,c=s(c,t)}finally{l=!1}return f.slice().forEach(function(t){return t()}),t}function i(t){s=t,o({type:u.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,c=e,f=[],l=!1;return o({type:u.INIT}),{dispatch:o,subscribe:r,getState:n,replaceReducer:i}}e.__esModule=!0,e["default"]=o;var i=n(78),a=r(i),u={INIT:"@@redux/INIT"};e.ActionTypes=u},function(t,e){"use strict";function n(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&r(n)===r(Object)}e.__esModule=!0,e["default"]=n;var r=function(t){return Function.prototype.toString.call(t)};t.exports=e["default"]}])});

@@ -20,2 +20,10 @@ 'use strict';

function areOptionsEqual(currentOptions, nextOptions) {
if (currentOptions === nextOptions) {
return true;
}
return currentOptions !== null && nextOptions !== null && _utilsShallowEqual2['default'](currentOptions, nextOptions);
}
function bindConnectorMethod(handlerId, connect) {

@@ -27,3 +35,6 @@ var disposable = new _disposables.SerialDisposable();

function ref(nextWhatever, nextOptions) {
function ref() {
var nextWhatever = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];
var nextOptions = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
// If passed a ReactElement, clone it and attach this function as a ref.

@@ -50,8 +61,4 @@ // This helps us achieve a neat API where user doesn't even know that refs

// If nothing changed, bail out of re-connecting the node to the backend.
if (nextNode == currentNode) {
// eslint-disable-line eqeqeq
if (currentOptions == nextOptions || // eslint-disable-line eqeqeq
_utilsShallowEqual2['default'](currentOptions, nextOptions)) {
return;
}
if (nextNode === currentNode && areOptionsEqual(currentOptions, nextOptions)) {
return;
}

@@ -58,0 +65,0 @@

{
"name": "react-dnd",
"version": "2.0.1",
"version": "2.0.2",
"description": "Drag and Drop for React",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc