forked from react-grid-layout/react-grid-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-grid-layout.min.js
12 lines (12 loc) · 63.9 KB
/
react-grid-layout.min.js
1
2
3
4
5
6
7
8
9
10
11
12
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactGridLayout=e(require("react"),require("react-dom")):t.ReactGridLayout=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=12)}([function(e,r){e.exports=t},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){for(var e=0,r=void 0,n=0,o=t.length;n<o;n++)(r=t[n].y+t[n].h)>e&&(e=r);return e}function a(t){for(var e=Array(t.length),r=0,n=t.length;r<n;r++)e[r]=i(t[r]);return e}function i(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:Boolean(t.moved),static:Boolean(t.static),isDraggable:t.isDraggable,isResizable:t.isResizable}}function s(t,e){return(0,O.default)(z.default.Children.map(t,function(t){return t.key}),z.default.Children.map(e,function(t){return t.key}))}function u(t,e){return t!==e&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function l(t,e){for(var r=y(t),n=x(t),o=Array(t.length),a=0,s=n.length;a<s;a++){var u=i(n[a]);u.static||(u=c(r,u,e),r.push(u)),o[t.indexOf(n[a])]=u,u.moved=!1}return o}function c(t,e,r){if(r)for(e.y=Math.min(o(t),e.y);e.y>0&&!h(t,e);)e.y--;for(var n=void 0;n=h(t,e);)e.y=n.y+n.h;return e}function p(t,e){for(var r=y(t),n=0,o=t.length;n<o;n++){var a=t[n];if(a.x+a.w>e.cols&&(a.x=e.cols-a.w),a.x<0&&(a.x=0,a.w=e.cols),a.static)for(;h(r,a);)a.y++;else r.push(a)}return t}function f(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r].i===e)return t[r]}function h(t,e){for(var r=0,n=t.length;r<n;r++)if(u(t[r],e))return t[r]}function d(t,e){return t.filter(function(t){return u(t,e)})}function y(t){return t.filter(function(t){return t.static})}function g(t,e,r,n,o){if(e.static)return t;if(e.y===n&&e.x===r)return t;var a=n&&e.y>n;"number"==typeof r&&(e.x=r),"number"==typeof n&&(e.y=n),e.moved=!0;var i=x(t);a&&(i=i.reverse());for(var s=d(i,e),u=0,l=s.length;u<l;u++){var c=s[u];c.moved||(e.y>c.y&&e.y-c.y>c.h/4||(t=c.static?m(t,c,e,o):m(t,e,c,o)))}return t}function m(t,e,r,n){if(n){var o={x:r.x,y:r.y,w:r.w,h:r.h,i:"-1"};if(o.y=Math.max(e.y-r.h,0),!h(t,o))return g(t,r,void 0,o.y)}return g(t,r,void 0,r.y+1)}function b(t){return 100*t+"%"}function v(t){var e=t.top,r=t.left,n=t.width,o=t.height,a="translate("+r+"px,"+e+"px)";return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:n+"px",height:o+"px",position:"absolute"}}function w(t){return{top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px",position:"absolute"}}function x(t){return[].concat(t).sort(function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1})}function S(t,e,r,n){t=t||[];var a=[];return z.default.Children.forEach(e,function(e,r){var n=f(t,e.key||"1");if(n)a[r]=i(n);else{!j&&e.props._grid&&console.warn("`_grid` properties on children have been deprecated as of React 15.2. Please use `data-grid` or add your properties directly to the `layout`.");var s=e.props["data-grid"]||e.props._grid;s?(j||_([s],"ReactGridLayout.children"),a[r]=i(P({},s,{i:e.key}))):a[r]=i({w:1,h:1,x:0,y:o(a),i:e.key||"1"})}}),a=p(a,{cols:r}),a=l(a,n)}function _(t,e){e=e||"Layout";var r=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var n=0,o=t.length;n<o;n++){for(var a=t[n],i=0;i<r.length;i++)if("number"!=typeof a[r[i]])throw new Error("ReactGridLayout: "+e+"["+n+"]."+r[i]+" must be a number!");if(a.i&&"string"!=typeof a.i)throw new Error("ReactGridLayout: "+e+"["+n+"].i must be a string!");if(void 0!==a.static&&"boolean"!=typeof a.static)throw new Error("ReactGridLayout: "+e+"["+n+"].static must be a boolean!")}}function R(t,e){e.forEach(function(e){return t[e]=t[e].bind(t)})}e.__esModule=!0;var P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.bottom=o,e.cloneLayout=a,e.cloneLayoutItem=i,e.childrenEqual=s,e.collides=u,e.compact=l,e.compactItem=c,e.correctBounds=p,e.getLayoutItem=f,e.getFirstCollision=h,e.getAllCollisions=d,e.getStatics=y,e.moveElement=g,e.moveElementAwayFromCollision=m,e.perc=b,e.setTransform=v,e.setTopLeft=w,e.sortLayoutItemsByRowCol=x,e.synchronizeLayoutWithChildren=S,e.validateLayout=_,e.autoBindHandlers=R;var D=r(3),O=n(D),T=r(0),z=n(T),j=!0},function(t,e,r){t.exports=r(16)()},function(t,e,r){(function(t,r){function n(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}function o(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function a(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function i(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function s(t,e){return t.has(e)}function u(t,e){return null==t?void 0:t[e]}function l(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function c(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function f(){this.__data__=_e?_e(null):{},this.size=0}function h(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function d(t){var e=this.__data__;if(_e){var r=e[t];return r===bt?void 0:r}return ae.call(e,t)?e[t]:void 0}function y(t){var e=this.__data__;return _e?void 0!==e[t]:ae.call(e,t)}function g(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_e&&void 0===e?bt:e,this}function m(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function b(){this.__data__=[],this.size=0}function v(t){var e=this.__data__,r=A(e,t);return!(r<0)&&(r==e.length-1?e.pop():he.call(e,r,1),--this.size,!0)}function w(t){var e=this.__data__,r=A(e,t);return r<0?void 0:e[r][1]}function x(t){return A(this.__data__,t)>-1}function S(t,e){var r=this.__data__,n=A(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function _(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function R(){this.size=0,this.__data__={hash:new p,map:new(ve||m),string:new p}}function P(t){var e=Q(this,t).delete(t);return this.size-=e?1:0,e}function D(t){return Q(this,t).get(t)}function O(t){return Q(this,t).has(t)}function T(t,e){var r=Q(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function z(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new _;++e<r;)this.add(t[e])}function j(t){return this.__data__.set(t,bt),this}function C(t){return this.__data__.has(t)}function k(t){var e=this.__data__=new m(t);this.size=e.size}function E(){this.__data__=new m,this.size=0}function M(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function L(t){return this.__data__.get(t)}function W(t){return this.__data__.has(t)}function H(t,e){var r=this.__data__;if(r instanceof m){var n=r.__data__;if(!ve||n.length<mt-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new _(n)}return r.set(t,e),this.size=r.size,this}function N(t,e){var r=Me(t),n=!r&&Ee(t),o=!r&&!n&&Le(t),a=!r&&!n&&!o&&We(t),s=r||n||o||a,u=s?i(t.length,String):[],l=u.length;for(var c in t)!e&&!ae.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||et(c,l))||u.push(c);return u}function A(t,e){for(var r=t.length;r--;)if(st(t[r][0],e))return r;return-1}function I(t,e,r){var n=e(t);return Me(t)?n:o(n,r(t))}function B(t){return null==t?void 0===t?At:kt:de&&de in Object(t)?tt(t):at(t)}function X(t){return ht(t)&&B(t)==St}function Y(t,e,r,n,o){return t===e||(null==t||null==e||!ht(t)&&!ht(e)?t!==t&&e!==e:q(t,e,r,n,Y,o))}function q(t,e,r,n,o,a){var i=Me(t),s=Me(e),u=i?_t:ke(t),l=s?_t:ke(e);u=u==St?Et:u,l=l==St?Et:l;var c=u==Et,p=l==Et,f=u==l;if(f&&Le(t)){if(!Le(e))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new k),i||We(t)?V(t,e,r,n,o,a):$(t,e,u,r,n,o,a);if(!(r&vt)){var h=c&&ae.call(t,"__wrapped__"),d=p&&ae.call(e,"__wrapped__");if(h||d){var y=h?t.value():t,g=d?e.value():e;return a||(a=new k),o(y,g,r,n,a)}}return!!f&&(a||(a=new k),K(t,e,r,n,o,a))}function G(t){return!(!ft(t)||nt(t))&&(ct(t)?ue:Xt).test(it(t))}function U(t){return ht(t)&&pt(t.length)&&!!qt[B(t)]}function F(t){if(!ot(t))return me(t);var e=[];for(var r in Object(t))ae.call(t,r)&&"constructor"!=r&&e.push(r);return e}function V(t,e,r,n,o,i){var u=r&vt,l=t.length,c=e.length;if(l!=c&&!(u&&c>l))return!1;var p=i.get(t);if(p&&i.get(e))return p==e;var f=-1,h=!0,d=r&wt?new z:void 0;for(i.set(t,e),i.set(e,t);++f<l;){var y=t[f],g=e[f];if(n)var m=u?n(g,y,f,e,t,i):n(y,g,f,t,e,i);if(void 0!==m){if(m)continue;h=!1;break}if(d){if(!a(e,function(t,e){if(!s(d,e)&&(y===t||o(y,t,r,n,i)))return d.push(e)})){h=!1;break}}else if(y!==g&&!o(y,g,r,n,i)){h=!1;break}}return i.delete(t),i.delete(e),h}function $(t,e,r,n,o,a,i){switch(r){case Bt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case It:return!(t.byteLength!=e.byteLength||!a(new pe(t),new pe(e)));case Pt:case Dt:case Ct:return st(+t,+e);case Ot:return t.name==e.name&&t.message==e.message;case Lt:case Ht:return t==e+"";case jt:var s=l;case Wt:var u=n&vt;if(s||(s=c),t.size!=e.size&&!u)return!1;var p=i.get(t);if(p)return p==e;n|=wt,i.set(t,e);var f=V(s(t),s(e),n,o,a,i);return i.delete(t),f;case Nt:if(je)return je.call(t)==je.call(e)}return!1}function K(t,e,r,n,o,a){var i=r&vt,s=J(t),u=s.length;if(u!=J(e).length&&!i)return!1;for(var l=u;l--;){var c=s[l];if(!(i?c in e:ae.call(e,c)))return!1}var p=a.get(t);if(p&&a.get(e))return p==e;var f=!0;a.set(t,e),a.set(e,t);for(var h=i;++l<u;){c=s[l];var d=t[c],y=e[c];if(n)var g=i?n(y,d,c,e,t,a):n(d,y,c,t,e,a);if(!(void 0===g?d===y||o(d,y,r,n,a):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var m=t.constructor,b=e.constructor;m!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(f=!1)}return a.delete(t),a.delete(e),f}function J(t){return I(t,dt,Ce)}function Q(t,e){var r=t.__data__;return rt(e)?r["string"==typeof e?"string":"hash"]:r.map}function Z(t,e){var r=u(t,e);return G(r)?r:void 0}function tt(t){var e=ae.call(t,de),r=t[de];try{t[de]=void 0}catch(t){}var n=se.call(t);return e?t[de]=r:delete t[de],n}function et(t,e){return!!(e=null==e?xt:e)&&("number"==typeof t||Yt.test(t))&&t>-1&&t%1==0&&t<e}function rt(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function nt(t){return!!ie&&ie in t}function ot(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||re)}function at(t){return se.call(t)}function it(t){if(null!=t){try{return oe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function st(t,e){return t===e||t!==t&&e!==e}function ut(t){return null!=t&&pt(t.length)&&!ct(t)}function lt(t,e){return Y(t,e)}function ct(t){if(!ft(t))return!1;var e=B(t);return e==Tt||e==zt||e==Rt||e==Mt}function pt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=xt}function ft(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ht(t){return null!=t&&"object"==typeof t}function dt(t){return ut(t)?N(t):F(t)}function yt(){return[]}function gt(){return!1}var mt=200,bt="__lodash_hash_undefined__",vt=1,wt=2,xt=9007199254740991,St="[object Arguments]",_t="[object Array]",Rt="[object AsyncFunction]",Pt="[object Boolean]",Dt="[object Date]",Ot="[object Error]",Tt="[object Function]",zt="[object GeneratorFunction]",jt="[object Map]",Ct="[object Number]",kt="[object Null]",Et="[object Object]",Mt="[object Proxy]",Lt="[object RegExp]",Wt="[object Set]",Ht="[object String]",Nt="[object Symbol]",At="[object Undefined]",It="[object ArrayBuffer]",Bt="[object DataView]",Xt=/^\[object .+?Constructor\]$/,Yt=/^(?:0|[1-9]\d*)$/,qt={};qt["[object Float32Array]"]=qt["[object Float64Array]"]=qt["[object Int8Array]"]=qt["[object Int16Array]"]=qt["[object Int32Array]"]=qt["[object Uint8Array]"]=qt["[object Uint8ClampedArray]"]=qt["[object Uint16Array]"]=qt["[object Uint32Array]"]=!0,qt[St]=qt[_t]=qt[It]=qt[Pt]=qt[Bt]=qt[Dt]=qt[Ot]=qt[Tt]=qt[jt]=qt[Ct]=qt[Et]=qt[Lt]=qt[Wt]=qt[Ht]=qt["[object WeakMap]"]=!1;var Gt="object"==typeof t&&t&&t.Object===Object&&t,Ut="object"==typeof self&&self&&self.Object===Object&&self,Ft=Gt||Ut||Function("return this")(),Vt="object"==typeof e&&e&&!e.nodeType&&e,$t=Vt&&"object"==typeof r&&r&&!r.nodeType&&r,Kt=$t&&$t.exports===Vt,Jt=Kt&&Gt.process,Qt=function(){try{return Jt&&Jt.binding&&Jt.binding("util")}catch(t){}}(),Zt=Qt&&Qt.isTypedArray,te=Array.prototype,ee=Function.prototype,re=Object.prototype,ne=Ft["__core-js_shared__"],oe=ee.toString,ae=re.hasOwnProperty,ie=function(){var t=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),se=re.toString,ue=RegExp("^"+oe.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Kt?Ft.Buffer:void 0,ce=Ft.Symbol,pe=Ft.Uint8Array,fe=re.propertyIsEnumerable,he=te.splice,de=ce?ce.toStringTag:void 0,ye=Object.getOwnPropertySymbols,ge=le?le.isBuffer:void 0,me=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),be=Z(Ft,"DataView"),ve=Z(Ft,"Map"),we=Z(Ft,"Promise"),xe=Z(Ft,"Set"),Se=Z(Ft,"WeakMap"),_e=Z(Object,"create"),Re=it(be),Pe=it(ve),De=it(we),Oe=it(xe),Te=it(Se),ze=ce?ce.prototype:void 0,je=ze?ze.valueOf:void 0;p.prototype.clear=f,p.prototype.delete=h,p.prototype.get=d,p.prototype.has=y,p.prototype.set=g,m.prototype.clear=b,m.prototype.delete=v,m.prototype.get=w,m.prototype.has=x,m.prototype.set=S,_.prototype.clear=R,_.prototype.delete=P,_.prototype.get=D,_.prototype.has=O,_.prototype.set=T,z.prototype.add=z.prototype.push=j,z.prototype.has=C,k.prototype.clear=E,k.prototype.delete=M,k.prototype.get=L,k.prototype.has=W,k.prototype.set=H;var Ce=ye?function(t){return null==t?[]:(t=Object(t),n(ye(t),function(e){return fe.call(t,e)}))}:yt,ke=B;(be&&ke(new be(new ArrayBuffer(1)))!=Bt||ve&&ke(new ve)!=jt||we&&"[object Promise]"!=ke(we.resolve())||xe&&ke(new xe)!=Wt||Se&&"[object WeakMap]"!=ke(new Se))&&(ke=function(t){var e=B(t),r=e==Et?t.constructor:void 0,n=r?it(r):"";if(n)switch(n){case Re:return Bt;case Pe:return jt;case De:return"[object Promise]";case Oe:return Wt;case Te:return"[object WeakMap]"}return e});var Ee=X(function(){return arguments}())?X:function(t){return ht(t)&&ae.call(t,"callee")&&!fe.call(t,"callee")},Me=Array.isArray,Le=ge||gt,We=Zt?function(t){return function(e){return t(e)}}(Zt):U;r.exports=lt}).call(e,r(20),r(21)(t))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(0),l=n(u),c=r(2),p=n(c),f=r(3),h=n(f),d=r(6),y=n(d),g=r(1),m=r(13),b=n(m),v=function(){},w=function(t){function e(r,n){o(this,e);var i=a(this,t.call(this,r,n));return x.call(i),(0,g.autoBindHandlers)(i,["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),i}return i(e,t),e.prototype.componentDidMount=function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)},e.prototype.componentWillReceiveProps=function(t){var e=void 0;if((0,h.default)(t.layout,this.props.layout)?(0,g.childrenEqual)(this.props.children,t.children)||(e=this.state.layout):e=t.layout,e){var r=(0,g.synchronizeLayoutWithChildren)(e,t.children,t.cols,t.verticalCompact),n=this.state.layout;this.setState({layout:r}),this.onLayoutMaybeChanged(r,n)}},e.prototype.containerHeight=function(){if(this.props.autoSize){var t=(0,g.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+2*e+"px"}},e.prototype.onDragStart=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.layout,s=(0,g.getLayoutItem)(i,t);s&&(this.setState({oldDragItem:(0,g.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onDragStart(i,s,s,null,o,a))},e.prototype.onDrag=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.oldDragItem,s=this.state.layout,u=(0,g.getLayoutItem)(s,t);if(u){var l={w:u.w,h:u.h,x:u.x,y:u.y,placeholder:!0,i:t};s=(0,g.moveElement)(s,u,e,r,!0),this.props.onDrag(s,i,u,l,o,a),this.setState({layout:(0,g.compact)(s,this.props.verticalCompact),activeDrag:l})}},e.prototype.onDragStop=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.oldDragItem,s=this.state.layout,u=(0,g.getLayoutItem)(s,t);if(u){s=(0,g.moveElement)(s,u,e,r,!0),this.props.onDragStop(s,i,u,null,o,a);var l=(0,g.compact)(s,this.props.verticalCompact),c=this.state.oldLayout;this.setState({activeDrag:null,layout:l,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(l,c)}},e.prototype.onLayoutMaybeChanged=function(t,e){e||(e=this.state.layout),(0,h.default)(e,t)||this.props.onLayoutChange(t)},e.prototype.onResizeStart=function(t,e,r,n){var o=n.e,a=n.node,i=this.state.layout,s=(0,g.getLayoutItem)(i,t);s&&(this.setState({oldResizeItem:(0,g.cloneLayoutItem)(s),oldLayout:this.state.layout}),this.props.onResizeStart(i,s,s,null,o,a))},e.prototype.onResize=function(t,e,r,n){var o=n.e,a=n.node,i=this.state,s=i.layout,u=i.oldResizeItem,l=(0,g.getLayoutItem)(s,t);if(l){l.w=e,l.h=r;var c={w:e,h:r,x:l.x,y:l.y,static:!0,i:t};this.props.onResize(s,u,l,c,o,a),this.setState({layout:(0,g.compact)(s,this.props.verticalCompact),activeDrag:c})}},e.prototype.onResizeStop=function(t,e,r,n){var o=n.e,a=n.node,i=this.state,s=i.layout,u=i.oldResizeItem,l=(0,g.getLayoutItem)(s,t);this.props.onResizeStop(s,u,l,null,o,a);var c=(0,g.compact)(s,this.props.verticalCompact),p=this.state.oldLayout;this.setState({activeDrag:null,layout:c,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(c,p)},e.prototype.placeholder=function(){var t=this.state.activeDrag;if(!t)return null;var e=this.props,r=e.width,n=e.cols,o=e.margin,a=e.containerPadding,i=e.rowHeight,s=e.maxRows,u=e.useCSSTransforms;return l.default.createElement(b.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:"react-grid-placeholder",containerWidth:r,cols:n,margin:o,containerPadding:a||o,maxRows:s,rowHeight:i,isDraggable:!1,isResizable:!1,useCSSTransforms:u},l.default.createElement("div",null))},e.prototype.processGridItem=function(t){if(t.key){var e=(0,g.getLayoutItem)(this.state.layout,t.key);if(!e)return null;var r=this.props,n=r.width,o=r.cols,a=r.margin,i=r.containerPadding,s=r.rowHeight,u=r.maxRows,c=r.isDraggable,p=r.isResizable,f=r.useCSSTransforms,h=r.draggableCancel,d=r.draggableHandle,y=this.state.mounted,m=Boolean(!e.static&&c&&(e.isDraggable||null==e.isDraggable)),v=Boolean(!e.static&&p&&(e.isResizable||null==e.isResizable));return l.default.createElement(b.default,{containerWidth:n,cols:o,margin:a,containerPadding:i||a,maxRows:u,rowHeight:s,cancel:h,handle:d,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:m,isResizable:v,useCSSTransforms:f&&y,usePercentages:!y,w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minH:e.minH,minW:e.minW,maxH:e.maxH,maxW:e.maxW,static:e.static},t)}},e.prototype.render=function(){var t=this,e=this.props,r=e.className,n=e.style,o=s({height:this.containerHeight()},n);return l.default.createElement("div",{className:(0,y.default)("react-grid-layout",r),style:o},l.default.Children.map(this.props.children,function(e){return t.processGridItem(e)}),this.placeholder())},e}(l.default.Component);w.displayName="ReactGridLayout",w.propTypes={className:p.default.string,style:p.default.object,width:p.default.number,autoSize:p.default.bool,cols:p.default.number,draggableCancel:p.default.string,draggableHandle:p.default.string,verticalCompact:p.default.bool,layout:function(t){var e=t.layout;void 0!==e&&(0,g.validateLayout)(e,"layout")},margin:p.default.arrayOf(p.default.number),containerPadding:p.default.arrayOf(p.default.number),rowHeight:p.default.number,maxRows:p.default.number,isDraggable:p.default.bool,isResizable:p.default.bool,useCSSTransforms:p.default.bool,onLayoutChange:p.default.func,onDragStart:p.default.func,onDrag:p.default.func,onDragStop:p.default.func,onResizeStart:p.default.func,onResize:p.default.func,onResizeStop:p.default.func,children:function(t,e,r){var n=t[e],o={};l.default.Children.forEach(n,function(t){if(o[t.key])throw new Error("Duplicate child key found! This will cause problems in ReactGridLayout.");o[t.key]=!0})}},w.defaultProps={autoSize:!0,cols:12,className:"",rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,useCSSTransforms:!0,verticalCompact:!0,onLayoutChange:v,onDragStart:v,onDrag:v,onDragStop:v,onResizeStart:v,onResize:v,onResizeStop:v};var x=function(){this.state={activeDrag:null,layout:(0,g.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,this.props.verticalCompact),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null}};e.default=w},function(t,e,r){"use strict";function n(t,e){for(var r=i(t),n=r[0],o=1,a=r.length;o<a;o++){var s=r[o];e>t[s]&&(n=s)}return n}function o(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function a(t,e,r,n,o,a){if(t[r])return(0,s.cloneLayout)(t[r]);for(var u=t[n],l=i(e),c=l.slice(l.indexOf(r)),p=0,f=c.length;p<f;p++){var h=c[p];if(t[h]){u=t[h];break}}return u=(0,s.cloneLayout)(u||[]),(0,s.compact)((0,s.correctBounds)(u,{cols:o}),a)}function i(t){return Object.keys(t).sort(function(e,r){return t[e]-t[r]})}e.__esModule=!0,e.getBreakpointFromWidth=n,e.getColsFromBreakpoint=o,e.findOrGenerateResponsiveLayout=a,e.sortBreakpoints=i;var s=r(1)},function(t,e,r){var n,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n))t.push(r.apply(null,n));else if("object"===o)for(var i in n)a.call(n,i)&&n[i]&&t.push(i)}}return t.join(" ")}var a={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=r:(n=[],void 0!==(o=function(){return r}.apply(e,n))&&(t.exports=o))}()},function(t,e,r){!function(e,n){t.exports=n(r(0),r(9))}(0,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(1).default,t.exports.DraggableCore=r(9).default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=function(){function t(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),p=r(2),f=n(p),h=r(3),d=n(h),y=r(4),g=n(y),m=r(5),b=r(8),v=r(6),w=r(9),x=n(w),S=r(11),_=n(S),R=function(t){function e(t){a(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.onDragStart=function(t,e){if((0,_.default)("Draggable: onDragStart: %j",e),!1===r.props.onStart(t,(0,b.createDraggableData)(r,e)))return!1;r.setState({dragging:!0,dragged:!0})},r.onDrag=function(t,e){if(!r.state.dragging)return!1;(0,_.default)("Draggable: onDrag: %j",e);var n=(0,b.createDraggableData)(r,e),o={x:n.x,y:n.y};if(r.props.bounds){var a=o.x,i=o.y;o.x+=r.state.slackX,o.y+=r.state.slackY;var s=(0,b.getBoundPosition)(r,o.x,o.y),u=l(s,2);o.x=u[0],o.y=u[1],o.slackX=r.state.slackX+(a-o.x),o.slackY=r.state.slackY+(i-o.y),n.x=a,n.y=i,n.deltaX=o.x-r.state.x,n.deltaY=o.y-r.state.y}if(!1===r.props.onDrag(t,n))return!1;r.setState(o)},r.onDragStop=function(t,e){if(!r.state.dragging)return!1;if(!1===r.props.onStop(t,(0,b.createDraggableData)(r,e)))return!1;(0,_.default)("Draggable: onDragStop: %j",e);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(r.props.position)){var o=r.props.position,a=o.x,i=o.y;n.x=a,n.y=i}r.setState(n)},r.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,slackX:0,slackY:0,isElementSVG:!1},r}return s(e,t),c(e,[{key:"componentWillMount",value:function(){!this.props.position||this.props.onDrag||this.props.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){"undefined"!=typeof SVGElement&&d.default.findDOMNode(this)instanceof SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(t){!t.position||this.props.position&&t.position.x===this.props.position.x&&t.position.y===this.props.position.y||this.setState({x:t.position.x,y:t.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var t,e={},r=null,n=Boolean(this.props.position),a=!n||this.state.dragging,i=this.props.position||this.props.defaultPosition,s={x:(0,b.canDragX)(this)&&a?this.state.x:i.x,y:(0,b.canDragY)(this)&&a?this.state.y:i.y};this.state.isElementSVG?r=(0,m.createSVGTransform)(s):e=(0,m.createCSSTransform)(s);var l=this.props,c=l.defaultClassName,p=l.defaultClassNameDragging,h=l.defaultClassNameDragged,d=(0,g.default)(this.props.children.props.className||"",c,(t={},o(t,p,this.state.dragging),o(t,h,this.state.dragged),t));return f.default.createElement(x.default,u({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),f.default.cloneElement(f.default.Children.only(this.props.children),{className:d,style:u({},this.props.children.props.style,e),transform:r}))}}]),e}(f.default.Component);R.displayName="Draggable",R.propTypes=u({},x.default.propTypes,{axis:p.PropTypes.oneOf(["both","x","y","none"]),bounds:p.PropTypes.oneOfType([p.PropTypes.shape({left:p.PropTypes.number,right:p.PropTypes.number,top:p.PropTypes.number,bottom:p.PropTypes.number}),p.PropTypes.string,p.PropTypes.oneOf([!1])]),defaultClassName:p.PropTypes.string,defaultClassNameDragging:p.PropTypes.string,defaultClassNameDragged:p.PropTypes.string,defaultPosition:p.PropTypes.shape({x:p.PropTypes.number,y:p.PropTypes.number}),position:p.PropTypes.shape({x:p.PropTypes.number,y:p.PropTypes.number}),className:v.dontSetMe,style:v.dontSetMe,transform:v.dontSetMe}),R.defaultProps=u({},x.default.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null}),e.default=R},function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){var n,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n))t.push(r.apply(null,n));else if("object"===o)for(var i in n)a.call(n,i)&&n[i]&&t.push(i)}}return t.join(" ")}var a={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=r:(n=[],void 0!==(o=function(){return r}.apply(e,n))&&(t.exports=o))}()},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){return R||(R=(0,x.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,x.isFunction)(t[e])})),t[R].call(t,e)}function a(t,e,r){var n=t;do{if(o(n,e))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1}function i(t,e,r){t&&(t.attachEvent?t.attachEvent("on"+e,r):t.addEventListener?t.addEventListener(e,r,!0):t["on"+e]=r)}function s(t,e,r){t&&(t.detachEvent?t.detachEvent("on"+e,r):t.removeEventListener?t.removeEventListener(e,r,!0):t["on"+e]=null)}function u(t){var e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,x.int)(r.borderTopWidth),e+=(0,x.int)(r.borderBottomWidth)}function l(t){var e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e+=(0,x.int)(r.borderLeftWidth),e+=(0,x.int)(r.borderRightWidth)}function c(t){var e=t.clientHeight,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,x.int)(r.paddingTop),e-=(0,x.int)(r.paddingBottom)}function p(t){var e=t.clientWidth,r=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,x.int)(r.paddingLeft),e-=(0,x.int)(r.paddingRight)}function f(t,e){var r=e===e.ownerDocument.body,n=r?{left:0,top:0}:e.getBoundingClientRect();return{x:t.clientX+e.scrollLeft-n.left,y:t.clientY+e.scrollTop-n.top}}function h(t){var e=t.x,r=t.y;return n({},(0,S.browserPrefixToKey)("transform",_.default),"translate("+e+"px,"+r+"px)")}function d(t){return"translate("+t.x+","+t.y+")"}function y(t,e){return t.targetTouches&&(0,x.findInArray)(t.targetTouches,function(t){return e===t.identifier})||t.changedTouches&&(0,x.findInArray)(t.changedTouches,function(t){return e===t.identifier})}function g(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0}function m(t){var e=t.getAttribute("style")||"";t.setAttribute("style",e+O)}function b(t){var e=t.getAttribute("style")||"";t.setAttribute("style",e.replace(T,""))}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w({touchAction:"none"},t)}Object.defineProperty(e,"__esModule",{value:!0});var w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.matchesSelector=o,e.matchesSelectorAndParentsTo=a,e.addEvent=i,e.removeEvent=s,e.outerHeight=u,e.outerWidth=l,e.innerHeight=c,e.innerWidth=p,e.offsetXYFromParent=f,e.createCSSTransform=h,e.createSVGTransform=d,e.getTouch=y,e.getTouchIdentifier=g,e.addUserSelectStyles=m,e.removeUserSelectStyles=b,e.styleHacks=v;var x=r(6),S=r(7),_=function(t){return t&&t.__esModule?t:{default:t}}(S),R="",P=(0,S.getPrefix)("user-select"),D=(0,S.browserPrefixToStyle)("user-select",P),O=";"+D+": none;",T=new RegExp(";?"+D+": none;")},function(t,e){"use strict";function r(t,e){for(var r=0,n=t.length;r<n;r++)if(e.apply(e,[t[r],r,t]))return t[r]}function n(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)}function o(t){return"number"==typeof t&&!isNaN(t)}function a(t){return parseInt(t,10)}function i(t,e,r){if(t[e])return new Error("Invalid prop "+e+" passed to "+r+" - do not set this, set it on the child.")}Object.defineProperty(e,"__esModule",{value:!0}),e.findInArray=r,e.isFunction=n,e.isNum=o,e.int=a,e.dontSetMe=i},function(t,e){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var e=window.document.documentElement.style;if(t in e)return"";for(var r=0;r<i.length;r++)if(n(t,i[r])in e)return i[r];return""}function n(t,e){return e?""+e+a(t):t}function o(t,e){return e?"-"+e.toLowerCase()+"-"+t:t}function a(t){for(var e="",r=!0,n=0;n<t.length;n++)r?(e+=t[n].toUpperCase(),r=!1):"-"===t[n]?r=!0:e+=t[n];return e}Object.defineProperty(e,"__esModule",{value:!0}),e.getPrefix=r,e.browserPrefixToKey=n,e.browserPrefixToStyle=o;var i=["Moz","Webkit","O","ms"];e.default=r()},function(t,e,r){"use strict";function n(t,e,r){if(!t.props.bounds)return[e,r];var n=t.props.bounds;n="string"==typeof n?n:c(n);var o=h.default.findDOMNode(t);if("string"==typeof n){var a=o.ownerDocument,i=a.defaultView,s=void 0;if("parent"===n)s=o.parentNode;else if(!(s=a.querySelector(n)))throw new Error('Bounds selector "'+n+'" could not find an element.');var u=i.getComputedStyle(o),l=i.getComputedStyle(s);n={left:-o.offsetLeft+(0,p.int)(l.paddingLeft)+(0,p.int)(u.borderLeftWidth)+(0,p.int)(u.marginLeft),top:-o.offsetTop+(0,p.int)(l.paddingTop)+(0,p.int)(u.borderTopWidth)+(0,p.int)(u.marginTop),right:(0,d.innerWidth)(s)-(0,d.outerWidth)(o)-o.offsetLeft,bottom:(0,d.innerHeight)(s)-(0,d.outerHeight)(o)-o.offsetTop}}return(0,p.isNum)(n.right)&&(e=Math.min(e,n.right)),(0,p.isNum)(n.bottom)&&(r=Math.min(r,n.bottom)),(0,p.isNum)(n.left)&&(e=Math.max(e,n.left)),(0,p.isNum)(n.top)&&(r=Math.max(r,n.top)),[e,r]}function o(t,e,r){return[Math.round(e/t[0])*t[0],Math.round(r/t[1])*t[1]]}function a(t){return"both"===t.props.axis||"x"===t.props.axis}function i(t){return"both"===t.props.axis||"y"===t.props.axis}function s(t,e,r){var n="number"==typeof e?(0,d.getTouch)(t,e):null;if("number"==typeof e&&!n)return null;var o=h.default.findDOMNode(r),a=r.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,d.offsetXYFromParent)(n||t,a)}function u(t,e,r){var n=t.state;return(0,p.isNum)(n.lastX)?{node:h.default.findDOMNode(t),deltaX:e-n.lastX,deltaY:r-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:r}:{node:h.default.findDOMNode(t),deltaX:0,deltaY:0,lastX:e,lastY:r,x:e,y:r}}function l(t,e){return{node:e.node,x:t.state.x+e.deltaX,y:t.state.y+e.deltaY,deltaX:e.deltaX,deltaY:e.deltaY,lastX:t.state.x,lastY:t.state.y}}function c(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}Object.defineProperty(e,"__esModule",{value:!0}),e.getBoundPosition=n,e.snapToGrid=o,e.canDragX=a,e.canDragY=i,e.getControlPosition=s,e.createCoreData=u,e.createDraggableData=l;var p=r(6),f=r(3),h=function(t){return t&&t.__esModule?t:{default:t}}(f),d=r(5)},function(t,e,r){(function(t){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),l=r(2),c=n(l),p=r(3),f=n(p),h=r(5),d=r(8),y=r(6),g=r(11),m=n(g),b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},v=b.mouse,w=function(t){function e(){var t,r,n,i;o(this,e);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return r=n=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(l))),n.state={dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null},n.handleDragStart=function(t){if(n.props.onMouseDown(t),!n.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var e=f.default.findDOMNode(n),r=e.ownerDocument;if(!(n.props.disabled||!(t.target instanceof r.defaultView.Node)||n.props.handle&&!(0,h.matchesSelectorAndParentsTo)(t.target,n.props.handle,e)||n.props.cancel&&(0,h.matchesSelectorAndParentsTo)(t.target,n.props.cancel,e))){var o=(0,h.getTouchIdentifier)(t);n.setState({touchIdentifier:o});var a=(0,d.getControlPosition)(t,o,n);if(null!=a){var i=a.x,s=a.y,u=(0,d.createCoreData)(n,i,s);(0,m.default)("DraggableCore: handleDragStart: %j",u),(0,m.default)("calling",n.props.onStart);!1!==n.props.onStart(t,u)&&(n.props.enableUserSelectHack&&(0,h.addUserSelectStyles)(r.body),n.setState({dragging:!0,lastX:i,lastY:s}),(0,h.addEvent)(r,v.move,n.handleDrag),(0,h.addEvent)(r,v.stop,n.handleDragStop))}}},n.handleDrag=function(t){"touchmove"===t.type&&t.preventDefault();var e=(0,d.getControlPosition)(t,n.state.touchIdentifier,n);if(null!=e){var r=e.x,o=e.y;if(Array.isArray(n.props.grid)){var a=r-n.state.lastX,i=o-n.state.lastY,u=(0,d.snapToGrid)(n.props.grid,a,i),l=s(u,2);if(a=l[0],i=l[1],!a&&!i)return;r=n.state.lastX+a,o=n.state.lastY+i}var c=(0,d.createCoreData)(n,r,o);(0,m.default)("DraggableCore: handleDrag: %j",c);if(!1!==n.props.onDrag(t,c))n.setState({lastX:r,lastY:o});else try{n.handleDragStop(new MouseEvent("mouseup"))}catch(t){var p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.handleDragStop(p)}}},n.handleDragStop=function(t){if(n.state.dragging){var e=(0,d.getControlPosition)(t,n.state.touchIdentifier,n);if(null!=e){var r=e.x,o=e.y,a=(0,d.createCoreData)(n,r,o),i=f.default.findDOMNode(n),s=i.ownerDocument;n.props.enableUserSelectHack&&(0,h.removeUserSelectStyles)(s.body),(0,m.default)("DraggableCore: handleDragStop: %j",a),n.setState({dragging:!1,lastX:NaN,lastY:NaN}),n.props.onStop(t,a),(0,m.default)("DraggableCore: Removing handlers"),(0,h.removeEvent)(s,v.move,n.handleDrag),(0,h.removeEvent)(s,v.stop,n.handleDragStop)}}},n.onMouseDown=function(t){return v=b.mouse,n.handleDragStart(t)},n.onMouseUp=function(t){return v=b.mouse,n.handleDragStop(t)},n.onTouchStart=function(t){return v=b.touch,n.handleDragStart(t)},n.onTouchEnd=function(t){return v=b.touch,n.handleDragStop(t)},i=r,a(n,i)}return i(e,t),u(e,[{key:"componentWillUnmount",value:function(){var t=f.default.findDOMNode(this),e=t.ownerDocument;(0,h.removeEvent)(e,b.mouse.move,this.handleDrag),(0,h.removeEvent)(e,b.touch.move,this.handleDrag),(0,h.removeEvent)(e,b.mouse.stop,this.handleDragStop),(0,h.removeEvent)(e,b.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&(0,h.removeUserSelectStyles)(e.body)}},{key:"render",value:function(){return c.default.cloneElement(c.default.Children.only(this.props.children),{style:(0,h.styleHacks)(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),e}(c.default.Component);w.displayName="DraggableCore",w.propTypes={allowAnyClick:l.PropTypes.bool,disabled:l.PropTypes.bool,enableUserSelectHack:l.PropTypes.bool,offsetParent:function(e,r){if(t.browser&&e[r]&&1!==e[r].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:l.PropTypes.arrayOf(l.PropTypes.number),handle:l.PropTypes.string,cancel:l.PropTypes.string,onStart:l.PropTypes.func,onDrag:l.PropTypes.func,onStop:l.PropTypes.func,onMouseDown:l.PropTypes.func,className:y.dontSetMe,style:y.dontSetMe,transform:y.dontSetMe},w.defaultProps={allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}},e.default=w}).call(e,r(10))},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function a(t){if(p===clearTimeout)return clearTimeout(t);if((p===n||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function i(){y&&h&&(y=!1,h.length?d=h.concat(d):g=-1,d.length&&s())}function s(){if(!y){var t=o(i);y=!0;for(var e=d.length;e;){for(h=d,d=[];++g<e;)h&&h[g].run();g=-1,e=d.length}h=null,y=!1,a(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,p,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(t){c=r}try{p="function"==typeof clearTimeout?clearTimeout:n}catch(t){p=n}}();var h,d=[],y=!1,g=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(new u(t,e)),1!==d.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,r){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n}])})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=r(0),c=n(l),p=r(7),f=r(18),h=n(f),d=function(t){function e(){var r,n,o;a(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return r=n=i(this,t.call.apply(t,[this].concat(u))),n.state={resizing:!1,width:n.props.width,height:n.props.height,slackW:0,slackH:0},o=r,i(n,o)}return s(e,t),e.prototype.componentWillReceiveProps=function(t){this.state.resizing||t.width===this.props.width&&t.height===this.props.height||this.setState({width:t.width,height:t.height})},e.prototype.lockAspectRatio=function(t,e,r){return e=t/r,t=e*r,[t,e]},e.prototype.runConstraints=function(t,e){var r=[this.props.minConstraints,this.props.maxConstraints],n=r[0],o=r[1];if(this.props.lockAspectRatio){var a=this.state.width/this.state.height;e=t/a,t=e*a}if(!n&&!o)return[t,e];var i=t,s=e,u=this.state,l=u.slackW,c=u.slackH;return t+=l,e+=c,n&&(t=Math.max(n[0],t),e=Math.max(n[1],e)),o&&(t=Math.min(o[0],t),e=Math.min(o[1],e)),l+=i-t,c+=s-e,l===this.state.slackW&&c===this.state.slackH||this.setState({slackW:l,slackH:c}),[t,e]},e.prototype.resizeHandler=function(t){var e=this;return function(r,n){var o=n.node,a=n.deltaX,i=n.deltaY,s="both"===e.props.axis||"x"===e.props.axis,u="both"===e.props.axis||"y"===e.props.axis,l=e.state.width+(s?a:0),c=e.state.height+(u?i:0),p=l!==e.state.width,f=c!==e.state.height;if("onResize"!==t||p||f){var h=e.runConstraints(l,c);l=h[0],c=h[1];var d={};if("onResizeStart"===t)d.resizing=!0;else if("onResizeStop"===t)d.resizing=!1,d.slackW=d.slackH=0;else{if(l===e.state.width&&c===e.state.height)return;d.width=l,d.height=c}"function"==typeof e.props[t]?("function"==typeof r.persist&&r.persist(),e.setState(d,function(){return e.props[t](r,{node:o,size:{width:l,height:c}})})):e.setState(d)}}},e.prototype.render=function(){var t=this.props,e=t.children,r=t.draggableOpts,n=(t.width,t.height,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,o(t,["children","draggableOpts","width","height","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart"])),a=n.className?n.className+" react-resizable":"react-resizable";return(0,h.default)(e,u({},n,{className:a,children:[e.props.children,c.default.createElement(p.DraggableCore,u({},r,{key:"resizableHandle",onStop:this.resizeHandler("onResizeStop"),onStart:this.resizeHandler("onResizeStart"),onDrag:this.resizeHandler("onResize")}),c.default.createElement("span",{className:"react-resizable-handle"}))]}))},e}(c.default.Component);d.propTypes={children:l.PropTypes.element.isRequired,width:l.PropTypes.number.isRequired,height:l.PropTypes.number.isRequired,handleSize:l.PropTypes.array,lockAspectRatio:l.PropTypes.bool,axis:l.PropTypes.oneOf(["both","x","y","none"]),minConstraints:l.PropTypes.arrayOf(l.PropTypes.number),maxConstraints:l.PropTypes.arrayOf(l.PropTypes.number),onResizeStop:l.PropTypes.func,onResizeStart:l.PropTypes.func,onResize:l.PropTypes.func,draggableOpts:l.PropTypes.object},d.defaultProps={handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0]},e.default=d},function(t,r){t.exports=e},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=r(0),c=n(l),p=r(2),f=n(p),h=r(3),d=n(h),y=r(1),g=r(5),m=r(4),b=n(m),v=function(){},w=function(t){return Object.prototype.toString.call(t)},x=function(t){function e(){var r,n,o;a(this,e);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=i(this,t.call.apply(t,[this].concat(l))),n.state=n.generateInitialState(),n.onLayoutChange=function(t){var e;n.props.onLayoutChange(t,u({},n.props.layouts,(e={},e[n.state.breakpoint]=t,e)))},o=r,i(n,o)}return s(e,t),e.prototype.generateInitialState=function(){var t=this.props,e=t.width,r=t.breakpoints,n=t.layouts,o=t.verticalCompact,a=t.cols,i=(0,g.getBreakpointFromWidth)(r,e),s=(0,g.getColsFromBreakpoint)(i,a);return{layout:(0,g.findOrGenerateResponsiveLayout)(n,r,i,i,s,o),breakpoint:i,cols:s}},e.prototype.componentWillReceiveProps=function(t){if(t.width==this.props.width&&t.breakpoint===this.props.breakpoint&&(0,d.default)(t.breakpoints,this.props.breakpoints)&&(0,d.default)(t.cols,this.props.cols)){if(!(0,d.default)(t.layouts,this.props.layouts)){var e=this.state,r=e.breakpoint,n=e.cols,o=(0,g.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,n,t.verticalCompact);this.setState({layout:o})}}else this.onWidthChange(t)},e.prototype.onWidthChange=function(t){var e=t.breakpoints,r=t.cols,n=t.layouts,o=t.verticalCompact,a=t.breakpoint||(0,g.getBreakpointFromWidth)(t.breakpoints,t.width),i=this.state.breakpoint;if(i!==a||this.props.breakpoints!==e||this.props.cols!==r){i in n||(n[i]=(0,y.cloneLayout)(this.state.layout));var s=(0,g.getColsFromBreakpoint)(a,r),u=(0,g.findOrGenerateResponsiveLayout)(n,e,a,i,s,o);u=(0,y.synchronizeLayoutWithChildren)(u,t.children,s,o),n[a]=u,this.props.onLayoutChange(u,n),this.props.onBreakpointChange(a,s),this.props.onWidthChange(t.width,t.margin,s,t.containerPadding),this.setState({breakpoint:a,layout:u,cols:s})}},e.prototype.render=function(){var t=this.props,e=(t.breakpoint,t.breakpoints,t.cols,t.layouts,t.onBreakpointChange,t.onLayoutChange,t.onWidthChange,o(t,["breakpoint","breakpoints","cols","layouts","onBreakpointChange","onLayoutChange","onWidthChange"]));return c.default.createElement(b.default,u({},e,{onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))},e}(c.default.Component);x.propTypes={breakpoint:f.default.string,breakpoints:f.default.object,cols:f.default.object,layouts:function(t,e){if("[object Object]"!==w(t[e]))throw new Error("Layout property must be an object. Received: "+w(t[e]));Object.keys(t[e]).forEach(function(e){if(!(e in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,y.validateLayout)(t.layouts[e],"layouts."+e)})},width:f.default.number.isRequired,onBreakpointChange:f.default.func,onLayoutChange:f.default.func,onWidthChange:f.default.func},x.defaultProps={breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},onBreakpointChange:v,onLayoutChange:v,onWidthChange:v},e.default=x},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(0),l=n(u),c=r(2),p=n(c),f=r(9),h=n(f),d=function(t){var e,r;return r=e=function(e){function r(){var t,n,i;o(this,r);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return t=n=a(this,e.call.apply(e,[this].concat(u))),n.state={width:1280},n.mounted=!1,n.onWindowResize=function(t){if(n.mounted){var e=h.default.findDOMNode(n);e instanceof HTMLElement&&n.setState({width:e.offsetWidth})}},i=t,a(n,i)}return i(r,e),r.prototype.componentDidMount=function(){this.mounted=!0,window.addEventListener("resize",this.onWindowResize),this.onWindowResize()},r.prototype.componentWillUnmount=function(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)},r.prototype.render=function(){return this.props.measureBeforeMount&&!this.mounted?l.default.createElement("div",{className:this.props.className,style:this.props.style}):l.default.createElement(t,s({},this.props,this.state))},r}(l.default.Component),e.defaultProps={measureBeforeMount:!1},e.propTypes={measureBeforeMount:p.default.bool},r};e.default=d},function(t,e,r){"use strict";t.exports=r(4).default,t.exports.utils=r(1),t.exports.Responsive=r(10).default,t.exports.Responsive.utils=r(5),t.exports.WidthProvider=r(11).default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u=r(0),l=n(u),c=r(2),p=n(c),f=r(7),h=r(19),d=r(1),y=r(6),g=n(y),m=function(t){function e(){var r,n,i;o(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return r=n=a(this,t.call.apply(t,[this].concat(u))),n.state={resizing:null,dragging:null,className:""},i=r,a(n,i)}return i(e,t),e.prototype.calcColWidth=function(){var t=this.props,e=t.margin,r=t.containerPadding,n=t.containerWidth,o=t.cols;return(n-e[0]*(o-1)-2*r[0])/o},e.prototype.calcPosition=function(t,e,r,n,o){var a=this.props,i=a.margin,s=a.containerPadding,u=a.rowHeight,l=this.calcColWidth(),c={left:Math.round((l+i[0])*t+s[0]),top:Math.round((u+i[1])*e+s[1]),width:r===1/0?r:Math.round(l*r+Math.max(0,r-1)*i[0]),height:n===1/0?n:Math.round(u*n+Math.max(0,n-1)*i[1])};return o&&o.resizing&&(c.width=Math.round(o.resizing.width),c.height=Math.round(o.resizing.height)),o&&o.dragging&&(c.top=Math.round(o.dragging.top),c.left=Math.round(o.dragging.left)),c},e.prototype.calcXY=function(t,e){var r=this.props,n=r.margin,o=r.cols,a=r.rowHeight,i=r.w,s=r.h,u=r.maxRows,l=this.calcColWidth(),c=Math.round((e-n[0])/(l+n[0])),p=Math.round((t-n[1])/(a+n[1]));return c=Math.max(Math.min(c,o-i),0),p=Math.max(Math.min(p,u-s),0),{x:c,y:p}},e.prototype.calcWH=function(t){var e=t.height,r=t.width,n=this.props,o=n.margin,a=n.maxRows,i=n.cols,s=n.rowHeight,u=n.x,l=n.y,c=this.calcColWidth(),p=Math.round((r+o[0])/(c+o[0])),f=Math.round((e+o[1])/(s+o[1]));return p=Math.max(Math.min(p,i-u),0),f=Math.max(Math.min(f,a-l),0),{w:p,h:f}},e.prototype.createStyle=function(t){var e=this.props,r=e.usePercentages,n=e.containerWidth,o=e.useCSSTransforms,a=void 0;return o?a=(0,d.setTransform)(t):(a=(0,d.setTopLeft)(t),r&&(a.left=(0,d.perc)(t.left/n),a.width=(0,d.perc)(t.width/n))),a},e.prototype.mixinDraggable=function(t){return l.default.createElement(f.DraggableCore,{onStart:this.onDragHandler("onDragStart"),onDrag:this.onDragHandler("onDrag"),onStop:this.onDragHandler("onDragStop"),handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:"")},t)},e.prototype.mixinResizable=function(t,e){var r=this.props,n=r.cols,o=r.x,a=r.minW,i=r.minH,s=r.maxW,u=r.maxH,c=this.calcPosition(0,0,n-o,0).width,p=this.calcPosition(0,0,a,i),f=this.calcPosition(0,0,s,u),d=[p.width,p.height],y=[Math.min(f.width,c),Math.min(f.height,1/0)];return l.default.createElement(h.Resizable,{width:e.width,height:e.height,minConstraints:d,maxConstraints:y,onResizeStop:this.onResizeHandler("onResizeStop"),onResizeStart:this.onResizeHandler("onResizeStart"),onResize:this.onResizeHandler("onResize")},t)},e.prototype.onDragHandler=function(t){var e=this;return function(r,n){var o=n.node,a=n.deltaX,i=n.deltaY;if(e.props[t]){var s={top:0,left:0};switch(t){case"onDragStart":var u=o.offsetParent.getBoundingClientRect(),l=o.getBoundingClientRect();s.left=l.left-u.left+o.offsetParent.scrollLeft,s.top=l.top-u.top+o.offsetParent.scrollTop,e.setState({dragging:s});break;case"onDrag":if(!e.state.dragging)throw new Error("onDrag called before onDragStart.");s.left=e.state.dragging.left+a,s.top=e.state.dragging.top+i,e.setState({dragging:s});break;case"onDragStop":if(!e.state.dragging)throw new Error("onDragEnd called before onDragStart.");s.left=e.state.dragging.left,s.top=e.state.dragging.top,e.setState({dragging:null});break;default:throw new Error("onDragHandler called with unrecognized handlerName: "+t)}var c=e.calcXY(s.top,s.left),p=c.x,f=c.y;e.props[t](e.props.i,p,f,{e:r,node:o,newPosition:s})}}},e.prototype.onResizeHandler=function(t){var e=this;return function(r,n){var o=n.node,a=n.size;if(e.props[t]){var i=e.props,s=i.cols,u=i.x,l=i.i,c=i.maxW,p=i.minW,f=i.maxH,h=i.minH,d=e.calcWH(a),y=d.w,g=d.h;y=Math.min(y,s-u),y=Math.max(y,1),y=Math.max(Math.min(y,c),p),g=Math.max(Math.min(g,f),h),e.setState({resizing:"onResizeStop"===t?null:a}),e.props[t](l,y,g,{e:r,node:o,size:a})}}},e.prototype.render=function(){var t=this.props,e=t.x,r=t.y,n=t.w,o=t.h,a=t.isDraggable,i=t.isResizable,u=t.useCSSTransforms,c=this.calcPosition(e,r,n,o,this.state),p=l.default.Children.only(this.props.children),f=l.default.cloneElement(p,{className:(0,g.default)("react-grid-item",p.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":a,"react-draggable-dragging":Boolean(this.state.dragging),cssTransforms:u}),style:s({},this.props.style,p.props.style,this.createStyle(c))});return i&&(f=this.mixinResizable(f,c)),a&&(f=this.mixinDraggable(f)),f},e}(l.default.Component);m.propTypes={children:p.default.element,cols:p.default.number.isRequired,containerWidth:p.default.number.isRequired,rowHeight:p.default.number.isRequired,margin:p.default.array.isRequired,maxRows:p.default.number.isRequired,containerPadding:p.default.array.isRequired,x:p.default.number.isRequired,y:p.default.number.isRequired,w:p.default.number.isRequired,h:p.default.number.isRequired,minW:function(t,e){var r=t[e];return"number"!=typeof r?new Error("minWidth not Number"):r>t.w||r>t.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e){var r=t[e];return"number"!=typeof r?new Error("maxWidth not Number"):r<t.w||r<t.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e){var r=t[e];return"number"!=typeof r?new Error("minHeight not Number"):r>t.h||r>t.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e){var r=t[e];return"number"!=typeof r?new Error("maxHeight not Number"):r<t.h||r<t.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:p.default.string.isRequired,onDragStop:p.default.func,onDragStart:p.default.func,onDrag:p.default.func,onResizeStop:p.default.func,onResizeStart:p.default.func,onResize:p.default.func,isDraggable:p.default.bool.isRequired,isResizable:p.default.bool.isRequired,static:p.default.bool,useCSSTransforms:p.default.bool.isRequired,className:p.default.string,handle:p.default.string,cancel:p.default.string},m.defaultProps={className:"",cancel:"",minH:1,minW:1,maxH:1/0,maxW:1/0},e.default=m},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,a,i,s,u){if(o(e),!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,a,i,s,u],p=0;l=new Error(e.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(t){};t.exports=n},function(t,e,r){"use strict";var n=r(14),o=r(15);t.exports=function(){function t(){o(!1,"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")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=r(0),c=n(l),p=r(8),f=n(p),h=function(t){function e(){var r,n,o;a(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return r=n=i(this,t.call.apply(t,[this].concat(u))),n.state={width:n.props.width,height:n.props.height},n.onResize=function(t,e){var r=e.element,o=e.size;o.width,o.height;n.props.onResize?(t.persist&&t.persist(),n.setState(o,function(){return n.props.onResize(t,{element:r,size:o})})):n.setState(o)},o=r,i(n,o)}return s(e,t),e.prototype.componentWillReceiveProps=function(t){t.width===this.props.width&&t.height===this.props.height||this.setState({width:t.width,height:t.height})},e.prototype.render=function(){var t=this.props,e=t.handleSize,r=(t.onResize,t.onResizeStart),n=t.onResizeStop,a=t.draggableOpts,i=t.minConstraints,s=t.maxConstraints,l=t.lockAspectRatio,p=t.axis,h=(t.width,t.height,o(t,["handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height"]));return c.default.createElement(f.default,{handleSize:e,width:this.state.width,height:this.state.height,onResizeStart:r,onResize:this.onResize,onResizeStop:n,draggableOpts:a,minConstraints:i,maxConstraints:s,lockAspectRatio:l,axis:p},c.default.createElement("div",u({style:{width:this.state.width+"px",height:this.state.height+"px"}},h)))},e}(c.default.Component);h.propTypes={height:l.PropTypes.number,width:l.PropTypes.number},h.defaultProps={handleSize:[20,20]},e.default=h},function(t,e,r){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o);t.exports=function(t,e){return e.style&&t.props.style&&(e.style=n({},t.props.style,e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),a.default.cloneElement(t,e)}},function(t,e,r){"use strict";t.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=r(8).default,t.exports.ResizableBox=r(17).default},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}}])});
//# sourceMappingURL=react-grid-layout.min.js.map