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

react-reflex

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-reflex - npm Package Compare versions

Comparing version 4.2.4 to 4.2.5

2

dist/commonjs/ReflexSplitter.js

@@ -89,3 +89,2 @@ "use strict";

_this.document = props.document;
console.log("hey");
return _this;

@@ -96,3 +95,2 @@ }

value: function componentDidMount() {
console.log("ho");
if (!this.document) {

@@ -99,0 +97,0 @@ return;

@@ -87,6 +87,4 @@ import _extends from "@babel/runtime/helpers/extends";

this.document = props.document;
console.log("hey");
}
componentDidMount() {
console.log("ho");
if (!this.document) {

@@ -93,0 +91,0 @@ return;

2

dist/umd/react-reflex.min.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-reflex"]=t(require("react")):e["react-reflex"]=t(e.React)}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){e.exports=n(26)()},function(t,n){t.exports=e},function(e,t,n){var r=n(13);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(13);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(21),o=n(22),i=n(23),s=n(24);e.exports=function(e){return r(e)||o(e)||i(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){r(e,t,n[t])}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(25);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12).default,o=n(3);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12).default,o=n(20);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,u,"next",e)}function u(e){n(s,o,i,a,u,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=a||u||Function("return this")(),f=Object.prototype.toString,l=Math.max,p=Math.min,h=function(){return c.Date.now()};function d(e,t,n){var r,o,i,s,a,u,c=0,f=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function g(e){return c=e,a=setTimeout(w,t),f?b(e):s}function x(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(x(e))return _(e);a=setTimeout(w,function(e){var n=t-(e-u);return d?p(n,i-(e-c)):n}(e))}function _(e){return a=void 0,y&&r?b(e):(r=o=void 0,s)}function O(){var e=h(),n=x(e);if(r=arguments,o=this,u=e,n){if(void 0===a)return g(u);if(d)return a=setTimeout(w,t),b(u)}return void 0===a&&(a=setTimeout(w,t)),s}return t=m(t)||0,v(n)&&(f=!!n.leading,i=(d="maxWait"in n)?l(m(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=u=o=a=void 0},O.flush=function(){return void 0===a?s:_(h())},O}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=o.test(e);return a||i.test(e)?s(e.slice(2),a?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return v(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),d(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,n(15))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&u()}function a(){i(s)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},l=y(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function d(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return l;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,s=o.top+o.bottom,a=p(r.width),u=p(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==t&&(a-=h(r,"left","right")+i),Math.round(u+s)!==n&&(u-=h(r,"top","bottom")+s)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(a+i)-t,d=Math.round(u+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(d)&&(u-=d)}return y(o.left,o.top,a,u)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):d(e):l}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),g=function(e,t){var n,r,o,i,s,a,u,f=(r=(n=t).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(a.prototype),c(u,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),u);c(this,{target:e,contentRect:f})},x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new g(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new x(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var O=void 0!==o.ResizeObserver?o.ResizeObserver:_;t.a=O}).call(this,n(15))},function(e,t,n){e.exports=n(29)},function(e,t,n){var r=n(12).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(27);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){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}e.isRequired=e;var n={array:e,bigint: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:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var o,i,s=0|t,a=Math.max(s>=0?s:r-Math.abs(s),0);for(;a<r;){if((o=n[a])===(i=e)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;a++}return!1}}),Math.sign||(Math.sign=function(e){return(e>0)-(e<0)||+e})},function(e,t,n){"use strict";n.r(t);var r=n(9),o=n.n(r),i=n(8),s=n.n(i),a=n(6),u=n.n(a),c=n(4),f=n.n(c),l=n(5),p=n.n(l),h=n(3),d=n.n(h),v=n(10),m=n.n(v),y=n(11),b=n.n(y),g=n(7),x=n.n(g),w=n(2),_=n.n(w),O=function(){function e(){f()(this,e)}return p()(e,null,[{key:"isBrowser",value:function(){return"undefined"!=typeof window}},{key:"isOpera",value:function(){return e.isBrowser()&&e.getUserAgent().match(/Opera Mini/i)}},{key:"isFirefox",value:function(){return e.isBrowser()&&"undefined"!=typeof InstallTrigger}},{key:"isSafari",value:function(){return!!e.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isIE",value:function(){
/*@cc_on!@*/
return e.isBrowser()&&!!document.documentMode}},{key:"isEdge",value:function(){return e.isBrowser()&&!e.isIE()&&!!window.StyleMedia}},{key:"isChrome",value:function(){return e.isBrowser()&&!!window.chrome&&!!window.chrome.webstore}},{key:"isBlink",value:function(){return e.isBrowser()&&(e.isChrome()||e.isOpera())&&!!window.CSS}},{key:"getUserAgent",value:function(){return"undefined"==typeof navigator?"":navigator.userAgent}},{key:"isAndroid",value:function(){return e.isBrowser()&&e.getUserAgent().match(/Android/i)}},{key:"isBlackBerry",value:function(){return e.isBrowser()&&e.getUserAgent().match(/BlackBerry/i)}},{key:"isIOS",value:function(){return e.isBrowser()&&e.getUserAgent().match(/iPhone|iPad|iPod/i)}},{key:"isWindows",value:function(){return e.isBrowser()&&e.isWindowsDesktop()||e.isWindowsMobile()}},{key:"isWindowsMobile",value:function(){return e.isBrowser()&&e.getUserAgent().match(/IEMobile/i)}},{key:"isWindowsDesktop",value:function(){return e.isBrowser()&&e.getUserAgent().match(/WPDesktop/i)}},{key:"isMobile",value:function(){return e.isBrowser()&&(e.isWindowsMobile()||e.isBlackBerry()||e.isAndroid()||e.isIOS())}}]),e}(),z=function(e){return Object.keys(e).reduce((function(t,n){return"data-"===n.substr(0,5)?s()({},t,_()({},n,e[n])):t}),{})},E=n(0),R=n.n(E),M=n(1),S=n.n(M);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var A=function(e){m()(n,e);var t=k(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"ref",S.a.createRef()),_()(d()(r),"onMouseMove",(function(e){if(r.state.active){var t=r.ref.current;r.props.events.emit("resize",{index:r.props.index,domElement:t,event:e}),r.props.onResize&&r.props.onResize({component:d()(r),domElement:t}),e.stopPropagation(),e.preventDefault()}})),_()(d()(r),"onMouseDown",(function(e){r.setState({active:!0}),r.props.onStartResize&&r.props.onStartResize({domElement:r.ref.current,component:d()(r)})||r.props.events.emit("startResize",{index:r.props.index,event:e})})),_()(d()(r),"onMouseUp",(function(e){r.state.active&&(r.setState({active:!1}),r.props.onStopResize&&r.props.onStopResize({domElement:r.ref.current,component:d()(r)}),r.props.events.emit("stopResize",{index:r.props.index,event:e}))})),r.state={active:!1},r.document=e.document,console.log("hey"),r}return p()(n,[{key:"componentDidMount",value:function(){console.log("ho"),this.document&&(this.document.addEventListener("touchend",this.onMouseUp),this.document.addEventListener("mouseup",this.onMouseUp),this.document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),this.document.addEventListener("touchmove",this.onMouseMove,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.document&&(this.document.removeEventListener("mouseup",this.onMouseUp),this.document.removeEventListener("touchend",this.onMouseUp),this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("touchmove",this.onMouseMove),this.state.active&&this.props.events.emit("stopResize",{index:this.props.index,event:null}))}},{key:"render",value:function(){var e=[O.isMobile()?"reflex-thin":""].concat(u()(this.props.className.split(" ")),[this.state.active?"active":"","reflex-splitter"]).join(" ").trim();return S.a.createElement("div",o()({},z(this.props),{onTouchStart:this.onMouseDown,onMouseDown:this.onMouseDown,style:this.props.style,className:e,id:this.props.id,ref:this.ref}),this.props.children)}}],[{key:"isA",value:function(e){return!!e&&e.type===S.a.createElement(n,null).type}}]),n}(S.a.Component);_()(A,"propTypes",{children:R.a.oneOfType([R.a.arrayOf(R.a.node),R.a.node]),onStartResize:R.a.func,onStopResize:R.a.func,className:R.a.string,propagate:R.a.bool,onResize:R.a.func,style:R.a.object}),_()(A,"defaultProps",{document:"undefined"!=typeof document?document:null,onStartResize:null,onStopResize:null,propagate:!1,onResize:null,className:"",style:{}});var j=function(){function e(){f()(this,e),this._events={}}return p()(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n._events[e]=n._events[e]||[],n._events[e].push(t)})),this}},{key:"off",value:function(e,t){var n=this;if(null!=e)return e.split(" ").forEach((function(e){e in n._events!=!1&&(t?n._events[e].splice(n._events[e].indexOf(t),1):n._events[e]=[])})),this;this._events={}}},{key:"emit",value:function(e){if(void 0!==this._events[e])for(var t=this._events[e].slice(),n=0;n<t.length;++n){var r=t[n].apply(this,Array.prototype.slice.call(arguments,1));if(void 0!==r)return r}}}]),e}();n(28);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var L=function(e){m()(n,e);var t=P(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"onWindowResize",(function(){r.setState({flexData:r.computeFlexData()})})),_()(d()(r),"onStartResize",(function(e){var t=e.event.changedTouches?e.event.changedTouches[0]:e.event;switch(r.props.orientation){case"horizontal":document.body.classList.add("reflex-row-resize"),r.previousPos=t.clientY;break;case"vertical":default:document.body.classList.add("reflex-col-resize"),r.previousPos=t.clientX}r.elements=[r.children[e.index-1],r.children[e.index+1]],r.emitElementsEvent(r.elements,"onStartResize")})),_()(d()(r),"onResize",(function(e){var t=e.event.changedTouches?e.event.changedTouches[0]:e.event,n=r.getOffset(t,e.domElement);switch(r.props.orientation){case"horizontal":r.previousPos=t.clientY;break;case"vertical":default:r.previousPos=t.clientX}if(n){var o=r.computeAvailableOffset(e.index,n);o&&(r.elements=r.dispatchOffset(e.index,o),r.adjustFlex(r.elements),r.setState({resizing:!0},(function(){r.emitElementsEvent(r.elements,"onResize")})))}})),_()(d()(r),"onStopResize",(function(e){document.body.classList.remove("reflex-row-resize"),document.body.classList.remove("reflex-col-resize");var t=r.elements?r.elements.map((function(e){return e.ref})):[],n=r.children.filter((function(e){return!A.isA(e)&&t.includes(e.ref)}));r.emitElementsEvent(n,"onStopResize"),r.setState({resizing:!1})})),_()(d()(r),"onElementSize",(function(e){return new Promise((function(t){try{var n=e.index,o=r.getSize(r.children[n]),i=e.size-o,s=e.direction,a=n+s,u=r.computeAvailableOffset(a,s*i);r.elements=null,u&&(r.elements=r.dispatchOffset(a,u),r.adjustFlex(r.elements)),r.setState(r.state,(function(){r.emitElementsEvent(r.elements,"onResize"),t()}))}catch(e){console.log(e)}}))})),r.events=new j,r.children=[],r.state={flexData:[]},r.ref=S.a.createRef(),r}return p()(n,[{key:"componentDidMount",value:function(){var e=this.computeFlexData(),t=this.props.windowResizeAware;t&&window.addEventListener("resize",this.onWindowResize),this.setState({windowResizeAware:t,flexData:e}),this.events.on("element.size",this.onElementSize),this.events.on("startResize",this.onStartResize),this.events.on("stopResize",this.onStopResize),this.events.on("resize",this.onResize)}},{key:"componentWillUnmount",value:function(){this.events.off(),window.removeEventListener("resize",this.onWindowResize)}},{key:"getValidChildren",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return this.toArray(e.children).filter((function(e){return!!e}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.getValidChildren(this.props);if(n.length!==this.state.flexData.length||e.orientation!==this.props.orientation||this.flexHasChanged(e)){var r=this.computeFlexData(n,this.props);this.setState({flexData:r})}this.props.windowResizeAware!==this.state.windowResizeAware&&(this.props.windowResizeAware?window.addEventListener("resize",this.onWindowResize):window.removeEventListener("resize",this.onWindowResize),this.setState({windowResizeAware:this.props.windowResizeAware}))}},{key:"flexHasChanged",value:function(e){var t=this.getValidChildren(e).map((function(e){return e.props.flex||0}));return!this.getValidChildren().map((function(e){return e.props.flex||0})).every((function(e,n){return e===t[n]}))}},{key:"getSize",value:function(e){var t,n,r,o=null==e||null===(t=e.ref)||void 0===t?void 0:t.current;switch(this.props.orientation){case"horizontal":return null!==(n=null==o?void 0:o.offsetHeight)&&void 0!==n?n:0;case"vertical":default:return null!==(r=null==o?void 0:o.offsetWidth)&&void 0!==r?r:0}}},{key:"getOffset",value:function(e,t){var n=t.getBoundingClientRect(),r=n.top,o=n.bottom,i=n.left,s=n.right;switch(this.props.orientation){case"horizontal":var a=e.clientY-this.previousPos;if(a>0){if(e.clientY>=r)return a}else if(e.clientY<=o)return a;break;case"vertical":default:var u=e.clientX-this.previousPos;if(u>0){if(e.clientX>i)return u}else if(e.clientX<s)return u}return 0}},{key:"adjustFlex",value:function(e){var t=this,n=e.reduce((function(n,r){var o=r.props.index;return n+(r.props.flex-t.state.flexData[o].flex)/e.length}),0);e.forEach((function(e){t.state.flexData[e.props.index].flex+=n}))}},{key:"computeAvailableOffset",value:function(e,t){var n=this.computeAvailableStretch(e,t),r=this.computeAvailableShrink(e,t);return Math.min(n,r)*Math.sign(t)}},{key:"checkPropagate",value:function(e,t){if(t>0){if(e<this.children.length-2){var n=this.children[e+2];return A.isA(n)&&n.props.propagate}}else if(e>2){var r=this.children[e-2];return A.isA(r)&&r.props.propagate}return!1}},{key:"computeAvailableStretch",value:function(e,t){var n,r=t<0?e+1:e-1,o=this.children[r],i=this.getSize(o),s=(null!==(n=null==o?void 0:o.props.maxSize)&&void 0!==n?n:0)-i;if(s<Math.abs(t)&&this.checkPropagate(e,-1*t)){var a=Math.sign(t)*(Math.abs(t)-s);return s+this.computeAvailableStretch(t<0?e+2:e-2,a)}return Math.min(s,Math.abs(t))}},{key:"computeAvailableShrink",value:function(e,t){var n,r=t>0?e+1:e-1,o=this.children[r],i=this.getSize(o)-Math.max(null!==(n=null==o?void 0:o.props.minSize)&&void 0!==n?n:0,0);if(i<Math.abs(t)&&this.checkPropagate(e,t)){var s=Math.sign(t)*(Math.abs(t)-i);return i+this.computeAvailableShrink(t>0?e+2:e-2,s)}return Math.min(i,Math.abs(t))}},{key:"computePixelFlex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.orientation;if(!this.ref.current)return console.warn("Unable to locate ReflexContainer dom node"),0;switch(e){case"horizontal":return 0===this.ref.current.offsetHeight?(console.warn("Found ReflexContainer with height=0, this will cause invalid behavior..."),console.warn(this.ref.current),0):1/this.ref.current.offsetHeight;case"vertical":default:return 0===this.ref.current.offsetWidth?(console.warn("Found ReflexContainer with width=0, this will cause invalid behavior..."),console.warn(this.ref.current),0):1/this.ref.current.offsetWidth}}},{key:"addOffset",value:function(e,t){var n=this.getSize(e),r=e.props.index,o=Math.max(n+t,0),i=this.state.flexData[r].flex,s=i>0?i*o/n:this.computePixelFlex()*o;this.state.flexData[r].flex=!isFinite(s)||isNaN(s)?0:s}},{key:"dispatchStretch",value:function(e,t){var n=t<0?e+1:e-1;if(n<0||n>this.children.length-1)return[];var r=this.children[n],o=this.getSize(r),i=Math.min(r.props.maxSize,o+Math.abs(t))-o;if(this.addOffset(r,i),i<Math.abs(t)){var s=e-2*Math.sign(t),a=Math.sign(t)*(Math.abs(t)-i);return[r].concat(u()(this.dispatchStretch(s,a)))}return[r]}},{key:"dispatchShrink",value:function(e,t){var n=t>0?e+1:e-1;if(n<0||n>this.children.length-1)return[];var r=this.children[n],o=this.getSize(r),i=Math.max(r.props.minSize,o-Math.abs(t))-o;if(this.addOffset(r,i),Math.abs(i)<Math.abs(t)){var s=e+2*Math.sign(t),a=Math.sign(t)*(Math.abs(t)+i);return[r].concat(u()(this.dispatchShrink(s,a)))}return[r]}},{key:"dispatchOffset",value:function(e,t){return[].concat(u()(this.dispatchStretch(e,t)),u()(this.dispatchShrink(e,t)))}},{key:"emitElementsEvent",value:function(e,t){this.toArray(e).forEach((function(e){e.props[t]&&e.props[t]({domElement:e.ref.current,component:e})}))}},{key:"computeFlexData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getValidChildren(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,r=this.computePixelFlex(n.orientation),o=function(e){return e.reduce((function(e,t){return!A.isA(t)&&t.constrained?e-t.flex:e}),1)},i=function(e){return e.reduce((function(e,t){return A.isA(t)||t.constrained?e:e+1}),0)},a=t.map((function(e){var t=e.props;return{maxFlex:(t.maxSize||Number.MAX_VALUE)*r,sizeFlex:(t.size||Number.MAX_VALUE)*r,minFlex:(t.minSize||1)*r,constrained:void 0!==t.flex,flex:t.flex||0,type:e.type}})),u=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=!1,u=i(n),c=o(n),f=n.map((function(e){if(A.isA(e))return e;var t=e.constrained?e.flex:c/u,n=Math.min(e.sizeFlex,Math.min(e.maxFlex,Math.max(e.minFlex,t))),r=e.constrained||n!==t;return a=a||r,s()({},e,{flex:n,constrained:r})}));return a&&r<e.props.maxRecDepth?t(f,r+1):f},c=u(a);return c.map((function(e){return{flex:A.isA(e)?0:e.flex,ref:S.a.createRef()}}))}},{key:"toArray",value:function(e){return e?Array.isArray(e)?e:[e]:[]}},{key:"render",value:function(){var e=this,t=[this.state.resizing?"reflex-resizing":""].concat(u()(this.props.className.split(" ")),[this.props.orientation,"reflex-container"]).join(" ").trim();return this.children=S.a.Children.map(this.getValidChildren(),(function(t,n){if(n>e.state.flexData.length-1)return S.a.createElement("div",null);var r=e.state.flexData[n],o=s()({},t.props,{maxSize:t.props.maxSize||Number.MAX_VALUE,orientation:e.props.orientation,minSize:t.props.minSize||1,events:e.events,flex:r.flex,ref:r.ref,index:n});return S.a.cloneElement(t,o)})),S.a.createElement("div",o()({},z(this.props),{style:this.props.style,className:t,ref:this.ref}),this.children)}}]),n}(S.a.Component);_()(L,"propTypes",{windowResizeAware:R.a.bool,orientation:R.a.oneOf(["horizontal","vertical"]),maxRecDepth:R.a.number,className:R.a.string,style:R.a.object}),_()(L,"defaultProps",{orientation:"horizontal",windowResizeAware:!1,maxRecDepth:100,className:"",style:{}});var T=n(12),D=n.n(T),C=n(16),N=n.n(C);function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var F=function(e){m()(n,e);var t=B(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"ref",S.a.createRef()),_()(d()(r),"onMouseMove",(function(e){if(r.state.active){var t=r.ref.current;r.props.events.emit("resize",{index:r.props.index,domElement:t,event:e}),r.props.onResize&&r.props.onResize({component:d()(r),domElement:t}),e.stopPropagation(),e.preventDefault()}})),_()(d()(r),"onMouseDown",(function(e){r.setState({active:!0}),r.props.onStartResize&&r.props.onStartResize({domElement:r.ref.current,component:d()(r)})||r.props.events.emit("startResize",{index:r.props.index,event:e})})),_()(d()(r),"onMouseUp",(function(e){r.state.active&&(r.setState({active:!1}),r.props.onStopResize&&r.props.onStopResize({domElement:r.ref.current,component:d()(r)}),r.props.events.emit("stopResize",{index:r.props.index,event:e}))})),r.state={active:!1},r.document=e.document,r}return p()(n,[{key:"componentDidMount",value:function(){this.document&&(this.document.addEventListener("touchend",this.onMouseUp),this.document.addEventListener("mouseup",this.onMouseUp),this.document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),this.document.addEventListener("touchmove",this.onMouseMove,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.document&&(this.document.removeEventListener("mouseup",this.onMouseUp),this.document.removeEventListener("touchend",this.onMouseUp),this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("touchmove",this.onMouseMove),this.state.active&&this.props.events.emit("stopResize",{index:this.props.index,event:null}))}},{key:"render",value:function(){var e=[].concat(u()(this.props.className.split(" ")),[this.state.active?"active":"","reflex-handle"]).join(" ").trim();return S.a.createElement("div",o()({},z(this.props),{onTouchStart:this.onMouseDown,onMouseDown:this.onMouseDown,style:this.props.style,className:e,id:this.props.id,ref:this.ref}),this.props.children)}}],[{key:"isA",value:function(e){return!!e&&e.type===n}}]),n}(S.a.Component);_()(F,"propTypes",{children:R.a.oneOfType([R.a.arrayOf(R.a.node),R.a.node]),onStartResize:R.a.func,onStopResize:R.a.func,className:R.a.string,propagate:R.a.bool,onResize:R.a.func,style:R.a.object}),_()(F,"defaultProps",{document:"undefined"==typeof document?null:document,onStartResize:null,onStopResize:null,propagate:!1,onResize:null,className:"",style:{}});var W=n(17),U=n.n(W);function I(){return(I=Object.assign?Object.assign.bind():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 H(e,t){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var V=n(18),G=["client","offset","scroll","bounds","margin"];function q(e){var t=[];return G.forEach((function(n){e[n]&&t.push(n)})),t}function X(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);n.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return n}function Y(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||window}var $,J,K,Q,Z=($=function(e){var t=e.measure,n=e.measureRef,r=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:r})},K=J=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},t._animationFrameID=null,t._resizeObserver=null,t._node=null,t._window=null,t.measure=function(e){var n=X(t._node,Q||q(t.props));e&&(n.entry=e[0].contentRect),t._animationFrameID=t._window.requestAnimationFrame((function(){null!==t._resizeObserver&&(t.setState({contentRect:n}),"function"==typeof t.props.onResize&&t.props.onResize(n))}))},t._handleRef=function(e){null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.unobserve(t._node),t._node=e,t._window=Y(t._node);var n=t.props.innerRef;n&&("function"==typeof n?n(t._node):n.current=t._node),null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.observe(t._node)},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,H(t,n);var o=r.prototype;return o.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new V.a(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(X(this._node,Q||q(this.props))))},o.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},o.render=function(){var e=this.props,t=(e.innerRef,e.onResize,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["innerRef","onResize"]));return Object(M.createElement)($,I({},t,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},r}(M.Component),J.propTypes={client:R.a.bool,offset:R.a.bool,scroll:R.a.bool,bounds:R.a.bool,margin:R.a.bool,innerRef:R.a.oneOfType([R.a.object,R.a.func]),onResize:R.a.func},K);Z.displayName="Measure",Z.propTypes.children=R.a.func;var ee=Z;function te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */te=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,s=Object.create(i.prototype),a=new E(o||[]);return r(s,"_invoke",{value:w(e,n,a)}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function p(){}function h(){}function d(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(R([])));y&&y!==t&&n.call(y,i)&&(v=y);var b=d.prototype=p.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var o;r(this,"_invoke",{value:function(r,i){function s(){return new t((function(o,s){!function r(o,i,s,a){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==D()(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(l).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,a)}))}a(u.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}})}function w(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===l)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,l;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function R(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=d,r(b,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:h,configurable:!0}),h.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},g(x.prototype),u(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new x(c(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(b),u(b,a,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=R,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(z),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),z(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function ne(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var ie=function(e){return e?Array.isArray(e)?e:[e]:[]},se=function(e){m()(n,e);var t=oe(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"onResize",(function(e){var t=r.props,n=t.resizeHeight,o=t.resizeWidth,i=e.bounds,a=i.height,u=i.width;r.setDimensions(s()({},n&&{height:a},o&&{width:u}))})),r.setDimensions=U()((function(e){r.setState(e)}),r.props.propagateDimensionsRate/1e3),r.state={height:"100%",width:"100%"},r}return p()(n,[{key:"renderChildren",value:function(){var e=this,t=this.props.propagateDimensions,n=ie(this.props.children).filter((function(e){return!!e}));return S.a.Children.map(n,(function(n){return e.props.withHandle||F.isA(n)?S.a.cloneElement(n,s()({dimensions:t&&e.state},n.props,{index:e.props.index-1,events:e.props.events})):t?S.a.cloneElement(n,s()({},n.props,{dimensions:e.state})):n}))}},{key:"render",value:function(){var e=this;return S.a.createElement(ee,{bounds:!0,onResize:this.onResize},(function(t){var n=t.measureRef;return S.a.createElement("div",{ref:n,className:"reflex-size-aware"},S.a.createElement("div",{style:e.state},e.renderChildren()))}))}}]),n}(S.a.Component),ae=function(e){m()(r,e);var t,n=oe(r);function r(e){var t;return f()(this,r),(t=n.call(this,e)).state={size:e.size},t}return p()(r,[{key:"componentDidUpdate",value:(t=N()(te().mark((function e(t,n,r){var o,i,s,a;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.size===this.state.size){e.next=19;break}o=ie(this.props.direction),i=ne(o),e.prev=3,i.s();case 5:if((s=i.n()).done){e.next=11;break}return a=s.value,e.next=9,this.props.events.emit("element.size",{index:this.props.index,size:this.props.size,direction:a});case 9:e.next=5;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),i.e(e.t0);case 16:return e.prev=16,i.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[3,13,16,19]])}))),function(e,n,r){return t.apply(this,arguments)})},{key:"renderChildren",value:function(){var e=this,t=ie(this.props.children).filter((function(e){return!!e}));return S.a.Children.map(t,(function(t){return e.props.withHandle||F.isA(t)?S.a.cloneElement(t,s()({},t.props,{index:e.props.index-1,events:e.props.events})):t}))}},{key:"render",value:function(){var e=[].concat(u()(this.props.className.split(" ")),[this.props.orientation,"reflex-element"]).join(" ").trim(),t=s()({},this.props.style,{flexGrow:this.props.flex,flexShrink:1,flexBasis:"0%"});return S.a.createElement("div",o()({},z(this.props),{ref:this.props.innerRef,className:e,style:t}),this.props.propagateDimensions?S.a.createElement(se,this.props):this.renderChildren())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.size!==t.size?s()({},t,{size:e.size}):null}}]),r}(S.a.Component);_()(ae,"propTypes",{propagateDimensions:R.a.bool,resizeHeight:R.a.bool,resizeWidth:R.a.bool,className:R.a.string,size:R.a.number}),_()(ae,"defaultProps",{propagateDimensionsRate:100,propagateDimensions:!1,resizeHeight:!0,resizeWidth:!0,direction:[1],className:""});var ue=S.a.forwardRef((function(e,t){return S.a.createElement(ae,o()({innerRef:t},e))}));n.d(t,"ReflexContainer",(function(){return L})),n.d(t,"ReflexSplitter",(function(){return A})),n.d(t,"ReflexElement",(function(){return ue})),n.d(t,"ReflexHandle",(function(){return F}))}])}));
return e.isBrowser()&&!!document.documentMode}},{key:"isEdge",value:function(){return e.isBrowser()&&!e.isIE()&&!!window.StyleMedia}},{key:"isChrome",value:function(){return e.isBrowser()&&!!window.chrome&&!!window.chrome.webstore}},{key:"isBlink",value:function(){return e.isBrowser()&&(e.isChrome()||e.isOpera())&&!!window.CSS}},{key:"getUserAgent",value:function(){return"undefined"==typeof navigator?"":navigator.userAgent}},{key:"isAndroid",value:function(){return e.isBrowser()&&e.getUserAgent().match(/Android/i)}},{key:"isBlackBerry",value:function(){return e.isBrowser()&&e.getUserAgent().match(/BlackBerry/i)}},{key:"isIOS",value:function(){return e.isBrowser()&&e.getUserAgent().match(/iPhone|iPad|iPod/i)}},{key:"isWindows",value:function(){return e.isBrowser()&&e.isWindowsDesktop()||e.isWindowsMobile()}},{key:"isWindowsMobile",value:function(){return e.isBrowser()&&e.getUserAgent().match(/IEMobile/i)}},{key:"isWindowsDesktop",value:function(){return e.isBrowser()&&e.getUserAgent().match(/WPDesktop/i)}},{key:"isMobile",value:function(){return e.isBrowser()&&(e.isWindowsMobile()||e.isBlackBerry()||e.isAndroid()||e.isIOS())}}]),e}(),z=function(e){return Object.keys(e).reduce((function(t,n){return"data-"===n.substr(0,5)?s()({},t,_()({},n,e[n])):t}),{})},E=n(0),R=n.n(E),M=n(1),S=n.n(M);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var A=function(e){m()(n,e);var t=k(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"ref",S.a.createRef()),_()(d()(r),"onMouseMove",(function(e){if(r.state.active){var t=r.ref.current;r.props.events.emit("resize",{index:r.props.index,domElement:t,event:e}),r.props.onResize&&r.props.onResize({component:d()(r),domElement:t}),e.stopPropagation(),e.preventDefault()}})),_()(d()(r),"onMouseDown",(function(e){r.setState({active:!0}),r.props.onStartResize&&r.props.onStartResize({domElement:r.ref.current,component:d()(r)})||r.props.events.emit("startResize",{index:r.props.index,event:e})})),_()(d()(r),"onMouseUp",(function(e){r.state.active&&(r.setState({active:!1}),r.props.onStopResize&&r.props.onStopResize({domElement:r.ref.current,component:d()(r)}),r.props.events.emit("stopResize",{index:r.props.index,event:e}))})),r.state={active:!1},r.document=e.document,r}return p()(n,[{key:"componentDidMount",value:function(){this.document&&(this.document.addEventListener("touchend",this.onMouseUp),this.document.addEventListener("mouseup",this.onMouseUp),this.document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),this.document.addEventListener("touchmove",this.onMouseMove,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.document&&(this.document.removeEventListener("mouseup",this.onMouseUp),this.document.removeEventListener("touchend",this.onMouseUp),this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("touchmove",this.onMouseMove),this.state.active&&this.props.events.emit("stopResize",{index:this.props.index,event:null}))}},{key:"render",value:function(){var e=[O.isMobile()?"reflex-thin":""].concat(u()(this.props.className.split(" ")),[this.state.active?"active":"","reflex-splitter"]).join(" ").trim();return S.a.createElement("div",o()({},z(this.props),{onTouchStart:this.onMouseDown,onMouseDown:this.onMouseDown,style:this.props.style,className:e,id:this.props.id,ref:this.ref}),this.props.children)}}],[{key:"isA",value:function(e){return!!e&&e.type===S.a.createElement(n,null).type}}]),n}(S.a.Component);_()(A,"propTypes",{children:R.a.oneOfType([R.a.arrayOf(R.a.node),R.a.node]),onStartResize:R.a.func,onStopResize:R.a.func,className:R.a.string,propagate:R.a.bool,onResize:R.a.func,style:R.a.object}),_()(A,"defaultProps",{document:"undefined"!=typeof document?document:null,onStartResize:null,onStopResize:null,propagate:!1,onResize:null,className:"",style:{}});var j=function(){function e(){f()(this,e),this._events={}}return p()(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n._events[e]=n._events[e]||[],n._events[e].push(t)})),this}},{key:"off",value:function(e,t){var n=this;if(null!=e)return e.split(" ").forEach((function(e){e in n._events!=!1&&(t?n._events[e].splice(n._events[e].indexOf(t),1):n._events[e]=[])})),this;this._events={}}},{key:"emit",value:function(e){if(void 0!==this._events[e])for(var t=this._events[e].slice(),n=0;n<t.length;++n){var r=t[n].apply(this,Array.prototype.slice.call(arguments,1));if(void 0!==r)return r}}}]),e}();n(28);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var L=function(e){m()(n,e);var t=P(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"onWindowResize",(function(){r.setState({flexData:r.computeFlexData()})})),_()(d()(r),"onStartResize",(function(e){var t=e.event.changedTouches?e.event.changedTouches[0]:e.event;switch(r.props.orientation){case"horizontal":document.body.classList.add("reflex-row-resize"),r.previousPos=t.clientY;break;case"vertical":default:document.body.classList.add("reflex-col-resize"),r.previousPos=t.clientX}r.elements=[r.children[e.index-1],r.children[e.index+1]],r.emitElementsEvent(r.elements,"onStartResize")})),_()(d()(r),"onResize",(function(e){var t=e.event.changedTouches?e.event.changedTouches[0]:e.event,n=r.getOffset(t,e.domElement);switch(r.props.orientation){case"horizontal":r.previousPos=t.clientY;break;case"vertical":default:r.previousPos=t.clientX}if(n){var o=r.computeAvailableOffset(e.index,n);o&&(r.elements=r.dispatchOffset(e.index,o),r.adjustFlex(r.elements),r.setState({resizing:!0},(function(){r.emitElementsEvent(r.elements,"onResize")})))}})),_()(d()(r),"onStopResize",(function(e){document.body.classList.remove("reflex-row-resize"),document.body.classList.remove("reflex-col-resize");var t=r.elements?r.elements.map((function(e){return e.ref})):[],n=r.children.filter((function(e){return!A.isA(e)&&t.includes(e.ref)}));r.emitElementsEvent(n,"onStopResize"),r.setState({resizing:!1})})),_()(d()(r),"onElementSize",(function(e){return new Promise((function(t){try{var n=e.index,o=r.getSize(r.children[n]),i=e.size-o,s=e.direction,a=n+s,u=r.computeAvailableOffset(a,s*i);r.elements=null,u&&(r.elements=r.dispatchOffset(a,u),r.adjustFlex(r.elements)),r.setState(r.state,(function(){r.emitElementsEvent(r.elements,"onResize"),t()}))}catch(e){console.log(e)}}))})),r.events=new j,r.children=[],r.state={flexData:[]},r.ref=S.a.createRef(),r}return p()(n,[{key:"componentDidMount",value:function(){var e=this.computeFlexData(),t=this.props.windowResizeAware;t&&window.addEventListener("resize",this.onWindowResize),this.setState({windowResizeAware:t,flexData:e}),this.events.on("element.size",this.onElementSize),this.events.on("startResize",this.onStartResize),this.events.on("stopResize",this.onStopResize),this.events.on("resize",this.onResize)}},{key:"componentWillUnmount",value:function(){this.events.off(),window.removeEventListener("resize",this.onWindowResize)}},{key:"getValidChildren",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return this.toArray(e.children).filter((function(e){return!!e}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.getValidChildren(this.props);if(n.length!==this.state.flexData.length||e.orientation!==this.props.orientation||this.flexHasChanged(e)){var r=this.computeFlexData(n,this.props);this.setState({flexData:r})}this.props.windowResizeAware!==this.state.windowResizeAware&&(this.props.windowResizeAware?window.addEventListener("resize",this.onWindowResize):window.removeEventListener("resize",this.onWindowResize),this.setState({windowResizeAware:this.props.windowResizeAware}))}},{key:"flexHasChanged",value:function(e){var t=this.getValidChildren(e).map((function(e){return e.props.flex||0}));return!this.getValidChildren().map((function(e){return e.props.flex||0})).every((function(e,n){return e===t[n]}))}},{key:"getSize",value:function(e){var t,n,r,o=null==e||null===(t=e.ref)||void 0===t?void 0:t.current;switch(this.props.orientation){case"horizontal":return null!==(n=null==o?void 0:o.offsetHeight)&&void 0!==n?n:0;case"vertical":default:return null!==(r=null==o?void 0:o.offsetWidth)&&void 0!==r?r:0}}},{key:"getOffset",value:function(e,t){var n=t.getBoundingClientRect(),r=n.top,o=n.bottom,i=n.left,s=n.right;switch(this.props.orientation){case"horizontal":var a=e.clientY-this.previousPos;if(a>0){if(e.clientY>=r)return a}else if(e.clientY<=o)return a;break;case"vertical":default:var u=e.clientX-this.previousPos;if(u>0){if(e.clientX>i)return u}else if(e.clientX<s)return u}return 0}},{key:"adjustFlex",value:function(e){var t=this,n=e.reduce((function(n,r){var o=r.props.index;return n+(r.props.flex-t.state.flexData[o].flex)/e.length}),0);e.forEach((function(e){t.state.flexData[e.props.index].flex+=n}))}},{key:"computeAvailableOffset",value:function(e,t){var n=this.computeAvailableStretch(e,t),r=this.computeAvailableShrink(e,t);return Math.min(n,r)*Math.sign(t)}},{key:"checkPropagate",value:function(e,t){if(t>0){if(e<this.children.length-2){var n=this.children[e+2];return A.isA(n)&&n.props.propagate}}else if(e>2){var r=this.children[e-2];return A.isA(r)&&r.props.propagate}return!1}},{key:"computeAvailableStretch",value:function(e,t){var n,r=t<0?e+1:e-1,o=this.children[r],i=this.getSize(o),s=(null!==(n=null==o?void 0:o.props.maxSize)&&void 0!==n?n:0)-i;if(s<Math.abs(t)&&this.checkPropagate(e,-1*t)){var a=Math.sign(t)*(Math.abs(t)-s);return s+this.computeAvailableStretch(t<0?e+2:e-2,a)}return Math.min(s,Math.abs(t))}},{key:"computeAvailableShrink",value:function(e,t){var n,r=t>0?e+1:e-1,o=this.children[r],i=this.getSize(o)-Math.max(null!==(n=null==o?void 0:o.props.minSize)&&void 0!==n?n:0,0);if(i<Math.abs(t)&&this.checkPropagate(e,t)){var s=Math.sign(t)*(Math.abs(t)-i);return i+this.computeAvailableShrink(t>0?e+2:e-2,s)}return Math.min(i,Math.abs(t))}},{key:"computePixelFlex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.orientation;if(!this.ref.current)return console.warn("Unable to locate ReflexContainer dom node"),0;switch(e){case"horizontal":return 0===this.ref.current.offsetHeight?(console.warn("Found ReflexContainer with height=0, this will cause invalid behavior..."),console.warn(this.ref.current),0):1/this.ref.current.offsetHeight;case"vertical":default:return 0===this.ref.current.offsetWidth?(console.warn("Found ReflexContainer with width=0, this will cause invalid behavior..."),console.warn(this.ref.current),0):1/this.ref.current.offsetWidth}}},{key:"addOffset",value:function(e,t){var n=this.getSize(e),r=e.props.index,o=Math.max(n+t,0),i=this.state.flexData[r].flex,s=i>0?i*o/n:this.computePixelFlex()*o;this.state.flexData[r].flex=!isFinite(s)||isNaN(s)?0:s}},{key:"dispatchStretch",value:function(e,t){var n=t<0?e+1:e-1;if(n<0||n>this.children.length-1)return[];var r=this.children[n],o=this.getSize(r),i=Math.min(r.props.maxSize,o+Math.abs(t))-o;if(this.addOffset(r,i),i<Math.abs(t)){var s=e-2*Math.sign(t),a=Math.sign(t)*(Math.abs(t)-i);return[r].concat(u()(this.dispatchStretch(s,a)))}return[r]}},{key:"dispatchShrink",value:function(e,t){var n=t>0?e+1:e-1;if(n<0||n>this.children.length-1)return[];var r=this.children[n],o=this.getSize(r),i=Math.max(r.props.minSize,o-Math.abs(t))-o;if(this.addOffset(r,i),Math.abs(i)<Math.abs(t)){var s=e+2*Math.sign(t),a=Math.sign(t)*(Math.abs(t)+i);return[r].concat(u()(this.dispatchShrink(s,a)))}return[r]}},{key:"dispatchOffset",value:function(e,t){return[].concat(u()(this.dispatchStretch(e,t)),u()(this.dispatchShrink(e,t)))}},{key:"emitElementsEvent",value:function(e,t){this.toArray(e).forEach((function(e){e.props[t]&&e.props[t]({domElement:e.ref.current,component:e})}))}},{key:"computeFlexData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getValidChildren(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,r=this.computePixelFlex(n.orientation),o=function(e){return e.reduce((function(e,t){return!A.isA(t)&&t.constrained?e-t.flex:e}),1)},i=function(e){return e.reduce((function(e,t){return A.isA(t)||t.constrained?e:e+1}),0)},a=t.map((function(e){var t=e.props;return{maxFlex:(t.maxSize||Number.MAX_VALUE)*r,sizeFlex:(t.size||Number.MAX_VALUE)*r,minFlex:(t.minSize||1)*r,constrained:void 0!==t.flex,flex:t.flex||0,type:e.type}})),u=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=!1,u=i(n),c=o(n),f=n.map((function(e){if(A.isA(e))return e;var t=e.constrained?e.flex:c/u,n=Math.min(e.sizeFlex,Math.min(e.maxFlex,Math.max(e.minFlex,t))),r=e.constrained||n!==t;return a=a||r,s()({},e,{flex:n,constrained:r})}));return a&&r<e.props.maxRecDepth?t(f,r+1):f},c=u(a);return c.map((function(e){return{flex:A.isA(e)?0:e.flex,ref:S.a.createRef()}}))}},{key:"toArray",value:function(e){return e?Array.isArray(e)?e:[e]:[]}},{key:"render",value:function(){var e=this,t=[this.state.resizing?"reflex-resizing":""].concat(u()(this.props.className.split(" ")),[this.props.orientation,"reflex-container"]).join(" ").trim();return this.children=S.a.Children.map(this.getValidChildren(),(function(t,n){if(n>e.state.flexData.length-1)return S.a.createElement("div",null);var r=e.state.flexData[n],o=s()({},t.props,{maxSize:t.props.maxSize||Number.MAX_VALUE,orientation:e.props.orientation,minSize:t.props.minSize||1,events:e.events,flex:r.flex,ref:r.ref,index:n});return S.a.cloneElement(t,o)})),S.a.createElement("div",o()({},z(this.props),{style:this.props.style,className:t,ref:this.ref}),this.children)}}]),n}(S.a.Component);_()(L,"propTypes",{windowResizeAware:R.a.bool,orientation:R.a.oneOf(["horizontal","vertical"]),maxRecDepth:R.a.number,className:R.a.string,style:R.a.object}),_()(L,"defaultProps",{orientation:"horizontal",windowResizeAware:!1,maxRecDepth:100,className:"",style:{}});var T=n(12),D=n.n(T),C=n(16),N=n.n(C);function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var F=function(e){m()(n,e);var t=B(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"ref",S.a.createRef()),_()(d()(r),"onMouseMove",(function(e){if(r.state.active){var t=r.ref.current;r.props.events.emit("resize",{index:r.props.index,domElement:t,event:e}),r.props.onResize&&r.props.onResize({component:d()(r),domElement:t}),e.stopPropagation(),e.preventDefault()}})),_()(d()(r),"onMouseDown",(function(e){r.setState({active:!0}),r.props.onStartResize&&r.props.onStartResize({domElement:r.ref.current,component:d()(r)})||r.props.events.emit("startResize",{index:r.props.index,event:e})})),_()(d()(r),"onMouseUp",(function(e){r.state.active&&(r.setState({active:!1}),r.props.onStopResize&&r.props.onStopResize({domElement:r.ref.current,component:d()(r)}),r.props.events.emit("stopResize",{index:r.props.index,event:e}))})),r.state={active:!1},r.document=e.document,r}return p()(n,[{key:"componentDidMount",value:function(){this.document&&(this.document.addEventListener("touchend",this.onMouseUp),this.document.addEventListener("mouseup",this.onMouseUp),this.document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),this.document.addEventListener("touchmove",this.onMouseMove,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.document&&(this.document.removeEventListener("mouseup",this.onMouseUp),this.document.removeEventListener("touchend",this.onMouseUp),this.document.removeEventListener("mousemove",this.onMouseMove),this.document.removeEventListener("touchmove",this.onMouseMove),this.state.active&&this.props.events.emit("stopResize",{index:this.props.index,event:null}))}},{key:"render",value:function(){var e=[].concat(u()(this.props.className.split(" ")),[this.state.active?"active":"","reflex-handle"]).join(" ").trim();return S.a.createElement("div",o()({},z(this.props),{onTouchStart:this.onMouseDown,onMouseDown:this.onMouseDown,style:this.props.style,className:e,id:this.props.id,ref:this.ref}),this.props.children)}}],[{key:"isA",value:function(e){return!!e&&e.type===n}}]),n}(S.a.Component);_()(F,"propTypes",{children:R.a.oneOfType([R.a.arrayOf(R.a.node),R.a.node]),onStartResize:R.a.func,onStopResize:R.a.func,className:R.a.string,propagate:R.a.bool,onResize:R.a.func,style:R.a.object}),_()(F,"defaultProps",{document:"undefined"==typeof document?null:document,onStartResize:null,onStopResize:null,propagate:!1,onResize:null,className:"",style:{}});var W=n(17),U=n.n(W);function I(){return(I=Object.assign?Object.assign.bind():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 H(e,t){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var V=n(18),G=["client","offset","scroll","bounds","margin"];function q(e){var t=[];return G.forEach((function(n){e[n]&&t.push(n)})),t}function X(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);n.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return n}function Y(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||window}var $,J,K,Q,Z=($=function(e){var t=e.measure,n=e.measureRef,r=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:r})},K=J=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},t._animationFrameID=null,t._resizeObserver=null,t._node=null,t._window=null,t.measure=function(e){var n=X(t._node,Q||q(t.props));e&&(n.entry=e[0].contentRect),t._animationFrameID=t._window.requestAnimationFrame((function(){null!==t._resizeObserver&&(t.setState({contentRect:n}),"function"==typeof t.props.onResize&&t.props.onResize(n))}))},t._handleRef=function(e){null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.unobserve(t._node),t._node=e,t._window=Y(t._node);var n=t.props.innerRef;n&&("function"==typeof n?n(t._node):n.current=t._node),null!==t._resizeObserver&&null!==t._node&&t._resizeObserver.observe(t._node)},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,H(t,n);var o=r.prototype;return o.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new V.a(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(X(this._node,Q||q(this.props))))},o.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},o.render=function(){var e=this.props,t=(e.innerRef,e.onResize,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["innerRef","onResize"]));return Object(M.createElement)($,I({},t,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},r}(M.Component),J.propTypes={client:R.a.bool,offset:R.a.bool,scroll:R.a.bool,bounds:R.a.bool,margin:R.a.bool,innerRef:R.a.oneOfType([R.a.object,R.a.func]),onResize:R.a.func},K);Z.displayName="Measure",Z.propTypes.children=R.a.func;var ee=Z;function te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */te=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,s=Object.create(i.prototype),a=new E(o||[]);return r(s,"_invoke",{value:w(e,n,a)}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function p(){}function h(){}function d(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(R([])));y&&y!==t&&n.call(y,i)&&(v=y);var b=d.prototype=p.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var o;r(this,"_invoke",{value:function(r,i){function s(){return new t((function(o,s){!function r(o,i,s,a){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==D()(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(l).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,a)}))}a(u.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}})}function w(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===l)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,l;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function R(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=d,r(b,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:h,configurable:!0}),h.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},g(x.prototype),u(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new x(c(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},g(b),u(b,a,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=R,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(z),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),z(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function ne(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x()(e);if(t){var o=x()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var ie=function(e){return e?Array.isArray(e)?e:[e]:[]},se=function(e){m()(n,e);var t=oe(n);function n(e){var r;return f()(this,n),r=t.call(this,e),_()(d()(r),"onResize",(function(e){var t=r.props,n=t.resizeHeight,o=t.resizeWidth,i=e.bounds,a=i.height,u=i.width;r.setDimensions(s()({},n&&{height:a},o&&{width:u}))})),r.setDimensions=U()((function(e){r.setState(e)}),r.props.propagateDimensionsRate/1e3),r.state={height:"100%",width:"100%"},r}return p()(n,[{key:"renderChildren",value:function(){var e=this,t=this.props.propagateDimensions,n=ie(this.props.children).filter((function(e){return!!e}));return S.a.Children.map(n,(function(n){return e.props.withHandle||F.isA(n)?S.a.cloneElement(n,s()({dimensions:t&&e.state},n.props,{index:e.props.index-1,events:e.props.events})):t?S.a.cloneElement(n,s()({},n.props,{dimensions:e.state})):n}))}},{key:"render",value:function(){var e=this;return S.a.createElement(ee,{bounds:!0,onResize:this.onResize},(function(t){var n=t.measureRef;return S.a.createElement("div",{ref:n,className:"reflex-size-aware"},S.a.createElement("div",{style:e.state},e.renderChildren()))}))}}]),n}(S.a.Component),ae=function(e){m()(r,e);var t,n=oe(r);function r(e){var t;return f()(this,r),(t=n.call(this,e)).state={size:e.size},t}return p()(r,[{key:"componentDidUpdate",value:(t=N()(te().mark((function e(t,n,r){var o,i,s,a;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.size===this.state.size){e.next=19;break}o=ie(this.props.direction),i=ne(o),e.prev=3,i.s();case 5:if((s=i.n()).done){e.next=11;break}return a=s.value,e.next=9,this.props.events.emit("element.size",{index:this.props.index,size:this.props.size,direction:a});case 9:e.next=5;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),i.e(e.t0);case 16:return e.prev=16,i.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[3,13,16,19]])}))),function(e,n,r){return t.apply(this,arguments)})},{key:"renderChildren",value:function(){var e=this,t=ie(this.props.children).filter((function(e){return!!e}));return S.a.Children.map(t,(function(t){return e.props.withHandle||F.isA(t)?S.a.cloneElement(t,s()({},t.props,{index:e.props.index-1,events:e.props.events})):t}))}},{key:"render",value:function(){var e=[].concat(u()(this.props.className.split(" ")),[this.props.orientation,"reflex-element"]).join(" ").trim(),t=s()({},this.props.style,{flexGrow:this.props.flex,flexShrink:1,flexBasis:"0%"});return S.a.createElement("div",o()({},z(this.props),{ref:this.props.innerRef,className:e,style:t}),this.props.propagateDimensions?S.a.createElement(se,this.props):this.renderChildren())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.size!==t.size?s()({},t,{size:e.size}):null}}]),r}(S.a.Component);_()(ae,"propTypes",{propagateDimensions:R.a.bool,resizeHeight:R.a.bool,resizeWidth:R.a.bool,className:R.a.string,size:R.a.number}),_()(ae,"defaultProps",{propagateDimensionsRate:100,propagateDimensions:!1,resizeHeight:!0,resizeWidth:!0,direction:[1],className:""});var ue=S.a.forwardRef((function(e,t){return S.a.createElement(ae,o()({innerRef:t},e))}));n.d(t,"ReflexContainer",(function(){return L})),n.d(t,"ReflexSplitter",(function(){return A})),n.d(t,"ReflexElement",(function(){return ue})),n.d(t,"ReflexHandle",(function(){return F}))}])}));
{
"name": "react-reflex",
"version": "4.2.4",
"version": "4.2.5",
"description": "Flex layout component for advanced React web applications",

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc