-
Notifications
You must be signed in to change notification settings - Fork 0
/
17.bundle.f05e2584224717c8790a.js
2 lines (2 loc) · 17.6 KB
/
17.bundle.f05e2584224717c8790a.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1082:function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,f="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,h=f||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,v=Math.min,b=function(){return h.Date.now()};function y(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)&&d.call(e)==o}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):c.test(e)?r:+e}e.exports=function(e,t,r){var o,i,c,u,a,s,f=0,l=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError(n);function _(t){var n=o,r=i;return o=i=void 0,f=t,u=e.apply(r,n)}function g(e){var n=e-s;return void 0===s||n>=t||n<0||h&&e-f>=c}function O(){var e=b();if(g(e))return w(e);a=setTimeout(O,function(e){var n=t-(e-s);return h?v(n,c-(e-f)):n}(e))}function w(e){return a=void 0,d&&o?_(e):(o=i=void 0,u)}function E(){var e=b(),n=g(e);if(o=arguments,i=this,s=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(O,t),l?_(e):u}(s);if(h)return a=setTimeout(O,t),_(s)}return void 0===a&&(a=setTimeout(O,t)),u}return t=m(t)||0,y(r)&&(l=!!r.leading,c=(h="maxWait"in r)?p(m(r.maxWait)||0,t):c,d="trailing"in r?!!r.trailing:d),E.cancel=function(){void 0!==a&&clearTimeout(a),f=0,o=s=i=a=void 0},E.flush=function(){return void 0===a?u:w(b())},E}}).call(this,n(49))},1083: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)},c=2;var u=20,a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,f=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 u(){n&&(n=!1,e()),r&&s()}function a(){i(u)}function s(){var e=Date.now();if(n){if(e-o<c)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),u)}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),s?(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;a.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}(),l=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},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=_(0,0,0,0);function p(e){return parseFloat(e)||0}function v(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 b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=h(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,c=o.top+o.bottom,u=p(r.width),a=p(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=v(r,"left","right")+i),Math.round(a+c)!==n&&(a-=v(r,"top","bottom")+c)),!function(e){return e===h(e).document.documentElement}(e)){var s=Math.round(u+i)-t,f=Math.round(a+c)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(f)&&(a-=f)}return _(o.left,o.top,u,a)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return _(0,0,t.width,t.height)}(e):b(e):d}function _(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(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}(),O=function(e,t){var n,r,o,i,c,u,a,s=(r=(n=t).x,o=n.y,i=n.width,c=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(u.prototype),l(a,{x:r,y:o,width:i,height:c,top:o,right:r+i,bottom:c+o,left:r}),a);l(this,{target:e,contentRect:s})},w=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 h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(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 h(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 O(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}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,j=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=f.getInstance(),r=new w(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){j.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var T=void 0!==o.ResizeObserver?o.ResizeObserver:j;t.a=T}).call(this,n(49))},1084:function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(49))},1095:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(22),c=n(1083),u=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},a=n(1);var s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},f=n(1084),l="object"==typeof self&&self&&self.Object===Object&&self,h=f.a||l||Function("return this")(),d=function(){return h.Date.now()},p=h.Symbol,v=Object.prototype,b=v.hasOwnProperty,y=v.toString,m=p?p.toStringTag:void 0;var _=function(e){var t=b.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var o=y.call(e);return r&&(t?e[m]=n:delete e[m]),o},g=Object.prototype.toString;var O=function(e){return g.call(e)},w="[object Null]",E="[object Undefined]",j=p?p.toStringTag:void 0;var T=function(e){return null==e?void 0===e?E:w:j&&j in Object(e)?_(e):O(e)};var M=function(e){return null!=e&&"object"==typeof e},S="[object Symbol]";var R=function(e){return"symbol"==typeof e||M(e)&&T(e)==S},x=NaN,A=/^\s+|\s+$/g,z=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,H=/^0o[0-7]+$/i,P=parseInt;var D=function(e){if("number"==typeof e)return e;if(R(e))return x;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(A,"");var n=k.test(e);return n||H.test(e)?P(e.slice(2),n?2:8):z.test(e)?x:+e},W="Expected a function",C=Math.max,q=Math.min;var F=function(e,t,n){var r,o,i,c,u,a,f=0,l=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(W);function v(t){var n=r,i=o;return r=o=void 0,f=t,c=e.apply(i,n)}function b(e){var n=e-a;return void 0===a||n>=t||n<0||h&&e-f>=i}function y(){var e=d();if(b(e))return m(e);u=setTimeout(y,function(e){var n=t-(e-a);return h?q(n,i-(e-f)):n}(e))}function m(e){return u=void 0,p&&r?v(e):(r=o=void 0,c)}function _(){var e=d(),n=b(e);if(r=arguments,o=this,a=e,n){if(void 0===u)return function(e){return f=e,u=setTimeout(y,t),l?v(e):c}(a);if(h)return clearTimeout(u),u=setTimeout(y,t),v(a)}return void 0===u&&(u=setTimeout(y,t)),c}return t=D(t)||0,s(n)&&(l=!!n.leading,i=(h="maxWait"in n)?C(D(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==u&&clearTimeout(u),f=0,r=a=o=u=void 0},_.flush=function(){return void 0===u?c:m(d())},_},L="Expected a function";var $=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(L);return s(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),F(e,t,{leading:r,maxWait:t,trailing:o})},N={debounce:F,throttle:$},G=function(e){return N[e]},V=function(e){return"function"==typeof e},B=function(){return"undefined"==typeof window},I=function(e){return e instanceof Element||e instanceof HTMLDocument};function U(e){return(U="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)}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),K(this,Q(t).apply(this,arguments))}var n,r,o;return 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}}),t&&X(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return this.props.children}}])&&J(n.prototype,r),o&&J(n,o),t}(r.PureComponent);function Z(e){return(Z="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)}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?ne(e):t}(this,te(t).call(this,e)),oe(ne(n),"cancelHandler",(function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)})),oe(ne(n),"rafClean",(function(){n.raf&&n.raf.cancel&&(n.raf.cancel(),n.raf=null)})),oe(ne(n),"toggleObserver",(function(e){var t=n.getElement();t&&n.resizeObserver[e]&&n.resizeObserver[e](t)})),oe(ne(n),"getElement",(function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(!B()){if(t)return document.querySelector(t);if(r&&I(r))return r;var o=n.element&&Object(i.findDOMNode)(n.element);if(o)return o.parentElement}})),oe(ne(n),"createUpdater",(function(){return n.rafClean(),n.raf=u((function(e){var t=e.width,r=e.height,o=n.props.onResize;V(o)&&o(t,r),n.setState({width:t,height:r})})),n.raf})),oe(ne(n),"createResizeHandler",(function(e){var t=n.state,r=t.width,o=t.height,i=n.props,c=i.handleWidth,u=i.handleHeight;if(c||u){var a=n.createUpdater();e.forEach((function(e){var t=e&&e.contentRect||{},i=t.width,s=t.height,f=c&&r!==i||u&&o!==s;!n.skipOnMount&&f&&!B()&&a({width:i,height:s}),n.skipOnMount=!1}))}})),oe(ne(n),"onRef",(function(e){n.element=e})),oe(ne(n),"getRenderType",(function(){var e=n.props,t=e.render,o=e.children;return V(t)?"renderProp":V(o)?"childFunction":Object(r.isValidElement)(o)?"child":Array.isArray(o)?"childArray":"parent"})),oe(ne(n),"getTargetComponent",(function(){var e=n.props,t=e.render,o=e.children,i=e.nodeType,c=n.state,u={width:c.width,height:c.height};switch(n.getRenderType()){case"renderProp":return Object(r.cloneElement)(t(u),{key:"resize-detector"});case"childFunction":return Object(r.cloneElement)(o(u));case"child":return Object(r.cloneElement)(o,u);case"childArray":return o.map((function(e){return!!e&&Object(r.cloneElement)(e,u)}));default:return Object(r.createElement)(i)}}));var o=e.skipOnMount,a=e.refreshMode,s=e.refreshRate,f=e.refreshOptions;n.state={width:void 0,height:void 0},n.skipOnMount=o,n.raf=null,n.element=null,n.unmounted=!1;var l=G(a);return n.resizeHandler=l?l(n.createResizeHandler,s,f):n.createResizeHandler,n.resizeObserver=new c.a(n.resizeHandler),n}var n,a,s;return 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}}),t&&re(e,t)}(t,e),n=t,(a=[{key:"componentDidMount",value:function(){this.toggleObserver("observe")}},{key:"componentWillUnmount",value:function(){this.toggleObserver("unobserve"),this.rafClean(),this.cancelHandler(),this.unmounted=!0}},{key:"render",value:function(){return o.a.createElement(Y,{ref:this.onRef},this.getTargetComponent())}}])&&ee(n.prototype,a),s&&ee(n,s),t}(r.PureComponent);ie.propTypes={handleWidth:a.bool,handleHeight:a.bool,skipOnMount:a.bool,refreshRate:a.number,refreshMode:a.string,refreshOptions:Object(a.shape)({leading:a.bool,trailing:a.bool}),querySelector:a.string,targetDomEl:a.any,onResize:a.func,render:a.func,children:a.any,nodeType:a.node},ie.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,refreshOptions:void 0,querySelector:null,targetDomEl:null,onResize:null,render:void 0,children:null,nodeType:"div"};var ce=ie;t.a=ce}}]);
//# sourceMappingURL=17.bundle.f05e2584224717c8790a.js.map