2 lines
110 KiB
JavaScript
2 lines
110 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactBeautifulDnd={},e.React)}(this,function(e,w){"use strict";var u="default"in w?w.default:w;function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var m=n(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),b=n(function(e){var t=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=t)}),v=(b.version,function(r,o,e){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(r),void 0===o)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}),o=function(e){return"object"==typeof e?null!==e:"function"==typeof e},a=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e},r=function(e){try{return!!e()}catch(e){return!0}},i=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),s=m.document,l=o(s)&&o(s.createElement),c=function(e){return l?s.createElement(e):{}},d=!i&&!r(function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}),p=Object.defineProperty,f={f:i?Object.defineProperty:function(e,t,n){if(a(e),t=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(t,!0),a(n),d)try{return p(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},h=i?function(e,t,n){return f.f(e,t,{enumerable:!((r=1)&r),configurable:!(2&r),writable:!(4&r),value:n});var r}:function(e,t,n){return e[t]=n,e},g={}.hasOwnProperty,y=function(e,t){return g.call(e,t)},D="prototype",x=function(e,t,n){var r,o,i,a=e&x.F,s=e&x.G,l=e&x.S,c=e&x.P,u=e&x.B,d=e&x.W,p=s?b:b[t]||(b[t]={}),f=p[D],g=s?m:l?m[t]:(m[t]||{})[D];for(r in s&&(n=t),n)(o=!a&&g&&void 0!==g[r])&&y(p,r)||(i=o?g[r]:n[r],p[r]=s&&"function"!=typeof g[r]?n[r]:u&&o?v(i,m):d&&g[r]==i?function(r){var e=function(e,t,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return r.apply(this,arguments)};return e[D]=r[D],e}(i):c&&"function"==typeof i?v(Function.call,i):i,c&&((p.virtual||(p.virtual={}))[r]=i,e&x.R&&f&&!f[r]&&h(f,r,i)))};x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128;var S,C=x,I={}.toString,E=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==(t=e,I.call(t).slice(8,-1))?e.split(""):Object(e);var t},O=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},P=function(e){return E(O(e))},T=Math.ceil,M=Math.floor,B=function(e){return isNaN(e=+e)?0:(0<e?M:T)(e)},R=Math.min,A=Math.max,N=Math.min,L=n(function(e){var t="__core-js_shared__",n=m[t]||(m[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:b.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),_=0,j=Math.random(),F=L("keys"),G=function(e){return F[e]||(F[e]="Symbol(".concat(void 0===(t=e)?"":t,")_",(++_+j).toString(36)));var t},W=(S=!1,function(e,t,n){var r,o,i,a,s=P(e),l=0<(r=s.length)?R(B(r),9007199254740991):0,c=(i=l,(o=B(o=n))<0?A(o+i,0):N(o,i));if(S&&t!=t){for(;c<l;)if((a=s[c++])!=a)return!0}else for(;c<l;c++)if((S||c in s)&&s[c]===t)return S||c||0;return!S&&-1}),U=G("IE_PROTO"),k="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),q=Object.keys||function(e){return function(e,t){var n,r=P(e),o=0,i=[];for(n in r)n!=U&&y(r,n)&&i.push(n);for(;t.length>o;)y(r,n=t[o++])&&(~W(i,n)||i.push(n));return i}(e,k)},z={f:Object.getOwnPropertySymbols},V={f:{}.propertyIsEnumerable},H=function(e){return Object(O(e))},Y=Object.assign,$=!Y||r(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=Y({},e)[n]||Object.keys(Y({},t)).join("")!=r})?function(e,t){for(var n=H(e),r=arguments.length,o=1,i=z.f,a=V.f;o<r;)for(var s,l=E(arguments[o++]),c=i?q(l).concat(i(l)):q(l),u=c.length,d=0;d<u;)a.call(l,s=c[d++])&&(n[s]=l[s]);return n}:Y;C(C.S+C.F,"Object",{assign:$});var K=b.Object.assign;function J(){return(J=K||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var X=i?Object.defineProperties:function(e,t){a(e);for(var n,r=q(t),o=r.length,i=0;i<o;)f.f(e,n=r[i++],t[n]);return e},Q=m.document,Z=Q&&Q.documentElement,ee=G("IE_PROTO"),te=function(){},ne="prototype",re=function(){var e,t=c("iframe"),n=k.length;for(t.style.display="none",Z.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),re=e.F;n--;)delete re[ne][k[n]];return re()},oe=Object.create||function(e,t){var n;return null!==e?(te[ne]=a(e),n=new te,te[ne]=null,n[ee]=e):n=re(),void 0===t?n:X(n,t)};C(C.S,"Object",{create:oe});var ie,ae=b.Object,se=function(e,t){return ae.create(e,t)};function le(e,t){e.prototype=se(t.prototype),(e.prototype.constructor=e).__proto__=t}ie="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var ce,ue,de=("function"==typeof(ue=ie.Symbol)?ue.observable?ce=ue.observable:(ce=ue("observable"),ue.observable=ce):ce="@@observable",ce),pe=function(){return Math.random().toString(36).substring(7).split("").join(".")},fe={INIT:"@@redux/INIT"+pe(),REPLACE:"@@redux/REPLACE"+pe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pe()}};function ge(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(ge)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var n=!0;return c(),s.push(t),function(){if(n){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");n=!1,c();var e=s.indexOf(t);s.splice(e,1)}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.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,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:fe.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:fe.REPLACE})}})[de]=function(){var e,n=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(u())}return t(),{unsubscribe:n(t)}}})[de]=function(){return this},e},r}function me(e,t){return function(){return t(e.apply(this,arguments))}}function be(e,t){if("function"==typeof e)return me(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=me(a,t))}return r}function ve(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function he(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(o){return function(){var e=o.apply(void 0,arguments),t=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},r=i.map(function(e){return e(n)});return function(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},t=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),t.forEach(function(e){var t,n,r;t=o,r=i[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return o}({},e,{dispatch:t=ve.apply(void 0,r)(e.dispatch)})}}}var ye="Invariant failed";function De(e,t){if(!e)throw new Error(ye)}var xe=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case l:return e;default:return t}}case m:case g:case o:return t}}}function v(e){return b(e)===d}t.typeOf=b,t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p)},t.isAsyncMode=function(e){return v(e)||b(e)===u},t.isConcurrentMode=v,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return b(e)===p},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===m},t.isMemo=function(e){return b(e)===g},t.isPortal=function(e){return b(e)===o},t.isProfiler=function(e){return b(e)===s},t.isStrictMode=function(e){return b(e)===a},t.isSuspense=function(e){return b(e)===f}});t(xe);xe.typeOf,xe.AsyncMode,xe.ConcurrentMode,xe.ContextConsumer,xe.ContextProvider,xe.Element,xe.ForwardRef,xe.Fragment,xe.Lazy,xe.Memo,xe.Portal,xe.Profiler,xe.StrictMode,xe.Suspense,xe.isValidElementType,xe.isAsyncMode,xe.isConcurrentMode,xe.isContextConsumer,xe.isContextProvider,xe.isElement,xe.isForwardRef,xe.isFragment,xe.isLazy,xe.isMemo,xe.isPortal,xe.isProfiler,xe.isStrictMode,xe.isSuspense;var we=n(function(e,t){});t(we);we.typeOf,we.AsyncMode,we.ConcurrentMode,we.ContextConsumer,we.ContextProvider,we.Element,we.ForwardRef,we.Fragment,we.Lazy,we.Memo,we.Portal,we.Profiler,we.StrictMode,we.Suspense,we.isValidElementType,we.isAsyncMode,we.isConcurrentMode,we.isContextConsumer,we.isContextProvider,we.isElement,we.isForwardRef,we.isFragment,we.isLazy,we.isMemo,we.isPortal,we.isProfiler,we.isStrictMode,we.isSuspense;var Se=n(function(e){e.exports=xe}),Ce=Se.isValidElementType,Ie=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}})()&&Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function Pe(){}function Te(){}Te.resetWarningCache=Pe;var Me=n(function(e){e.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Te,resetWarningCache:Pe};return n.PropTypes=n}()}),Be={x:0,y:0},Re=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ae=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Ne=function(e,t){return e.x===t.x&&e.y===t.y},Le=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},_e=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},je=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Fe=function(t,e){return Math.min.apply(Math,e.map(function(e){return je(t,e)}))},Ge=function(t){return function(e){return{x:t(e.x),y:t(e.y)}}};function We(e,t){if(!e)throw new Error("Invariant failed")}var Ue=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ke=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},qe=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ze={top:0,right:0,bottom:0,left:0},Ve=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ze:n,o=e.border,i=void 0===o?ze:o,a=e.padding,s=void 0===a?ze:a,l=Ue(ke(t,r)),c=Ue(qe(t,i)),u=Ue(qe(c,s));return{marginBox:l,borderBox:Ue(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},He=function(e){var t=e.slice(0,-2);"px"!==e.slice(-2)&&We(!1);var n=Number(t);return isNaN(n)&&We(!1),n},Ye=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Ve({borderBox:l,border:i,margin:a,padding:s})},$e=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Ye(e,t)},Ke=function(e,t){var n={top:He(t.marginTop),right:He(t.marginRight),bottom:He(t.marginBottom),left:He(t.marginLeft)},r={top:He(t.paddingTop),right:He(t.paddingRight),bottom:He(t.paddingBottom),left:He(t.paddingLeft)},o={top:He(t.borderTopWidth),right:He(t.borderRightWidth),bottom:He(t.borderBottomWidth),left:He(t.borderLeftWidth)};return Ve({borderBox:e,margin:n,padding:r,border:o})},Je=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Ke(t,n)},Xe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Qe=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ze=function(e,t){return t&&t.shouldClipSubject?(n=t.pageMarginBox,r=e,(o=Ue({top:Math.max(r.top,n.top),right:Math.min(r.right,n.right),bottom:Math.min(r.bottom,n.bottom),left:Math.max(r.left,n.left)})).width<=0||o.height<=0?null:o):Ue(e);var n,r,o},et=function(e){var t,n,r,o,i,a,s=e.page,l=e.withPlaceholder,c=e.axis,u=e.frame,d=(t=s.marginBox,(n=u)?Xe(t,n.scroll.diff.displacement):t),p=(r=d,o=c,(i=l)&&i.increasedBy?J({},r,((a={})[o.end]=r[o.end]+i.increasedBy[o.line],a)):r);return{page:s,withPlaceholder:l,active:Ze(p,u)}},tt=function(e,t){e.frame||De(!1);var n=e.frame,r=Ae(t,n.scroll.initial),o=Le(r),i=J({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return J({},e,{frame:i,subject:et({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})},nt=function(e){var t=e.merge,n=e.destination;return n?n.droppableId:t?t.combine.droppableId:null},rt=function(e,o){return e.length===o.length&&e.every(function(e,t){return n=e,r=o[t],n===r;var n,r})};function ot(r,o){var i;void 0===o&&(o=rt);var a,s=[],l=!1;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l&&i===this&&o(t,s)||(a=r.apply(this,t),l=!0,i=this,s=t),a}}var it,at=V.f,st=(it=!1,function(e){for(var t,n=P(e),r=q(n),o=r.length,i=0,a=[];i<o;)at.call(n,t=r[i++])&&a.push(it?[t,n[t]]:n[t]);return a});C(C.S,"Object",{values:function(e){return st(e)}});var lt=b.Object.values;function ct(e){return lt(e)}function ut(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function dt(e,t){if(e.find)return e.find(t);var n=ut(e,t);return-1!==n?e[n]:void 0}var pt=ot(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),ft=ot(function(e){return e.reduce(function(e,t){return e[t.descriptor.id]=t,e},{})}),gt=ot(function(e){return ct(e)}),mt=ot(function(e){return ct(e)}),bt=function(t,n){return function(e){return t<=e&&e<=n}},vt=function(e){var t=bt(e.top,e.bottom),n=bt(e.left,e.right);return function(e){return t(e.y)&&t(e.y)&&n(e.x)&&n(e.x)}},ht=ot(function(t,e){return mt(e).filter(function(e){return t===e.descriptor.droppableId}).sort(function(e,t){return e.descriptor.index-t.descriptor.index})}),yt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Dt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},xt=function(e,t){return e===yt?"down"===t.vertical:"right"===t.horizontal},wt=function(e,t){return Boolean(t.wasDisplaced[e])},St=function(e){var t=e.displaced,n=e.onLift,r=e.combineWith,o=e.displacedBy,i=Boolean(t[r]);return wt(r,n)?i?Be:Le(o.point):i?o.point:Be},Ct=function(e,t,n){return n?e!==n.combine.draggableId?t:n.whenEntered:t},It=function(e){var v=e.pageBorderBoxCenterWithDroppableScrollChange,t=e.previousImpact,n=e.destination,r=e.insideDestinationWithoutDraggable,h=e.userDirection,y=e.onLift;if(!n.isCombineEnabled)return null;var D=n.axis,x=t.movement.map,w=t.movement.displacedBy,S=t.merge,o=dt(r,function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,g,m=e.descriptor.id,b=St({displaced:x,onLift:y,combineWith:m,displacedBy:w});return t={id:m,currentCenter:v,axis:D,borderBox:e.page.borderBox,displaceBy:b,currentUserDirection:h,oldMerge:S},n=t.id,r=t.currentCenter,o=t.axis,i=t.borderBox,a=t.displaceBy,s=t.currentUserDirection,l=t.oldMerge,c=i[o.start]+a[o.line],u=i[o.end]+a[o.line],d=.666*i[o.size],p=Ct(n,s,l),f=xt(o,p),g=r[o.line],f?bt(c,c+d)(g):bt(u-d,u)(g)});return o?J({},t,{destination:null,merge:{whenEntered:Ct(o.descriptor.id,h,S),combine:{draggableId:o.descriptor.id,droppableId:n.descriptor.id}}}):null},Et=function(i){var a=bt(i.top,i.bottom),s=bt(i.left,i.right);return function(e){if(a(e.top)&&a(e.bottom)&&s(e.left)&&s(e.right))return!0;var t=a(e.top)||a(e.bottom),n=s(e.left)||s(e.right);if(t&&n)return!0;var r=e.top<i.top&&e.bottom>i.bottom,o=e.left<i.left&&e.right>i.right;return!(!r||!o)||(r&&n||o&&t)}},Ot=function(e){var t=bt(e.top,e.bottom),n=bt(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Pt=function(e){var t,n,r,o,i,a,s,l=e.target,c=e.destination,u=e.viewport,d=e.withDroppableDisplacement,p=e.isVisibleThroughFrameFn,f=d?(t=l,r=(n=c).frame?n.frame.scroll.diff.displacement:Be,Xe(t,r)):l;return i=f,s=p,!!(a=c).subject.active&&s(a.subject.active)(i)&&(o=f,p(u)(o))},Tt=function(e){return Pt(J({},e,{isVisibleThroughFrameFn:Ot}))},Mt=function(e){return Pt(J({},e,{isVisibleThroughFrameFn:(r=e.destination.axis,function(e){var t=bt(e.top,e.bottom),n=bt(e.left,e.right);return function(e){return r===yt?t(e.top)&&t(e.bottom):n(e.left)&&n(e.right)}})}));var r},Bt=function(e){var t,n,r,o=e.draggable,i=e.destination,a=e.previousImpact,s=e.viewport,l=e.onLift,c=e.forceShouldAnimate,u=o.descriptor.id,d=a.movement.map,p=function(e,t){var n=e.page.marginBox;if(!wt(e.descriptor.id,t))return n;var r={top:t.displacedBy.point.y,right:t.displacedBy.point.x,bottom:0,left:0};return Ue(ke(n,r))}(o,l),f=Pt(J({},{target:p,destination:i,viewport:s,withDroppableDisplacement:!0},{isVisibleThroughFrameFn:Et}));return{draggableId:u,isVisible:f,shouldAnimate:(t=c,n=f,r=d[u],"boolean"==typeof t?t:!!n&&(!r||r.shouldAnimate))}},Rt=ot(function(e){return e.reduce(function(e,t){return e[t.draggableId]=t,e},{})}),At=ot(function(e,t){var n=t[e.line];return{value:n,point:_e(e.line,n)}}),Nt={displaced:[],map:{},displacedBy:{point:Be,value:0}},Lt={movement:Nt,destination:null,merge:null},_t=ot(function(t,e){return e.filter(function(e){return e.descriptor.id!==t.descriptor.id})}),jt=function(e){var t,n,r,o,i=e.pageBorderBoxCenter,a=e.draggable,s=e.draggables,l=e.droppables,c=e.previousImpact,u=e.viewport,d=e.userDirection,p=e.onLift,f=(n=(t={target:i,droppables:l}).target,r=t.droppables,(o=dt(gt(r),function(e){if(!e.isEnabled)return!1;var t=e.subject.active;return!!t&&vt(t)(n)}))?o.descriptor.id:null);if(!f)return Lt;var g,m,b,v,h,y,D,x,w,S,C,I,E,O,P,T,M,B,R=l[f],A=ht(R.descriptor.id,s),N=_t(a,A),L=(g=i,(m=R.frame)?Re(g,m.scroll.diff.value):g),_=It({pageBorderBoxCenterWithDroppableScrollChange:L,previousImpact:c,destination:R,insideDestinationWithoutDraggable:N,userDirection:d,onLift:p});return _||(v=(b={pageBorderBoxCenterWithDroppableScrollChange:L,destination:R,draggable:a,insideDestinationWithoutDraggable:N,previousImpact:c,viewport:u,userDirection:d,onLift:p}).pageBorderBoxCenterWithDroppableScrollChange,h=b.draggable,y=b.destination,D=b.insideDestinationWithoutDraggable,x=b.previousImpact,w=b.viewport,S=b.userDirection,C=b.onLift,I=y.axis,E=xt(y.axis,S),O=At(y.axis,h.displaceBy),P=v[I.line],T=O.value,M=D.filter(function(e){var t=e.page.borderBox,n=t[I.start],r=t[I.end],o=wt(e.descriptor.id,C);return E?o?P<n:P<n+T:o?P<=r-T:P<=r}).map(function(e){return Bt({draggable:e,destination:y,previousImpact:x,viewport:w.frame,onLift:C})}),B=D.length-M.length,{movement:{displacedBy:O,displaced:M,map:Rt(M)},destination:{droppableId:y.descriptor.id,index:B},merge:null})},Ft=function(e){var t,n=e.draggable,r=e.home,o=e.draggables,i=e.viewport,a=At(r.axis,n.displaceBy),s=ht(r.descriptor.id,o).slice(n.descriptor.index+1),l={displacedBy:a,wasDisplaced:s.reduce(function(e,t){return e[t.descriptor.id]=!0,e},{})},c=s.map(function(e){return Bt({draggable:e,destination:r,previousImpact:Lt,viewport:i.frame,forceShouldAnimate:!1,onLift:l})});return{impact:{movement:{displaced:c,map:Rt(c),displacedBy:a},destination:(t=n.descriptor,{index:t.index,droppableId:t.droppableId}),merge:null},onLift:l}},Gt=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Ye(t.client,n),i=$e(o,r);return J({},t,{placeholder:J({},t.placeholder,{client:o}),client:o,page:i})},Wt=function(e){var t,u,n,d,p,f,g,r,o,i,a,s,l,c,m,b,v,h,y=e.updatedDroppables,D=e.criticalId,x=e.existing,w=e.additions,S=e.removals,C=e.viewport,I=(u=(t={droppables:y,existing:x,additions:w,removals:S,viewport:C}).existing,n=t.droppables,d=t.additions,p=t.removals,f=t.viewport,g={},gt(n).forEach(function(t){var r=t.axis,o=ht(t.descriptor.id,u),i={},a=function(e,t){var n=i[e];i[e]=n?{indexChange:n.indexChange+t.indexChange,offset:Re(n.offset,t.offset)}:t},s=ft(p.map(function(e){var t=u[e];return t||De(!1),t}).filter(function(e){return e.descriptor.droppableId===t.descriptor.id})),e=o.filter(function(e,t){if(!Boolean(s[e.descriptor.id]))return!0;var n=Le(_e(r.line,e.displaceBy[r.line]));return o.slice(t).forEach(function(e){s[e.descriptor.id]||a(e.descriptor.id,{indexChange:-1,offset:n})}),!1}),n=d.filter(function(e){return e.descriptor.droppableId===t.descriptor.id}),l=e.slice(0);n.forEach(function(e){l.splice(e.descriptor.index,0,e)});var c=ft(n);l.forEach(function(e,t){if(Boolean(c[e.descriptor.id])){var n=_e(r.line,e.client.marginBox[r.size]);l.slice(t).forEach(function(e){c[e.descriptor.id]||a(e.descriptor.id,{indexChange:1,offset:n})})}}),l.forEach(function(e){if(!c[e.descriptor.id]){var t=i[e.descriptor.id];if(t){var n=Gt({draggable:e,offset:t.offset,initialWindowScroll:f.scroll.initial}),r=e.descriptor.index+t.indexChange,o=J({},n,{descriptor:J({},e.descriptor,{index:r})});g[n.descriptor.id]=o}}})}),J({},u,g)),E=I[D],O=y[E.descriptor.droppableId],P=(o=(r={additions:w,updatedDroppables:y,viewport:C}).additions,i=r.updatedDroppables,a=r.viewport,s=a.scroll.diff.value,o.map(function(e){var t=e.descriptor.droppableId,n=i[t].frame;n||De(!1);var r=n.scroll.diff.value,o=Re(s,r);return Gt({draggable:e,offset:o,initialWindowScroll:a.scroll.initial})})),T=(c=(l={additions:P,dragging:E,home:O,viewport:C}).additions,m=l.dragging,b=l.home,v=l.viewport,h=At(b.axis,m.displaceBy),c.map(function(e){return e.descriptor.droppableId!==b.descriptor.id?e:e.descriptor.index<m.descriptor.index?e:Gt({draggable:e,offset:h.point,initialWindowScroll:v.scroll.initial})})),M=J({},I,ft(T));return S.forEach(function(e){delete M[e]}),M},Ut=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Ae({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},kt=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=Ut({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Be,displacement:Be}}}}(),u="vertical"===i?yt:Dt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:et({page:s,withPlaceholder:null,axis:u,frame:c})}},qt=function(e,t){return e.descriptor.droppableId===t.descriptor.id},zt=function(e,t){return J({},e,{scroll:J({},e.scroll,{max:t})})},Vt=function(e,t,n){var r=e.frame;qt(t,e)&&De(!1),e.subject.withPlaceholder&&De(!1);var o,i,a,s,l,c,u=At(e.axis,t.displaceBy).point,d=(i=u,a=n,s=(o=e).axis,l=o.subject.page.contentBox[s.size],(c=ht(o.descriptor.id,a).reduce(function(e,t){return e+t.client.marginBox[s.size]},0)+i[s.line]-l)<=0?null:_e(s.line,c)),p={placeholderSize:u,increasedBy:d,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return J({},e,{subject:et({page:e.subject.page,withPlaceholder:p,axis:e.axis,frame:e.frame})});var f=d?Re(r.scroll.max,d):r.scroll.max,g=zt(r,f);return J({},e,{subject:et({page:e.subject.page,withPlaceholder:p,axis:e.axis,frame:g}),frame:g})},Ht=function(e){var t=e.subject.withPlaceholder;t||De(!1);var n=e.frame;if(!n)return J({},e,{subject:et({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||De(!1);var o=zt(n,r);return J({},e,{subject:et({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})},Yt=function(e){var t=e.frame;return t||De(!1),t},$t=function(e,t){var n;return J({},e,((n={})[t.descriptor.id]=t,n))},Kt=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=nt(t),i=nt(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=Ht(a);return $t(r,s)}({previousImpact:o,impact:i,droppables:r}),s=nt(i);if(!s)return a;var l=r[s];if(qt(t,l))return a;if(l.subject.withPlaceholder)return a;var c=Vt(l,t,n);return $t(a,c)},Jt=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,g,m,b=e.state,v=e.published,h=function(e){var t=e.modified,p=e.existing,f=e.viewport;if(!t.length)return p;var n=t.map(function(e){var t=p[e.descriptor.id];t||De(!1);var n,r,o=Boolean(t.subject.withPlaceholder)?Ht(t):t,i=o.client,a=e.client,s=Yt(o),l=Yt(e),c=Ve({borderBox:(o.axis,n=i.borderBox,r=a.borderBox,{top:n.top,left:n.left,right:n.left+r.width,bottom:n.top+r.height}),margin:i.margin,border:i.border,padding:i.padding}),u={client:s.frameClient,page:$e(s.frameClient,f.scroll.initial),shouldClipSubject:s.shouldClipSubject,scrollSize:l.scrollSize,scroll:s.scroll.initial},d=kt({descriptor:e.descriptor,isEnabled:e.isEnabled,isCombineEnabled:e.isCombineEnabled,isFixedOnPage:e.isFixedOnPage,direction:e.axis.direction,client:c,page:$e(c,f.scroll.initial),closest:u});return tt(d,l.scroll.current)});return J({},p,pt(n))}({modified:v.modified,existing:b.dimensions.droppables,viewport:b.viewport}),y=Wt({updatedDroppables:h,criticalId:b.critical.draggable.id,existing:b.dimensions.draggables,additions:v.additions,removals:v.removals,viewport:b.viewport}),D={draggable:y[b.critical.draggable.id].descriptor,droppable:h[b.critical.droppable.id].descriptor},x=b.dimensions.draggables[D.draggable.id],w=y[D.draggable.id],S={draggables:y,droppables:Kt({draggable:w,draggables:y,droppables:h,previousImpact:b.impact,impact:b.impact})},C=(r={initial:b.initial,current:b.current,oldClientBorderBoxCenter:x.client.borderBox.center,newClientBorderBoxCenter:w.client.borderBox.center,viewport:b.viewport},c=r.initial,u=r.current,d=r.oldClientBorderBoxCenter,p=r.newClientBorderBoxCenter,f=r.viewport,g=Ae(p,d),m={client:o={selection:Re(c.client.selection,g),borderBoxCenter:p,offset:Be},page:{selection:Re(o.selection,f.scroll.initial),borderBoxCenter:Re(o.selection,f.scroll.initial)}},{current:(i=Le(g),a=Re(u.client.offset,i),s={selection:Re(m.client.selection,a),borderBoxCenter:Re(m.client.borderBoxCenter,a),offset:a},l={selection:Re(s.selection,f.scroll.current),borderBoxCenter:Re(s.borderBoxCenter,f.scroll.current)},Ne(u.client.borderBoxCenter,s.borderBoxCenter)||De(!1),{client:s,page:l}),initial:m}),I=C.initial,E=C.current,O=Ft({draggable:w,home:S.droppables[D.droppable.id],draggables:S.draggables,viewport:b.viewport}),P=O.impact,T=O.onLift,M=function(e){var t=e.movement.displaced;if(!t.length)return e;var n=t.map(function(e){return e.isVisible&&e.shouldAnimate?J({},e,{shouldAnimate:!1}):e});return J({},e,{movement:J({},e.movement,{displaced:n,map:Rt(n)})})}(jt({pageBorderBoxCenter:E.page.borderBoxCenter,draggable:w,draggables:S.draggables,droppables:S.droppables,previousImpact:P,viewport:b.viewport,userDirection:b.userDirection,onLift:T}));Boolean("SNAP"===b.movementMode&&!nt(M))&&De(!1);var B=J({phase:"DRAGGING"},b,((t={}).phase="DRAGGING",t.critical=D,t.current=E,t.initial=I,t.impact=M,t.dimensions=S,t.onLift=T,t.onLiftImpact=P,t.forceShouldAnimate=!1,t));return"COLLECTING"===b.phase?B:J({phase:"DROP_PENDING"},B,((n={}).phase="DROP_PENDING",n.reason=b.reason,n.isWaiting=!1,n))},Xt={vertical:"down",horizontal:"right"},Qt={vertical:"up",horizontal:"left"},Zt=function(e){var r=e.isMovingForward,t=e.isInHomeList,o=e.draggable,n=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.onLift,c=s.destination?function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.insideDestination,i=e.location,a=o.slice(),s=i.index;!n&&a.splice(i.index,0,r);var l=t?s+1:s-1;return l<0?null:l>a.length-1?null:{proposedIndex:l,modifyDisplacement:!0}}({isMovingForward:r,isInHomeList:t,draggable:o,location:s.destination,insideDestination:a}):s.merge?function(e){var t=e.isMovingForward,n=e.destination,r=e.previousImpact,o=e.draggables,i=e.merge,a=e.onLift;if(!n.isCombineEnabled)return null;var s=r.movement,l=i.combine.draggableId,c=o[l].descriptor.index;return wt(l,a)?s.map[l]?t?{proposedIndex:c,modifyDisplacement:!0}:{proposedIndex:c-1,modifyDisplacement:!1}:t?{proposedIndex:c,modifyDisplacement:!1}:{proposedIndex:c-1,modifyDisplacement:!0}:Boolean(s.map[l])?t?{proposedIndex:c+1,modifyDisplacement:!0}:{proposedIndex:c,modifyDisplacement:!1}:t?{proposedIndex:c+1,modifyDisplacement:!1}:{proposedIndex:c,modifyDisplacement:!0}}({isMovingForward:r,destination:i,previousImpact:s,draggables:n,merge:s.merge,onLift:l}):null;if(null==c)return null;var u=c.proposedIndex,d=c.modifyDisplacement,p=At(i.axis,o.displaceBy),f=function(){var e=s.movement.displaced;if(!d)return e;if(r)return e.slice(1);var t,n=_t(o,a)[u];return t=e,[{draggableId:n.descriptor.id,isVisible:!0,shouldAnimate:!0}].concat(t)}();return{movement:{displacedBy:p,displaced:f,map:Rt(f)},destination:{droppableId:i.descriptor.id,index:u},merge:null}},en=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},tn=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},nn=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _e(t.line,n.marginBox[t.end]+en(t,r),tn(t,n.marginBox,r))},rn=function(e){var t,n,r=e.axis,o=e.moveRelativeTo,i=e.isMoving;return _e(r.line,o.marginBox[r.start]-(t=r,(n=i).margin[t.end]+n.borderBox[t.size]/2),tn(r,o.marginBox,i))},on=function(e){var t,n,r,o,i=e.movement,a=e.draggable,s=e.draggables,l=e.droppable,c=e.onLift,u=ht(l.descriptor.id,s),d=a.page,p=l.axis;if(!u.length)return t={axis:p,moveInto:l.page,isMoving:d},n=t.axis,r=t.moveInto,o=t.isMoving,_e(n.line,r.contentBox[n.start]+en(n,o),tn(n,r.contentBox,o));var f=i.displaced,g=i.displacedBy;if(f.length){var m=s[f[0].draggableId];if(wt(m.descriptor.id,c))return rn({axis:p,moveRelativeTo:m.page,isMoving:d});var b=Ye(m.page,g.point);return rn({axis:p,moveRelativeTo:b,isMoving:d})}var v=u[u.length-1];if(v.descriptor.id===a.descriptor.id)return d.borderBox.center;if(wt(v.descriptor.id,c)){var h=Ye(v.page,Le(c.displacedBy.point));return nn({axis:p,moveRelativeTo:h,isMoving:d})}return nn({axis:p,moveRelativeTo:v.page,isMoving:d})},an=function(e,t){var n=e.frame;return n?Re(t,n.scroll.diff.displacement):t},sn=function(e){var t,n,r,o,i,a,s,l,c=e.impact,u=e.draggable,d=e.droppable,p=e.draggables,f=e.onLift,g=c.merge,m=c.destination,b=u.page.borderBox.center;return d?m?on({movement:c.movement,draggable:u,draggables:p,droppable:d,onLift:f}):g?(t={movement:c.movement,combine:g.combine,draggables:p,onLift:f},n=t.combine,r=t.onLift,o=t.movement,i=t.draggables,a=n.draggableId,s=i[a].page.borderBox.center,l=St({displaced:o.map,onLift:r,combineWith:a,displacedBy:o.displacedBy}),Re(s,l)):b:b},ln=function(e){var t=sn(e),n=e.droppable;return n?an(n,t):t},cn=function(e,t){var n=Ae(t,e.scroll.initial),r=Le(n);return{frame:Ue({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}},un=function(e,t){return J({},e,{movement:J({},e.movement,{displaced:t,map:Rt(t)})})},dn=function(e){var t,n=e.pageBorderBoxCenter,r=e.draggable,o=e.viewport,i=(t=n,Re(o.scroll.diff.displacement,t)),a=Ae(i,r.page.borderBox.center);return Re(r.client.borderBox.center,a)},pn=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=Ae(r,t.page.borderBox.center),c={target:Xe(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?Mt(c):Tt(c)},fn=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.onLift;if(!r.isEnabled)return null;var u=ht(r.descriptor.id,o),d=qt(n,r),p=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.destination,i=e.insideDestination,a=e.previousImpact;if(!o.isCombineEnabled)return null;if(a.merge)return null;var s=a.destination;s||De(!1);var l,c=s.index,u=(l=i.slice(),n&&l.splice(r.descriptor.index,1),l.splice(s.index,0,r),l),d=t?c+1:c-1;if(d<0)return null;if(d>u.length-1)return null;var p=u[d];p===r&&De(!1);var f={whenEntered:t?Xt:Qt,combine:{draggableId:p.descriptor.id,droppableId:o.descriptor.id}};return{movement:a.movement,destination:null,merge:f}}({isInHomeList:d,isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||Zt({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,onLift:c});if(!p)return null;var f=ln({impact:p,draggable:n,droppable:r,draggables:o,onLift:c});if(pn({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:dn({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:p,scrollJumpRequest:null};var g,m,b,v,h,y,D,x,w,S,C,I=Ae(f,s);return{clientSelection:l,impact:(m=(g={impact:p,viewport:a,destination:r,draggables:o,maxScrollChange:I,onLift:c}).impact,b=g.viewport,v=g.destination,h=g.draggables,y=g.maxScrollChange,D=g.onLift,x=m.movement.displaced,w=cn(b,Re(b.scroll.current,y)),S=v.frame?tt(v,Re(v.frame.scroll.current,y)):v,C=x.map(function(e){if(e.isVisible)return e;var t=h[e.draggableId],n=Bt({draggable:t,destination:v,previousImpact:m,viewport:w.frame,onLift:D,forceShouldAnimate:!1});if(n.isVisible)return n;var r=Bt({draggable:t,destination:S,previousImpact:m,viewport:b.frame,onLift:D,forceShouldAnimate:!1});return r.isVisible?r:e}),un(m,C)),scrollJumpRequest:I}},gn=function(e){var t=e.subject.active;return t||De(!1),t},mn=function(e,t){var n=e.page.borderBox.center;return wt(e.descriptor.id,t)?Ae(n,t.displacedBy.point):n},bn=function(e){var o=e.pageBorderBoxCenter,i=e.viewport,a=e.destination,t=e.insideDestination,s=e.onLift;return t.filter(function(e){return Tt({target:(t=e,n=s,r=t.page.borderBox,wt(t.descriptor.id,n)?Xe(r,Le(n.displacedBy.point)):r),destination:a,viewport:i.frame,withDroppableDisplacement:!0});var t,n,r}).sort(function(e,t){var n=je(o,an(a,mn(e,s))),r=je(o,an(a,mn(t,s)));return n<r?-1:r<n?1:e.descriptor.index-t.descriptor.index})[0]||null},vn=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.previousImpact,l=e.viewport,c=e.onLift,u=function(e){var o=e.isMovingForward,i=e.pageBorderBoxCenter,t=e.source,n=e.droppables,r=e.viewport,a=t.subject.active;if(!a)return null;var s=t.axis,l=bt(a[s.start],a[s.end]),c=gt(n).filter(function(e){return e!==t}).filter(function(e){return e.isEnabled}).filter(function(e){return Boolean(e.subject.active)}).filter(function(e){return Et(r.frame)(gn(e))}).filter(function(e){var t=gn(e);return o?a[s.crossAxisEnd]<t[s.crossAxisEnd]:t[s.crossAxisStart]<a[s.crossAxisStart]}).filter(function(e){var t=gn(e),n=bt(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])}).sort(function(e,t){var n=gn(e)[s.crossAxisStart],r=gn(t)[s.crossAxisStart];return o?n-r:r-n}).filter(function(e,t,n){return gn(e)[s.crossAxisStart]===gn(n[0])[s.crossAxisStart]});if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter(function(e){return bt(gn(e)[s.start],gn(e)[s.end])(i[s.line])});return 1===u.length?u[0]:1<u.length?u.sort(function(e,t){return gn(e)[s.start]-gn(t)[s.start]})[0]:c.sort(function(e,t){var n=Fe(i,Qe(gn(e))),r=Fe(i,Qe(gn(t)));return n!==r?n-r:gn(e)[s.start]-gn(t)[s.start]})[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!u)return null;var d=ht(u.descriptor.id,i),p=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.previousImpact,l=e.viewport,c=e.onLift;if(!n){if(r.length)return null;var u={movement:Nt,destination:{droppableId:a.descriptor.id,index:0},merge:null},d=ln({impact:u,draggable:o,droppable:a,draggables:i,onLift:c}),p=qt(o,a)?a:Vt(a,o,i);return pn({draggable:o,destination:p,newPageBorderBoxCenter:d,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var f=Boolean(t[a.axis.line]<n.page.borderBox.center[a.axis.line]),g=r.indexOf(n);-1===g&&De(!1);var m=n.descriptor.id===o.descriptor.id?g:f?g:g+1,b=_t(o,r).slice(m).map(function(e){return Bt({draggable:e,destination:a,viewport:l.frame,previousImpact:s,onLift:c})});return{movement:{displacedBy:At(a.axis,o.displaceBy),displaced:b,map:Rt(b)},destination:{droppableId:a.descriptor.id,index:m},merge:null}}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:bn({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:d,onLift:c}),insideDestination:d,previousImpact:s,viewport:l,onLift:c});if(!p)return null;var f=ln({impact:p,draggable:r,droppable:u,draggables:i,onLift:c});return{clientSelection:dn({pageBorderBoxCenter:f,draggable:r,viewport:l}),impact:p,scrollJumpRequest:null}},hn=function(e){var t,n,r,o=e.state,i=e.type,a=(t=o.impact,n=o.dimensions.droppables,(r=nt(t))?n[r]:null),s=Boolean(a),l=o.dimensions.droppables[o.critical.droppable.id],c=a||l,u=c.axis.direction,d="vertical"===u&&("MOVE_UP"===i||"MOVE_DOWN"===i)||"horizontal"===u&&("MOVE_LEFT"===i||"MOVE_RIGHT"===i);if(d&&!s)return null;var p="MOVE_DOWN"===i||"MOVE_RIGHT"===i,f=o.dimensions.draggables[o.critical.draggable.id],g=o.current.page.borderBoxCenter,m=o.dimensions,b=m.draggables,v=m.droppables;return d?fn({isMovingForward:p,previousPageBorderBoxCenter:g,draggable:f,destination:c,draggables:b,viewport:o.viewport,previousClientSelection:o.current.client.selection,previousImpact:o.impact,onLift:o.onLift}):vn({isMovingForward:p,previousPageBorderBoxCenter:g,draggable:f,isOver:c,draggables:b,droppables:v,previousImpact:o.impact,viewport:o.viewport,onLift:o.onLift})};function yn(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}var Dn,xn,wn,Sn,Cn=function(e){var t,n,r,o,i,a,s,l,c=e.state,u=e.clientSelection,d=e.dimensions,p=e.viewport,f=e.impact,g=e.scrollJumpRequest,m=p||c.viewport,b=m.scroll.current,v=d||c.dimensions,h=u||c.current.client.selection,y=Ae(h,c.initial.client.selection),D={offset:y,selection:h,borderBoxCenter:Re(c.initial.client.borderBoxCenter,y)},x={selection:Re(D.selection,b),borderBoxCenter:Re(D.borderBoxCenter,b)},w={client:D,page:x},S=(t=c.userDirection,n=c.current.page.borderBoxCenter,r=w.page.borderBoxCenter,l=Ae(r,n),{horizontal:(a=t.horizontal,s=l.x,0===s?a:0<s?"right":"left"),vertical:(o=t.vertical,i=l.y,0===i?o:0<i?"down":"up")});if("COLLECTING"===c.phase)return J({phase:"COLLECTING"},c,{dimensions:v,viewport:m,current:w,userDirection:S});var C=v.draggables[c.critical.draggable.id],I=f||jt({pageBorderBoxCenter:x.borderBoxCenter,draggable:C,draggables:v.draggables,droppables:v.droppables,previousImpact:c.impact,viewport:m,userDirection:S,onLift:c.onLift}),E=Kt({draggable:C,impact:I,previousImpact:c.impact,draggables:v.draggables,droppables:v.droppables});return J({},c,{current:w,userDirection:S,dimensions:{draggables:v.draggables,droppables:E},impact:I,viewport:m,scrollJumpRequest:g||null,forceShouldAnimate:!g&&null})},In=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.onLift,a=e.forceShouldAnimate,s=t.movement.displaced.map(function(e){return Bt({draggable:o[e.draggableId],destination:r,previousImpact:t,viewport:n.frame,onLift:i,forceShouldAnimate:a})});return un(t,s)},En=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.onLift,s=ln({impact:t,draggable:n,draggables:o,droppable:r,onLift:a});return dn({pageBorderBoxCenter:s,draggable:n,viewport:i})},On=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&De(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=nt(o);u||De(!1);var d=l[u],p=In({impact:o,viewport:i,destination:d,draggables:s,onLift:t.onLift}),f=En({impact:p,draggable:c,droppable:d,draggables:s,viewport:i,onLift:t.onLift});return Cn({impact:p,clientSelection:f,state:t,dimensions:a,viewport:i})},Pn=function(e){return"SNAP"===e.movementMode},Tn=function(e,t,n){var r,o,i=(r=e.dimensions,o=t,{draggables:r.draggables,droppables:$t(r.droppables,o)});return!Pn(e)||n?Cn({state:e,dimensions:i}):On({state:e,dimensions:i})},Mn={phase:"IDLE",completed:null,shouldFlush:!1},Bn=function(e,t){if(void 0===e&&(e=Mn),"CLEAN"===t.type)return Mn;if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&De(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Be},d={client:u,page:{selection:Re(u.selection,i.scroll.initial),borderBoxCenter:Re(u.selection,i.scroll.initial)}},p=gt(a.droppables).every(function(e){return!e.isFixedOnPage}),f=Ft({draggable:l,home:c,draggables:a.draggables,viewport:i}),g=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:p,impact:g,onLift:f.onLift,onLiftImpact:g,viewport:i,userDirection:Xt,scrollJumpRequest:null,forceShouldAnimate:null}}var m;if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&De(!1),J({phase:"COLLECTING"},e,((m={}).phase="COLLECTING",m)));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&De(!1),Jt({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;yn(e)||De(!1);var b=t.payload.client;return Ne(b,e.current.client.selection)?e:Cn({state:e,clientSelection:b,impact:Pn(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return e;if("COLLECTING"===e.phase)return e;yn(e)||De(!1);var v=t.payload,h=v.id,y=v.offset,D=e.dimensions.droppables[h];if(!D)return e;var x=tt(D,y);return Tn(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;yn(e)||De(!1);var w=t.payload,S=w.id,C=w.isEnabled,I=e.dimensions.droppables[S];I||De(!1),I.isEnabled===C&&De(!1);var E=J({},I,{isEnabled:C});return Tn(e,E,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;yn(e)||De(!1);var O=t.payload,P=O.id,T=O.isCombineEnabled,M=e.dimensions.droppables[P];M||De(!1),M.isCombineEnabled===T&&De(!1);var B=J({},M,{isCombineEnabled:T});return Tn(e,B,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;yn(e)||De(!1),e.isWindowScrollAllowed||De(!1);var R=t.payload.newScroll;if(Ne(e.viewport.scroll.current,R))return e;var A=cn(e.viewport,R);return Pn(e)?On({state:e,viewport:A}):Cn({state:e,viewport:A})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!yn(e))return e;var N=t.payload.maxScroll;return Ne(N,e.viewport.scroll.max)?e:J({phase:"DRAGGING"},e,{viewport:J({},e.viewport,{scroll:J({},e.viewport.scroll,{max:N})})})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&De(!1);var L=hn({state:e,type:t.type});return L?Cn({state:e,impact:L.impact,clientSelection:L.clientSelection,scrollJumpRequest:L.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var _,j=t.payload.reason;return"COLLECTING"!==e.phase&&De(!1),J({phase:"DROP_PENDING"},e,((_={}).phase="DROP_PENDING",_.isWaiting=!0,_.reason=j,_))}if("DROP_ANIMATE"===t.type){var F=t.payload,G=F.completed,W=F.dropDuration,U=F.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&De(!1),{phase:"DROP_ANIMATING",dimensions:e.dimensions,completed:G,dropDuration:W,newHomeClientOffset:U}}if("DROP_COMPLETE"!==t.type)return e;var k=t.payload;return{phase:"IDLE",completed:k.completed,shouldFlush:k.shouldFlush}},Rn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},An=function(){return{type:"COLLECTION_STARTING",payload:null}},Nn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Ln=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},_n=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},jn=function(e){return{type:"MOVE",payload:e}},Fn=function(e){return{type:"DROP_COMPLETE",payload:e}},Gn=function(e){return{type:"DROP",payload:e}},Wn="cubic-bezier(.2,1,.1,1)",Un={drop:0,combining:.7},kn={drop:.75},qn=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",zn={fluid:"opacity "+qn,snap:"transform "+qn+", opacity "+qn,drop:function(e){var t=e+"s "+Wn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+qn,placeholder:"height "+qn+", width "+qn+", margin "+qn},Vn=function(e){return Ne(e,Be)?null:"translate("+e.x+"px, "+e.y+"px)"},Hn={moveTo:Vn,drop:function(e,t){var n=Vn(e);return n?t?n+" scale("+kn.drop+")":n:null}},Yn=.33,$n=.55,Kn=$n-Yn,Jn=function(e){var W=e.getState,U=e.dispatch;return function(G){return function(e){if("DROP"===e.type){var t=W(),n=e.payload.reason;if("COLLECTING"!==t.phase){if("IDLE"!==t.phase){"DROP_PENDING"===t.phase&&t.isWaiting&&De(!1),"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&De(!1);var r,o,i,a,s,l,c,u,d,p,f,g,m,b,v,h,y,D,x,w,S,C,I,E=t.critical,O=t.dimensions,P=(r={reason:n,lastImpact:t.impact,onLift:t.onLift,onLiftImpact:t.onLiftImpact,home:t.dimensions.droppables[t.critical.droppable.id],viewport:t.viewport,draggables:t.dimensions.draggables},o=r.reason,i=r.lastImpact,a=r.home,s=r.viewport,l=r.draggables,c=r.onLiftImpact,u=r.onLift,(d="DROP"===o&&Boolean(nt(i)))?i.destination?{impact:i,didDropInsideDroppable:d}:{impact:J({},i,{movement:Nt}),didDropInsideDroppable:d}:{impact:In({impact:c,destination:a,viewport:s,draggables:l,onLift:u,forceShouldAnimate:!0}),didDropInsideDroppable:d}),T=P.impact,M=P.didDropInsideDroppable,B=O.draggables[t.critical.draggable.id],R=M?T.destination:null,A=M&&T.merge?T.merge.combine:null,N={index:E.draggable.index,droppableId:E.droppable.id},L={draggableId:B.descriptor.id,type:B.descriptor.type,source:N,reason:n,mode:t.movementMode,destination:R,combine:A},_=(p={impact:T,draggable:B,dimensions:O,viewport:t.viewport,onLift:t.onLift},f=p.impact,g=p.draggable,m=p.dimensions,b=p.viewport,v=p.onLift,h=m.draggables,y=m.droppables,D=nt(f),x=D?y[D]:null,w=y[g.descriptor.droppableId],S=En({impact:f,draggable:g,draggables:h,onLift:v,droppable:x||w,viewport:b}),C=Ae(S,g.client.borderBox.center),(I=f.merge)&&wt(I.combine.draggableId,v)?Ae(C,v.displacedBy.point):C),j={critical:t.critical,result:L,impact:T};if(!Ne(t.current.client.offset,_)||Boolean(L.combine)){var F=function(e){var t=e.current,n=e.destination,r=e.reason,o=je(t,n);if(o<=0)return Yn;if(1500<=o)return $n;var i=Yn+Kn*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:t.current.client.offset,destination:_,reason:n});U({type:"DROP_ANIMATE",payload:{newHomeClientOffset:_,dropDuration:F,completed:j}})}else U(Fn({completed:j,shouldFlush:!1}))}}else U({type:"DROP_PENDING",payload:{reason:n}})}else G(e)}}},Xn=function(e){return e+1},Qn=function(e,t){var n=e.droppableId===t.droppableId,r=Xn(e.index),o=Xn(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Zn=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},er=function(e){return"\n The item has returned to its starting position\n of "+Xn(e.index)+"\n"},tr=function(e){return"\n You have lifted an item in position "+Xn(e.source.index)+".\n Use the arrow keys to move, space bar to drop, and escape to cancel.\n"},nr=function(e){var t=e.destination;if(t)return Qn(e.source,t);var n=e.combine;return n?Zn(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},rr=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+er(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Qn(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Zn(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+er(e.source)+"\n "},or=function(){var r=[];return{add:function(e){var n=setTimeout(function(){return t=n,-1===(e=ut(r,function(e){return e.timerId===t}))&&De(!1),void r.splice(e,1)[0].callback();var t,e}),t={timerId:n,callback:e};r.push(t)},flush:function(){if(r.length){var e=[].concat(r);r.length=0,e.forEach(function(e){clearTimeout(e.timerId),e.callback()})}}}},ir=function(e,t){t()},ar=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},sr=function(e,t,n,r){if(e){var o,i,a,s,l,c=(o=n,a=i=!1,s=setTimeout(function(){a=!0}),(l=function(e){i||a||(i=!0,o(e),clearTimeout(s))}).wasCalled=function(){return i},l);e(t,{announce:c}),c.wasCalled()||n(r(t))}else n(r(t))},lr=function(e,t){var p,f,g,m,n,a=(p=e,f=t,g=or(),m=null,{beforeStart:function(t,n){m&&De(!1),ir(0,function(){var e=p().onBeforeDragStart;e&&e(ar(t,n))})},start:function(e,t){m&&De(!1);var n=ar(e,t);m={mode:t,lastCritical:e,lastLocation:n.source,lastCombine:null},g.add(function(){ir(0,function(){return sr(p().onDragStart,n,f,tr)})})},update:function(e,t){var n=t.destination,r=t.merge?t.merge.combine:null;m||De(!1);var o=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(e,m.lastCritical);o&&(m.lastCritical=e);var i,a,s=(i=m.lastLocation,a=n,!(null==i&&null==a||null!=i&&null!=a&&i.droppableId===a.droppableId&&i.index===a.index));s&&(m.lastLocation=n);var l,c,u=(l=m.lastCombine,c=r,!(null==l&&null==c||null!=l&&null!=c&&l.draggableId===c.draggableId&&l.droppableId===c.droppableId));if(u&&(m.lastCombine=r),o||s||u){var d=J({},ar(e,m.mode),{combine:r,destination:n});g.add(function(){ir(0,function(){return sr(p().onDragUpdate,d,f,nr)})})}},flush:function(){m||De(!1),g.flush()},drop:n=function(e){m||De(!1),m=null,ir(0,function(){return sr(p().onDragEnd,e,f,rr)})},abort:function(){if(m){var e=J({},ar(m.lastCritical,m.mode),{combine:null,destination:null,reason:"CANCEL"});n(e)}}});return function(i){return function(o){return function(e){if("INITIAL_PUBLISH"===e.type){var t=e.payload.critical;return a.beforeStart(t,e.payload.movementMode),o(e),void a.start(t,e.payload.movementMode)}if("DROP_COMPLETE"===e.type){var n=e.payload.completed.result;return a.flush(),o(e),void a.drop(n)}if(o(e),"CLEAN"!==e.type){var r=i.getState();"DRAGGING"===r.phase&&a.update(r.critical,r.impact)}else a.abort()}}}},cr=function(r){return function(n){return function(e){if("DROP_ANIMATION_FINISHED"===e.type){var t=r.getState();"DROP_ANIMATING"!==t.phase&&De(!1),r.dispatch(Fn({completed:t.completed,shouldFlush:!1}))}else n(e)}}},ur=function(r){return function(n){return function(e){if(n(e),"PUBLISH_WHILE_DRAGGING"===e.type){var t=r.getState();"DROP_PENDING"===t.phase&&(t.isWaiting||r.dispatch(Gn({reason:t.reason})))}}}},dr=ve,pr=function(e){var i,m,n,r,t=e.getDimensionMarshal,o=e.styleMarshal,a=e.getResponders,s=e.announce,l=e.getScroller;return ge(Bn,dr(he((r=o,function(){return function(t){return function(e){"INITIAL_PUBLISH"===e.type&&r.dragging(),"DROP_ANIMATE"===e.type&&r.dropping(e.payload.completed.result.reason),"CLEAN"!==e.type&&"DROP_COMPLETE"!==e.type||r.resting(),t(e)}}}),(n=t,function(){return function(t){return function(e){"DROP_COMPLETE"!==e.type&&"CLEAN"!==e.type&&"DROP_ANIMATE"!==e.type||n().stopPublishing(),t(e)}}}),(m=t,function(e){var f=e.getState,g=e.dispatch;return function(p){return function(e){if("LIFT"===e.type){var t=m(),n=e.payload,r=n.id,o=n.clientSelection,i=n.movementMode,a=f();"DROP_ANIMATING"===a.phase&&g(Fn({completed:a.completed,shouldFlush:!0})),"IDLE"!==f().phase&&De(!1);var s={draggableId:r,scrollOptions:{shouldPublishImmediately:"SNAP"===i}},l=t.startPublishing(s),c=l.critical,u=l.dimensions,d=l.viewport;g({type:"INITIAL_PUBLISH",payload:{critical:c,dimensions:u,clientSelection:o,movementMode:i,viewport:d}})}else p(e)}}}),Jn,cr,ur,(i=l,function(o){return function(r){return function(e){if("DROP_COMPLETE"===(t=e).type||"DROP_ANIMATE"===t.type||"CLEAN"===t.type)return i().stop(),void r(e);var t;if("COLLECTION_STARTING"===e.type)return i().cancelPending(),void r(e);if("INITIAL_PUBLISH"===e.type){r(e);var n=o.getState();return"DRAGGING"!==n.phase&&De(!1),void i().start(n)}r(e),i().scroll(o.getState())}}}),lr(a,s))))};Dn="keys",xn=function(){return function(e){return q(H(e))}},wn=(b.Object||{})[Dn]||Object[Dn],(Sn={})[Dn]=xn(wn),C(C.S+C.F*r(function(){wn(1)}),"Object",Sn);var fr=b.Object.keys,gr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},mr=function(){var e=document.documentElement;return e||De(!1),e},br=function(){var e=mr();return Ut({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},vr=function(e){var t,n,r,o,i,a,s,l=e.critical,c=e.scrollOptions,u=e.entries,d=(t=gr(),n=br(),r=t.y,o=t.x,i=mr(),a=i.clientWidth,s=i.clientHeight,{frame:Ue({top:r,left:o,right:o+a,bottom:r+s}),scroll:{initial:t,current:t,max:n,diff:{value:Be,displacement:Be}}}),p=d.scroll.current,f=l.droppable,g=ct(u.droppables).filter(function(e){return e.descriptor.type===f.type}).map(function(e){return e.callbacks.getDimensionAndWatchScroll(p,c)}),m=ct(u.draggables).filter(function(e){return e.descriptor.type===l.draggable.type}).map(function(e){return e.getDimension(p)});return{dimensions:{draggables:ft(m),droppables:pt(g)},critical:l,viewport:d}},hr=function(e,t){e.critical.draggable.type!==t.type&&De(!1)},yr=function(n){var e,c,u,t,d,p,r,o={droppables:{},draggables:{}},i=null,a=(e={callbacks:{publish:n.publishWhileDragging,collectionStarting:n.collectionStarting,getCritical:function(){return i||De(!1),i.critical}},getEntries:function(){return o}},c=e.getEntries,u=e.callbacks,t=function(){},d={additions:{},removals:{},modified:{}},p=null,r=function(){t(),p||(p=requestAnimationFrame(function(){p=null,u.collectionStarting();var r=u.getCritical(),o=c(),e=d,t=e.additions,n=e.removals,i=e.modified,a=fr(t).map(function(e){return o.draggables[e].getDimension(Be)}).sort(function(e,t){return e.descriptor.index-t.descriptor.index}),s=fr(i).map(function(e){var t=o.droppables[e];t||De(!1);var n={withoutPlaceholder:!(t.descriptor.id===r.droppable.id)};return t.callbacks.recollect(n)}),l={additions:a,removals:fr(n),modified:s};d={additions:{},removals:{},modified:{}},u.publish(l)}))},{add:function(e){d.additions[e.id]=e,d.modified[e.droppableId]=!0,d.removals[e.id]&&delete d.removals[e.id],r()},remove:function(e){d.removals[e.id]=e,d.modified[e.droppableId]=!0,d.additions[e.id]&&delete d.additions[e.id],r()},stop:function(){p&&(cancelAnimationFrame(p),p=null,d={additions:{},removals:{},modified:{}})}});return{registerDraggable:function(e,t){var n={descriptor:e,getDimension:t};o.draggables[e.id]=n,i&&(hr(i,e),a.add(e))},updateDraggable:function(e,t,n){o.draggables[e.id]||De(!1),delete o.draggables[e.id];var r={descriptor:t,getDimension:n};o.draggables[t.id]=r},unregisterDraggable:function(e){var t=o.draggables[e.id];t||De(!1),t.descriptor===e&&(delete o.draggables[e.id],i&&(i.critical.draggable.id===e.id&&De(!1),hr(i,e),a.remove(e)))},registerDroppable:function(e,t){var n=e.id;o.droppables[n]={descriptor:e,callbacks:t},i&&De(!1)},updateDroppable:function(e,t,n){o.droppables[e.id]||De(!1),delete o.droppables[e.id];var r={descriptor:t,callbacks:n};o.droppables[t.id]=r,i&&De(!1)},unregisterDroppable:function(e){var t=o.droppables[e.id];t||De(!1),t.descriptor===e&&(delete o.droppables[e.id],i&&De(!1))},updateDroppableIsEnabled:function(e,t){o.droppables[e]||De(!1),i&&n.updateDroppableIsEnabled({id:e,isEnabled:t})},updateDroppableIsCombineEnabled:function(e,t){o.droppables[e]||De(!1),i&&n.updateDroppableIsCombineEnabled({id:e,isCombineEnabled:t})},scrollDroppable:function(e,t){var n=o.droppables[e];n||De(!1),i&&n.callbacks.scroll(t)},updateDroppableScroll:function(e,t){o.droppables[e]||De(!1),i&&n.updateDroppableScroll({id:e,offset:t})},startPublishing:function(e){i&&De(!1);var t=o.draggables[e.draggableId];t||De(!1);var n=o.droppables[t.descriptor.droppableId];n||De(!1);var r={draggable:t.descriptor,droppable:n.descriptor};return i={critical:r},vr({critical:r,entries:o,scrollOptions:e.scrollOptions})},stopPublishing:function(){if(i){a.stop();var t=i.critical.droppable;ct(o.droppables).filter(function(e){return e.descriptor.type===t.type}).forEach(function(e){return e.callbacks.dragStopped()}),i=null}}}},Dr="data-react-beautiful-dnd",xr=Dr+"-drag-handle",wr=function(e,n){return e.map(function(e){var t=e.styles[n];return t?e.selector+" { "+t+" }":""}).join(" ")},Sr=0,Cr=function(){var e=document.querySelector("head");return e||De(!1),e},Ir=function(){var e=document.createElement("style");return e.type="text/css",e},Er=function(){var t,e,n,r,o,i,a=""+Sr++,s=(t=a,e="\n cursor: -webkit-grab;\n cursor: grab;\n ",o={selector:(r=function(e){return"["+e+'="'+t+'"]'})(xr),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}},i=[(n="\n transition: "+zn.outOfTheWay+";\n ",{selector:r("data-react-beautiful-dnd-draggable"),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:r("data-react-beautiful-dnd-droppable"),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}],{always:wr(i,"always"),resting:wr(i,"resting"),dragging:wr(i,"dragging"),dropAnimating:wr(i,"dropAnimating"),userCancel:wr(i,"userCancel")}),l=null,c=null,u=ot(function(e,t){e||De(!1),e.innerHTML=t});return{dragging:function(){return u(c,s.dragging)},dropping:function(e){u(c,"DROP"!==e?s.userCancel:s.dropAnimating)},resting:function(){return u(c,s.resting)},styleContext:a,mount:function(){(l||c)&&De(!1),l=Ir(),c=Ir(),l.setAttribute(Dr+"-always",a),c.setAttribute(Dr+"-dynamic",a),Cr().appendChild(l),Cr().appendChild(c),u(l,s.always),u(c,s.resting)},unmount:function(){l&&c||De(!1),Cr().removeChild(l),Cr().removeChild(c),c=l=null}}},Or=function(e){window.scrollBy(e.x,e.y)},Pr=function(){var e=document.body;return e||De(!1),e},Tr=0,Mr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};C(C.S,"Date",{now:function(){return(new Date).getTime()}});var Br,Rr=b.Date.now,Ar=function(r){var o=[],i=null,e=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o=t,i||(i=requestAnimationFrame(function(){i=null,r.apply(void 0,o)}))};return e.cancel=function(){i&&(cancelAnimationFrame(i),i=null)},e},Nr=ot(function(e){return gt(e).filter(function(e){return!!e.isEnabled&&!!e.frame})}),Lr=function(e){var t,n=e.center,r=e.destination,o=e.droppables;if(r){var i=o[r];return i.frame?i:null}return t=n,dt(Nr(o),function(e){return e.frame||De(!1),vt(e.frame.pageMarginBox)(t)})},_r=.25,jr=.05,Fr=28,Gr=function(e){return Math.pow(e,2)},Wr={stopDampeningAt:1200,accelerateAt:360},Ur=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},kr=Wr.accelerateAt,qr=Wr.stopDampeningAt,zr=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Fr;if(e===t.startScrollingFrom)return 1;var n=Ur({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Fr*Gr(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=qr,o=Rr()-n;if(qr<=o)return e;if(o<kr)return 1;var i=Ur({startOfRange:kr,endOfRange:r,current:o}),a=e*Gr(i);return Math.ceil(a)}(i,r),1):i},Vr=function(e){var t,n,r=e.container,o=e.distanceToEdges,i=e.dragStartTime,a=e.axis,s=e.shouldUseTimeDampening,l={startScrollingFrom:(t=r)[(n=a).size]*_r,maxScrollValueAt:t[n.size]*jr};return o[a.end]<o[a.start]?zr({distanceToEdge:o[a.end],thresholds:l,dragStartTime:i,shouldUseTimeDampening:s}):-1*zr({distanceToEdge:o[a.start],thresholds:l,dragStartTime:i,shouldUseTimeDampening:s})},Hr=Ge(function(e){return 0===e?0:e}),Yr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=Vr({container:n,distanceToEdges:a,dragStartTime:t,axis:yt,shouldUseTimeDampening:i}),l=Vr({container:n,distanceToEdges:a,dragStartTime:t,axis:Dt,shouldUseTimeDampening:i}),c=Hr({x:l,y:s});if(Ne(c,Be))return null;var u,d,p,f,g,m,b=(d=(u={container:n,subject:r,proposedScroll:c}).container,p=u.subject,f=u.proposedScroll,g=p.height>d.height,(m=p.width>d.width)||g?m&&g?null:{x:m?0:f.x,y:g?0:f.y}:f);return b?Ne(b,Be)?null:b:null},$r=Ge(function(e){return 0===e?0:0<e?1:-1}),Kr=(Br=function(e,t){return e<0?e:t<e?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Re(t,r),i={x:Br(o.x,n.x),y:Br(o.y,n.y)};return Ne(i,Be)?null:i}),Jr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=$r(r),a=Kr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},Xr=function(e,t){return Jr({current:e.scroll.current,max:e.scroll.max,change:t})},Qr=function(e,t){var n=e.frame;return!!n&&Jr({current:n.scroll.current,max:n.scroll.max,change:t})},Zr=function(e){var t,n,r,o,i,a,s,l=e.state,c=e.dragStartTime,u=e.shouldUseTimeDampening,d=e.scrollWindow,p=e.scrollDroppable,f=l.current.page.borderBoxCenter,g=l.dimensions.draggables[l.critical.draggable.id].page.marginBox;if(l.isWindowScrollAllowed){var m=l.viewport,b=(n=(t={dragStartTime:c,viewport:m,subject:g,center:f,shouldUseTimeDampening:u}).viewport,r=t.subject,o=t.center,i=t.dragStartTime,a=t.shouldUseTimeDampening,(s=Yr({dragStartTime:i,container:n.frame,subject:r,center:o,shouldUseTimeDampening:a}))&&Xr(n,s)?s:null);if(b)return void d(b)}var v=Lr({center:f,destination:nt(l.impact),droppables:l.dimensions.droppables});if(v){var h=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=Yr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&Qr(t,s)?s:null}({dragStartTime:c,droppable:v,subject:g,center:f,shouldUseTimeDampening:u});h&&p(v.descriptor.id,h)}},eo=function(e){var l=e.move,s=e.scrollDroppable,i=e.scrollWindow,c=function(e,t){if(!Qr(e,t))return t;var n,r,o,i=(r=t,(o=(n=e).frame)&&Qr(n,r)?Kr({current:o.scroll.current,max:o.scroll.max,change:r}):null);if(!i)return s(e.descriptor.id,t),null;var a=Ae(t,i);return s(e.descriptor.id,a),Ae(t,a)},u=function(e,t,n){if(!e)return n;if(!Xr(t,n))return n;var r=function(e,t){if(!Xr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Kr({current:r,max:n,change:t})}(t,n);if(!r)return i(n),null;var o=Ae(n,r);return i(o),Ae(n,o)};return function(e){var t=e.scrollJumpRequest;if(t){var n=nt(e.impact);n||De(!1);var r=c(e.dimensions.droppables[n],t);if(r){var o,i,a=e.viewport,s=u(e.isWindowScrollAllowed,a,r);s&&(o=s,i=Re(e.current.client.selection,o),l({client:i}))}}}},to=function(e){var t,n,r,o,i,a,s,l,c=e.scrollDroppable,u=e.scrollWindow,d=e.move,p=(n=(t={scrollWindow:u,scrollDroppable:c}).scrollWindow,r=t.scrollDroppable,o=Ar(n),i=Ar(r),a=null,{start:function(e){a&&De(!1);var t=Rr(),n=!1,r=function(){n=!0};Zr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),a={dragStartTime:t,shouldUseTimeDampening:n},n&&s(e)},stop:function(){a&&(l(),a=null)},cancelPending:l=function(){a||De(!1),o.cancel(),i.cancel()},scroll:s=function(e){a||De(!1);var t=a,n=t.shouldUseTimeDampening,r=t.dragStartTime;Zr({state:e,scrollWindow:o,scrollDroppable:i,dragStartTime:r,shouldUseTimeDampening:n})}}),f=eo({move:d,scrollWindow:u,scrollDroppable:c});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&f(e):p.scroll(e))},cancelPending:p.cancelPending,start:p.start,stop:p.stop}},no=function(e){return"private-react-beautiful-dnd-key-do-not-use-"+e},ro=no("store"),oo=no("droppable-id"),io=no("droppable-type"),ao=no("dimension-marshal"),so=no("style"),lo=no("can-lift"),co=no("is-movement-allowed");var uo,po=function(o){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).onFatalError=function(e){if(t.props.onError(),-1===e.message.indexOf("Invariant failed"))throw e;t.setState({})},t}le(e,o);var t=e.prototype;return t.componentDidMount=function(){window.addEventListener("error",this.onFatalError)},t.componentWillUnmount=function(){window.removeEventListener("error",this.onFatalError)},t.componentDidCatch=function(e){this.onFatalError(e)},t.render=function(){return this.props.children},e}(u.Component),fo=function(a){function e(e,t){var r,n,o;(r=a.call(this,e,t)||this).store=void 0,r.dimensionMarshal=void 0,r.styleMarshal=void 0,r.autoScroller=void 0,r.announcer=void 0,r.unsubscribe=void 0,r.canLift=function(e){return t=r.store.getState(),n=e,"IDLE"===t.phase||"DROP_ANIMATING"===t.phase&&t.completed.result.draggableId!==n&&"DROP"===t.completed.result.reason;var t,n},r.getIsMovementAllowed=function(){return yn(r.store.getState())},r.tryResetStore=function(){"IDLE"!==r.store.getState().phase&&r.store.dispatch({type:"CLEAN",payload:null})},r.announcer=(n="react-beautiful-dnd-announcement-"+Tr++,o=null,{announce:function(e){o&&(o.textContent=e)},id:n,mount:function(){o&&De(!1),(o=document.createElement("div")).id=n,o.setAttribute("aria-live","assertive"),o.setAttribute("role","log"),o.setAttribute("aria-atomic","true"),K(o.style,Mr),Pr().appendChild(o)},unmount:function(){o||De(!1),Pr().removeChild(o),o=null}}),r.styleMarshal=Er(),r.store=pr({getDimensionMarshal:function(){return r.dimensionMarshal},styleMarshal:r.styleMarshal,getResponders:function(){return{onBeforeDragStart:r.props.onBeforeDragStart,onDragStart:r.props.onDragStart,onDragEnd:r.props.onDragEnd,onDragUpdate:r.props.onDragUpdate}},announce:r.announcer.announce,getScroller:function(){return r.autoScroller}});var i=be({publishWhileDragging:Rn,updateDroppableScroll:Nn,updateDroppableIsEnabled:Ln,updateDroppableIsCombineEnabled:_n,collectionStarting:An},r.store.dispatch);return r.dimensionMarshal=yr(i),r.autoScroller=to(J({scrollWindow:Or,scrollDroppable:r.dimensionMarshal.scrollDroppable},be({move:jn},r.store.dispatch))),r}le(e,a);var t=e.prototype;return t.getChildContext=function(){var e;return(e={})[ro]=this.store,e[ao]=this.dimensionMarshal,e[so]=this.styleMarshal.styleContext,e[lo]=this.canLift,e[co]=this.getIsMovementAllowed,e},t.componentDidMount=function(){this.styleMarshal.mount(),this.announcer.mount()},t.componentWillUnmount=function(){this.tryResetStore(),this.styleMarshal.unmount(),this.announcer.unmount()},t.render=function(){return u.createElement(po,{onError:this.tryResetStore},this.props.children)},e}(u.Component);function go(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}fo.childContextTypes=((uo={})[ro]=Me.shape({dispatch:Me.func.isRequired,subscribe:Me.func.isRequired,getState:Me.func.isRequired}).isRequired,uo[ao]=Me.object.isRequired,uo[so]=Me.string.isRequired,uo[lo]=Me.func.isRequired,uo[co]=Me.func.isRequired,uo);var mo=Me.shape({trySubscribe:Me.func.isRequired,tryUnsubscribe:Me.func.isRequired,notifyNestedSubs:Me.func.isRequired,isSubscribed:Me.func.isRequired}),bo=Me.shape({subscribe:Me.func.isRequired,dispatch:Me.func.isRequired,getState:Me.func.isRequired});function vo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ho(){return(ho=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yo(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}!function(o){var e;void 0===o&&(o="store");var n=o+"Subscription",t=function(r){go(t,r);var e=t.prototype;function t(e,t){var n;return(n=r.call(this,e,t)||this)[o]=e.store,n}return e.getChildContext=function(){var e;return(e={})[o]=this[o],e[n]=null,e},e.render=function(){return w.Children.only(this.props.children)},t}(w.Component);t.propTypes={store:bo.isRequired,children:Me.element.isRequired},t.childContextTypes=((e={})[o]=bo.isRequired,e[n]=mo,e)}();var Do={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},So={};function Co(e){return Se.isMemo(e)?wo:So[e.$$typeof]||Do}So[Se.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Io=Object.defineProperty,Eo=Object.getOwnPropertyNames,Oo=Object.getOwnPropertySymbols,Po=Object.getOwnPropertyDescriptor,To=Object.getPrototypeOf,Mo=Object.prototype;var Bo=function e(t,n,r){if("string"==typeof n)return t;if(Mo){var o=To(n);o&&o!==Mo&&e(t,o,r)}var i=Eo(n);Oo&&(i=i.concat(Oo(n)));for(var a=Co(t),s=Co(n),l=0;l<i.length;++l){var c=i[l];if(!(xo[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Po(n,c);try{Io(t,c,u)}catch(e){}}}return t},Ro=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=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,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}},Ao={notify:function(){}};var No=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=Ao}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var n,r;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(n=[],r=[],{clear:function(){n=r=null},notify:function(){for(var e=n=r,t=0;t<e.length;t++)e[t]()},get:function(){return r},subscribe:function(e){var t=!0;return r===n&&(r=n.slice()),r.push(e),function(){t&&null!==n&&(t=!1,r===n&&(r=n.slice()),r.splice(r.indexOf(e),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Ao)},e}(),Lo=0,_o={};function jo(){}function Fo(a,e){var t,n;void 0===e&&(e={});var r=e,o=r.getDisplayName,s=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,i=r.methodName,l=void 0===i?"connectAdvanced":i,c=r.renderCountProp,u=void 0===c?void 0:c,d=r.shouldHandleStateChanges,p=void 0===d||d,f=r.storeKey,g=void 0===f?"store":f,m=r.withRef,b=void 0!==m&&m,v=yo(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),h=g+"Subscription",y=Lo++,D=((t={})[g]=bo,t[h]=mo,t),x=((n={})[h]=mo,n);return function(n){Ro(Ce(n),"You must pass a component to the function returned by "+l+". Instead received "+JSON.stringify(n));var e=n.displayName||n.name||"Component",o=s(e),i=ho({},v,{getDisplayName:s,methodName:l,renderCountProp:u,shouldHandleStateChanges:p,storeKey:g,withRef:b,displayName:o,wrappedComponentName:e,WrappedComponent:n}),t=function(r){function e(e,t){var n;return(n=r.call(this,e,t)||this).version=y,n.state={},n.renderCount=0,n.store=e[g]||t[g],n.propsMode=Boolean(e[g]),n.setWrappedInstance=n.setWrappedInstance.bind(vo(vo(n))),Ro(n.store,'Could not find "'+g+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+g+'" as a prop to "'+o+'".'),n.initSelector(),n.initSubscription(),n}go(e,r);var t=e.prototype;return t.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[h]=t||this.context[h],e},t.componentDidMount=function(){p&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},t.componentWillReceiveProps=function(e){this.selector.run(e)},t.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},t.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=jo,this.store=null,this.selector.run=jo,this.selector.shouldComponentUpdate=!1},t.getWrappedInstance=function(){return Ro(b,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},t.setWrappedInstance=function(e){this.wrappedInstance=e},t.initSelector=function(){var n,r,o,e=a(this.store.dispatch,i);this.selector=(n=e,r=this.store,o={run:function(e){try{var t=n(r.getState(),e);(t!==o.props||o.error)&&(o.shouldComponentUpdate=!0,o.props=t,o.error=null)}catch(e){o.shouldComponentUpdate=!0,o.error=e}}}),this.selector.run(this.props)},t.initSubscription=function(){if(p){var e=(this.propsMode?this.props:this.context)[h];this.subscription=new No(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},t.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(_o)):this.notifyNestedSubs()},t.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},t.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},t.addExtraProps=function(e){if(!(b||u||this.propsMode&&this.subscription))return e;var t=ho({},e);return b&&(t.ref=this.setWrappedInstance),u&&(t[u]=this.renderCount++),this.propsMode&&this.subscription&&(t[h]=this.subscription),t},t.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return w.createElement(n,this.addExtraProps(e.props))},e}(w.Component);return t.WrappedComponent=n,t.displayName=o,t.childContextTypes=x,t.contextTypes=D,t.propTypes=D,Bo(t,n)}}var Go=Object.prototype.hasOwnProperty;function Wo(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Uo(e,t){if(Wo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Go.call(t,n[o])||!Wo(e[n[o]],t[n[o]]))return!1;return!0}function ko(o){return function(e,t){var n=o(e,t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function qo(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function zo(o,e){return function(e,t){t.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,t){r.mapToProps=o,r.dependsOnOwnProps=qo(o);var n=r(e,t);return"function"==typeof n&&(r.mapToProps=n,r.dependsOnOwnProps=qo(n),n=r(e,t)),n},r}}var Vo=[function(e){return"function"==typeof e?zo(e):void 0},function(e){return e?void 0:ko(function(e){return{dispatch:e}})},function(t){return t&&"object"==typeof t?ko(function(e){return be(t,e)}):void 0}];var Ho=[function(e){return"function"==typeof e?zo(e):void 0},function(e){return e?void 0:ko(function(){return{}})}];function Yo(e,t,n){return ho({},n,e,t)}var $o=[function(e){return"function"==typeof e?(l=e,function(e,t){t.displayName;var o,i=t.pure,a=t.areMergedPropsEqual,s=!1;return function(e,t,n){var r=l(e,t,n);return s?i&&a(r,o)||(o=r):(s=!0,o=r),o}}):void 0;var l},function(e){return e?void 0:function(){return Yo}}];function Ko(n,r,o,i){return function(e,t){return o(n(e,t),r(i,t),t)}}function Jo(a,s,l,c,e){var u,d,p,f,g,m=e.areStatesEqual,b=e.areOwnPropsEqual,v=e.areStatePropsEqual,n=!1;function r(e,t){var n,r,o=!b(t,d),i=!m(e,u);return u=e,d=t,o&&i?(p=a(u,d),s.dependsOnOwnProps&&(f=s(c,d)),g=l(p,f,d)):o?(a.dependsOnOwnProps&&(p=a(u,d)),s.dependsOnOwnProps&&(f=s(c,d)),g=l(p,f,d)):(i&&(n=a(u,d),r=!v(n,p),p=n,r&&(g=l(p,f,d))),g)}return function(e,t){return n?r(e,t):(p=a(u=e,d=t),f=s(c,d),g=l(p,f,d),n=!0,g)}}function Xo(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=yo(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?Jo:Ko)(a,s,l,e,i)}function Qo(n,e,r){for(var t=e.length-1;0<=t;t--){var o=e[t](n);if(o)return o}return function(e,t){throw new Error("Invalid value of type "+typeof n+" for "+r+" argument when connecting component "+t.wrappedComponentName+".")}}function Zo(e,t){return e===t}var ei,ti,ni,ri,oi,ii,ai,si,li,ci,ui,di,pi,fi=(ni=(ti=void 0===ei?{}:ei).connectHOC,ri=void 0===ni?Fo:ni,oi=ti.mapStateToPropsFactories,ii=void 0===oi?Ho:oi,ai=ti.mapDispatchToPropsFactories,si=void 0===ai?Vo:ai,li=ti.mergePropsFactories,ci=void 0===li?$o:li,ui=ti.selectorFactory,di=void 0===ui?Xo:ui,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,l=void 0===s?Zo:s,c=o.areOwnPropsEqual,u=void 0===c?Uo:c,d=o.areStatePropsEqual,p=void 0===d?Uo:d,f=o.areMergedPropsEqual,g=void 0===f?Uo:f,m=yo(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=Qo(e,ii,"mapStateToProps"),v=Qo(t,si,"mapDispatchToProps"),h=Qo(n,ci,"mergeProps");return ri(di,ho({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:v,initMergeProps:h,pure:a,areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:p,areMergedPropsEqual:g},m))}),gi=function(t){return function(e){return t===e}},mi=gi("scroll"),bi=gi("auto"),vi=(gi("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),hi=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return vi(n,mi)||vi(n,bi)},yi=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Di=function(e){return{closestScrollable:function e(t){return null==t?null:t===document.body?null:t===document.documentElement?null:hi(t)?t:e(t.parentElement)}(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},xi=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=Je(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=ke({top:r,right:a,bottom:i,left:o},n.border);return Ve({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=$e(u,o),p=function(){if(!c)return null;var e=Je(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:$e(e,o),scroll:yi(c),scrollSize:t,shouldClipSubject:l}}();return kt({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:p})},wi=function(e){return e&&e.env.closestScrollable||null},Si={passive:!1},Ci={passive:!0},Ii=function(e){return e.shouldPublishImmediately?Si:Ci},Ei=function(r){function e(e,t){var s;(s=r.call(this,e,t)||this).dragging=void 0,s.callbacks=void 0,s.publishedDescriptor=null,s.getClosestScroll=function(){var e=s.dragging;return e&&e.env.closestScrollable?yi(e.env.closestScrollable):Be},s.memoizedUpdateScroll=ot(function(e,t){s.publishedDescriptor||De(!1);var n={x:e,y:t};s.context[ao].updateDroppableScroll(s.publishedDescriptor.id,n)}),s.updateScroll=function(){var e=s.getClosestScroll();s.memoizedUpdateScroll(e.x,e.y)},s.scheduleScrollUpdate=Ar(s.updateScroll),s.onClosestScroll=function(){var e=s.dragging,t=wi(s.dragging);e&&t||De(!1),e.scrollOptions.shouldPublishImmediately?s.updateScroll():s.scheduleScrollUpdate()},s.scroll=function(e){var t=wi(s.dragging);t||De(!1),t.scrollTop+=e.y,t.scrollLeft+=e.x},s.dragStopped=function(){var e=s.dragging;e||De(!1);var t=wi(e);s.dragging=null,t&&(s.scheduleScrollUpdate.cancel(),t.removeEventListener("scroll",s.onClosestScroll,Ii(e.scrollOptions)))},s.getMemoizedDescriptor=ot(function(e,t){return{id:e,type:t}}),s.publish=function(){var e=s.context[ao],t=s.getMemoizedDescriptor(s.props.droppableId,s.props.type);if(!s.publishedDescriptor)return e.registerDroppable(t,s.callbacks),void(s.publishedDescriptor=t);s.publishedDescriptor!==t&&(e.updateDroppable(s.publishedDescriptor,t,s.callbacks),s.publishedDescriptor=t)},s.unpublish=function(){s.publishedDescriptor||De(!1),s.context[ao].unregisterDroppable(s.publishedDescriptor),s.publishedDescriptor=null},s.recollect=function(e){var t=s.dragging,n=wi(t);t&&n||De(!1);var r=function(){return xi({ref:t.ref,descriptor:t.descriptor,env:t.env,windowScroll:Be,direction:s.props.direction,isDropDisabled:s.props.isDropDisabled,isCombineEnabled:s.props.isCombineEnabled,shouldClipSubject:!s.props.ignoreContainerClipping})};return e.withoutPlaceholder?function(e,t){if(!e)return t();var n=e.style.display;e.style.display="none";var r=t();return e.style.display=n,r}(s.props.getPlaceholderRef(),r):r()},s.getDimensionAndWatchScroll=function(e,t){s.dragging&&De(!1);var n=s.publishedDescriptor;n||De(!1);var r=s.props.getDroppableRef();r||De(!1);var o=Di(r),i={ref:r,descriptor:n,env:o,scrollOptions:t};s.dragging=i;var a=xi({ref:r,descriptor:n,env:o,windowScroll:e,direction:s.props.direction,isDropDisabled:s.props.isDropDisabled,isCombineEnabled:s.props.isCombineEnabled,shouldClipSubject:!s.props.ignoreContainerClipping});return o.closestScrollable&&o.closestScrollable.addEventListener("scroll",s.onClosestScroll,Ii(i.scrollOptions)),a};var n={getDimensionAndWatchScroll:s.getDimensionAndWatchScroll,recollect:s.recollect,dragStopped:s.dragStopped,scroll:s.scroll};return s.callbacks=n,s}le(e,r);var t=e.prototype;return t.componentDidMount=function(){this.publish()},t.componentDidUpdate=function(e){if(this.publish(),this.dragging){var t=this.props.isDropDisabled!==e.isDropDisabled,n=this.props.isCombineEnabled!==e.isCombineEnabled;if(t||n){var r=this.context[ao];t&&r.updateDroppableIsEnabled(this.props.droppableId,!this.props.isDropDisabled),n&&r.updateDroppableIsCombineEnabled(this.props.droppableId,this.props.isCombineEnabled)}}},t.componentWillUnmount=function(){this.dragging&&this.dragStopped(),this.unpublish()},t.render=function(){return this.props.children},e}(u.Component);Ei.contextTypes=((pi={})[ao]=Me.object.isRequired,pi);var Oi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Pi=function(o){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).mountTimerId=null,t.state={isAnimatingOpenOnMount:"open"===t.props.animate},t.onTransitionEnd=function(e){"height"===e.propertyName&&(t.props.onTransitionEnd(),"close"===t.props.animate&&t.props.onClose())},t}le(e,o),e.getDerivedStateFromProps=function(e,t){return t.isAnimatingOpenOnMount&&"open"!==e.animate?{isAnimatingOpenOnMount:!1}:t};var t=e.prototype;return t.componentDidMount=function(){var e=this;this.state.isAnimatingOpenOnMount&&(this.mountTimerId=setTimeout(function(){e.mountTimerId=null,e.state.isAnimatingOpenOnMount&&e.setState({isAnimatingOpenOnMount:!1})}))},t.componentWillUnmount=function(){this.mountTimerId&&(clearTimeout(this.mountTimerId),this.mountTimerId=null)},t.getSize=function(){if(this.state.isAnimatingOpenOnMount)return Oi;if("close"===this.props.animate)return Oi;var e=this.props.placeholder;return{height:e.client.borderBox.height,width:e.client.borderBox.width,margin:e.client.margin}},t.render=function(){var e=this.props.placeholder,t=this.getSize(),n=e.display,r=e.tagName,o={display:n,boxSizing:"border-box",width:t.width,height:t.height,marginTop:t.margin.top,marginRight:t.margin.right,marginBottom:t.margin.bottom,marginLeft:t.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:zn.placeholder};return u.createElement(r,{style:o,onTransitionEnd:this.onTransitionEnd,ref:this.props.innerRef})},e}(w.PureComponent),Ti=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Mi(e){return e instanceof Ti(e).HTMLElement}var Bi,Ri,Ai=function(e){e&&Mi(e)||De(!1)},Ni=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={isVisible:Boolean(e.props.on),data:e.props.on,animate:e.props.shouldAnimate&&e.props.on?"open":"none"},e.onClose=function(){"close"===e.state.animate&&e.setState({isVisible:!1})},e}return le(e,o),e.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},e.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},e}(u.PureComponent),Li=function(r){function e(e,t){var n;return(n=r.call(this,e,t)||this).styleContext=void 0,n.ref=null,n.placeholderRef=null,n.setPlaceholderRef=function(e){n.placeholderRef=e},n.getPlaceholderRef=function(){return n.placeholderRef},n.setRef=function(e){null!==e&&e!==n.ref&&(n.ref=e,Ai(e))},n.getDroppableRef=function(){return n.ref},n.onPlaceholderTransitionEnd=function(){n.context[co]()&&n.props.updateViewportMaxScroll({maxScroll:br()})},n.styleContext=t[so],n}le(e,r);var t=e.prototype;return t.getChildContext=function(){var e;return(e={})[oo]=this.props.droppableId,e[io]=this.props.type,e},t.componentDidMount=function(){Ai(this.ref),this.warnIfPlaceholderNotMounted()},t.componentDidUpdate=function(){this.warnIfPlaceholderNotMounted()},t.componentWillUnmount=function(){this.ref=null,this.placeholderRef=null},t.warnIfPlaceholderNotMounted=function(){},t.getPlaceholder=function(){var o=this;return u.createElement(Ni,{on:this.props.placeholder,shouldAnimate:this.props.shouldAnimatePlaceholder},function(e){var t=e.onClose,n=e.data,r=e.animate;return u.createElement(Pi,{placeholder:n,onClose:t,innerRef:o.setPlaceholderRef,animate:r,onTransitionEnd:o.onPlaceholderTransitionEnd})})},t.render=function(){var e=this.props,t=e.children,n=e.direction,r=e.type,o=e.droppableId,i=e.isDropDisabled,a=e.isCombineEnabled,s=e.ignoreContainerClipping,l=e.snapshot,c={innerRef:this.setRef,placeholder:this.getPlaceholder(),droppableProps:{"data-react-beautiful-dnd-droppable":this.styleContext}};return u.createElement(Ei,{droppableId:o,type:r,direction:n,ignoreContainerClipping:s,isDropDisabled:i,isCombineEnabled:a,getDroppableRef:this.getDroppableRef,getPlaceholderRef:this.getPlaceholderRef},t(c,l))},e}(u.Component);Li.contextTypes=((Bi={})[so]=Me.string.isRequired,Bi[co]=Me.func.isRequired,Bi),Li.childContextTypes=((Ri={})[oo]=Me.string.isRequired,Ri[io]=Me.string.isRequired,Ri);var _i,ji=function(e,t){return e===t},Fi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},Gi=function(e,t){return e===t.droppable.type},Wi=function(e,t){return t.draggables[e.draggable.id]},Ui=fi(function(){var g={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null}},m=J({},g,{shouldAnimatePlaceholder:!1}),b=ot(function(e,t,n,r){return n.descriptor.droppableId===e?{placeholder:n.placeholder,shouldAnimatePlaceholder:!1,snapshot:r}:t?{placeholder:n.placeholder,shouldAnimatePlaceholder:!0,snapshot:r}:g}),v=ot(function(e,t,n){var r=n.descriptor.id;return{isDraggingOver:t,draggingOverWith:t?r:null,draggingFromThisWith:n.descriptor.droppableId===e?r:null}});return function(e,t){var n=t.droppableId,r=t.type;if(e.isDragging){var o=e.critical;if(!Gi(r,o))return g;var i=Wi(o,e.dimensions),a=nt(e.impact)===n,s=v(n,a,i);return b(n,a,i,s)}if("DROP_ANIMATING"===e.phase){var l=e.completed;if(!Gi(r,l.critical))return g;var c=Wi(l.critical,e.dimensions),u=v(n,Fi(l.result)===n,c);return b(n,nt(l.impact)===n,c,u)}if("IDLE"===e.phase&&e.completed){var d=e.completed;if(!Gi(r,d.critical))return g;var p=nt(d.impact)===n,f=Boolean(d.impact.merge);return e.shouldFlush?m:p?f?g:m:g}return g}},{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{storeKey:ro,pure:!0,areStatePropsEqual:ji})(Li);Ui.defaultProps={type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1};var ki=function(r){function e(){for(var s,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(s=r.call.apply(r,[this].concat(t))||this).publishedDescriptor=null,s.getMemoizedDescriptor=ot(function(e,t,n,r){return{id:e,index:t,droppableId:n,type:r}}),s.publish=function(){var e=s.context[ao],t=s.getMemoizedDescriptor(s.props.draggableId,s.props.index,s.props.droppableId,s.props.type);if(!s.publishedDescriptor)return e.registerDraggable(t,s.getDimension),void(s.publishedDescriptor=t);t!==s.publishedDescriptor&&(e.updateDraggable(s.publishedDescriptor,t,s.getDimension),s.publishedDescriptor=t)},s.unpublish=function(){s.publishedDescriptor||De(!1),s.context[ao].unregisterDraggable(s.publishedDescriptor),s.publishedDescriptor=null},s.getDimension=function(e){void 0===e&&(e=Be);var t=s.props.getDraggableRef(),n=s.publishedDescriptor;t||De(!1),n||De(!1);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Ke(o,r),a=$e(i,e);return{descriptor:n,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}},s}le(e,r);var t=e.prototype;return t.componentDidMount=function(){this.publish()},t.componentDidUpdate=function(){this.publish()},t.componentWillUnmount=function(){this.unpublish()},t.render=function(){return this.props.children},e}(w.Component);ki.contextTypes=((_i={})[ao]=Me.object.isRequired,_i);var qi,zi,Vi,Hi,Yi=function(e){var t;(t=e)instanceof Ti(t).SVGElement&&De(!1)},$i=function(e){if(e.hasAttribute(xr))return Yi(e),e;var t=e.querySelector("[data-react-beautiful-dnd-drag-handle]");return Yi(e),t||De(!1),Mi(t)||De(!1),t},Ki=null,Ji={capture:!0},Xi=(qi=!1,zi=function(){qi&&(qi=!1,window.removeEventListener("focus",Vi,Ji))},Vi=function(){zi(),Ki=null},(Hi=function(){qi||(qi=!0,window.addEventListener("focus",Vi,Ji))}).cancel=function(){return zi()},Hi),Qi=function(e){Ki=e,Xi()},Zi=function(e,t){if(Ki&&e===Ki){Ki=null,Xi.cancel();var n=$i(t);n&&n.focus()}};function ea(e){return e instanceof Ti(e).Element}var ta,na,ra,oa,ia={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0},aa=function(e,t){if(t.canDragInteractiveElements)return!0;var n=e.target,r=e.currentTarget;return!ea(n)||!ea(r)||!function e(t,n){if(null==n)return!1;if(Boolean(ia[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(r,n)},sa=function(r){var t=ot(function(e,t){var n={x:e,y:t};r.onMove(n)}),e=Ar(function(e){return t(e.x,e.y)}),n=Ar(r.onMoveUp),o=Ar(r.onMoveDown),i=Ar(r.onMoveRight),a=Ar(r.onMoveLeft),s=Ar(r.onWindowScroll);return{move:e,moveUp:n,moveDown:o,moveRight:i,moveLeft:a,windowScrollMove:s,cancel:function(){e.cancel(),n.cancel(),o.cancel(),i.cancel(),a.cancel(),s.cancel()}}},la=((ta={})[13]=!0,ta[9]=!0,ta),ca=function(e){la[e.keyCode]&&e.preventDefault()},ua=function(e,t){return J({},e,t)},da=function(n,e,r){e.forEach(function(e){var t=ua(r,e.options);n.addEventListener(e.eventName,e.fn,t)})},pa=function(n,e,r){e.forEach(function(e){var t=ua(r,e.options);n.removeEventListener(e.eventName,e.fn,t)})},fa={capture:!0},ga=function(e){var t=!1,n=function(){t&&(t=!1,pa(e(),r,fa))},r=[{eventName:"click",fn:function(e){e.preventDefault(),n()}},{eventName:"mousedown",fn:n},{eventName:"touchstart",fn:n}];return{preventNext:function(){t&&n(),t||(t=!0,da(e(),r,fa))},abort:n}},ma=function(){var e=!1;return{handle:function(){e&&De(!1),e=!0},isHandled:function(){return e},reset:function(){e=!1}}},ba=(na="visibilitychange","undefined"==typeof document?na:dt([na,"ms"+na,"webkit"+na,"moz"+na,"o"+na],function(e){return"on"+e in document})||na),va=function(){},ha=ma(),ya=function(e){var l=e.callbacks,t=e.getWindow,n=e.canStartCapturing,r=e.getShouldRespectForceTouch,c={isDragging:!1,pending:null},u=function(e){c=e},o=function(){return Boolean(c.pending||c.isDragging)},d=sa(l),i=ga(t),a=function(e,t){void 0===e&&(e=va),void 0===t&&(t=!0),d.cancel(),b(),ha.reset(),t&&i.preventNext(),u({isDragging:!1,pending:null}),e()},p=function(){a(va,!1)},s=function(e){void 0===e&&(e=va),c.pending?p():c.isDragging&&a(e)},f=function(){s(l.onCancel)},g=[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,r=e.clientY;if(0===t){var o,i,a,s={x:n,y:r};if(c.isDragging)return e.preventDefault(),void d.move(s);if(c.pending||(p(),De(!1)),o=c.pending,i=s,5<=Math.abs(i.x-o.x)||5<=Math.abs(i.y-o.y))e.preventDefault(),void 0===(a=function(){return l.onLift({clientSelection:s,movementMode:"FLUID"})})&&(a=va),u({pending:null,isDragging:!0}),a()}}},{eventName:"mouseup",fn:function(e){c.pending?p():(e.preventDefault(),a(l.onDrop))}},{eventName:"mousedown",fn:function(e){c.isDragging&&e.preventDefault(),a(l.onCancel)}},{eventName:"keydown",fn:function(e){if(c.isDragging)return 27===e.keyCode?(e.preventDefault(),void f()):void ca(e);f()}},{eventName:"resize",fn:f},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.currentTarget===t()&&(c.pending?p():d.windowScrollMove())}},{eventName:"webkitmouseforcechanged",fn:function(e){if(null!=e.webkitForce&&null!=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN){var t=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN,n=e.webkitForce>=t;r()?n&&f():e.preventDefault()}}},{eventName:ba,fn:f}],m=function(){var e=t();da(e,g,{capture:!0})},b=function(){var e=t();pa(e,g,{capture:!0})};return{onMouseDown:function(e){if(!ha.isHandled()&&(o()&&De(!1),n(e)&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))){ha.handle(),e.preventDefault();var t={x:e.clientX,y:e.clientY};u({pending:t,isDragging:!1}),m()}},kill:s,isCapturing:o,isDragging:function(){return c.isDragging},unmount:function(){s(),i.abort()}}},Da=((ra={})[34]=!0,ra[33]=!0,ra[36]=!0,ra[35]=!0,ra),xa=function(){},wa=function(e){var o=e.callbacks,t=e.getWindow,i=e.getDraggableRef,a=e.canStartCapturing,n={isDragging:!1},s=function(e){n=e},l=function(e){void 0===e&&(e=xa),d.cancel(),g(),s({isDragging:!1}),e()},r=function(){n.isDragging&&l()},c=function(){l(o.onCancel)},u=function(){return n.isDragging},d=sa(o),p=[{eventName:"mousedown",fn:c},{eventName:"mouseup",fn:c},{eventName:"click",fn:c},{eventName:"touchstart",fn:c},{eventName:"resize",fn:c},{eventName:"wheel",fn:c,options:{passive:!0}},{eventName:"scroll",options:{capture:!1},fn:function(e){e.currentTarget===t()&&o.onWindowScroll()}},{eventName:ba,fn:c}],f=function(){da(t(),p,{capture:!0})},g=function(){pa(t(),p,{capture:!0})};return{onKeyDown:function(e){if(u())return 27===e.keyCode?(e.preventDefault(),void c()):32===e.keyCode?(e.preventDefault(),void l(o.onDrop)):40===e.keyCode?(e.preventDefault(),void d.moveDown()):38===e.keyCode?(e.preventDefault(),void d.moveUp()):39===e.keyCode?(e.preventDefault(),void d.moveRight()):37===e.keyCode?(e.preventDefault(),void d.moveLeft()):void(Da[e.keyCode]?e.preventDefault():ca(e));var t;if(!e.defaultPrevented&&a(e)&&32===e.keyCode){var n=i();n||De(!1);var r=Ue(n.getBoundingClientRect()).center;return e.preventDefault(),void 0===(t=function(){return o.onLift({clientSelection:r,movementMode:"SNAP"})})&&(t=xa),s({isDragging:!0}),f(),void t()}},kill:r,isDragging:u,isCapturing:u,unmount:r}},Sa=ma(),Ca=function(){},Ia=function(){var e={preventTouchMove:Ca,releaseTouchMove:Ca};if("undefined"==typeof window)return e;if(!("ontouchstart"in window))return e;var t=!1;window.addEventListener("touchmove",function(e){t&&(e.defaultPrevented||e.preventDefault())},{passive:!1,capture:!1});return{preventTouchMove:function(){t=!0},releaseTouchMove:function(){t=!1}}}(),Ea={isDragging:!1,pending:null,hasMoved:!1,longPressTimerId:null},Oa=function(e){var t=e.callbacks,n=e.getWindow,o=e.canStartCapturing,r=e.getShouldRespectForceTouch,i=Ea,a=function(e){i=J({},i,e)},s=function(){return Boolean(i.pending||i.isDragging||i.longPressTimerId)},l=sa(t),c=ga(n),u=function(){var e=i.pending;e||(p(),De(!1)),a({isDragging:!0,hasMoved:!1,pending:null,longPressTimerId:null}),t.onLift({clientSelection:e,movementMode:"FLUID"})},d=function(e){void 0===e&&(e=Ca),l.cancel(),Sa.reset(),Ia.releaseTouchMove(),v(),c.preventNext(),a(Ea),e()},p=function(){i.longPressTimerId&&clearTimeout(i.longPressTimerId),l.cancel(),Sa.reset(),Ia.releaseTouchMove(),v(),a(Ea)},f=function(e){void 0===e&&(e=Ca),i.pending?p():i.isDragging&&d(e)},g=function(){f(t.onCancel)},m=[{eventName:"touchmove",options:{passive:!1},fn:function(e){if(i.isDragging){i.hasMoved||a({hasMoved:!0});var t=e.touches[0],n={x:t.clientX,y:t.clientY};e.preventDefault(),l.move(n)}else p()}},{eventName:"touchend",fn:function(e){i.isDragging?(e.preventDefault(),d(t.onDrop)):p()}},{eventName:"touchcancel",fn:function(e){i.isDragging?(e.preventDefault(),d(t.onCancel)):p()}},{eventName:"touchstart",fn:g},{eventName:"orientationchange",fn:g},{eventName:"resize",fn:g},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){i.pending?p():l.windowScrollMove()}},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){i.isDragging&&27===e.keyCode&&e.preventDefault(),g()}},{eventName:"touchforcechange",fn:function(e){(i.isDragging||i.pending)&&(i.hasMoved?e.preventDefault():r()?.15<=e.touches[0].force&&g():e.preventDefault())}},{eventName:ba,fn:g}],b=function(){da(n(),m,{capture:!0})},v=function(){pa(n(),m,{capture:!0})};return{onTouchStart:function(e){var t,n,r;Sa.isHandled()||(s()&&De(!1),o(e)&&(Sa.handle(),Ia.preventTouchMove(),t=e.touches[0],n={x:t.clientX,y:t.clientY},r=setTimeout(u,150),a({longPressTimerId:r,pending:n,isDragging:!1,hasMoved:!1}),b()))},kill:f,isCapturing:s,isDragging:function(){return i.isDragging},unmount:function(){f(),c.abort()}}},Pa=function(e){e.preventDefault()},Ta=function(o){function e(e,t){var n;(n=o.call(this,e,t)||this).mouseSensor=void 0,n.keyboardSensor=void 0,n.touchSensor=void 0,n.sensors=void 0,n.styleContext=void 0,n.canLift=void 0,n.isFocused=!1,n.lastDraggableRef=void 0,n.onFocus=function(){n.isFocused=!0},n.onBlur=function(){n.isFocused=!1},n.onKeyDown=function(e){n.mouseSensor.isCapturing()||n.touchSensor.isCapturing()||n.keyboardSensor.onKeyDown(e)},n.onMouseDown=function(e){n.keyboardSensor.isCapturing()||n.mouseSensor.isCapturing()||n.mouseSensor.onMouseDown(e)},n.onTouchStart=function(e){n.mouseSensor.isCapturing()||n.keyboardSensor.isCapturing()||n.touchSensor.onTouchStart(e)},n.canStartCapturing=function(e){return!n.isAnySensorCapturing()&&(!!n.canLift(n.props.draggableId)&&aa(e,n.props))},n.isAnySensorCapturing=function(){return n.sensors.some(function(e){return e.isCapturing()})},n.getProvided=ot(function(e){return e?{onMouseDown:n.onMouseDown,onKeyDown:n.onKeyDown,onTouchStart:n.onTouchStart,onFocus:n.onFocus,onBlur:n.onBlur,tabIndex:0,"data-react-beautiful-dnd-drag-handle":n.styleContext,"aria-roledescription":"Draggable item. Press space bar to lift",draggable:!1,onDragStart:Pa}:null});var r={callbacks:n.props.callbacks,getDraggableRef:n.props.getDraggableRef,getWindow:function(){return Ti(n.props.getDraggableRef())},canStartCapturing:n.canStartCapturing,getShouldRespectForceTouch:n.props.getShouldRespectForceTouch};return n.mouseSensor=ya(r),n.keyboardSensor=wa(r),n.touchSensor=Oa(r),n.sensors=[n.mouseSensor,n.keyboardSensor,n.touchSensor],n.styleContext=t[so],n.canLift=t[lo],n}le(e,o);var t=e.prototype;return t.componentDidMount=function(){var e=this.props.getDraggableRef();if((this.lastDraggableRef=e)||De(!1),this.props.isEnabled){var t=$i(e);Zi(this.props.draggableId,t)}},t.componentDidUpdate=function(e){var n=this,t=this.props.getDraggableRef();(t!==this.lastDraggableRef&&(this.lastDraggableRef=t)&&this.isFocused&&this.props.isEnabled&&$i(t).focus(),this.isAnySensorCapturing())&&(e.isEnabled&&!this.props.isEnabled&&this.sensors.forEach(function(e){if(e.isCapturing()){var t=e.isDragging();e.kill(),t&&n.props.callbacks.onCancel()}}),e.isDragging&&!this.props.isDragging&&this.sensors.forEach(function(e){e.isCapturing()&&e.kill()}))},t.componentWillUnmount=function(){var n=this;this.sensors.forEach(function(e){var t=e.isDragging();e.unmount(),t&&n.props.callbacks.onCancel()}),!!n.props.isEnabled&&!!n.isFocused&&(n.props.isDragging||n.props.isDropAnimating)&&Qi(this.props.draggableId)},t.render=function(){var e=this.props,t=e.children,n=e.isEnabled;return t(this.getProvided(n))},e}(w.Component);Ta.contextTypes=((oa={})[so]=Me.string.isRequired,oa[lo]=Me.func.isRequired,oa);var Ma={dragging:5e3,dropAnimating:4500},Ba=function(e,t){return t?zn.drop(t.duration):e?zn.snap:zn.fluid},Ra=function(e,t){return e?t?Un.drop:Un.combining:null},Aa=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function Na(e){return"DRAGGING"===e.type?(r=(n=e).dimension.client,o=n.offset,i=n.combineWith,a=n.dropping,s=Boolean(i),l=Aa(n),c=Boolean(a),u=c?Hn.drop(o,s):Hn.moveTo(o),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Ba(l,a),transform:u,opacity:Ra(s,c),zIndex:c?Ma.dropAnimating:Ma.dragging,pointerEvents:"none"}):(t=e,{transform:Hn.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t,n,r,o,i,a,s,l,c,u}var La=Math.floor;C(C.S,"Number",{isInteger:function(e){return!o(e)&&isFinite(e)&&La(e)===e}});b.Number.isInteger;var _a,ja=function(r){function e(t,e){var o;(o=r.call(this,t,e)||this).callbacks=void 0,o.styleContext=void 0,o.ref=null,o.onMoveEnd=function(e){var t=o.props.mapped;"DRAGGING"===t.type&&Boolean(t.dropping)&&"transform"===e.propertyName&&o.props.dropAnimationFinished()},o.onLift=function(e){o.ref||De(!1),o.props.isDragDisabled&&De(!1);var t=e.clientSelection,n=e.movementMode,r=o.props;(0,r.lift)({id:r.draggableId,clientSelection:t,movementMode:n})},o.setRef=function(e){null!==e&&e!==o.ref&&(o.ref=e,Ai(e))},o.getDraggableRef=function(){return o.ref},o.getShouldRespectForceTouch=function(){return o.props.shouldRespectForceTouch},o.getProvided=ot(function(e,t){var n=Na(e),r="DRAGGING"===e.type&&Boolean(e.dropping)?o.onMoveEnd:null;return{innerRef:o.setRef,draggableProps:{"data-react-beautiful-dnd-draggable":o.styleContext,style:n,onTransitionEnd:r},dragHandleProps:t}}),o.renderChildren=function(e){var t=o.props,n=t.children,r=t.mapped;return n(o.getProvided(r,e),r.snapshot)};var n={onLift:o.onLift,onMove:function(e){return t.move({client:e})},onDrop:function(){return t.drop({reason:"DROP"})},onCancel:function(){return t.drop({reason:"CANCEL"})},onMoveUp:t.moveUp,onMoveDown:t.moveDown,onMoveRight:t.moveRight,onMoveLeft:t.moveLeft,onWindowScroll:function(){return t.moveByWindowScroll({newScroll:gr()})}};return o.callbacks=n,o.styleContext=e[so],o}le(e,r);var t=e.prototype;return t.componentWillUnmount=function(){this.ref=null},t.render=function(){var e=this.props,t=e.draggableId,n=e.index,r=e.mapped,o=e.isDragDisabled,i=e.disableInteractiveElementBlocking,a=this.context[oo],s=this.context[io],l="DRAGGING"===r.type,c="DRAGGING"===r.type&&Boolean(r.dropping);return u.createElement(ki,{key:t,draggableId:t,droppableId:a,type:s,index:n,getDraggableRef:this.getDraggableRef},u.createElement(Ta,{draggableId:t,isDragging:l,isDropAnimating:c,isEnabled:!o,callbacks:this.callbacks,getDraggableRef:this.getDraggableRef,getShouldRespectForceTouch:this.getShouldRespectForceTouch,canDragInteractiveElements:i},this.renderChildren))},e}(u.Component);ja.contextTypes=((_a={})[oo]=Me.string.isRequired,_a[io]=Me.string.isRequired,_a[so]=Me.string.isRequired,_a);var Fa=fi(function(){var v=ot(function(e,t,n,r){return{isDragging:!0,isDropAnimating:Boolean(r),dropAnimation:r,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}}),r=ot(function(e){return{isDragging:!1,isDropAnimating:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}),n={mapped:{type:"SECONDARY",offset:Be,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:r(null)}},h=ot(function(e,t){return{x:e,y:t}}),y=ot(function(e,t,n,r,o,i){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:r,combineWith:o,mode:t,offset:e,dimension:n,forceShouldAnimate:i,snapshot:v(t,r,o,null)}}}),c=ot(function(e,t,n){return void 0===t&&(t=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:n,snapshot:r(t)}}}),o=function(e,t,n){var r=n.movement.map[e],o=n.movement,i=n.merge,a=Boolean(i&&i.combine.draggableId===e),s=o.displacedBy.point,l=h(s.x,s.y);return a?c(r?l:Be,t,!r||r.shouldAnimate):r&&r.isVisible?c(l,null,r.shouldAnimate):null};return function(e,t){return function(e,t){if(e.isDragging){if(e.critical.draggable.id!==t.draggableId)return null;var n=e.current.client.offset,r=e.dimensions.draggables[t.draggableId],o=e.movementMode,i=nt(e.impact),a=(l=e.impact).merge?l.merge.combine.draggableId:null,s=e.forceShouldAnimate;return y(h(n.x,n.y),o,r,i,a,s)}var l,c;if("DROP_ANIMATING"!==e.phase)return null;var u=e.completed;if(u.result.draggableId!==t.draggableId)return null;var d=e.dimensions.draggables[t.draggableId],p=u.result,f=p.mode,g=Fi(p),m=(c=p).combine?c.combine.draggableId:null,b={duration:e.dropDuration,curve:Wn,moveTo:e.newHomeClientOffset,opacity:m?Un.drop:null,scale:m?kn.drop:null};return{mapped:{type:"DRAGGING",offset:e.newHomeClientOffset,dimension:d,dropping:b,draggingOver:g,combineWith:m,mode:f,forceShouldAnimate:null,snapshot:v(f,g,m,b)}}}(e,t)||function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact);if("DROP_ANIMATING"!==e.phase)return null;var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact)}(e,t)||n}},{lift:function(e){return{type:"LIFT",payload:e}},move:jn,moveUp:function(){return{type:"MOVE_UP",payload:null}},moveDown:function(){return{type:"MOVE_DOWN",payload:null}},moveLeft:function(){return{type:"MOVE_LEFT",payload:null}},moveRight:function(){return{type:"MOVE_RIGHT",payload:null}},moveByWindowScroll:function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},drop:Gn,dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{storeKey:ro,pure:!0,areStatePropsEqual:ji})(ja);Fa.defaultProps={isDragDisabled:!1,disableInteractiveElementBlocking:!1,shouldRespectForceTouch:!0},e.DragDropContext=fo,e.Draggable=Fa,e.Droppable=Ui,e.resetServerContext=function(){Sr=0},Object.defineProperty(e,"__esModule",{value:!0})});
|