diff --git a/README.md b/README.md
index 163dab6..cf5ac65 100644
--- a/README.md
+++ b/README.md
@@ -65,9 +65,13 @@ import Sticky from 'react-sticky-state';
```
-Sticky either takes its only child and adds the behavior and classes to it or wrappes all children inside an element if there are more than one. the tagname can be defined by props.
+Sticky as `children` takes either:
-### possible props
+- its' only child and adds the behavior and classes to it, or
+- wraps all children inside an element if there are more than one. (The `tagName` can be defined by props.)
+- a function, which will receive `{ absolute: bool, sticky: bool, disabled: bool }` object as a first argument and should return a child or children. (Example usage: `{({ sticky }) => }`.)
+
+### possible props
```javascript
static propTypes = {
@@ -88,7 +92,8 @@ static propTypes = {
none : PropTypes.string,
persist : PropTypes.bool,
active : PropTypes.bool
- })
+ }),
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
};
static defaultProps = {
diff --git a/dist/react-sticky-state.min.js b/dist/react-sticky-state.min.js
index 14a169e..c815e34 100644
--- a/dist/react-sticky-state.min.js
+++ b/dist/react-sticky-state.min.js
@@ -1,2 +1,2 @@
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.ReactStickyState=t()}}(function(){var t;return function e(t,r,n){function o(s,l){if(!r[s]){if(!t[s]){var a="function"==typeof require&&require;if(!l&&a)return a(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){var r=t[s][1][e];return o(r?r:e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},{}],12:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../helpers/typeof"),i=n(o);r.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":i.default(e))&&"function"!=typeof e?t:e}},{"../helpers/typeof":13}],13:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../core-js/symbol/iterator"),i=n(o),s=t("../core-js/symbol"),l=n(s),a="function"==typeof l.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":typeof t};r.default="function"==typeof l.default&&"symbol"===a(i.default)?function(t){return"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":"undefined"==typeof t?"undefined":a(t)}},{"../core-js/symbol":5,"../core-js/symbol/iterator":6}],14:[function(t,e){t("../../modules/es6.object.assign"),e.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":25,"../../modules/es6.object.assign":78}],15:[function(t,e){t("../../modules/es6.object.create");var r=t("../../modules/_core").Object;e.exports=function(t,e){return r.create(t,e)}},{"../../modules/_core":25,"../../modules/es6.object.create":79}],16:[function(t,e){t("../../modules/es6.object.define-property");var r=t("../../modules/_core").Object;e.exports=function(t,e,n){return r.defineProperty(t,e,n)}},{"../../modules/_core":25,"../../modules/es6.object.define-property":80}],17:[function(t,e){t("../../modules/es6.object.set-prototype-of"),e.exports=t("../../modules/_core").Object.setPrototypeOf},{"../../modules/_core":25,"../../modules/es6.object.set-prototype-of":81}],18:[function(t,e){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),e.exports=t("../../modules/_core").Symbol},{"../../modules/_core":25,"../../modules/es6.object.to-string":82,"../../modules/es6.symbol":84,"../../modules/es7.symbol.async-iterator":85,"../../modules/es7.symbol.observable":86}],19:[function(t,e){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),e.exports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":75,"../../modules/es6.string.iterator":83,"../../modules/web.dom.iterable":87}],20:[function(t,e){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],21:[function(t,e){e.exports=function(){}},{}],22:[function(t,e){var r=t("./_is-object");e.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":41}],23:[function(t,e){var r=t("./_to-iobject"),n=t("./_to-length"),o=t("./_to-absolute-index");e.exports=function(t){return function(e,i,s){var l,a=r(e),c=n(a.length),u=o(s,c);if(t&&i!=i){for(;c>u;)if(l=a[u++],l!=l)return!0}else for(;c>u;u++)if((t||u in a)&&a[u]===i)return t||u||0;return!t&&-1}}},{"./_to-absolute-index":67,"./_to-iobject":69,"./_to-length":70}],24:[function(t,e){var r={}.toString;e.exports=function(t){return r.call(t).slice(8,-1)}},{}],25:[function(t,e){var r=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},{}],26:[function(t,e){var r=t("./_a-function");e.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":20}],27:[function(t,e){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],28:[function(t,e){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":33}],29:[function(t,e){var r=t("./_is-object"),n=t("./_global").document,o=r(n)&&r(n.createElement);e.exports=function(t){return o?n.createElement(t):{}}},{"./_global":34,"./_is-object":41}],30:[function(t,e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],31:[function(t,e){var r=t("./_object-keys"),n=t("./_object-gops"),o=t("./_object-pie");e.exports=function(t){var e=r(t),i=n.f;if(i)for(var s,l=i(t),a=o.f,c=0;l.length>c;)a.call(t,s=l[c++])&&e.push(s);return e}},{"./_object-gops":55,"./_object-keys":58,"./_object-pie":59}],32:[function(t,e){var r=t("./_global"),n=t("./_core"),o=t("./_ctx"),i=t("./_hide"),s="prototype",l=function(t,e,a){var c,u,f,p=t&l.F,d=t&l.G,h=t&l.S,_=t&l.P,y=t&l.B,b=t&l.W,g=d?n:n[e]||(n[e]={}),m=g[s],v=d?r:h?r[e]:(r[e]||{})[s];d&&(a=e);for(c in a)u=!p&&v&&void 0!==v[c],u&&c in g||(f=u?v[c]:a[c],g[c]=d&&"function"!=typeof v[c]?a[c]:y&&u?o(f,r):b&&v[c]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[s]=t[s],e}(f):_&&"function"==typeof f?o(Function.call,f):f,_&&((g.virtual||(g.virtual={}))[c]=f,t&l.R&&m&&!m[c]&&i(m,c,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},{"./_core":25,"./_ctx":26,"./_global":34,"./_hide":36}],33:[function(t,e){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],34:[function(t,e){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],35:[function(t,e){var r={}.hasOwnProperty;e.exports=function(t,e){return r.call(t,e)}},{}],36:[function(t,e){var r=t("./_object-dp"),n=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":28,"./_object-dp":50,"./_property-desc":60}],37:[function(t,e){var r=t("./_global").document;e.exports=r&&r.documentElement},{"./_global":34}],38:[function(t,e){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":28,"./_dom-create":29,"./_fails":33}],39:[function(t,e){var r=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./_cof":24}],40:[function(t,e){var r=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==r(t)}},{"./_cof":24}],41:[function(t,e){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],42:[function(t,e){"use strict";var r=t("./_object-create"),n=t("./_property-desc"),o=t("./_set-to-string-tag"),i={};t("./_hide")(i,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,s){t.prototype=r(i,{next:n(1,s)}),o(t,e+" Iterator")}},{"./_hide":36,"./_object-create":49,"./_property-desc":60,"./_set-to-string-tag":63,"./_wks":76}],43:[function(t,e){"use strict";var r=t("./_library"),n=t("./_export"),o=t("./_redefine"),i=t("./_hide"),s=t("./_has"),l=t("./_iterators"),a=t("./_iter-create"),c=t("./_set-to-string-tag"),u=t("./_object-gpo"),f=t("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",_="values",y=function(){return this};e.exports=function(t,e,b,g,m,v,w){a(b,e,g);var j,S,x,O=function(t){if(!p&&t in L)return L[t];switch(t){case h:return function(){return new b(this,t)};case _:return function(){return new b(this,t)}}return function(){return new b(this,t)}},k=e+" Iterator",T=m==_,C=!1,L=t.prototype,R=L[f]||L[d]||m&&L[m],E=R||O(m),P=m?T?O("entries"):E:void 0,M="Array"==e?L.entries||R:R;if(M&&(x=u(M.call(new t)),x!==Object.prototype&&x.next&&(c(x,k,!0),r||s(x,f)||i(x,f,y))),T&&R&&R.name!==_&&(C=!0,E=function(){return R.call(this)}),r&&!w||!p&&!C&&L[f]||i(L,f,E),l[e]=E,l[k]=y,m)if(j={values:T?E:O(_),keys:v?E:O(h),entries:P},w)for(S in j)S in L||o(L,S,j[S]);else n(n.P+n.F*(p||C),e,j);return j}},{"./_export":32,"./_has":35,"./_hide":36,"./_iter-create":42,"./_iterators":45,"./_library":46,"./_object-gpo":56,"./_redefine":61,"./_set-to-string-tag":63,"./_wks":76}],44:[function(t,e){e.exports=function(t,e){return{value:e,done:!!t}}},{}],45:[function(t,e){e.exports={}},{}],46:[function(t,e){e.exports=!0},{}],47:[function(t,e){var r=t("./_uid")("meta"),n=t("./_is-object"),o=t("./_has"),i=t("./_object-dp").f,s=0,l=Object.isExtensible||function(){return!0},a=!t("./_fails")(function(){return l(Object.preventExtensions({}))}),c=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},u=function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},p=function(t){return a&&d.NEED&&l(t)&&!o(t,r)&&c(t),t},d=e.exports={KEY:r,NEED:!1,fastKey:u,getWeak:f,onFreeze:p}},{"./_fails":33,"./_has":35,"./_is-object":41,"./_object-dp":50,"./_uid":73}],48:[function(t,e){"use strict";var r=t("./_object-keys"),n=t("./_object-gops"),o=t("./_object-pie"),i=t("./_to-object"),s=t("./_iobject"),l=Object.assign;e.exports=!l||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n})?function(t){for(var e=i(t),l=arguments.length,a=1,c=n.f,u=o.f;l>a;)for(var f,p=s(arguments[a++]),d=c?r(p).concat(c(p)):r(p),h=d.length,_=0;h>_;)u.call(p,f=d[_++])&&(e[f]=p[f]);return e}:l},{"./_fails":33,"./_iobject":39,"./_object-gops":55,"./_object-keys":58,"./_object-pie":59,"./_to-object":71}],49:[function(t,e){var r=t("./_an-object"),n=t("./_object-dps"),o=t("./_enum-bug-keys"),i=t("./_shared-key")("IE_PROTO"),s=function(){},l="prototype",a=function(){var e,r=t("./_dom-create")("iframe"),n=o.length,i="<",s=">";for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",e=r.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),a=e.F;n--;)delete a[l][o[n]];return a()};e.exports=Object.create||function(t,e){var o;return null!==t?(s[l]=r(t),o=new s,s[l]=null,o[i]=t):o=a(),void 0===e?o:n(o,e)}},{"./_an-object":22,"./_dom-create":29,"./_enum-bug-keys":30,"./_html":37,"./_object-dps":51,"./_shared-key":64}],50:[function(t,e,r){var n=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return s(t,e,r)}catch(l){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":22,"./_descriptors":28,"./_ie8-dom-define":38,"./_to-primitive":72}],51:[function(t,e){var r=t("./_object-dp"),n=t("./_an-object"),o=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){n(t);for(var i,s=o(e),l=s.length,a=0;l>a;)r.f(t,i=s[a++],e[i]);return t}},{"./_an-object":22,"./_descriptors":28,"./_object-dp":50,"./_object-keys":58}],52:[function(t,e,r){var n=t("./_object-pie"),o=t("./_property-desc"),i=t("./_to-iobject"),s=t("./_to-primitive"),l=t("./_has"),a=t("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?c:function(t,e){if(t=i(t),e=s(e,!0),a)try{return c(t,e)}catch(r){}return l(t,e)?o(!n.f.call(t,e),t[e]):void 0}},{"./_descriptors":28,"./_has":35,"./_ie8-dom-define":38,"./_object-pie":59,"./_property-desc":60,"./_to-iobject":69,"./_to-primitive":72}],53:[function(t,e){var r=t("./_to-iobject"),n=t("./_object-gopn").f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return n(t)}catch(e){return i.slice()}};e.exports.f=function(t){return i&&"[object Window]"==o.call(t)?s(t):n(r(t))}},{"./_object-gopn":54,"./_to-iobject":69}],54:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},{"./_enum-bug-keys":30,"./_object-keys-internal":57}],55:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],56:[function(t,e){var r=t("./_has"),n=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=n(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},{"./_has":35,"./_shared-key":64,"./_to-object":71}],57:[function(t,e){var r=t("./_has"),n=t("./_to-iobject"),o=t("./_array-includes")(!1),i=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var s,l=n(t),a=0,c=[];for(s in l)s!=i&&r(l,s)&&c.push(s);for(;e.length>a;)r(l,s=e[a++])&&(~o(c,s)||c.push(s));return c}},{"./_array-includes":23,"./_has":35,"./_shared-key":64,"./_to-iobject":69}],58:[function(t,e){var r=t("./_object-keys-internal"),n=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return r(t,n)}},{"./_enum-bug-keys":30,"./_object-keys-internal":57}],59:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],60:[function(t,e){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],61:[function(t,e){e.exports=t("./_hide")},{"./_hide":36}],62:[function(t,e){var r=t("./_is-object"),n=t("./_an-object"),o=function(t,e){if(n(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2),n(e,[]),r=!(e instanceof Array)}catch(i){r=!0}return function(t,e){return o(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":22,"./_ctx":26,"./_is-object":41,"./_object-gopd":52}],63:[function(t,e){var r=t("./_object-dp").f,n=t("./_has"),o=t("./_wks")("toStringTag");e.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},{"./_has":35,"./_object-dp":50,"./_wks":76}],64:[function(t,e){var r=t("./_shared")("keys"),n=t("./_uid");e.exports=function(t){return r[t]||(r[t]=n(t))}},{"./_shared":65,"./_uid":73}],65:[function(t,e){var r=t("./_global"),n="__core-js_shared__",o=r[n]||(r[n]={});e.exports=function(t){return o[t]||(o[t]={})}},{"./_global":34}],66:[function(t,e){var r=t("./_to-integer"),n=t("./_defined");e.exports=function(t){return function(e,o){var i,s,l=String(n(e)),a=r(o),c=l.length;return 0>a||a>=c?t?"":void 0:(i=l.charCodeAt(a),55296>i||i>56319||a+1===c||(s=l.charCodeAt(a+1))<56320||s>57343?t?l.charAt(a):i:t?l.slice(a,a+2):(i-55296<<10)+(s-56320)+65536)}}},{"./_defined":27,"./_to-integer":68}],67:[function(t,e){var r=t("./_to-integer"),n=Math.max,o=Math.min;e.exports=function(t,e){return t=r(t),0>t?n(t+e,0):o(t,e)}},{"./_to-integer":68}],68:[function(t,e){var r=Math.ceil,n=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},{}],69:[function(t,e){var r=t("./_iobject"),n=t("./_defined");e.exports=function(t){return r(n(t))}},{"./_defined":27,"./_iobject":39}],70:[function(t,e){var r=t("./_to-integer"),n=Math.min;e.exports=function(t){return t>0?n(r(t),9007199254740991):0}},{"./_to-integer":68}],71:[function(t,e){var r=t("./_defined");e.exports=function(t){return Object(r(t))}},{"./_defined":27}],72:[function(t,e){var r=t("./_is-object");e.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":41}],73:[function(t,e){var r=0,n=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},{}],74:[function(t,e){var r=t("./_global"),n=t("./_core"),o=t("./_library"),i=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=n.Symbol||(n.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{"./_core":25,"./_global":34,"./_library":46,"./_object-dp":50,"./_wks-ext":75}],75:[function(t,e,r){r.f=t("./_wks")},{"./_wks":76}],76:[function(t,e){var r=t("./_shared")("wks"),n=t("./_uid"),o=t("./_global").Symbol,i="function"==typeof o,s=e.exports=function(t){return r[t]||(r[t]=i&&o[t]||(i?o:n)("Symbol."+t))};s.store=r},{"./_global":34,"./_shared":65,"./_uid":73}],77:[function(t,e){"use strict";var r=t("./_add-to-unscopables"),n=t("./_iter-step"),o=t("./_iterators"),i=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,r):"values"==e?n(0,t[r]):n(0,[r,t[r]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":21,"./_iter-define":43,"./_iter-step":44,"./_iterators":45,"./_to-iobject":69}],78:[function(t){var e=t("./_export");e(e.S+e.F,"Object",{assign:t("./_object-assign")})},{"./_export":32,"./_object-assign":48}],79:[function(t){var e=t("./_export");e(e.S,"Object",{create:t("./_object-create")})},{"./_export":32,"./_object-create":49}],80:[function(t){var e=t("./_export");e(e.S+e.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":28,"./_export":32,"./_object-dp":50}],81:[function(t){var e=t("./_export");e(e.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":32,"./_set-proto":62}],82:[function(){},{}],83:[function(t){"use strict";var e=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,r=this._t,n=this._i;return n>=r.length?{value:void 0,done:!0}:(t=e(r,n),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":43,"./_string-at":66}],84:[function(t){"use strict";var e=t("./_global"),r=t("./_has"),n=t("./_descriptors"),o=t("./_export"),i=t("./_redefine"),s=t("./_meta").KEY,l=t("./_fails"),a=t("./_shared"),c=t("./_set-to-string-tag"),u=t("./_uid"),f=t("./_wks"),p=t("./_wks-ext"),d=t("./_wks-define"),h=t("./_enum-keys"),_=t("./_is-array"),y=t("./_an-object"),b=t("./_to-iobject"),g=t("./_to-primitive"),m=t("./_property-desc"),v=t("./_object-create"),w=t("./_object-gopn-ext"),j=t("./_object-gopd"),S=t("./_object-dp"),x=t("./_object-keys"),O=j.f,k=S.f,T=w.f,C=e.Symbol,L=e.JSON,R=L&&L.stringify,E="prototype",P=f("_hidden"),M=f("toPrimitive"),F={}.propertyIsEnumerable,N=a("symbol-registry"),Y=a("symbols"),I=a("op-symbols"),z=Object[E],H="function"==typeof C,A=e.QObject,D=!A||!A[E]||!A[E].findChild,W=n&&l(function(){return 7!=v(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=O(z,e);n&&delete z[e],k(t,e,r),n&&t!==z&&k(z,e,n)}:k,X=function(t){var e=Y[t]=v(C[E]);return e._k=t,e},B=H&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},q=function(t,e,n){return t===z&&q(I,e,n),y(t),e=g(e,!0),y(n),r(Y,e)?(n.enumerable?(r(t,P)&&t[P][e]&&(t[P][e]=!1),n=v(n,{enumerable:m(0,!1)})):(r(t,P)||k(t,P,m(1,{})),t[P][e]=!0),W(t,e,n)):k(t,e,n)},U=function(t,e){y(t);for(var r,n=h(e=b(e)),o=0,i=n.length;i>o;)q(t,r=n[o++],e[r]);return t},V=function(t,e){return void 0===e?v(t):U(v(t),e)},G=function(t){var e=F.call(this,t=g(t,!0));return this===z&&r(Y,t)&&!r(I,t)?!1:e||!r(this,t)||!r(Y,t)||r(this,P)&&this[P][t]?e:!0},J=function(t,e){if(t=b(t),e=g(e,!0),t!==z||!r(Y,e)||r(I,e)){var n=O(t,e);return!n||!r(Y,e)||r(t,P)&&t[P][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=T(b(t)),o=[],i=0;n.length>i;)r(Y,e=n[i++])||e==P||e==s||o.push(e);return o},Z=function(t){for(var e,n=t===z,o=T(n?I:b(t)),i=[],s=0;o.length>s;)r(Y,e=o[s++])&&(n?r(z,e):!0)&&i.push(Y[e]);return i};H||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(I,n),r(this,P)&&r(this[P],t)&&(this[P][t]=!1),W(this,t,m(1,n))};return n&&D&&W(z,t,{configurable:!0,set:e}),X(t)},i(C[E],"toString",function(){return this._k}),j.f=J,S.f=q,t("./_object-gopn").f=w.f=K,t("./_object-pie").f=G,t("./_object-gops").f=Z,n&&!t("./_library")&&i(z,"propertyIsEnumerable",G,!0),p.f=function(t){return X(f(t))}),o(o.G+o.W+o.F*!H,{Symbol:C});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$=0;Q.length>$;)f(Q[$++]);for(var te=x(f.store),ee=0;te.length>ee;)d(te[ee++]);o(o.S+o.F*!H,"Symbol",{"for":function(t){return r(N,t+="")?N[t]:N[t]=C(t)},keyFor:function(t){if(!B(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){D=!0},useSimple:function(){D=!1}}),o(o.S+o.F*!H,"Object",{create:V,defineProperty:q,defineProperties:U,getOwnPropertyDescriptor:J,getOwnPropertyNames:K,getOwnPropertySymbols:Z}),L&&o(o.S+o.F*(!H||l(function(){var t=C();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!B(t)){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);return e=n[1],"function"==typeof e&&(r=e),(r||!_(e))&&(e=function(t,e){return r&&(e=r.call(this,t,e)),B(e)?void 0:e}),n[1]=e,R.apply(L,n)}}}),C[E][M]||t("./_hide")(C[E],M,C[E].valueOf),c(C,"Symbol"),c(Math,"Math",!0),c(e.JSON,"JSON",!0)},{"./_an-object":22,"./_descriptors":28,"./_enum-keys":31,"./_export":32,"./_fails":33,"./_global":34,"./_has":35,"./_hide":36,"./_is-array":40,"./_library":46,"./_meta":47,"./_object-create":49,"./_object-dp":50,"./_object-gopd":52,"./_object-gopn":54,"./_object-gopn-ext":53,"./_object-gops":55,"./_object-keys":58,"./_object-pie":59,"./_property-desc":60,"./_redefine":61,"./_set-to-string-tag":63,"./_shared":65,"./_to-iobject":69,"./_to-primitive":72,"./_uid":73,"./_wks":76,"./_wks-define":74,"./_wks-ext":75}],85:[function(t){t("./_wks-define")("asyncIterator")},{"./_wks-define":74}],86:[function(t){t("./_wks-define")("observable")},{"./_wks-define":74}],87:[function(t){t("./es6.array.iterator");for(var e=t("./_global"),r=t("./_hide"),n=t("./_iterators"),o=t("./_wks")("toStringTag"),i="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s-1&&(r.splice(n,1),r.length||delete this.eventMap[t])}else this.eventMap[t].length=0,delete this.eventMap[t];return this},t.prototype.commitEvent=function(t,e){for(var r=0,n=t.length;n>r;r++)t[r]?t[r](e):console&&console.warn("listener undefined",r);return this},t.prototype.commitEvents=function(t,e){for(var r=0,n=t.length;n>r;r++)if(t[r])for(var o=0,i=e.length;i>o;o++)t[r](e[o]);else console&&console.warn("listener undefined",r);return this},t.prototype.createEventObject=function(t,e){var r={type:t,target:this};return e&&(r=l.default(r,e)),r},t.prototype.triggerSync=function(t){for(var e=[],r=0,n=t.length;n>r;r++)for(var o=this.getListener(t[r].type),i=0,s=o.length;s>i;i++){var l=o[i];e.indexOf(l)<0&&e.push(l)}},t.prototype.trigger=function(t,e){var r=this.getListener(t);return r&&r.length?this.commitEvent(r,this.createEventObject(t,e)):this},t.prototype.clear=function(){if(this.eventMap)for(var t=Object.keys(this.eventMap),e=0,r=t.length;r>e;e++)this.eventMap[t[e]].length=0,delete this.eventMap[t[e]]},t.prototype.getListener=function(t){return this.eventMap&&this.eventMap[t]?this.eventMap[t]:[]},t.prototype.destroy=function(){return this.clear(),this.eventMap=null,this.destroyed=!0,this},t}();r.default=a},{"babel-runtime/helpers/classCallCheck":7,"object-assign":94}],90:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0,r.default=void 0;var o=t("babel-runtime/helpers/classCallCheck"),i=n(o),s=t("babel-runtime/helpers/possibleConstructorReturn"),l=n(s),a=t("babel-runtime/helpers/inherits"),c=n(a),u=t("./core"),f=n(u),p=t("object-assign"),d=n(p),h=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.target,o=r.currentTarget;i.default(this,e);var s=l.default(this,t.call(this));return s.target=n||s,s.currentTarget=o||s,s.addListener=s.bind=s.addEventListener=s.on,s.removeListener=s.unbind=s.removeEventListener=s.off,s.addListenerOnce=s.one=s.once,s.emit=s.dispatch=s.dispatchEvent=s.trigger,s.hasListener=s.hasListeners=s.listens,s}return c.default(e,t),e.prototype.listens=function(t){return t?this.getListener(t).length>0:!!this.eventMap&&Object.keys(this.eventMap).length>0},e.prototype.createEventObject=function(t,e){var r={type:t,target:this.target,currentTarget:this.currentTarget};return e&&(r=d.default(r,e)),r},e}(f.default);r.default=h},{"./core":89,"babel-runtime/helpers/classCallCheck":7,"babel-runtime/helpers/inherits":10,"babel-runtime/helpers/possibleConstructorReturn":12,"object-assign":94}],91:[function(t,e){"use strict";function r(t){return function(){return t}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},e.exports=n},{}],92:[function(t,e){"use strict";function r(t,e,r,o,i,s,l,a){if(n(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,s,l,a],f=0;c=new Error(e.replace(/%s/g,function(){return u[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var n=function(){};e.exports=r},{}],93:[function(t,e){"use strict";var r=t("./emptyFunction"),n=r;e.exports=n},{"./emptyFunction":91}],94:[function(t,e){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;10>r;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join("")?!1:!0}catch(i){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=n()?Object.assign:function(t){for(var e,n,l=r(t),a=1;a1)for(var r=1;r>",P={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:d(),arrayOf:h,element:_(),instanceOf:y,node:v(),objectOf:g,oneOf:b,oneOfType:m,shape:w,exact:j};return u.prototype=Error.prototype,P.checkPropTypes=l,P.PropTypes=P,P}},{"./checkPropTypes":97,"./lib/ReactPropTypesSecret":101,"fbjs/lib/emptyFunction":91,"fbjs/lib/invariant":92,"fbjs/lib/warning":93,"object-assign":94}],100:[function(t,e){e.exports=t("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":98,"./factoryWithTypeCheckers":99}],101:[function(t,e){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],102:[function(t,e){(function(r){for(var n=t("performance-now"),o="undefined"==typeof window?r:window,i=["moz","webkit"],s="AnimationFrame",l=o["request"+s],a=o["cancel"+s]||o["cancelRequest"+s],c=0;!l&&c0&&void 0!==arguments[0]?arguments[0]:window,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i.default(this,e),e.hasInstance(r)){var o;return o=e.getInstance(r),l.default(s,o)}var s=l.default(this,t.call(this,{target:r}));return s._scrollTarget=null,s._y=0,s._x=0,s._speedY=0,s._maxSpeedY=0,s._speedX=0,s._lastSpeed=0,s._lastDirectionY=e.direction.none,s._lastDirectionX=e.direction.none,s._stopFrames=3,s._currentStopFrames=0,s._firstRender=!0,s._directionY=e.direction.none,s._directionX=e.direction.none,s._scrolling=!1,s._canScrollY=!1,s._canScrollX=!1,r.scrollFeatures=s,s._scrollTarget=r,s.cancelFrame=!1,s.options=n,s.init(),s}return f.default(e,t),e.getInstance=function(t,r){return t.scrollFeatures?t.scrollFeatures:new e(t,r)},e.hasInstance=function(t){return"undefined"!=typeof t.scrollFeatures},e.getScrollParent=function(t){return _.default(t)},c.default(e,null,[{key:"windowY",get:function(){return window.pageYOffset||window.scrollY||0}},{key:"windowX",get:function(){return window.pageXOffset||window.scrollX||0}},{key:"documentHeight",get:function(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)}},{key:"documentWidth",get:function(){return Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth)}}]),e.prototype.init=function(){var t=this;if(this.getScrollPosition=this._scrollTarget===window?function(){return{y:e.windowY,x:e.windowX}}.bind(this):function(){return{y:this._scrollTarget.scrollTop,x:this._scrollTarget.scrollLeft}}.bind(this),this.onResize=function(){t.trigger(e.events.SCROLL_RESIZE)},this.onScroll=this.onScroll.bind(this),this.onNextFrame=this.onNextFrame.bind(this),this.updateScrollPosition(),this._scrollTarget!==window){var r=/(auto|scroll)/,n=window.getComputedStyle(this._scrollTarget,null);this._canScrollY=r.test(n.getPropertyValue("overflow-y")),this._canScrollX=r.test(n.getPropertyValue("overflow-x"))}else this._canScrollY=this.clientHeight1||this.x>1)?(this.updateScrollPosition(),void this.trigger(e.events.SCROLL_PROGRESS)):void(this._scrolling||(this._scrolling=!0,this._maxSpeedY=0,this._lastDirectionY=e.direction.none,this._lastDirectionX=e.direction.none,this.trigger(e.events.SCROLL_START),this.cancelFrame=!1,b.default(this.onNextFrame)))},e.prototype.onNextFrame=function(){if(!this.cancelFrame){this._speedY=this._y-this.y,this._speedX=this._x-this.x,this._speedY<0?this._maxSpeedY=this._speedY0&&(this._maxSpeedY=this._speedY>this._maxSpeedY?this._speedY:this._maxSpeedY);var t=+this.speedY+ +this.speedX;if(this._scrolling&&0===t&&this._currentStopFrames++>this._stopFrames)return void this.onScrollStop();this.updateScrollPosition(),this._lastDirectionY!==this.directionY&&this.trigger("scroll:"+(this.directionY===e.direction.down?"down":"up")),this._lastDirectionX!==this.directionX&&this.trigger("scroll:"+(this.directionX===e.direction.right?"right":"left")),this._lastDirectionY=this.directionY,this._lastDirectionX=this.directionX,this.trigger(e.events.SCROLL_PROGRESS),b.default(this.onNextFrame)}},e.prototype.onScrollStop=function(){this._cancelNextFrame(),this._scrolling=!1,this._scrollTarget?(this.updateScrollPosition(),this.trigger(e.events.SCROLL_STOP),this._canScrollY&&(this.y<=0?this.trigger(e.events.SCROLL_MIN):this.y+this.clientHeight>=this.scrollHeight&&this.trigger(e.events.SCROLL_MAX)),this._canScrollX&&(this.x<=0?this.trigger(e.events.SCROLL_MIN):this.x+this.clientWidth>=this.scrollWidth&&this.trigger(e.events.SCROLL_MAX))):this.trigger(e.events.SCROLL_STOP)},e.prototype._cancelNextFrame=function(){this.cancelFrame=!0,this._currentStopFrames=0},c.default(e,[{key:"scrollPosition",get:function(){return this.getScrollPosition()}},{key:"directionY",get:function(){return!this._canScrollY||0===this.speedY&&!this._scrolling?this._directionY=e.direction.none:this.speedY>0?this._directionY=e.direction.up:this.speedY<0&&(this._directionY=e.direction.down),this._directionY}},{key:"directionX",get:function(){return!this._canScrollX||0===this.speedX&&!this._scrolling?this._directionX=e.direction.none:this.speedX>0?this._directionX=e.direction.left:this.speedX<0&&(this._directionX=e.direction.right),this._directionX}},{key:"scrollTarget",get:function(){return this._scrollTarget}},{key:"scrolling",get:function(){return this._scrolling}},{key:"speedY",get:function(){return this._speedY}},{key:"speedX",get:function(){return this._speedX}},{key:"maxSpeedY",get:function(){return this._maxSpeedY}},{key:"canScrollY",get:function(){return this._canScrollY}},{key:"canScrollX",get:function(){return this._canScrollX}},{key:"y",get:function(){return this.scrollPosition.y}},{key:"x",get:function(){return this.scrollPosition.x}},{key:"clientHeight",get:function(){return this._scrollTarget===window?window.innerHeight:this._scrollTarget.clientHeight}},{key:"clientWidth",get:function(){return this._scrollTarget===window?window.innerWidth:this._scrollTarget.clientWidth}},{key:"scrollHeight",get:function(){return this._scrollTarget===window?e.documentHeight:this._scrollTarget.scrollHeight}},{key:"scrollWidth",get:function(){return this._scrollTarget===window?e.documentWidth:this._scrollTarget.scrollWidth}}]),e}(d.default);g.direction={up:-1,down:1,none:0,right:2,left:-2},g.events={SCROLL_PROGRESS:"scroll:progress",SCROLL_START:"scroll:start",SCROLL_STOP:"scroll:stop",SCROLL_DOWN:"scroll:down",SCROLL_UP:"scroll:up",SCROLL_MIN:"scroll:min",SCROLL_MAX:"scroll:max",SCROLL_RESIZE:"scroll:resize"},r.default=g,e.exports=r["default"]},{"./scroll-parent":104,"babel-runtime/helpers/classCallCheck":7,"babel-runtime/helpers/createClass":8,"babel-runtime/helpers/inherits":10,"babel-runtime/helpers/possibleConstructorReturn":12,eventdispatcher:90,raf:102}],106:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("babel-runtime/helpers/classCallCheck"),i=n(o),s=t("babel-runtime/helpers/createClass"),l=n(s),a=null,c=function(){function t(){i.default(this,t)}return l.default(t,null,[{key:"sticky",get:function(){if(null!==a)return a;if("undefined"!=typeof window){if(window.Modernizr&&window.Modernizr.hasOwnProperty("csspositionsticky"))return a=window.Modernizr.csspositionsticky;var t=document.documentElement,e=document.createElement("div");t.appendChild(e);var r=["sticky","-webkit-sticky"];a=!1;for(var n=0;n0&&this.scroll.trigger("scroll:progress")}},e.prototype.removeSrollHandler=function(){this.scroll&&(this.scroll.off("scroll:start",this.onScroll),this.scroll.off("scroll:progress",this.onScroll),this.scroll.off("scroll:stop",this.onScroll),this.props.scrollClass.active&&(this.scroll.off("scroll:up",this.onScrollDirection),this.scroll.off("scroll:down",this.onScrollDirection),this.scroll.off("scroll:stop",this.onScrollDirection)),this.scroll.hasListeners()||this.scroll.destroy(),this.onScroll=null,this.onScrollDirection=null,this.scroll=null)},e.prototype.addResizeHandler=function(){this.onResize||(this.onResize=this.update.bind(this),window.addEventListener("sticky:update",this.onResize,!1),window.addEventListener("resize",this.onResize,!1),window.addEventListener("orientationchange",this.onResize,!1))},e.prototype.removeResizeHandler=function(){this.onResize&&(window.removeEventListener("sticky:update",this.onResize),window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onResize),this.onResize=null)},e.prototype.destroy=function(){this._updatingBounds=!1,this._shouldComponentUpdate=!1,this._updatingState=!1,this.removeSrollHandler(),this.removeResizeHandler(),this.scrollTarget=null},e.prototype.getScrollClasses=function(t){if(this.options.scrollClass.active){t=t||{};var e=this.scroll.y<=0||this.scroll.y+this.scroll.clientHeight>=this.scroll.scrollHeight?0:this.scroll.directionY;t[this.options.scrollClass.up]=0>e,t[this.options.scrollClass.down]=e>0}return t},e.prototype.getScrollClass=function(){if(this.props.scrollClass.up||this.props.scrollClass.down){var t=this.scroll.y<=0||this.scroll.y+this.scroll.clientHeight>=this.scroll.scrollHeight?0:this.scroll.directionY,e=0>t?this.props.scrollClass.up:this.props.scrollClass.down;return e=0===t?null:e}return null},e.prototype.onScrollDirection=function(t){(this.state.sticky||t&&t.type===j.default.events.SCROLL_STOP)&&this.setState({scrollClass:this.getScrollClass()})},e.prototype.onScroll=function(){this.updateStickyState(!1),this.hasOwnScrollTarget&&!k.default.sticky&&(this.updateFixedOffset(),this.state.sticky&&!this.hasWindowScrollListener?(this.hasWindowScrollListener=!0,j.default.getInstance(window).on("scroll:progress",this.updateFixedOffset)):!this.state.sticky&&this.hasWindowScrollListener&&(this.hasWindowScrollListener=!1,j.default.getInstance(window).off("scroll:progress",this.updateFixedOffset)))},e.prototype.update=function(){var t=this;this.updateBounds(!0,!0,function(){t.updateStickyState(!1)})},e.prototype.getStickyState=function(){if(this.state.disabled)return{sticky:!1,absolute:!1};var t=this.scroll.y,e=this.state.style.top,r=this.state.style.bottom,n=this.state.sticky,o=this.state.absolute;if(null!==e){var i=this.state.restrict.bottom-this.state.bounds.height-e;e=this.state.bounds.top-e,this.state.sticky===!1&&(t>=e&&i>=t||0>=e&&e>t)?(n=!0,o=!1):this.state.sticky&&(e>0&&e>t||t>i)&&(n=!1,o=t>i)}else if(null!==r){t+=window.innerHeight;var s=this.state.restrict.top+this.state.bounds.height-r;r=this.state.bounds.bottom+r,this.state.sticky===!1&&r>=t&&t>=s?(n=!0,o=!1):this.state.sticky&&(t>r||s>t)&&(n=!1,o=s>=t)}return{sticky:n,absolute:o}},e.prototype.updateStickyState=function(t){var e=this,r=this.getStickyState();(r.sticky!==this.state.sticky||r.absolute!==this.state.absolute)&&(this._shouldComponentUpdate=t!==!0,r=x.default(r,this.getBounds(!1)),this._updatingState=!0,this.setState(r,function(){e._shouldComponentUpdate=!0,e._updatingState=!1}))},e.prototype.initialize=function(){var t=this;this.state.initialized||this.state.disabled||this.setState({initialized:!0},function(){var e=t.refs.wrapper||t.refs.el;t.scrollTarget=j.default.getScrollParent(e),t.hasOwnScrollTarget=t.scrollTarget!==window,t.hasOwnScrollTarget&&(t.updateFixedOffset=t.updateFixedOffset.bind(t)),t.addSrollHandler(),t.addResizeHandler(),t.update()})},e.prototype.shouldComponentUpdate=function(){return this._shouldComponentUpdate},e.prototype.componentWillReceiveProps=function(t){var e=this,r=!this.state.initialized&&t.initialize;t.disabled!==this.state.disabled&&this.setState({disabled:t.disabled},function(){r&&e.initialize()})},e.prototype.componentDidMount=function(){!this.state.initialized&&this.props.initialize&&this.initialize()},e.prototype.componentWillUnmount=function(){this.destroy()},e.prototype.render=function(){var t,e,r,n;if(!this.state.initialized)return this.props.children;var o,i=y.default.Children.only(this.props.children),l=this.props,c=l.wrapperClass,u=l.stickyClass,f=l.fixedClass,p=l.stateClass,d=l.disabledClass,h=l.absoluteClass,_=(l.disabled,l.debug,l.tagName,a.default(l,["wrapperClass","stickyClass","fixedClass","stateClass","disabledClass","absoluteClass","disabled","debug","tagName"])),b="el",g=v.default((t={},t[u]=!this.state.disabled,t[d]=this.state.disabled,t),(e={},e[f]=!k.default.sticky,e),(r={},r[p]=this.state.sticky&&!this.state.disabled,r),(n={},n[h]=this.state.absolute,n),this.state.scrollClass);if(k.default.sticky||(this.state.absolute?o={marginTop:null!==this.state.style.top?this.state.restrict.height-(this.state.bounds.height+this.state.style.top)+(this.state.restrict.top-this.state.bounds.top)+"px":"",marginBottom:null!==this.state.style.bottom?this.state.restrict.height-(this.state.bounds.height+this.state.style.bottom)+(this.state.restrict.bottom-this.state.bounds.bottom)+"px":""}:this.hasOwnScrollTarget&&""!==this.state.fixedOffset&&(o={marginTop:this.state.fixedOffset})),i)i=y.default.cloneElement(i,{ref:b,style:o,className:v.default(i.props.className,g)});else{var m=this.props.tagName;i=y.default.createElement(m,s.default({ref:b,style:o,className:g},_),this.props.children)}if(k.default.sticky)return i;var w=this.state.disabled||null===this.state.bounds.height?"auto":this.state.bounds.height+"px",j="auto"===w?"":this.state.style["margin-top"]?this.state.style["margin-top"]+"px":"",S="auto"===w?"":this.state.style["margin-bottom"]?this.state.style["margin-bottom"]+"px":"";return o={height:w,marginTop:j,marginBottom:S},this.state.absolute&&(o.position="relative"),y.default.createElement("div",{ref:"wrapper",className:c,style:o},i)},e}(_.Component);M.propTypes={initialize:g.default.bool,wrapperClass:g.default.string,stickyClass:g.default.string,fixedClass:g.default.string,stateClass:g.default.string,disabledClass:g.default.string,absoluteClass:g.default.string,disabled:g.default.bool,debug:g.default.bool,wrapFixedSticky:g.default.bool,tagName:g.default.string,scrollClass:g.default.shape({down:g.default.string,up:g.default.string,none:g.default.string,persist:g.default.bool,active:g.default.bool})},M.defaultProps={initialize:!0,wrapperClass:"sticky-wrap",stickyClass:"sticky",fixedClass:"sticky-fixed",stateClass:"is-sticky",disabledClass:"sticky-disabled",absoluteClass:"is-absolute",wrapFixedSticky:!0,debug:!1,disabled:!1,tagName:"div",scrollClass:{down:null,up:null,none:null,persist:!1,active:!1}},r.default=M,e.exports=r["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./featureDetect":106,"babel-runtime/helpers/classCallCheck":7,"babel-runtime/helpers/extends":9,"babel-runtime/helpers/inherits":10,"babel-runtime/helpers/objectWithoutProperties":11,"babel-runtime/helpers/possibleConstructorReturn":12,classnames:88,"object-assign":94,"prop-types":100,scrollfeatures:105}]},{},[107])(107)});
\ No newline at end of file
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.ReactStickyState=t()}}(function(){var t;return function(){function t(e,r,n){function o(s,l){if(!r[s]){if(!e[s]){var c="function"==typeof require&&require;if(!l&&c)return c(s,!0);if(i)return i(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var u=r[s]={exports:{}};e[s][0].call(u.exports,function(t){var r=e[s][1][t];return o(r||t)},u,u.exports,t,e,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}},{}],12:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../helpers/typeof"),i=n(o);r.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":i.default(e))&&"function"!=typeof e?t:e}},{"../helpers/typeof":13}],13:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("../core-js/symbol/iterator"),i=n(o),s=t("../core-js/symbol"),l=n(s),c="function"==typeof l.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":typeof t};r.default="function"==typeof l.default&&"symbol"===c(i.default)?function(t){return"undefined"==typeof t?"undefined":c(t)}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":"undefined"==typeof t?"undefined":c(t)}},{"../core-js/symbol":5,"../core-js/symbol/iterator":6}],14:[function(e,r){!function(){"use strict";function e(){for(var t=[],r=0;ru;)if(l=c[u++],l!=l)return!0}else for(;a>u;u++)if((t||u in c)&&c[u]===i)return t||u||0;return!t&&-1}}},{"./_to-absolute-index":68,"./_to-iobject":70,"./_to-length":71}],25:[function(t,e){var r={}.toString;e.exports=function(t){return r.call(t).slice(8,-1)}},{}],26:[function(t,e){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},{}],27:[function(t,e){var r=t("./_a-function");e.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":21}],28:[function(t,e){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],29:[function(t,e){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":34}],30:[function(t,e){var r=t("./_is-object"),n=t("./_global").document,o=r(n)&&r(n.createElement);e.exports=function(t){return o?n.createElement(t):{}}},{"./_global":35,"./_is-object":42}],31:[function(t,e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],32:[function(t,e){var r=t("./_object-keys"),n=t("./_object-gops"),o=t("./_object-pie");e.exports=function(t){var e=r(t),i=n.f;if(i)for(var s,l=i(t),c=o.f,a=0;l.length>a;)c.call(t,s=l[a++])&&e.push(s);return e}},{"./_object-gops":56,"./_object-keys":59,"./_object-pie":60}],33:[function(t,e){var r=t("./_global"),n=t("./_core"),o=t("./_ctx"),i=t("./_hide"),s=t("./_has"),l="prototype",c=function(t,e,a){var u,f,d,p=t&c.F,h=t&c.G,_=t&c.S,y=t&c.P,b=t&c.B,g=t&c.W,m=h?n:n[e]||(n[e]={}),v=m[l],w=h?r:_?r[e]:(r[e]||{})[l];h&&(a=e);for(u in a)f=!p&&w&&void 0!==w[u],f&&s(m,u)||(d=f?w[u]:a[u],m[u]=h&&"function"!=typeof w[u]?a[u]:b&&f?o(d,r):g&&w[u]==d?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[l]=t[l],e}(d):y&&"function"==typeof d?o(Function.call,d):d,y&&((m.virtual||(m.virtual={}))[u]=d,t&c.R&&v&&!v[u]&&i(v,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},{"./_core":26,"./_ctx":27,"./_global":35,"./_has":36,"./_hide":37}],34:[function(t,e){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],35:[function(t,e){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],36:[function(t,e){var r={}.hasOwnProperty;e.exports=function(t,e){return r.call(t,e)}},{}],37:[function(t,e){var r=t("./_object-dp"),n=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":29,"./_object-dp":51,"./_property-desc":61}],38:[function(t,e){var r=t("./_global").document;e.exports=r&&r.documentElement},{"./_global":35}],39:[function(t,e){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":29,"./_dom-create":30,"./_fails":34}],40:[function(t,e){var r=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./_cof":25}],41:[function(t,e){var r=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==r(t)}},{"./_cof":25}],42:[function(t,e){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],43:[function(t,e){"use strict";var r=t("./_object-create"),n=t("./_property-desc"),o=t("./_set-to-string-tag"),i={};t("./_hide")(i,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,s){t.prototype=r(i,{next:n(1,s)}),o(t,e+" Iterator")}},{"./_hide":37,"./_object-create":50,"./_property-desc":61,"./_set-to-string-tag":64,"./_wks":77}],44:[function(t,e){"use strict";var r=t("./_library"),n=t("./_export"),o=t("./_redefine"),i=t("./_hide"),s=t("./_iterators"),l=t("./_iter-create"),c=t("./_set-to-string-tag"),a=t("./_object-gpo"),u=t("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",h="values",_=function(){return this};e.exports=function(t,e,y,b,g,m,v){l(y,e,b);var w,j,S,x=function(t){if(!f&&t in C)return C[t];switch(t){case p:return function(){return new y(this,t)};case h:return function(){return new y(this,t)}}return function(){return new y(this,t)}},k=e+" Iterator",O=g==h,T=!1,C=t.prototype,L=C[u]||C[d]||g&&C[g],E=L||x(g),P=g?O?x("entries"):E:void 0,R="Array"==e?C.entries||L:L;if(R&&(S=a(R.call(new t)),S!==Object.prototype&&S.next&&(c(S,k,!0),r||"function"==typeof S[u]||i(S,u,_))),O&&L&&L.name!==h&&(T=!0,E=function(){return L.call(this)}),r&&!v||!f&&!T&&C[u]||i(C,u,E),s[e]=E,s[k]=_,g)if(w={values:O?E:x(h),keys:m?E:x(p),entries:P},v)for(j in w)j in C||o(C,j,w[j]);else n(n.P+n.F*(f||T),e,w);return w}},{"./_export":33,"./_hide":37,"./_iter-create":43,"./_iterators":46,"./_library":47,"./_object-gpo":57,"./_redefine":62,"./_set-to-string-tag":64,"./_wks":77}],45:[function(t,e){e.exports=function(t,e){return{value:e,done:!!t}}},{}],46:[function(t,e){e.exports={}},{}],47:[function(t,e){e.exports=!0},{}],48:[function(t,e){var r=t("./_uid")("meta"),n=t("./_is-object"),o=t("./_has"),i=t("./_object-dp").f,s=0,l=Object.isExtensible||function(){return!0},c=!t("./_fails")(function(){return l(Object.preventExtensions({}))}),a=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},u=function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";a(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;a(t)}return t[r].w},d=function(t){return c&&p.NEED&&l(t)&&!o(t,r)&&a(t),t},p=e.exports={KEY:r,NEED:!1,fastKey:u,getWeak:f,onFreeze:d}},{"./_fails":34,"./_has":36,"./_is-object":42,"./_object-dp":51,"./_uid":74}],49:[function(t,e){"use strict";var r=t("./_object-keys"),n=t("./_object-gops"),o=t("./_object-pie"),i=t("./_to-object"),s=t("./_iobject"),l=Object.assign;e.exports=!l||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n})?function(t){for(var e=i(t),l=arguments.length,c=1,a=n.f,u=o.f;l>c;)for(var f,d=s(arguments[c++]),p=a?r(d).concat(a(d)):r(d),h=p.length,_=0;h>_;)u.call(d,f=p[_++])&&(e[f]=d[f]);return e}:l},{"./_fails":34,"./_iobject":40,"./_object-gops":56,"./_object-keys":59,"./_object-pie":60,"./_to-object":72}],50:[function(t,e){var r=t("./_an-object"),n=t("./_object-dps"),o=t("./_enum-bug-keys"),i=t("./_shared-key")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,r=t("./_dom-create")("iframe"),n=o.length,i="<",s=">";for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",e=r.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),c=e.F;n--;)delete c[l][o[n]];return c()};e.exports=Object.create||function(t,e){var o;return null!==t?(s[l]=r(t),o=new s,s[l]=null,o[i]=t):o=c(),void 0===e?o:n(o,e)}},{"./_an-object":23,"./_dom-create":30,"./_enum-bug-keys":31,"./_html":38,"./_object-dps":52,"./_shared-key":65}],51:[function(t,e,r){var n=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),s=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return s(t,e,r)}catch(l){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":23,"./_descriptors":29,"./_ie8-dom-define":39,"./_to-primitive":73}],52:[function(t,e){var r=t("./_object-dp"),n=t("./_an-object"),o=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){n(t);for(var i,s=o(e),l=s.length,c=0;l>c;)r.f(t,i=s[c++],e[i]);return t}},{"./_an-object":23,"./_descriptors":29,"./_object-dp":51,"./_object-keys":59}],53:[function(t,e,r){var n=t("./_object-pie"),o=t("./_property-desc"),i=t("./_to-iobject"),s=t("./_to-primitive"),l=t("./_has"),c=t("./_ie8-dom-define"),a=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?a:function(t,e){if(t=i(t),e=s(e,!0),c)try{return a(t,e)}catch(r){}return l(t,e)?o(!n.f.call(t,e),t[e]):void 0}},{"./_descriptors":29,"./_has":36,"./_ie8-dom-define":39,"./_object-pie":60,"./_property-desc":61,"./_to-iobject":70,"./_to-primitive":73}],54:[function(t,e){var r=t("./_to-iobject"),n=t("./_object-gopn").f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return n(t)}catch(e){return i.slice()}};e.exports.f=function(t){return i&&"[object Window]"==o.call(t)?s(t):n(r(t))}},{"./_object-gopn":55,"./_to-iobject":70}],55:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},{"./_enum-bug-keys":31,"./_object-keys-internal":58}],56:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],57:[function(t,e){var r=t("./_has"),n=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=n(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},{"./_has":36,"./_shared-key":65,"./_to-object":72}],58:[function(t,e){var r=t("./_has"),n=t("./_to-iobject"),o=t("./_array-includes")(!1),i=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var s,l=n(t),c=0,a=[];for(s in l)s!=i&&r(l,s)&&a.push(s);for(;e.length>c;)r(l,s=e[c++])&&(~o(a,s)||a.push(s));return a}},{"./_array-includes":24,"./_has":36,"./_shared-key":65,"./_to-iobject":70}],59:[function(t,e){var r=t("./_object-keys-internal"),n=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return r(t,n)}},{"./_enum-bug-keys":31,"./_object-keys-internal":58}],60:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],61:[function(t,e){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],62:[function(t,e){e.exports=t("./_hide")},{"./_hide":37}],63:[function(t,e){var r=t("./_is-object"),n=t("./_an-object"),o=function(t,e){if(n(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2),n(e,[]),r=!(e instanceof Array)}catch(i){r=!0}return function(t,e){return o(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":23,"./_ctx":27,"./_is-object":42,"./_object-gopd":53}],64:[function(t,e){var r=t("./_object-dp").f,n=t("./_has"),o=t("./_wks")("toStringTag");e.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},{"./_has":36,"./_object-dp":51,"./_wks":77}],65:[function(t,e){var r=t("./_shared")("keys"),n=t("./_uid");e.exports=function(t){return r[t]||(r[t]=n(t))}},{"./_shared":66,"./_uid":74}],66:[function(t,e){var r=t("./_core"),n=t("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});(e.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:t("./_library")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":26,"./_global":35,"./_library":47}],67:[function(t,e){var r=t("./_to-integer"),n=t("./_defined");e.exports=function(t){return function(e,o){var i,s,l=String(n(e)),c=r(o),a=l.length;return 0>c||c>=a?t?"":void 0:(i=l.charCodeAt(c),55296>i||i>56319||c+1===a||(s=l.charCodeAt(c+1))<56320||s>57343?t?l.charAt(c):i:t?l.slice(c,c+2):(i-55296<<10)+(s-56320)+65536)}}},{"./_defined":28,"./_to-integer":69}],68:[function(t,e){var r=t("./_to-integer"),n=Math.max,o=Math.min;e.exports=function(t,e){return t=r(t),0>t?n(t+e,0):o(t,e)}},{"./_to-integer":69}],69:[function(t,e){var r=Math.ceil,n=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},{}],70:[function(t,e){var r=t("./_iobject"),n=t("./_defined");e.exports=function(t){return r(n(t))}},{"./_defined":28,"./_iobject":40}],71:[function(t,e){var r=t("./_to-integer"),n=Math.min;e.exports=function(t){return t>0?n(r(t),9007199254740991):0}},{"./_to-integer":69}],72:[function(t,e){var r=t("./_defined");e.exports=function(t){return Object(r(t))}},{"./_defined":28}],73:[function(t,e){var r=t("./_is-object");e.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":42}],74:[function(t,e){var r=0,n=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},{}],75:[function(t,e){var r=t("./_global"),n=t("./_core"),o=t("./_library"),i=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=n.Symbol||(n.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},{"./_core":26,"./_global":35,"./_library":47,"./_object-dp":51,"./_wks-ext":76}],76:[function(t,e,r){r.f=t("./_wks")},{"./_wks":77}],77:[function(t,e){var r=t("./_shared")("wks"),n=t("./_uid"),o=t("./_global").Symbol,i="function"==typeof o,s=e.exports=function(t){return r[t]||(r[t]=i&&o[t]||(i?o:n)("Symbol."+t))};s.store=r},{"./_global":35,"./_shared":66,"./_uid":74}],78:[function(t,e){"use strict";var r=t("./_add-to-unscopables"),n=t("./_iter-step"),o=t("./_iterators"),i=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,r):"values"==e?n(0,t[r]):n(0,[r,t[r]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":22,"./_iter-define":44,"./_iter-step":45,"./_iterators":46,"./_to-iobject":70}],79:[function(t){var e=t("./_export");e(e.S+e.F,"Object",{assign:t("./_object-assign")})},{"./_export":33,"./_object-assign":49}],80:[function(t){var e=t("./_export");e(e.S,"Object",{create:t("./_object-create")})},{"./_export":33,"./_object-create":50}],81:[function(t){var e=t("./_export");e(e.S+e.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":29,"./_export":33,"./_object-dp":51}],82:[function(t){var e=t("./_export");e(e.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":33,"./_set-proto":63}],83:[function(){},{}],84:[function(t){"use strict";var e=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,r=this._t,n=this._i;return n>=r.length?{value:void 0,done:!0}:(t=e(r,n),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":44,"./_string-at":67}],85:[function(t){"use strict";var e=t("./_global"),r=t("./_has"),n=t("./_descriptors"),o=t("./_export"),i=t("./_redefine"),s=t("./_meta").KEY,l=t("./_fails"),c=t("./_shared"),a=t("./_set-to-string-tag"),u=t("./_uid"),f=t("./_wks"),d=t("./_wks-ext"),p=t("./_wks-define"),h=t("./_enum-keys"),_=t("./_is-array"),y=t("./_an-object"),b=t("./_is-object"),g=t("./_to-iobject"),m=t("./_to-primitive"),v=t("./_property-desc"),w=t("./_object-create"),j=t("./_object-gopn-ext"),S=t("./_object-gopd"),x=t("./_object-dp"),k=t("./_object-keys"),O=S.f,T=x.f,C=j.f,L=e.Symbol,E=e.JSON,P=E&&E.stringify,R="prototype",M=f("_hidden"),N=f("toPrimitive"),F={}.propertyIsEnumerable,Y=c("symbol-registry"),I=c("symbols"),z=c("op-symbols"),H=Object[R],D="function"==typeof L,A=e.QObject,W=!A||!A[R]||!A[R].findChild,X=n&&l(function(){return 7!=w(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=O(H,e);n&&delete H[e],T(t,e,r),n&&t!==H&&T(H,e,n)}:T,B=function(t){var e=I[t]=w(L[R]);return e._k=t,e},q=D&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},U=function(t,e,n){return t===H&&U(z,e,n),y(t),e=m(e,!0),y(n),r(I,e)?(n.enumerable?(r(t,M)&&t[M][e]&&(t[M][e]=!1),n=w(n,{enumerable:v(0,!1)})):(r(t,M)||T(t,M,v(1,{})),t[M][e]=!0),X(t,e,n)):T(t,e,n)},V=function(t,e){y(t);for(var r,n=h(e=g(e)),o=0,i=n.length;i>o;)U(t,r=n[o++],e[r]);return t},G=function(t,e){return void 0===e?w(t):V(w(t),e)},J=function(t){var e=F.call(this,t=m(t,!0));return this===H&&r(I,t)&&!r(z,t)?!1:e||!r(this,t)||!r(I,t)||r(this,M)&&this[M][t]?e:!0},K=function(t,e){if(t=g(t),e=m(e,!0),t!==H||!r(I,e)||r(z,e)){var n=O(t,e);return!n||!r(I,e)||r(t,M)&&t[M][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=C(g(t)),o=[],i=0;n.length>i;)r(I,e=n[i++])||e==M||e==s||o.push(e);return o},Q=function(t){for(var e,n=t===H,o=C(n?z:g(t)),i=[],s=0;o.length>s;)r(I,e=o[s++])&&(n?r(H,e):!0)&&i.push(I[e]);return i};D||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=u(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(z,n),r(this,M)&&r(this[M],t)&&(this[M][t]=!1),X(this,t,v(1,n))};return n&&W&&X(H,t,{configurable:!0,set:e}),B(t)},i(L[R],"toString",function(){return this._k}),S.f=K,x.f=U,t("./_object-gopn").f=j.f=Z,t("./_object-pie").f=J,t("./_object-gops").f=Q,n&&!t("./_library")&&i(H,"propertyIsEnumerable",J,!0),d.f=function(t){return B(f(t))}),o(o.G+o.W+o.F*!D,{Symbol:L});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;$.length>te;)f($[te++]);for(var ee=k(f.store),re=0;ee.length>re;)p(ee[re++]);o(o.S+o.F*!D,"Symbol",{"for":function(t){return r(Y,t+="")?Y[t]:Y[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in Y)if(Y[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!D,"Object",{create:G,defineProperty:U,defineProperties:V,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),E&&o(o.S+o.F*(!D||l(function(){var t=L();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);return r=e=n[1],!b(e)&&void 0===t||q(t)?void 0:(_(e)||(e=function(t,e){return"function"==typeof r&&(e=r.call(this,t,e)),q(e)?void 0:e}),n[1]=e,P.apply(E,n))}}),L[R][N]||t("./_hide")(L[R],N,L[R].valueOf),a(L,"Symbol"),a(Math,"Math",!0),a(e.JSON,"JSON",!0)},{"./_an-object":23,"./_descriptors":29,"./_enum-keys":32,"./_export":33,"./_fails":34,"./_global":35,"./_has":36,"./_hide":37,"./_is-array":41,"./_is-object":42,"./_library":47,"./_meta":48,"./_object-create":50,"./_object-dp":51,"./_object-gopd":53,"./_object-gopn":55,"./_object-gopn-ext":54,"./_object-gops":56,"./_object-keys":59,"./_object-pie":60,"./_property-desc":61,"./_redefine":62,"./_set-to-string-tag":64,"./_shared":66,"./_to-iobject":70,"./_to-primitive":73,"./_uid":74,"./_wks":77,"./_wks-define":75,"./_wks-ext":76}],86:[function(t){t("./_wks-define")("asyncIterator")},{"./_wks-define":75}],87:[function(t){t("./_wks-define")("observable")},{"./_wks-define":75}],88:[function(t){t("./es6.array.iterator");for(var e=t("./_global"),r=t("./_hide"),n=t("./_iterators"),o=t("./_wks")("toStringTag"),i="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s-1&&(r.splice(n,1),r.length||delete this.eventMap[t])}else this.eventMap[t].length=0,delete this.eventMap[t];return this},t.prototype.commitEvent=function(t,e){for(var r=0,n=t.length;n>r;r++)t[r]?t[r](e):console&&console.warn("listener undefined",r);return this},t.prototype.commitEvents=function(t,e){for(var r=0,n=t.length;n>r;r++)if(t[r])for(var o=0,i=e.length;i>o;o++)t[r](e[o]);else console&&console.warn("listener undefined",r);return this},t.prototype.createEventObject=function(t,e){var r={type:t,target:this};return e&&(r=l.default(r,e)),r},t.prototype.triggerSync=function(t){for(var e=[],r=0,n=t.length;n>r;r++)for(var o=this.getListener(t[r].type),i=0,s=o.length;s>i;i++){var l=o[i];e.indexOf(l)<0&&e.push(l)}},t.prototype.trigger=function(t,e){var r=this.getListener(t);return r&&r.length?this.commitEvent(r,this.createEventObject(t,e)):this},t.prototype.clear=function(){if(this.eventMap)for(var t=Object.keys(this.eventMap),e=0,r=t.length;r>e;e++)this.eventMap[t[e]].length=0,delete this.eventMap[t[e]]},t.prototype.getListener=function(t){return this.eventMap&&this.eventMap[t]?this.eventMap[t]:[]},t.prototype.destroy=function(){return this.clear(),this.eventMap=null,this.destroyed=!0,this},t}();r.default=c},{"babel-runtime/helpers/classCallCheck":7,"object-assign":91}],90:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0,r.default=void 0;var o=t("babel-runtime/helpers/classCallCheck"),i=n(o),s=t("babel-runtime/helpers/possibleConstructorReturn"),l=n(s),c=t("babel-runtime/helpers/inherits"),a=n(c),u=t("./core"),f=n(u),d=t("object-assign"),p=n(d),h=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.target,o=r.currentTarget;i.default(this,e);var s=l.default(this,t.call(this));return s.target=n||s,s.currentTarget=o||s,s.addListener=s.bind=s.addEventListener=s.on,s.removeListener=s.unbind=s.removeEventListener=s.off,s.addListenerOnce=s.one=s.once,s.emit=s.dispatch=s.dispatchEvent=s.trigger,s.hasListener=s.hasListeners=s.listens,s}return a.default(e,t),e.prototype.listens=function(t){return t?this.getListener(t).length>0:!!this.eventMap&&Object.keys(this.eventMap).length>0},e.prototype.createEventObject=function(t,e){var r={type:t,target:this.target,currentTarget:this.currentTarget};return e&&(r=p.default(r,e)),r},e}(f.default);r.default=h},{"./core":89,"babel-runtime/helpers/classCallCheck":7,"babel-runtime/helpers/inherits":10,"babel-runtime/helpers/possibleConstructorReturn":12,"object-assign":91}],91:[function(t,e){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;10>r;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join("")?!1:!0}catch(i){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=n()?Object.assign:function(t){for(var e,n,l=r(t),c=1;c1)for(var r=1;r>",P={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:d(),arrayOf:p,element:h(),instanceOf:_,node:m(),objectOf:b,oneOf:y,oneOfType:g,shape:v,exact:w};return a.prototype=Error.prototype,P.checkPropTypes=i,P.PropTypes=P,P}},{"./checkPropTypes":94,"./lib/ReactPropTypesSecret":98,"object-assign":91}],97:[function(t,e){e.exports=t("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":95,"./factoryWithTypeCheckers":96}],98:[function(t,e){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],99:[function(t,e){(function(r){for(var n=t("performance-now"),o="undefined"==typeof window?r:window,i=["moz","webkit"],s="AnimationFrame",l=o["request"+s],c=o["cancel"+s]||o["cancelRequest"+s],a=0;!l&&a0&&void 0!==arguments[0]?arguments[0]:window,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i.default(this,e),e.hasInstance(r)){var o;return o=e.getInstance(r),l.default(s,o)}var s=l.default(this,t.call(this,{target:r}));return s._scrollTarget=null,s._y=0,s._x=0,s._speedY=0,s._maxSpeedY=0,s._speedX=0,s._lastSpeed=0,s._lastDirectionY=e.direction.none,s._lastDirectionX=e.direction.none,s._stopFrames=3,s._currentStopFrames=0,s._firstRender=!0,s._directionY=e.direction.none,s._directionX=e.direction.none,s._scrolling=!1,s._canScrollY=!1,s._canScrollX=!1,r.scrollFeatures=s,s._scrollTarget=r,s.cancelFrame=!1,s.options=n,s.init(),s}return f.default(e,t),e.getInstance=function(t,r){return t.scrollFeatures?t.scrollFeatures:new e(t,r)},e.hasInstance=function(t){return"undefined"!=typeof t.scrollFeatures},e.getScrollParent=function(t){return _.default(t)},a.default(e,null,[{key:"windowY",get:function(){return window.pageYOffset||window.scrollY||0}},{key:"windowX",get:function(){return window.pageXOffset||window.scrollX||0}},{key:"documentHeight",get:function(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)}},{key:"documentWidth",get:function(){return Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth)}}]),e.prototype.init=function(){var t=this;if(this.getScrollPosition=this._scrollTarget===window?function(){return{y:e.windowY,x:e.windowX}}.bind(this):function(){return{y:this._scrollTarget.scrollTop,x:this._scrollTarget.scrollLeft}}.bind(this),this.onResize=function(){t.trigger(e.events.SCROLL_RESIZE)},this.onScroll=this.onScroll.bind(this),this.onNextFrame=this.onNextFrame.bind(this),this.updateScrollPosition(),this._scrollTarget!==window){var r=/(auto|scroll)/,n=window.getComputedStyle(this._scrollTarget,null);this._canScrollY=r.test(n.getPropertyValue("overflow-y")),this._canScrollX=r.test(n.getPropertyValue("overflow-x"))}else this._canScrollY=this.clientHeight1||this.x>1)?(this.updateScrollPosition(),void this.trigger(e.events.SCROLL_PROGRESS)):void(this._scrolling||(this._scrolling=!0,this._maxSpeedY=0,this._lastDirectionY=e.direction.none,this._lastDirectionX=e.direction.none,this.trigger(e.events.SCROLL_START),this.cancelFrame=!1,b.default(this.onNextFrame)))},e.prototype.onNextFrame=function(){if(!this.cancelFrame){this._speedY=this._y-this.y,this._speedX=this._x-this.x,this._speedY<0?this._maxSpeedY=this._speedY0&&(this._maxSpeedY=this._speedY>this._maxSpeedY?this._speedY:this._maxSpeedY);var t=+this.speedY+ +this.speedX;if(this._scrolling&&0===t&&this._currentStopFrames++>this._stopFrames)return void this.onScrollStop();this.updateScrollPosition(),this._lastDirectionY!==this.directionY&&this.trigger("scroll:"+(this.directionY===e.direction.down?"down":"up")),this._lastDirectionX!==this.directionX&&this.trigger("scroll:"+(this.directionX===e.direction.right?"right":"left")),this._lastDirectionY=this.directionY,this._lastDirectionX=this.directionX,this.trigger(e.events.SCROLL_PROGRESS),b.default(this.onNextFrame)}},e.prototype.onScrollStop=function(){this._cancelNextFrame(),this._scrolling=!1,this._scrollTarget?(this.updateScrollPosition(),this.trigger(e.events.SCROLL_STOP),this._canScrollY&&(this.y<=0?this.trigger(e.events.SCROLL_MIN):this.y+this.clientHeight>=this.scrollHeight&&this.trigger(e.events.SCROLL_MAX)),this._canScrollX&&(this.x<=0?this.trigger(e.events.SCROLL_MIN):this.x+this.clientWidth>=this.scrollWidth&&this.trigger(e.events.SCROLL_MAX))):this.trigger(e.events.SCROLL_STOP)},e.prototype._cancelNextFrame=function(){this.cancelFrame=!0,this._currentStopFrames=0},a.default(e,[{key:"scrollPosition",get:function(){return this.getScrollPosition()}},{key:"directionY",get:function(){return!this._canScrollY||0===this.speedY&&!this._scrolling?this._directionY=e.direction.none:this.speedY>0?this._directionY=e.direction.up:this.speedY<0&&(this._directionY=e.direction.down),this._directionY}},{key:"directionX",get:function(){return!this._canScrollX||0===this.speedX&&!this._scrolling?this._directionX=e.direction.none:this.speedX>0?this._directionX=e.direction.left:this.speedX<0&&(this._directionX=e.direction.right),this._directionX}},{key:"scrollTarget",get:function(){return this._scrollTarget}},{key:"scrolling",get:function(){return this._scrolling}},{key:"speedY",get:function(){return this._speedY}},{key:"speedX",get:function(){return this._speedX}},{key:"maxSpeedY",get:function(){return this._maxSpeedY}},{key:"canScrollY",get:function(){return this._canScrollY}},{key:"canScrollX",get:function(){return this._canScrollX}},{key:"y",get:function(){return this.scrollPosition.y}},{key:"x",get:function(){return this.scrollPosition.x}},{key:"clientHeight",get:function(){return this._scrollTarget===window?window.innerHeight:this._scrollTarget.clientHeight}},{key:"clientWidth",get:function(){return this._scrollTarget===window?window.innerWidth:this._scrollTarget.clientWidth}},{key:"scrollHeight",get:function(){return this._scrollTarget===window?e.documentHeight:this._scrollTarget.scrollHeight}},{key:"scrollWidth",get:function(){return this._scrollTarget===window?e.documentWidth:this._scrollTarget.scrollWidth}}]),e}(p.default);g.direction={up:-1,down:1,none:0,right:2,left:-2},g.events={SCROLL_PROGRESS:"scroll:progress",SCROLL_START:"scroll:start",SCROLL_STOP:"scroll:stop",SCROLL_DOWN:"scroll:down",SCROLL_UP:"scroll:up",SCROLL_MIN:"scroll:min",SCROLL_MAX:"scroll:max",SCROLL_RESIZE:"scroll:resize"},r.default=g,e.exports=r["default"]},{"./scroll-parent":101,"babel-runtime/helpers/classCallCheck":7,"babel-runtime/helpers/createClass":8,"babel-runtime/helpers/inherits":10,"babel-runtime/helpers/possibleConstructorReturn":12,eventdispatcher:90,raf:99}],103:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var o=t("babel-runtime/helpers/classCallCheck"),i=n(o),s=t("babel-runtime/helpers/createClass"),l=n(s),c=null,a=function(){function t(){i.default(this,t)}return l.default(t,null,[{key:"sticky",get:function(){if(null!==c)return c;if("undefined"!=typeof window){if(window.Modernizr&&window.Modernizr.hasOwnProperty("csspositionsticky"))return c=window.Modernizr.csspositionsticky;var t=document.documentElement,e=document.createElement("div");t.appendChild(e);var r=["sticky","-webkit-sticky"];c=!1;for(var n=0;n0&&this.scroll.trigger("scroll:progress")}},e.prototype.removeSrollHandler=function(){this.scroll&&(this.scroll.off("scroll:start",this.onScroll),this.scroll.off("scroll:progress",this.onScroll),this.scroll.off("scroll:stop",this.onScroll),this.props.scrollClass.active&&(this.scroll.off("scroll:up",this.onScrollDirection),this.scroll.off("scroll:down",this.onScrollDirection),this.scroll.off("scroll:stop",this.onScrollDirection)),this.scroll.hasListeners()||this.scroll.destroy(),this.onScroll=null,this.onScrollDirection=null,this.scroll=null)},e.prototype.addResizeHandler=function(){this.onResize||(this.onResize=this.update.bind(this),window.addEventListener("sticky:update",this.onResize,!1),window.addEventListener("resize",this.onResize,!1),window.addEventListener("orientationchange",this.onResize,!1))},e.prototype.removeResizeHandler=function(){this.onResize&&(window.removeEventListener("sticky:update",this.onResize),window.removeEventListener("resize",this.onResize),window.removeEventListener("orientationchange",this.onResize),this.onResize=null)},e.prototype.destroy=function(){this._updatingBounds=!1,this._shouldComponentUpdate=!1,this._updatingState=!1,this.removeSrollHandler(),this.removeResizeHandler(),this.scrollTarget=null},e.prototype.getScrollClasses=function(t){if(this.options.scrollClass.active){t=t||{};var e=this.scroll.y<=0||this.scroll.y+this.scroll.clientHeight>=this.scroll.scrollHeight?0:this.scroll.directionY;t[this.options.scrollClass.up]=0>e,t[this.options.scrollClass.down]=e>0}return t},e.prototype.getScrollClass=function(){if(this.props.scrollClass.up||this.props.scrollClass.down){var t=this.scroll.y<=0||this.scroll.y+this.scroll.clientHeight>=this.scroll.scrollHeight?0:this.scroll.directionY,e=0>t?this.props.scrollClass.up:this.props.scrollClass.down;return e=0===t?null:e}return null},e.prototype.onScrollDirection=function(t){(this.state.sticky||t&&t.type===j.default.events.SCROLL_STOP)&&this.setState({scrollClass:this.getScrollClass()})},e.prototype.onScroll=function(){this.updateStickyState(!1),this.hasOwnScrollTarget&&!O.default.sticky&&(this.updateFixedOffset(),this.state.sticky&&!this.hasWindowScrollListener?(this.hasWindowScrollListener=!0,j.default.getInstance(window).on("scroll:progress",this.updateFixedOffset)):!this.state.sticky&&this.hasWindowScrollListener&&(this.hasWindowScrollListener=!1,j.default.getInstance(window).off("scroll:progress",this.updateFixedOffset)))},e.prototype.update=function(){var t=this;this.updateBounds(!0,!0,function(){t.updateStickyState(!1)})},e.prototype.getStickyState=function(){if(this.state.disabled)return{sticky:!1,absolute:!1};var t=this.scroll.y,e=this.state.style.top,r=this.state.style.bottom,n=this.state.sticky,o=this.state.absolute;if(null!==e){var i=this.state.restrict.bottom-this.state.bounds.height-e;e=this.state.bounds.top-e,this.state.sticky===!1&&(t>=e&&i>=t||0>=e&&e>t)?(n=!0,o=!1):this.state.sticky&&(e>0&&e>t||t>i)&&(n=!1,o=t>i)}else if(null!==r){t+=window.innerHeight;var s=this.state.restrict.top+this.state.bounds.height-r;r=this.state.bounds.bottom+r,this.state.sticky===!1&&r>=t&&t>=s?(n=!0,o=!1):this.state.sticky&&(t>r||s>t)&&(n=!1,o=s>=t)}return{sticky:n,absolute:o}},e.prototype.updateStickyState=function(t){var e=this,r=this.getStickyState();(r.sticky!==this.state.sticky||r.absolute!==this.state.absolute)&&(this._shouldComponentUpdate=t!==!0,r=x.default(r,this.getBounds(!1)),this._updatingState=!0,this.setState(r,function(){e._shouldComponentUpdate=!0,e._updatingState=!1}))},e.prototype.initialize=function(){var t=this;this.state.initialized||this.state.disabled||this.setState({initialized:!0},function(){var e=t.refs.wrapper||t.refs.el;t.scrollTarget=j.default.getScrollParent(e),t.hasOwnScrollTarget=t.scrollTarget!==window,t.hasOwnScrollTarget&&(t.updateFixedOffset=t.updateFixedOffset.bind(t)),t.addSrollHandler(),t.addResizeHandler(),t.update()})},e.prototype.shouldComponentUpdate=function(){return this._shouldComponentUpdate},e.prototype.componentWillReceiveProps=function(t){var e=this,r=!this.state.initialized&&t.initialize;t.disabled!==this.state.disabled&&this.setState({disabled:t.disabled},function(){r&&e.initialize()})},e.prototype.componentDidMount=function(){!this.state.initialized&&this.props.initialize&&this.initialize()},e.prototype.componentWillUnmount=function(){this.destroy()},e.prototype.render=function(){var t,e,r,n,o="function"==typeof this.props.children?this.props.children({absolute:this.state.absolute,disabled:this.state.disabled,sticky:this.state.sticky}):this.props.children;if(!this.state.initialized)return o;var i,l=y.default.Children.only(o),a=this.props,u=a.wrapperClass,f=a.stickyClass,d=a.fixedClass,p=a.stateClass,h=a.disabledClass,_=a.absoluteClass,b=(a.disabled,a.debug,a.tagName,c.default(a,["wrapperClass","stickyClass","fixedClass","stateClass","disabledClass","absoluteClass","disabled","debug","tagName"])),g="el",m=v.default((t={},t[f]=!this.state.disabled,t[h]=this.state.disabled,t),(e={},e[d]=!O.default.sticky,e),(r={},r[p]=this.state.sticky&&!this.state.disabled,r),(n={},n[_]=this.state.absolute,n),this.state.scrollClass);if(O.default.sticky||(this.state.absolute?i={marginTop:null!==this.state.style.top?this.state.restrict.height-(this.state.bounds.height+this.state.style.top)+(this.state.restrict.top-this.state.bounds.top)+"px":"",marginBottom:null!==this.state.style.bottom?this.state.restrict.height-(this.state.bounds.height+this.state.style.bottom)+(this.state.restrict.bottom-this.state.bounds.bottom)+"px":""}:this.hasOwnScrollTarget&&""!==this.state.fixedOffset&&(i={marginTop:this.state.fixedOffset})),l)l=y.default.cloneElement(l,{ref:g,style:i,className:v.default(l.props.className,m)});else{var w=this.props.tagName;l=y.default.createElement(w,s.default({ref:g,style:i,className:m},b),o)}if(O.default.sticky)return l;var j=this.state.disabled||null===this.state.bounds.height?"auto":this.state.bounds.height+"px",S="auto"===j?"":this.state.style["margin-top"]?this.state.style["margin-top"]+"px":"",x="auto"===j?"":this.state.style["margin-bottom"]?this.state.style["margin-bottom"]+"px":"";return i={height:j,marginTop:S,marginBottom:x},this.state.absolute&&(i.position="relative"),y.default.createElement("div",{ref:"wrapper",className:u,style:i},l)},e}(_.Component);M.propTypes={initialize:g.default.bool,wrapperClass:g.default.string,stickyClass:g.default.string,fixedClass:g.default.string,stateClass:g.default.string,disabledClass:g.default.string,absoluteClass:g.default.string,disabled:g.default.bool,debug:g.default.bool,wrapFixedSticky:g.default.bool,tagName:g.default.string,scrollClass:g.default.shape({down:g.default.string,up:g.default.string,none:g.default.string,persist:g.default.bool,active:g.default.bool}),children:g.default.oneOfType([g.default.node,g.default.func])},M.defaultProps={initialize:!0,wrapperClass:"sticky-wrap",stickyClass:"sticky",fixedClass:"sticky-fixed",stateClass:"is-sticky",disabledClass:"sticky-disabled",absoluteClass:"is-absolute",wrapFixedSticky:!0,debug:!1,disabled:!1,tagName:"div",scrollClass:{down:null,up:null,none:null,persist:!1,active:!1}},r.default=M,e.exports=r["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./featureDetect":103,"babel-runtime/helpers/classCallCheck":7,"babel-runtime/helpers/extends":9,"babel-runtime/helpers/inherits":10,"babel-runtime/helpers/objectWithoutProperties":11,"babel-runtime/helpers/possibleConstructorReturn":12,classnames:14,"object-assign":91,"prop-types":97,scrollfeatures:102}]},{},[104])(104)});
\ No newline at end of file
diff --git a/lib/react-sticky-state.js b/lib/react-sticky-state.js
index 2f19439..0ea4329 100644
--- a/lib/react-sticky-state.js
+++ b/lib/react-sticky-state.js
@@ -572,11 +572,17 @@ var ReactStickyState = function (_Component) {
ReactStickyState.prototype.render = function render() {
var _classNames, _classNames2, _classNames3, _classNames4;
+ var children = typeof this.props.children === 'function' ? this.props.children({
+ absolute: this.state.absolute,
+ disabled: this.state.disabled,
+ sticky: this.state.sticky
+ }) : this.props.children;
+
if (!this.state.initialized) {
- return this.props.children;
+ return children;
}
- var element = _react2.default.Children.only(this.props.children);
+ var element = _react2.default.Children.only(children);
var _props = this.props,
wrapperClass = _props.wrapperClass,
@@ -616,7 +622,7 @@ var ReactStickyState = function (_Component) {
element = _react2.default.createElement(
Comp,
(0, _extends3.default)({ ref: refName, style: style, className: className }, props),
- this.props.children
+ children
);
}
@@ -664,7 +670,8 @@ ReactStickyState.propTypes = {
none: _propTypes2.default.string,
persist: _propTypes2.default.bool,
active: _propTypes2.default.bool
- })
+ }),
+ children: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.func])
};
ReactStickyState.defaultProps = {
initialize: true,
diff --git a/src/react-sticky-state.js b/src/react-sticky-state.js
index a6c85c2..f568eac 100644
--- a/src/react-sticky-state.js
+++ b/src/react-sticky-state.js
@@ -113,7 +113,8 @@ class ReactStickyState extends Component {
none : PropTypes.string,
persist : PropTypes.bool,
active : PropTypes.bool
- })
+ }),
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
};
static defaultProps = {
@@ -584,12 +585,20 @@ class ReactStickyState extends Component {
}
render() {
+ const children =
+ typeof this.props.children === 'function'
+ ? this.props.children({
+ absolute: this.state.absolute,
+ disabled: this.state.disabled,
+ sticky: this.state.sticky,
+ })
+ : this.props.children;
if(!this.state.initialized){
- return this.props.children;
+ return children;
}
- let element = React.Children.only(this.props.children);
+ let element = React.Children.only(children);
const { wrapperClass, stickyClass, fixedClass, stateClass, disabledClass, absoluteClass, disabled, debug, tagName, ...props } = this.props;
@@ -621,7 +630,7 @@ class ReactStickyState extends Component {
element = React.cloneElement(element, { ref: refName, style: style, className: classNames(element.props.className, className) });
} else {
const Comp = this.props.tagName;
- element = {this.props.children};
+ element = {children};
}
if (Can.sticky) {