react-free-carousel
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -1,7 +0,13 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFreeCarousel=e(require("react")):t.ReactFreeCarousel=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ReactFreeCarouselTile=void 0;var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(19),l=n(f),c=r(14),h=n(c),p=r(12),d=n(p),g=r(11),y=n(g),v=r(18),A=n(v),w=function(t){return t instanceof Array?t:[t]},b=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"string"==typeof t?t.includes("%")&&e?Math.floor(parseInt(t,10)/100*e)-r+"px":e||0===r?t:"calc("+t+" - "+r+"px)":"number"==typeof t?t-r+"px":"100%"},m=function(t){function e(t){i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.state={page:r.props.page||0,pages:0},r.gotoPage=r.gotoPage.bind(r),r.reRender=r.reRender.bind(r),r}return u(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this;this.debouncingRender=(0,d.default)(this.reRender,600),setTimeout(function(){var e=t.calculateTotalPages();t.setState({pages:e}),t.playCarousel(),t.props.slide>0?t.gotoTile(t.props.slide):t.props.page>0&&t.gotoPage(t.props.page),window.addEventListener("resize",t.debouncingRender),window.addEventListener("orientationchange",t.debouncingRender)},100)}},{key:"componentWillReceiveProps",value:function(t){var e=this;w(t.children).length!==w(this.props.children).length?setTimeout(function(){e.reRender(!1)},200):t.autoplay!==this.props.autoplay&&setTimeout(function(){e.playCarousel()},210)}},{key:"componentWillUnmount",value:function(){this.stopCarousel(),window.removeEventListener("resize",this.debouncingRender),window.removeEventListener("orientationchange",this.debouncingRender)}},{key:"reRender",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stopCarousel();var r=this.calculateTotalPages(),n=e&&this.state.pages!==r?0:this.state.page;n>r&&(n=r),0===n&&this.container&&(this.container.style.transition="none",this.container.style.marginLeft="0px",this.container.style.transition="margin-left "+this.props.transitionSpeed+"ms"),setTimeout(function(){t.setState({page:n,pages:r},function(){t.gotoPage(n),t.playCarousel()})},this.props.transitionSpeed+50)}},{key:"stopCarousel",value:function(){this.slidingInterval&&clearInterval(this.slidingInterval)}},{key:"playCarousel",value:function(){var t=this;this.stopCarousel(),this.state.pages>0&&this.props.autoplay&&this.props.interval&&(this.slidingInterval=setInterval(function(){var e=t.state.page===t.state.pages?0:t.state.page+1;t.gotoPage(e)},this.props.interval))}},{key:"gotoPage",value:function(t){var e=this,r=t>this.state.pages?0:t;this.stopCarousel(),this.setState({page:r},function(){e.playCarousel()}),this.container.style.marginLeft="-"+this.pageToOffset(r)+"px"}},{key:"gotoTile",value:function(t){var e=this.container.children[t];e&&this.gotoPage(Number(e.getAttribute("data-page")))}},{key:"pageToOffset",value:function(t){var e=this.container.querySelector('[data-page="'+t+'"]');return e&&"true"===e.getAttribute("data-first")?parseInt(e.getAttribute("data-offset"),10):0}},{key:"renderTile",value:function(t){return t}},{key:"calculateTotalPages",value:function(){var t=this,e=this.wrapper?this.wrapper.clientWidth:0,r=new Map,n=new Map,o=0;return this.container.children.length&&Array.from(this.container.children).forEach(function(i,a){var u=i.offsetLeft-t.container.offsetLeft-parseInt(window.getComputedStyle(i).marginLeft,10),s=i.clientWidth;if(r.has(u))i.setAttribute("data-first","false"),i.setAttribute("data-page",""+r.get(u)),i.setAttribute("data-offset",""+u);else{var f=n.get(o)||0;u>=f&&u+s<=f+e?0===a&&i.setAttribute("data-first","true"):(o+=1,i.setAttribute("data-first","true")),i.setAttribute("data-page",""+o),i.setAttribute("data-offset",""+u),r.set(u,o),n.has(o)||n.set(o,u)}}),o}},{key:"renderPagination",value:function(){var t=this;return l.default.createElement("div",{className:this.props.paginationClass||A.default.defaultPaginationClass,ref:function(e){t.pagination=e},role:"navigation"},[].concat(o(Array(this.state.pages+1))).map(function(e,r){return l.default.createElement("button",{"aria-label":"Goto Page "+(r+1),className:"\n "+t.props.paginationDotClass+"\n "+(r===t.state.page?t.props.paginationDotActiveClass:""),"data-active":r===t.state.page?"true":"false",key:r,onClick:function(){t.gotoPage(r)}},r+1)}))}},{key:"renderArrows",value:function(t){var e=this,r=function(t){return"next"===t&&e.state.page<e.state.pages?e.state.page+1:"prev"===t&&e.state.page>0?e.state.page-1:null}(t),n=(0,y.default)(t)+"Class";return l.default.createElement("button",{className:this.props["arrow"+n]||A.default["defaultArrow"+n],disabled:null===r,onClick:function(){e.gotoPage(r)},role:"button",type:"button"})}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=e.className,o=e.width,i=e.height,a=e.transitionSpeed,u=e.showPagination,s=e.minPagesToShowPagination,f=e.arrows,c=e.tileMargin,h=l.default.Children.map(Array.from(w(r)),function(e){return e.type===E?l.default.cloneElement(e,{parent:t,tileMargin:c,parentWidth:t.wrapper&&t.wrapper.clientWidth+c,updateParent:t.reRender}):e}),p={position:"relative",width:b(o,null),height:b(i,null)},d={position:"relative",overflow:"hidden",width:"calc(100% + "+b(c)+")",height:"calc(100% + "+b(c)+")"},g={overflow:"hidden",position:"static",alignContent:"flex-start",display:"flex",flexDirection:"column",flexWrap:"wrap",height:"100%",transform:"translate(-"+b(c)+", -"+b(c)+")",transition:"margin-left "+a+"ms"};return l.default.createElement("div",{className:n,ref:function(e){t.wrapper=e},style:p},l.default.createElement("div",{style:d},l.default.createElement("div",{ref:function(e){t.container=e},style:g},h&&h.map(this.renderTile))),f&&this.renderArrows("prev"),u&&this.state.pages+1>=s&&this.renderPagination(),f&&this.renderArrows("next"))}}]),e}(l.default.Component);e.default=m,m.propTypes={children:l.default.PropTypes.oneOfType([l.default.PropTypes.arrayOf(l.default.PropTypes.node),l.default.PropTypes.node]),className:h.default.string,height:h.default.oneOfType([h.default.string,h.default.number]),width:h.default.oneOfType([h.default.string,h.default.number]),tileMargin:h.default.oneOfType([h.default.string,h.default.number]),interval:h.default.number,autoplay:h.default.bool,showPagination:h.default.bool,transitionSpeed:h.default.number,page:h.default.number,slide:h.default.number,minPagesToShowPagination:h.default.number,paginationClass:h.default.string,paginationDotClass:h.default.string,paginationDotActiveClass:h.default.string,arrows:h.default.bool,arrowPrevClass:h.default.string,arrowNextClass:h.default.string},m.defaultProps={className:null,interval:5e3,transitionSpeed:500,height:"100%",width:"100%",autoplay:!0,showPagination:!0,page:0,tileMargin:0,slide:null,minPagesToShowPagination:2,paginationClass:"",paginationDotClass:"",paginationDotActiveClass:"",arrows:!1,arrowPrevClass:"",arrowNextClass:""};var E=e.ReactFreeCarouselTile=function(t){function e(t){i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.state={parentWidth:null},r}return u(e,t),s(e,[{key:"componentWillReceiveProps",value:function(t){var e=this;t.parentWidth!==this.props.parentWidth&&setTimeout(function(){e.props.updateParent()},0)}},{key:"render",value:function(){var t=this,e=this.props,r=e.parentWidth,n=e.height,o=e.width,i=e.tileMargin,a={height:b(n,null,i),width:b(o,r,i),marginTop:""+b(i),marginLeft:""+b(i)};return l.default.createElement("div",{className:this.props.className||A.default.defaultTile,ref:function(e){t.tile=e},style:a},this.props.children)}}]),e}(l.default.Component);E.propTypes={children:l.default.PropTypes.oneOfType([l.default.PropTypes.arrayOf(l.default.PropTypes.node),l.default.PropTypes.node]),updateParent:h.default.func.isRequired,parentWidth:h.default.number,className:h.default.string,tileMargin:h.default.oneOfType([h.default.string,h.default.number]),height:h.default.oneOfType([h.default.string,h.default.number]),width:h.default.oneOfType([h.default.string,h.default.number])},E.defaultProps={className:null,tileMargin:0,width:"100%",height:"100%"}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var n=r(0).default,o=r(0).ReactFreeCarouselTile;t.exports={ReactFreeCarouselTile:o},t.exports.default=n},function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,r,o,i,a,u=t.length;i=n(t),a=new c(3*u/4-i),r=i>0?u-4:u;var s=0;for(e=0;e<r;e+=4)o=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[s++]=255&o):1===i&&(o=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}function a(t){return f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}function u(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(a(n));return o.join("")}function s(t){for(var e,r=t.length,n=r%3,o="",i=[],a=0,s=r-n;a<s;a+=16383)i.push(u(t,a,a+16383>s?s:a+16383));return 1===n?(e=t[r-1],o+=f[e>>2],o+=f[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=f[e>>10],o+=f[e>>4&63],o+=f[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=s;for(var f=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=h.length;p<d;++p)f[p]=h[p],l[h.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e,r){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=i.prototype):(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,r){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return a(this,t,e,r)}function a(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"==typeof e?l(t,e,r):p(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,e,r,n){return u(e),e<=0?o(t,e):void 0!==r?"string"==typeof n?o(t,e).fill(r,n):o(t,e).fill(r):o(t,e)}function f(t,e){if(u(e),t=o(t,e<0?0:0|d(e)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!i.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,r);t=o(t,n);var a=t.write(e,r);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var r=e.length<0?0:0|d(e.length);t=o(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),i.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=i.prototype):t=c(t,e),t}function p(t,e){if(i.isBuffer(e)){var r=0|d(e.length);return t=o(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||G(e.length)?o(t,0):c(t,e);if("Buffer"===e.type&&K(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),i.alloc(+t)}function y(t,e){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return U(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return S(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function A(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}var f;if(o){var l=-1;for(f=r;f<u;f++)if(i(t,f)===i(e,-1===l?0:f-l)){if(-1===l&&(l=f),f-l+1===s)return l*a}else-1!==l&&(f-=f-l),l=-1}else for(r+s>u&&(r=u-s),f=r;f>=0;f--){for(var c=!0,h=0;h<s;h++)if(i(t,f+h)!==i(e,h)){c=!1;break}if(c)return f}return-1}function m(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[r+a]=u}return a}function E(t,e,r,n){return Z(q(e,t.length-r),t,r,n)}function C(t,e,r,n){return Z($(e),t,r,n)}function P(t,e,r,n){return C(t,e,r,n)}function T(t,e,r,n){return Z(X(e),t,r,n)}function R(t,e,r,n){return Z(V(e,t.length-r),t,r,n)}function B(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,u=i>239?4:i>223?3:i>191?2:1;if(o+u<=r){var s,f,l,c;switch(u){case 1:i<128&&(a=i);break;case 2:s=t[o+1],128==(192&s)&&(c=(31&i)<<6|63&s)>127&&(a=c);break;case 3:s=t[o+1],f=t[o+2],128==(192&s)&&128==(192&f)&&(c=(15&i)<<12|(63&s)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:s=t[o+1],f=t[o+2],l=t[o+3],128==(192&s)&&128==(192&f)&&128==(192&l)&&(c=(15&i)<<18|(63&s)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=u}return _(n)}function _(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Q));return r}function S(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function O(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function U(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=z(t[i]);return o}function I(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function j(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,a){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function M(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Y(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function k(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,o){return o||k(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||k(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,e,r,n,52,8),r+8}function W(t){if(t=F(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function $(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function V(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function X(t){return J.toByteArray(W(t))}function Z(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function G(t){return t!==t}/*! | ||
* The buffer module from node.js, for the browser. | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactFreeCarousel=t(require("react")):e.ReactFreeCarousel=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ReactFreeCarouselTile=void 0;var u=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=a(["\n position: absolute;\n text-align: center;\n left: 10px;\n right: 10px;\n bottom: 0px;\n "],["\n position: absolute;\n text-align: center;\n left: 10px;\n right: 10px;\n bottom: 0px;\n "]),p=a(["\n display: inline-block;\n border: 0;\n border-radius: 50%;\n width: 12px;\n height: 12px;\n background: white;\n margin: 0 2px;\n text-indent: 1000px;\n overflow: hidden;\n cursor: pointer;\n outline: none;\n transition: all .3s;\n\n &[data-active='true'] {\n background: orange;\n }\n "],["\n display: inline-block;\n border: 0;\n border-radius: 50%;\n width: 12px;\n height: 12px;\n background: white;\n margin: 0 2px;\n text-indent: 1000px;\n overflow: hidden;\n cursor: pointer;\n outline: none;\n transition: all .3s;\n\n &[data-active='true'] {\n background: orange;\n }\n "]),f=a(['\n position: absolute;\n font-size: 16px;\n border: 0;\n outline: none;\n top: 45%;\n cursor: pointer;\n transition: all .3s;\n padding: 0;\n color: orange;\n font-family: Arial;\n background: none;\n\n &:disabled {\n opacity: .2;\n cursor: default;\n }\n\n &[direction="prev"] {\n left: 5px;\n &::before {\n content: "\\25C0";\n }\n }\n\n &[direction="next"] {\n right: 5px;\n &::before {\n content: "\\25b6";\n }\n }\n '],['\n position: absolute;\n font-size: 16px;\n border: 0;\n outline: none;\n top: 45%;\n cursor: pointer;\n transition: all .3s;\n padding: 0;\n color: orange;\n font-family: Arial;\n background: none;\n\n &:disabled {\n opacity: .2;\n cursor: default;\n }\n\n &[direction="prev"] {\n left: 5px;\n &::before {\n content: "\\\\25C0";\n }\n }\n\n &[direction="next"] {\n right: 5px;\n &::before {\n content: "\\\\25b6";\n }\n }\n ']),d=n(3),h=r(d),m=n(1),g=r(m),y=n(12),b=r(y),v=n(11),C=r(v),w=n(16),k=r(w),x=function(e){return e instanceof Array?e:[e]},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"string"==typeof e?e.includes("%")&&t?Math.floor(parseInt(e,10)/100*t)-n+"px":t||0===n?e:"calc("+e+" - "+n+"px)":"number"==typeof e?e-n+"px":"100%"},A=function(e){function t(e){i(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={page:n.props.page||0,pages:0},n.gotoPage=n.gotoPage.bind(n),n.reRender=n.reRender.bind(n),n}return c(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this;this.debouncingRender=(0,b.default)(this.reRender,600),setTimeout(function(){var t=e.calculateTotalPages();e.setState({pages:t}),e.playCarousel(),e.props.slide>0?e.gotoTile(e.props.slide):e.props.page>0&&e.gotoPage(e.props.page),window.addEventListener("resize",e.debouncingRender),window.addEventListener("orientationchange",e.debouncingRender)},100)}},{key:"componentWillReceiveProps",value:function(e){var t=this;x(e.children).length!==x(this.props.children).length?setTimeout(function(){t.reRender(!1)},200):e.autoplay!==this.props.autoplay&&setTimeout(function(){t.playCarousel()},210)}},{key:"componentWillUnmount",value:function(){this.stopCarousel(),window.removeEventListener("resize",this.debouncingRender),window.removeEventListener("orientationchange",this.debouncingRender)}},{key:"reRender",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stopCarousel();var n=this.calculateTotalPages(),r=t&&this.state.pages!==n?0:this.state.page;r>n&&(r=n),0===r&&this.container&&(this.container.style.transition="none",this.container.style.marginLeft="0px",this.container.style.transition="margin-left "+this.props.transitionSpeed+"ms"),setTimeout(function(){e.setState({page:r,pages:n},function(){e.gotoPage(r),e.playCarousel()})},this.props.transitionSpeed+50)}},{key:"stopCarousel",value:function(){this.slidingInterval&&clearInterval(this.slidingInterval)}},{key:"playCarousel",value:function(){var e=this;this.stopCarousel(),this.state.pages>0&&this.props.autoplay&&this.props.interval&&(this.slidingInterval=setInterval(function(){var t=e.state.page===e.state.pages?0:e.state.page+1;e.gotoPage(t)},this.props.interval))}},{key:"gotoPage",value:function(e){var t=this,n=e>this.state.pages?0:e;this.stopCarousel(),this.setState({page:n},function(){t.playCarousel()}),this.container.style.marginLeft="-"+this.pageToOffset(n)+"px"}},{key:"gotoTile",value:function(e){var t=this.container.children[e];t&&this.gotoPage(Number(t.getAttribute("data-page")))}},{key:"pageToOffset",value:function(e){var t=this.container.querySelector('[data-page="'+e+'"]');return t&&"true"===t.getAttribute("data-first")?parseInt(t.getAttribute("data-offset"),10):0}},{key:"renderTile",value:function(e){return e}},{key:"calculateTotalPages",value:function(){var e=this,t=this.wrapper?this.wrapper.clientWidth:0,n=new Map,r=new Map,o=0;return this.container.children.length&&Array.from(this.container.children).forEach(function(a,i){var s=a.offsetLeft-e.container.offsetLeft-parseInt(window.getComputedStyle(a).marginLeft,10),c=a.clientWidth;if(n.has(s))a.setAttribute("data-first","false"),a.setAttribute("data-page",""+n.get(s)),a.setAttribute("data-offset",""+s);else{var u=r.get(o)||0;s>=u&&s+c<=u+t?0===i&&a.setAttribute("data-first","true"):(o+=1,a.setAttribute("data-first","true")),a.setAttribute("data-page",""+o),a.setAttribute("data-offset",""+s),n.set(s,o),r.has(o)||r.set(o,s)}}),o}},{key:"renderPagination",value:function(){var e=this,t=k.default.div(l),n=k.default.button(p);return h.default.createElement(t,{className:this.props.paginationClass,ref:function(t){e.pagination=t},role:"navigation"},[].concat(o(Array(this.state.pages+1))).map(function(t,r){return h.default.createElement(n,{"aria-label":"Goto Page "+(r+1),className:"\n "+e.props.paginationDotClass+"\n "+(r===e.state.page?e.props.paginationDotActiveClass:""),"data-active":r===e.state.page?"true":"false",key:r,onClick:function(){e.gotoPage(r)}},r+1)}))}},{key:"renderArrows",value:function(e){var t=this,n=function(e){return"next"===e&&t.state.page<t.state.pages?t.state.page+1:"prev"===e&&t.state.page>0?t.state.page-1:null}(e),r=(0,C.default)(e)+"Class",o=k.default.button(f);return h.default.createElement(o,{className:this.props["arrow"+r],direction:e,disabled:null===n,onClick:function(){t.gotoPage(n)},role:"button",type:"button"})}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.width,a=t.height,i=t.transitionSpeed,s=t.showPagination,c=t.minPagesToShowPagination,u=t.arrows,l=t.tileMargin,p=h.default.Children.map(Array.from(x(n)),function(t){return t.type===O?h.default.cloneElement(t,{parent:e,tileMargin:l,parentWidth:e.wrapper&&e.wrapper.clientWidth+l,updateParent:e.reRender}):t}),f={position:"relative",width:T(o,null),height:T(a,null)},d={position:"relative",overflow:"hidden",width:"calc(100% + "+T(l)+")",height:"calc(100% + "+T(l)+")"},m={overflow:"hidden",position:"static",alignContent:"flex-start",display:"flex",flexDirection:"column",flexWrap:"wrap",height:"100%",transform:"translate(-"+T(l)+", -"+T(l)+")",transition:"margin-left "+i+"ms"};return h.default.createElement("div",{className:r,ref:function(t){e.wrapper=t},style:f},h.default.createElement("div",{style:d},h.default.createElement("div",{ref:function(t){e.container=t},style:m},p&&p.map(this.renderTile))),u&&this.renderArrows("prev"),s&&this.state.pages+1>=c&&this.renderPagination(),u&&this.renderArrows("next"))}}]),t}(h.default.Component);t.default=A,A.propTypes={children:h.default.PropTypes.oneOfType([h.default.PropTypes.arrayOf(h.default.PropTypes.node),h.default.PropTypes.node]),className:g.default.string,height:g.default.oneOfType([g.default.string,g.default.number]),width:g.default.oneOfType([g.default.string,g.default.number]),tileMargin:g.default.oneOfType([g.default.string,g.default.number]),interval:g.default.number,autoplay:g.default.bool,showPagination:g.default.bool,transitionSpeed:g.default.number,page:g.default.number,slide:g.default.number,minPagesToShowPagination:g.default.number,paginationClass:g.default.string,paginationDotClass:g.default.string,paginationDotActiveClass:g.default.string,arrows:g.default.bool,arrowPrevClass:g.default.string,arrowNextClass:g.default.string},A.defaultProps={className:null,interval:5e3,transitionSpeed:500,height:"100%",width:"100%",autoplay:!0,showPagination:!0,page:0,tileMargin:0,slide:null,minPagesToShowPagination:2,paginationClass:"",paginationDotClass:"",paginationDotActiveClass:"",arrows:!1,arrowPrevClass:"",arrowNextClass:""};var O=t.ReactFreeCarouselTile=function(e){function t(e){i(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={parentWidth:null},n}return c(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){var t=this;e.parentWidth!==this.props.parentWidth&&setTimeout(function(){t.props.updateParent()},0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.parentWidth,r=t.height,o=t.width,a=t.tileMargin,i={position:"relative",height:T(r,null,a),width:T(o,n,a),marginTop:""+T(a),marginLeft:""+T(a)};return h.default.createElement("div",{className:this.props.className,ref:function(t){e.tile=t},style:i},this.props.children)}}]),t}(h.default.Component);O.propTypes={children:h.default.PropTypes.oneOfType([h.default.PropTypes.arrayOf(h.default.PropTypes.node),h.default.PropTypes.node]),updateParent:g.default.func.isRequired,parentWidth:g.default.number,className:g.default.string,tileMargin:g.default.oneOfType([g.default.string,g.default.number]),height:g.default.oneOfType([g.default.string,g.default.number]),width:g.default.oneOfType([g.default.string,g.default.number])},O.defaultProps={className:null,tileMargin:0,width:"100%",height:"100%"}},function(e,t,n){e.exports=n(14)()},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(0).default,o=n(0).ReactFreeCarouselTile;e.exports={ReactFreeCarouselTile:o},e.exports.default=r},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r,a,i,s,c){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,s,c],p=0;u=new Error(t.replace(/%s/g,function(){return l[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!=typeof t){var i=Object.getOwnPropertyNames(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!(r[i[s]]||o[i[s]]||n&&n[i[s]]))try{e[i[s]]=t[i[s]]}catch(e){}}return e}},function(e,t){function n(e){var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}e.exports=n;var r=Object.prototype.toString},function(e,t,n){"use strict";function r(e){return!0===o(e)&&"[object Object]"===Object.prototype.toString.call(e)}/*! | ||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object> | ||
* | ||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
* @license MIT | ||
* Copyright (c) 2014-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
var J=r(3),H=r(9),K=r(10);e.Buffer=i,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,r){return a(null,t,e,r)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,r){return s(null,t,e,r)},i.allocUnsafe=function(t){return f(null,t)},i.allocUnsafeSlow=function(t){return f(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,a=Math.min(r,n);o<a;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!K(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=i.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!i.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},i.byteLength=y,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)A(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)A(this,e,e+3),A(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)A(this,e,e+7),A(this,e+1,e+6),A(this,e+2,e+5),A(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,r,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,u=r-e,s=Math.min(a,u),f=this.slice(n,o),l=t.slice(e,r),c=0;c<s;++c)if(f[c]!==l[c]){a=f[c],u=l[c];break}return a<u?-1:u<a?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return w(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return w(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return C(this,t,e,r);case"latin1":case"binary":return P(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=i.prototype;else{var o=e-t;n=new i(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},i.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},i.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},i.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||j(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),H.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),H.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),H.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),H.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){L(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},i.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){L(this,t,e,r,Math.pow(2,8*r)-1,0)}var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Y(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Y(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Y(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Y(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,a=n-r;if(this===t&&r<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+r];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+a),e);return a},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var u=i.isBuffer(t)?t:q(new i(t,n).toString()),s=u.length;for(a=0;a<r-e;++a)this[a+e]=u[a%s]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,r(1))},function(t,e,r){e=t.exports=r(6)(!0),e.push([t.i,'.src-defaultStyles---defaultTile {\n position: relative;\n}\n\n.src-defaultStyles---defaultPaginationClass[role="navigation"] {\n position: absolute;\n text-align: center;\n left: 10px;\n right: 10px;\n bottom: 0px;\n}\n\n.src-defaultStyles---defaultPaginationClass[role="navigation"] button {\n display: inline-block;\n border: 0;\n border-radius: 50%;\n width: 12px;\n height: 12px;\n background: white;\n margin: 0 2px;\n text-indent: 1000px;\n overflow: hidden;\n cursor: pointer;\n outline: none;\n transition: all .3s;\n}\n\n.src-defaultStyles---defaultPaginationClass[role="navigation"] button[data-active=\'true\'] {\n background: orange;\n}\n\n.src-defaultStyles---defaultArrowPrevClass,\n.src-defaultStyles---defaultArrowNextClass {\n position: absolute;\n font-size: 16px;\n border: 0;\n outline: none;\n top: 45%;\n cursor: pointer;\n transition: all .3s;\n padding: 0;\n color: orange;\n font-family: Arial;\n background: none;\n}\n\n\n.src-defaultStyles---defaultArrowPrevClass:disabled,\n.src-defaultStyles---defaultArrowNextClass:disabled {\n opacity: .2;\n cursor: default;\n}\n\n.src-defaultStyles---defaultArrowPrevClass {\n left: 5px;\n}\n.src-defaultStyles---defaultArrowPrevClass::before {\n content: "\\25C0";\n}\n\n.src-defaultStyles---defaultArrowNextClass {\n right: 5px;\n}\n.src-defaultStyles---defaultArrowNextClass::before {\n content: "\\25B6";\n}\n',"",{version:3,sources:["C:/_PET/react-free-carousel/src/defaultStyles.css"],names:[],mappings:"AAAA;EACE,mBAAmB;CACpB;;AAED;EACE,mBAAmB;EACnB,mBAAmB;EACnB,WAAW;EACX,YAAY;EACZ,YAAY;CACb;;AAED;EACE,sBAAsB;EACtB,UAAU;EACV,mBAAmB;EACnB,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,cAAc;EACd,oBAAoB;EACpB,iBAAiB;EACjB,gBAAgB;EAChB,cAAc;EACd,oBAAoB;CACrB;;AAED;EACE,mBAAmB;CACpB;;AAED;;EAEE,mBAAmB;EACnB,gBAAgB;EAChB,UAAU;EACV,cAAc;EACd,SAAS;EACT,gBAAgB;EAChB,oBAAoB;EACpB,WAAW;EACX,cAAc;EACd,mBAAmB;EACnB,iBAAiB;CAClB;;;AAGD;;EAEE,YAAY;EACZ,gBAAgB;CACjB;;AAED;EACE,UAAU;CACX;AACD;EACE,iBAAiB;CAClB;;AAED;EACE,WAAW;CACZ;AACD;EACE,iBAAiB;CAClB",file:"defaultStyles.css",sourcesContent:['.defaultTile {\n position: relative;\n}\n\n.defaultPaginationClass[role="navigation"] {\n position: absolute;\n text-align: center;\n left: 10px;\n right: 10px;\n bottom: 0px;\n}\n\n.defaultPaginationClass[role="navigation"] button {\n display: inline-block;\n border: 0;\n border-radius: 50%;\n width: 12px;\n height: 12px;\n background: white;\n margin: 0 2px;\n text-indent: 1000px;\n overflow: hidden;\n cursor: pointer;\n outline: none;\n transition: all .3s;\n}\n\n.defaultPaginationClass[role="navigation"] button[data-active=\'true\'] {\n background: orange;\n}\n\n.defaultArrowPrevClass,\n.defaultArrowNextClass {\n position: absolute;\n font-size: 16px;\n border: 0;\n outline: none;\n top: 45%;\n cursor: pointer;\n transition: all .3s;\n padding: 0;\n color: orange;\n font-family: Arial;\n background: none;\n}\n\n\n.defaultArrowPrevClass:disabled,\n.defaultArrowNextClass:disabled {\n opacity: .2;\n cursor: default;\n}\n\n.defaultArrowPrevClass {\n left: 5px;\n}\n.defaultArrowPrevClass::before {\n content: "\\25C0";\n}\n\n.defaultArrowNextClass {\n right: 5px;\n}\n.defaultArrowNextClass::before {\n content: "\\25b6";\n}\n'],sourceRoot:""}]),e.locals={defaultTile:"src-defaultStyles---defaultTile",defaultPaginationClass:"src-defaultStyles---defaultPaginationClass",defaultArrowPrevClass:"src-defaultStyles---defaultArrowPrevClass",defaultArrowNextClass:"src-defaultStyles---defaultArrowNextClass"}},function(t,e,r){(function(e){function r(t,e){var r=t[1]||"",o=t[3];if(!o)return r;if(e){var i=n(o);return[r].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[r].join("\n")}function n(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new e(JSON.stringify(t)).toString("base64")+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}}).call(e,r(4).Buffer)},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,i,a,u,s){if(o(e),!t){var f;if(void 0===e)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,a,u,s],c=0;f=new Error(e.replace(/%s/g,function(){return l[c++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var o=function(t){};t.exports=n},function(t,e){e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,f=s>>1,l=-7,c=r?o-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+t[e+c],c+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+c],c+=h,l-=8);if(0===i)i=1-f;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=f}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,s,f=8*i-o-1,l=(1<<f)-1,c=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+c>=1?h/s:h*Math.pow(2,1-c),e*s>=2&&(a++,s/=2),a+c>=l?(u=0,a=l):a+c>=1?(u=(e*s-1)*Math.pow(2,o),a+=c):(u=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&u,p+=d,u/=256,o-=8);for(a=a<<o|u,f+=o;f>0;t[r+p]=255&a,p+=d,a/=256,f-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){(function(e){function r(t){return t.split("")}function n(t){return P.test(t)}function o(t){return n(t)?i(t):r(t)}function i(t){return t.match(C)||[]}function a(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}function u(t){if("string"==typeof t)return t;if(l(t))return U?U.call(t):"";var e=t+"";return"0"==e&&1/t==-p?"-0":e}function s(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:a(t,e,r)}function f(t){return!!t&&"object"==typeof t}function l(t){return"symbol"==typeof t||f(t)&&_.call(t)==d}function c(t){return null==t?"":u(t)}function h(t){return I(c(t).toLowerCase())}var p=1/0,d="[object Symbol]",g="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",y="\\ud83c[\\udffb-\\udfff]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",w="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",b="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",v,A].join("|")+")[\\ufe0e\\ufe0f]?"+w+")*",m="[\\ufe0e\\ufe0f]?"+w+b,E="(?:"+["[^\\ud800-\\udfff]"+g+"?",g,v,A,"[\\ud800-\\udfff]"].join("|")+")",C=RegExp(y+"(?="+y+")|"+E+m,"g"),P=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),T="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,B=T||R||Function("return this")(),x=Object.prototype,_=x.toString,S=B.Symbol,O=S?S.prototype:void 0,U=O?O.toString:void 0,I=function(t){return function(e){e=c(e);var r=n(e)?o(e):void 0,i=r?r[0]:e.charAt(0),a=r?s(r,1).join(""):e.slice(1);return i[t]()+a}}("toUpperCase");t.exports=h}).call(e,r(1))},function(t,e,r){(function(e){function r(t,e,r){function o(e){var r=g,n=y;return g=y=void 0,P=e,A=t.apply(n,r)}function i(t){return P=t,w=setTimeout(l,e),T?o(t):A}function s(t){var r=t-C,n=t-P,o=e-r;return R?m(o,v-n):o}function f(t){var r=t-C,n=t-P;return void 0===C||r>=e||r<0||R&&n>=v}function l(){var t=E();if(f(t))return c(t);w=setTimeout(l,s(t))}function c(t){return w=void 0,B&&g?o(t):(g=y=void 0,A)}function h(){void 0!==w&&clearTimeout(w),P=0,g=C=y=w=void 0}function p(){return void 0===w?A:c(E())}function d(){var t=E(),r=f(t);if(g=arguments,y=this,C=t,r){if(void 0===w)return i(C);if(R)return w=setTimeout(l,e),o(C)}return void 0===w&&(w=setTimeout(l,e)),A}var g,y,v,A,w,C,P=0,T=!1,R=!1,B=!0;if("function"!=typeof t)throw new TypeError(u);return e=a(e)||0,n(r)&&(T=!!r.leading,R="maxWait"in r,v=R?b(a(r.maxWait)||0,e):v,B="trailing"in r?!!r.trailing:B),d.cancel=h,d.flush=p,d}function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function o(t){return!!t&&"object"==typeof t}function i(t){return"symbol"==typeof t||o(t)&&w.call(t)==f}function a(t){if("number"==typeof t)return t;if(i(t))return s;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var r=h.test(t);return r||p.test(t)?d(t.slice(2),r?2:8):c.test(t)?s:+t}var u="Expected a function",s=NaN,f="[object Symbol]",l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt,g="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,v=g||y||Function("return this")(),A=Object.prototype,w=A.toString,b=Math.max,m=Math.min,E=function(){return v.Date.now()};t.exports=r}).call(e,r(1))},function(t,e,r){"use strict";var n=r(7),o=r(8),i=r(15);t.exports=function(){function t(t,e,r,n,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){t.exports=r(13)()},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,r){function n(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(l(n.parts[i],e))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(l(n.parts[i],e));d[n.id]={id:n.id,refs:1,parts:a}}}}function o(t){for(var e=[],r={},n=0;n<t.length;n++){var o=t[n],i=o[0],a=o[1],u=o[2],s=o[3],f={css:a,media:u,sourceMap:s};r[i]?r[i].parts.push(f):e.push(r[i]={id:i,parts:[f]})}return e}function i(t,e){var r=y(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=w[w.length-1];if("top"===t.insertAt)n?n.nextSibling?r.insertBefore(e,n.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),w.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function u(t){var e=document.createElement("style");return t.attrs.type="text/css",f(e,t.attrs),i(t,e),e}function s(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",f(e,t.attrs),i(t,e),e}function f(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function l(t,e){var r,n,o;if(e.singleton){var i=A++;r=v||(v=u(e)),n=c.bind(null,r,i,!1),o=c.bind(null,r,i,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=s(e),n=p.bind(null,r,e),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=u(e),n=h.bind(null,r),o=function(){a(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}function c(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function h(t,e){var r=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}function p(t,e,r){var n=r.css,o=r.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(n=b(n)),o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([n],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var d={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),y=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t.call(this,r)),e[r]}}(function(t){return document.querySelector(t)}),v=null,A=0,w=[],b=r(17);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=g()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var r=o(t);return n(r,e),function(t){for(var i=[],a=0;a<r.length;a++){var u=r[a],s=d[u.id];s.refs--,i.push(s)}if(t){n(o(t),e)}for(var a=0;a<i.length;a++){var s=i[a];if(0===s.refs){for(var f=0;f<s.parts.length;f++)s.parts[f]();delete d[s.id]}}}};var m=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var r=e.protocol+"//"+e.host,n=r+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o))return t;var i;return i=0===o.indexOf("//")?o:0===o.indexOf("/")?r+o:n+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})}},function(t,e,r){var n=r(5);"string"==typeof n&&(n=[[t.i,n,""]]);r(16)(n,{});n.locals&&(t.exports=n.locals)},function(e,r){e.exports=t}])}); | ||
var o=n(10);e.exports=function(e){var t,n;return!1!==r(e)&&("function"==typeof(t=e.constructor)&&(n=t.prototype,!1!==r(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";/*! | ||
* isobject <https://github.com/jonschlinkert/isobject> | ||
* | ||
* Copyright (c) 2014-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){(function(t){function n(e){return e.split("")}function r(e){return T.test(e)}function o(e){return r(e)?a(e):n(e)}function a(e){return e.match(x)||[]}function i(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}function s(e){if("string"==typeof e)return e;if(l(e))return I?I.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function c(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}function u(e){return!!e&&"object"==typeof e}function l(e){return"symbol"==typeof e||u(e)&&S.call(e)==h}function p(e){return null==e?"":s(e)}function f(e){return R(p(e).toLowerCase())}var d=1/0,h="[object Symbol]",m="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",g="\\ud83c[\\udffb-\\udfff]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",C="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",y,b].join("|")+")[\\ufe0e\\ufe0f]?"+v+")*",w="[\\ufe0e\\ufe0f]?"+v+C,k="(?:"+["[^\\ud800-\\udfff]"+m+"?",m,y,b,"[\\ud800-\\udfff]"].join("|")+")",x=RegExp(g+"(?="+g+")|"+k+w,"g"),T=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),A="object"==typeof t&&t&&t.Object===Object&&t,O="object"==typeof self&&self&&self.Object===Object&&self,j=A||O||Function("return this")(),P=Object.prototype,S=P.toString,E=j.Symbol,M=E?E.prototype:void 0,I=M?M.toString:void 0,R=function(e){return function(t){t=p(t);var n=r(t)?o(t):void 0,a=n?n[0]:t.charAt(0),i=n?c(n,1).join(""):t.slice(1);return a[e]()+i}}("toUpperCase");e.exports=f}).call(t,n(2))},function(e,t,n){(function(t){function n(e,t,n){function o(t){var n=m,r=g;return m=g=void 0,T=t,b=e.apply(r,n)}function a(e){return T=e,v=setTimeout(l,t),A?o(e):b}function c(e){var n=e-x,r=e-T,o=t-n;return O?w(o,y-r):o}function u(e){var n=e-x,r=e-T;return void 0===x||n>=t||n<0||O&&r>=y}function l(){var e=k();if(u(e))return p(e);v=setTimeout(l,c(e))}function p(e){return v=void 0,j&&m?o(e):(m=g=void 0,b)}function f(){void 0!==v&&clearTimeout(v),T=0,m=x=g=v=void 0}function d(){return void 0===v?b:p(k())}function h(){var e=k(),n=u(e);if(m=arguments,g=this,x=e,n){if(void 0===v)return a(x);if(O)return v=setTimeout(l,t),o(x)}return void 0===v&&(v=setTimeout(l,t)),b}var m,g,y,b,v,x,T=0,A=!1,O=!1,j=!0;if("function"!=typeof e)throw new TypeError(s);return t=i(t)||0,r(n)&&(A=!!n.leading,O="maxWait"in n,y=O?C(i(n.maxWait)||0,t):y,j="trailing"in n?!!n.trailing:j),h.cancel=f,h.flush=d,h}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function a(e){return"symbol"==typeof e||o(e)&&v.call(e)==u}function i(e){if("number"==typeof e)return e;if(a(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=f.test(e);return n||d.test(e)?h(e.slice(2),n?2:8):p.test(e)?c:+e}var s="Expected a function",c=NaN,u="[object Symbol]",l=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt,m="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype,v=b.toString,C=Math.max,w=Math.min,k=function(){return y.Date.now()};e.exports=n}).call(t,n(2))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){m&&d&&(m=!1,d.length?h=d.concat(h):g=-1,h.length&&s())}function s(){if(!m){var e=o(i);m=!0;for(var t=h.length;t;){for(d=h,h=[];++g<t;)d&&d[g].run();g=-1,t=h.length}d=null,m=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var l,p,f=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],m=!1,g=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||m||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(5),o=n(6),a=n(15);e.exports=function(){function e(e,t,n,r,i,s){s!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";(function(e){function r(e){return e.replace(A,"-$1").toLowerCase()}function o(e){return j(e).replace(P,"-ms-")}function a(e){return"string"==typeof e}function i(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function s(e){return e.displayName||e.name||"Component"}function c(e,t){for(var n=1540483477,r=t^e.length,o=e.length,a=0;o>=4;){var i=u(e,a);i=p(i,n),i^=i>>>24,i=p(i,n),r=p(r,n),r^=i,a+=4,o-=4}switch(o){case 3:r^=l(e,a),r^=e.charCodeAt(a+2)<<16,r=p(r,n);break;case 2:r^=l(e,a),r=p(r,n);break;case 1:r^=e.charCodeAt(a),r=p(r,n)}return r^=r>>>13,r=p(r,n),(r^=r>>>15)>>>0}function u(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function l(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function p(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}Object.defineProperty(t,"__esModule",{value:!0});var f=n(9),d=n.n(f),h=n(17),m=n.n(h),g=n(3),y=n.n(g),b=n(1),v=n.n(b),C=n(8),w=n.n(C),k=n(7),x=n.n(k);n.d(t,"css",function(){return _}),n.d(t,"keyframes",function(){return Oe}),n.d(t,"injectGlobal",function(){return je}),n.d(t,"ThemeProvider",function(){return me}),n.d(t,"withTheme",function(){return ke}),n.d(t,"ServerStyleSheet",function(){return ae}),n.d(t,"StyleSheetManager",function(){return te});var T,A=/([A-Z])/g,O=r,j=O,P=/^ms-/,S=o,E=function e(t,n){var r=Object.keys(t).map(function(n){return d()(t[n])?e(t[n],n):S(n)+": "+t[n]+";"}).join(" ");return n?n+" {\n "+r+"\n}":r},M=function e(t,n){return t.reduce(function(t,r){return void 0===r||null===r||!1===r||""===r?t:Array.isArray(r)?[].concat(t,e(r,n)):r.hasOwnProperty("styledComponentId")?[].concat(t,["."+r.styledComponentId]):"function"==typeof r?n?t.concat.apply(t,e([r(n)],n)):t.concat(r):t.concat(d()(r)?E(r):r.toString())},[])},I=new m.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!0}),R=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,""),o=t&&n?n+" "+t+" { "+r+" }":r;return I(n||!t?"":t,o)},N="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),L=N.length,D=function(e){var t="",n=void 0;for(n=e;n>L;n=Math.floor(n/N.length))t=N[n%L]+t;return N[n%L]+t},F=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},_=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return M(F(e,n))},W=/^[^\S\n]*?\/\* sc-component-id:\s+(\S+)\s+\*\//gm,z=function(e){var t=""+(e||""),n=[];return t.replace(W,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var o=e.componentId,a=e.matchIndex,i=n[r+1];return{componentId:o,cssFromDOM:i?t.slice(a,i.matchIndex):t.slice(a)}})},U=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},B=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},V=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},K=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";U(this,e),this.el=t,this.isLocal=n,this.ready=!1;var o=z(r);this.size=o.length,this.components=o.reduce(function(e,t){return e[t.componentId]=t,e},{})}return e.prototype.isFull=function(){return this.size>=40},e.prototype.addComponent=function(e){if(this.ready||this.replaceElement(),this.components[e])throw new Error("Trying to add Component '"+e+"' twice!");var t={componentId:e,textNode:document.createTextNode("")};this.el.appendChild(t.textNode),this.size+=1,this.components[e]=t},e.prototype.inject=function(e,t,n){this.ready||this.replaceElement();var r=this.components[e];if(!r)throw new Error("Must add a new component before you can inject css into it");if(""===r.textNode.data&&r.textNode.appendData("\n/* sc-component-id: "+e+" */\n"),r.textNode.appendData(t),n){var o=this.el.getAttribute(G);this.el.setAttribute(G,o?o+" "+n:n)}},e.prototype.toHTML=function(){return this.el.outerHTML},e.prototype.toReactElement=function(){throw new Error("BrowserTag doesn't implement toReactElement!")},e.prototype.clone=function(){throw new Error("BrowserTag cannot be cloned!")},e.prototype.replaceElement=function(){var e=this;if(this.ready=!0,0!==this.size){var t=this.el.cloneNode();if(t.appendChild(document.createTextNode("\n")),Object.keys(this.components).forEach(function(n){var r=e.components[n];r.textNode=document.createTextNode(r.cssFromDOM),t.appendChild(r.textNode)}),!this.el.parentNode)throw new Error("Trying to replace an element that wasn't mounted!");this.el.parentNode.replaceChild(t,this.el),this.el=t}},e}(),X={create:function(){for(var e=[],t={},n=document.querySelectorAll("["+G+"]"),r=n.length,o=0;o<r;o+=1){var a=n[o];e.push(new K(a,"true"===a.getAttribute(Y),a.innerHTML));var i=a.getAttribute(G);i&&i.trim().split(/\s+/).forEach(function(e){t[e]=!0})}return new ee(function(e){var t=document.createElement("style");if(t.type="text/css",t.setAttribute(G,""),t.setAttribute(Y,e?"true":"false"),!document.head)throw new Error("Missing document <head>");return document.head.appendChild(t),new K(t,e)},e,t)}},G="data-styled-components",Y="data-styled-components-is-local",Z="__styled-components-stylesheet__",J=null,Q=[],ee=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};U(this,e),this.hashes={},this.deferredInjections={},this.tagConstructor=t,this.tags=n,this.names=r,this.constructComponentTagMap()}return e.prototype.constructComponentTagMap=function(){var e=this;this.componentTags={},this.tags.forEach(function(t){Object.keys(t.components).forEach(function(n){e.componentTags[n]=t})})},e.prototype.getName=function(e){return this.hashes[e.toString()]},e.prototype.alreadyInjected=function(e,t){return!!this.names[t]&&(this.hashes[e.toString()]=t,!0)},e.prototype.hasInjectedComponent=function(e){return!!this.componentTags[e]},e.prototype.deferredInject=function(e,t,n){this===J&&Q.forEach(function(r){r.deferredInject(e,t,n)}),this.getOrCreateTag(e,t),this.deferredInjections[e]=n},e.prototype.inject=function(e,t,n,r,o){this===J&&Q.forEach(function(r){r.inject(e,t,n)});var a=this.getOrCreateTag(e,t),i=this.deferredInjections[e];i&&(a.inject(e,i),delete this.deferredInjections[e]),a.inject(e,n,o),r&&o&&(this.hashes[r.toString()]=o)},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){return this.tags.map(function(e,t){return e.toReactElement("sc-"+t)})},e.prototype.getOrCreateTag=function(e,t){var n=this.componentTags[e];if(n)return n;var r=this.tags[this.tags.length-1],o=!r||r.isFull()||r.isLocal!==t?this.createNewTag(t):r;return this.componentTags[e]=o,o.addComponent(e),o},e.prototype.createNewTag=function(e){var t=this.tagConstructor(e);return this.tags.push(t),t},e.reset=function(t){J=e.create(t)},e.create=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof document)?ae:X).create()},e.clone=function(t){var n=new e(t.tagConstructor,t.tags.map(function(e){return e.clone()}),H({},t.names));return n.hashes=H({},t.hashes),n.deferredInjections=H({},t.deferredInjections),Q.push(n),n},$(e,null,[{key:"instance",get:function(){return J||(J=e.create())}}]),e}(),te=function(e){function t(){return U(this,t),V(this,e.apply(this,arguments))}return q(t,e),t.prototype.getChildContext=function(){var e;return e={},e[Z]=this.props.sheet,e},t.prototype.render=function(){return y.a.Children.only(this.props.children)},t}(g.Component);te.childContextTypes=(T={},T[Z]=v.a.instanceOf(ee).isRequired,T),te.propTypes={sheet:v.a.instanceOf(ee).isRequired};var ne,re,oe=function(){function e(t){U(this,e),this.isLocal=t,this.components={},this.size=0,this.names=[]}return e.prototype.isFull=function(){return!1},e.prototype.addComponent=function(e){if(this.components[e])throw new Error("Trying to add Component '"+e+"' twice!");this.components[e]={componentId:e,css:""},this.size+=1},e.prototype.inject=function(e,t,n){var r=this.components[e];if(!r)throw new Error("Must add a new component before you can inject css into it");""===r.css&&(r.css="/* sc-component-id: "+e+" */\n"),r.css+=t.replace(/\n*$/,"\n"),n&&this.names.push(n)},e.prototype.toHTML=function(){var e=this;return'<style type="text/css" '+G+'="'+this.names.join(" ")+'" '+Y+'="'+(this.isLocal?"true":"false")+'">\n'+Object.keys(this.components).map(function(t){return e.components[t].css}).join("")+"\n</style>"},e.prototype.toReactElement=function(e){var t,n=this,r=(t={},t[G]=this.names.join(" "),t[Y]=this.isLocal.toString(),t),o=Object.keys(this.components).map(function(e){return n.components[e].css}).join("");return y.a.createElement("style",H({key:e,type:"text/css"},r,{dangerouslySetInnerHTML:{__html:o}}))},e.prototype.clone=function(){var t=this,n=new e(this.isLocal);return n.names=[].concat(this.names),n.size=this.size,n.components=Object.keys(this.components).reduce(function(e,n){return e[n]=H({},t.components[n]),e},{}),n},e}(),ae=function(){function e(){U(this,e),this.instance=ee.clone(ee.instance)}return e.prototype.collectStyles=function(e){if(this.closed)throw new Error("Can't collect styles once you've called getStyleTags!");return y.a.createElement(te,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.closed||(Q.splice(Q.indexOf(this.instance),1),this.closed=!0),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.closed||(Q.splice(Q.indexOf(this.instance),1),this.closed=!0),this.instance.toReactElements()},e.create=function(){return new ee(function(e){return new oe(e)})},e}(),ie=function(e){var t={},n=!1;return function(r){n||(t[r]=!0,Object.keys(t).length>=200&&(console.warn("Over 200 classes were generated for component "+e+". Consider using style property for frequently changed styles.\nExample:\n const StyledComp = styled.div`width: 100%;`\n <StyledComp style={{ background: background }} />"),n=!0,t={}))}},se={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0,autoFocus:!0,defaultValue:!0,valueLink:!0,defaultChecked:!0,checkedLink:!0,innerHTML:!0,suppressContentEditableWarning:!0,onFocusIn:!0,onFocusOut:!0,className:!0,onCopy:!0,onCut:!0,onPaste:!0,onCompositionEnd:!0,onCompositionStart:!0,onCompositionUpdate:!0,onKeyDown:!0,onKeyPress:!0,onKeyUp:!0,onFocus:!0,onBlur:!0,onChange:!0,onInput:!0,onSubmit:!0,onClick:!0,onContextMenu:!0,onDoubleClick:!0,onDrag:!0,onDragEnd:!0,onDragEnter:!0,onDragExit:!0,onDragLeave:!0,onDragOver:!0,onDragStart:!0,onDrop:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOut:!0,onMouseOver:!0,onMouseUp:!0,onSelect:!0,onTouchCancel:!0,onTouchEnd:!0,onTouchMove:!0,onTouchStart:!0,onScroll:!0,onWheel:!0,onAbort:!0,onCanPlay:!0,onCanPlayThrough:!0,onDurationChange:!0,onEmptied:!0,onEncrypted:!0,onEnded:!0,onError:!0,onLoadedData:!0,onLoadedMetadata:!0,onLoadStart:!0,onPause:!0,onPlay:!0,onPlaying:!0,onProgress:!0,onRateChange:!0,onSeeked:!0,onSeeking:!0,onStalled:!0,onSuspend:!0,onTimeUpdate:!0,onVolumeChange:!0,onWaiting:!0,onLoad:!0,onAnimationStart:!0,onAnimationEnd:!0,onAnimationIteration:!0,onTransitionEnd:!0,onCopyCapture:!0,onCutCapture:!0,onPasteCapture:!0,onCompositionEndCapture:!0,onCompositionStartCapture:!0,onCompositionUpdateCapture:!0,onKeyDownCapture:!0,onKeyPressCapture:!0,onKeyUpCapture:!0,onFocusCapture:!0,onBlurCapture:!0,onChangeCapture:!0,onInputCapture:!0,onSubmitCapture:!0,onClickCapture:!0,onContextMenuCapture:!0,onDoubleClickCapture:!0,onDragCapture:!0,onDragEndCapture:!0,onDragEnterCapture:!0,onDragExitCapture:!0,onDragLeaveCapture:!0,onDragOverCapture:!0,onDragStartCapture:!0,onDropCapture:!0,onMouseDownCapture:!0,onMouseEnterCapture:!0,onMouseLeaveCapture:!0,onMouseMoveCapture:!0,onMouseOutCapture:!0,onMouseOverCapture:!0,onMouseUpCapture:!0,onSelectCapture:!0,onTouchCancelCapture:!0,onTouchEndCapture:!0,onTouchMoveCapture:!0,onTouchStartCapture:!0,onScrollCapture:!0,onWheelCapture:!0,onAbortCapture:!0,onCanPlayCapture:!0,onCanPlayThroughCapture:!0,onDurationChangeCapture:!0,onEmptiedCapture:!0,onEncryptedCapture:!0,onEndedCapture:!0,onErrorCapture:!0,onLoadedDataCapture:!0,onLoadedMetadataCapture:!0,onLoadStartCapture:!0,onPauseCapture:!0,onPlayCapture:!0,onPlayingCapture:!0,onProgressCapture:!0,onRateChangeCapture:!0,onSeekedCapture:!0,onSeekingCapture:!0,onStalledCapture:!0,onSuspendCapture:!0,onTimeUpdateCapture:!0,onVolumeChangeCapture:!0,onWaitingCapture:!0,onLoadCapture:!0,onAnimationStartCapture:!0,onAnimationEndCapture:!0,onAnimationIterationCapture:!0,onTransitionEndCapture:!0},ce={accept:!0,acceptCharset:!0,accessKey:!0,action:!0,allowFullScreen:!0,allowTransparency:!0,alt:!0,as:!0,async:!0,autoComplete:!0,autoPlay:!0,capture:!0,cellPadding:!0,cellSpacing:!0,charSet:!0,challenge:!0,checked:!0,cite:!0,classID:!0,className:!0,cols:!0,colSpan:!0,content:!0,contentEditable:!0,contextMenu:!0,controls:!0,coords:!0,crossOrigin:!0,data:!0,dateTime:!0,default:!0,defer:!0,dir:!0,disabled:!0,download:!0,draggable:!0,encType:!0,form:!0,formAction:!0,formEncType:!0,formMethod:!0,formNoValidate:!0,formTarget:!0,frameBorder:!0,headers:!0,height:!0,hidden:!0,high:!0,href:!0,hrefLang:!0,htmlFor:!0,httpEquiv:!0,icon:!0,id:!0,inputMode:!0,integrity:!0,is:!0,keyParams:!0,keyType:!0,kind:!0,label:!0,lang:!0,list:!0,loop:!0,low:!0,manifest:!0,marginHeight:!0,marginWidth:!0,max:!0,maxLength:!0,media:!0,mediaGroup:!0,method:!0,min:!0,minLength:!0,multiple:!0,muted:!0,name:!0,nonce:!0,noValidate:!0,open:!0,optimum:!0,pattern:!0,placeholder:!0,playsInline:!0,poster:!0,preload:!0,profile:!0,radioGroup:!0,readOnly:!0,referrerPolicy:!0,rel:!0,required:!0,reversed:!0,role:!0,rows:!0,rowSpan:!0,sandbox:!0,scope:!0,scoped:!0,scrolling:!0,seamless:!0,selected:!0,shape:!0,size:!0,sizes:!0,span:!0,spellCheck:!0,src:!0,srcDoc:!0,srcLang:!0,srcSet:!0,start:!0,step:!0,style:!0,summary:!0,tabIndex:!0,target:!0,title:!0,type:!0,useMap:!0,value:!0,width:!0,wmode:!0,wrap:!0,about:!0,datatype:!0,inlist:!0,prefix:!0,property:!0,resource:!0,typeof:!0,vocab:!0,autoCapitalize:!0,autoCorrect:!0,autoSave:!0,color:!0,itemProp:!0,itemScope:!0,itemType:!0,itemID:!0,itemRef:!0,results:!0,security:!0,unselectable:0},ue={accentHeight:!0,accumulate:!0,additive:!0,alignmentBaseline:!0,allowReorder:!0,alphabetic:!0,amplitude:!0,arabicForm:!0,ascent:!0,attributeName:!0,attributeType:!0,autoReverse:!0,azimuth:!0,baseFrequency:!0,baseProfile:!0,baselineShift:!0,bbox:!0,begin:!0,bias:!0,by:!0,calcMode:!0,capHeight:!0,clip:!0,clipPath:!0,clipRule:!0,clipPathUnits:!0,colorInterpolation:!0,colorInterpolationFilters:!0,colorProfile:!0,colorRendering:!0,contentScriptType:!0,contentStyleType:!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,diffuseConstant:!0,direction:!0,display:!0,divisor:!0,dominantBaseline:!0,dur:!0,dx:!0,dy:!0,edgeMode:!0,elevation:!0,enableBackground:!0,end:!0,exponent:!0,externalResourcesRequired:!0,fill:!0,fillOpacity:!0,fillRule:!0,filter:!0,filterRes:!0,filterUnits:!0,floodColor:!0,floodOpacity:!0,focusable:!0,fontFamily:!0,fontSize:!0,fontSizeAdjust:!0,fontStretch:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,format:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,glyphName:!0,glyphOrientationHorizontal:!0,glyphOrientationVertical:!0,glyphRef:!0,gradientTransform:!0,gradientUnits:!0,hanging:!0,horizAdvX:!0,horizOriginX:!0,ideographic:!0,imageRendering:!0,in:!0,in2:!0,intercept:!0,k:!0,k1:!0,k2:!0,k3:!0,k4:!0,kernelMatrix:!0,kernelUnitLength:!0,kerning:!0,keyPoints:!0,keySplines:!0,keyTimes:!0,lengthAdjust:!0,letterSpacing:!0,lightingColor:!0,limitingConeAngle:!0,local:!0,markerEnd:!0,markerMid:!0,markerStart:!0,markerHeight:!0,markerUnits:!0,markerWidth:!0,mask:!0,maskContentUnits:!0,maskUnits:!0,mathematical:!0,mode:!0,numOctaves:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,overlinePosition:!0,overlineThickness:!0,paintOrder:!0,panose1:!0,pathLength:!0,patternContentUnits:!0,patternTransform:!0,patternUnits:!0,pointerEvents:!0,points:!0,pointsAtX:!0,pointsAtY:!0,pointsAtZ:!0,preserveAlpha:!0,preserveAspectRatio:!0,primitiveUnits:!0,r:!0,radius:!0,refX:!0,refY:!0,renderingIntent:!0,repeatCount:!0,repeatDur:!0,requiredExtensions:!0,requiredFeatures:!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,shapeRendering:!0,slope:!0,spacing:!0,specularConstant:!0,specularExponent:!0,speed:!0,spreadMethod:!0,startOffset:!0,stdDeviation:!0,stemh:!0,stemv:!0,stitchTiles:!0,stopColor:!0,stopOpacity:!0,strikethroughPosition:!0,strikethroughThickness:!0,string:!0,stroke:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,surfaceScale:!0,systemLanguage:!0,tableValues:!0,targetX:!0,targetY:!0,textAnchor:!0,textDecoration:!0,textRendering:!0,textLength:!0,to:!0,transform:!0,u1:!0,u2:!0,underlinePosition:!0,underlineThickness:!0,unicode:!0,unicodeBidi:!0,unicodeRange:!0,unitsPerEm:!0,vAlphabetic:!0,vHanging:!0,vIdeographic:!0,vMathematical:!0,values:!0,vectorEffect:!0,version:!0,vertAdvY:!0,vertOriginX:!0,vertOriginY:!0,viewBox:!0,viewTarget:!0,visibility:!0,widths:!0,wordSpacing:!0,writingMode:!0,x:!0,xHeight:!0,x1:!0,x2:!0,xChannelSelector:!0,xlinkActuate:!0,xlinkArcrole:!0,xlinkHref:!0,xlinkRole:!0,xlinkShow:!0,xlinkTitle:!0,xlinkType:!0,xmlBase:!0,xmlns:!0,xmlnsXlink:!0,xmlLang:!0,xmlSpace:!0,y:!0,y1:!0,y2:!0,yChannelSelector:!0,z:!0,zoomAndPan:!0},le=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),pe={}.hasOwnProperty,fe=function(e){return pe.call(ce,e)||pe.call(ue,e)||le(e.toLowerCase())||pe.call(se,e)},de=function(e){var t=[],n=e;return{publish:function(e){n=e,t.forEach(function(e){return e(n)})},subscribe:function(e){return t.push(e),e(n),function(){t=t.filter(function(t){return t!==e})}}}},he="__styled-components__",me=function(e){function t(){U(this,t);var n=V(this,e.call(this));return n.getTheme=n.getTheme.bind(n),n}return q(t,e),t.prototype.componentWillMount=function(){var e=this;if(this.context[he]){var t=this.context[he];this.unsubscribeToOuter=t(function(t){e.outerTheme=t})}this.broadcast=de(this.getTheme())},t.prototype.getChildContext=function(){var e;return H({},this.context,(e={},e[he]=this.broadcast.subscribe,e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))},t.prototype.componentWillUnmount=function(){this.context[he]&&this.unsubscribeToOuter()},t.prototype.getTheme=function(e){var t=e||this.props.theme;if(w()(t)){var n=t(this.outerTheme);if(!d()(n))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return n}if(!d()(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return H({},this.outerTheme,t)},t.prototype.render=function(){return this.props.children?y.a.Children.only(this.props.children):null},t}(g.Component);me.childContextTypes=(ne={},ne[he]=v.a.func.isRequired,ne),me.contextTypes=(re={},re[he]=v.a.func,re);var ge,ye=function(e){function t(){return U(this,t),V(this,e.apply(this,arguments))}return q(t,e),t}(g.Component);ye.contextTypes=(ge={},ge[he]=v.a.func,ge[Z]=v.a.instanceOf(ee),ge);var be=/[[\].#*$><+~=|^:(),"'`]/g,ve=/--+/g,Ce=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],we=function(e){return e.replace(/\s|\\n/g,"")},ke=function(e){var t,n=e.displayName||e.name||"Component",r=i(e),o=function(t){function n(){var e,r,o;U(this,n);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return e=r=V(this,t.call.apply(t,[this].concat(i))),r.state={},o=e,V(r,o)}return q(n,t),n.prototype.componentWillMount=function(){var e=this;if(!this.context[he])throw new Error("[withTheme] Please use ThemeProvider to be able to use withTheme");var t=this.context[he];this.unsubscribe=t(function(t){e.setState({theme:t})})},n.prototype.componentWillUnmount=function(){"function"==typeof this.unsubscribe&&this.unsubscribe()},n.prototype.render=function(){var t=this.props.innerRef,n=this.state.theme;return y.a.createElement(e,H({theme:n},this.props,{innerRef:r?t:void 0,ref:r?void 0:t}))},n}(y.a.Component);return o.displayName="WithTheme("+n+")",o.styledComponentId="withTheme",o.contextTypes=(t={},t[he]=v.a.func,t),x()(o,e)},xe=function(e,t,n){return function(){function r(e,t){if(U(this,r),this.rules=e,this.componentId=t,!ee.instance.hasInjectedComponent(this.componentId)){var n="."+t+" {}";ee.instance.deferredInject(t,!0,n)}}return r.prototype.generateAndInjectStyles=function(r,o){var a=t(this.rules,r),i=c(this.componentId+a.join("")),s=o.getName(i);if(s)return s;var u=e(i);if(o.alreadyInjected(i,u))return u;var l="\n"+n(a,"."+u);return o.inject(this.componentId,!0,l,i,u),u},r.generateName=function(t){return e(c(t))},r}()}(D,M,R),Te=function(e){return function t(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"!=typeof r&&"function"!=typeof r)throw new Error("Cannot create styled-component for component: "+r);var a=function(t){for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return n(r,o,e.apply(void 0,[t].concat(i)))};return a.withConfig=function(e){return t(n,r,H({},o,e))},a.attrs=function(e){return t(n,r,H({},o,{attrs:H({},o.attrs||{},e)}))},a}}(_),Ae=function(t,r){var o={},c=function(e){var n="string"!=typeof e?"sc":e.replace(be,"-").replace(ve,"-"),r=(o[n]||0)+1;return o[n]=r,n+"-"+t.generateName(n+r)},u=function(e){function t(){var n,r,o;U(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=V(this,e.call.apply(e,[this].concat(i))),r.attrs={},r.state={theme:null,generatedClassName:""},o=n,V(r,o)}return q(t,e),t.prototype.buildExecutionContext=function(e,t){var n=this.constructor.attrs,r=H({},t,{theme:e});return void 0===n?r:(this.attrs=Object.keys(n).reduce(function(e,t){var o=n[t];return e[t]="function"==typeof o?o(r):o,e},{}),H({},r,this.attrs))},t.prototype.generateAndInjectStyles=function(e,t){var n=this.constructor,r=n.componentStyle,o=n.warnTooManyClasses,a=this.buildExecutionContext(e,t),i=this.context[Z]||ee.instance,s=r.generateAndInjectStyles(a,i);return void 0!==o&&o(s),s},t.prototype.componentWillMount=function(){var e=this;if(this.context[he]){var t=this.context[he];this.unsubscribe=t(function(t){var n=e.constructor.defaultProps,r=n&&e.props.theme===n.theme,o=e.props.theme&&!r?e.props.theme:t,a=e.generateAndInjectStyles(o,e.props);e.setState({theme:o,generatedClassName:a})})}else{var n=this.props.theme||{},r=this.generateAndInjectStyles(n,this.props);this.setState({theme:n,generatedClassName:r})}},t.prototype.componentWillReceiveProps=function(e){var t=this;this.setState(function(n){var r=t.constructor.defaultProps,o=r&&e.theme===r.theme,a=e.theme&&!o?e.theme:n.theme;return{theme:a,generatedClassName:t.generateAndInjectStyles(a,e)}})},t.prototype.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe()},t.prototype.render=function(){var e=this,t=this.props.innerRef,r=this.state.generatedClassName,o=this.constructor,s=o.styledComponentId,c=o.target,u=a(c),l=[this.props.className,s,this.attrs.className,r].filter(Boolean).join(" "),p=H({},this.attrs,{className:l});i(c)?p.innerRef=t:p.ref=t;var f=Object.keys(this.props).reduce(function(t,n){return"innerRef"===n||"className"===n||u&&!fe(n)||(t[n]=e.props[n]),t},p);return n.i(g.createElement)(c,f)},t}(ye);return function n(o,i,l){var p,f=i.displayName,d=void 0===f?a(o)?"styled."+o:"Styled("+s(o)+")":f,h=i.componentId,m=void 0===h?c(i.displayName):h,g=i.ParentComponent,y=void 0===g?u:g,b=i.rules,C=i.attrs,w=i.displayName&&i.componentId?i.displayName+"-"+i.componentId:m,k=void 0;void 0!==e&&(k=ie(d));var x=new t(void 0===b?l:b.concat(l),w),T=function(e){function t(){return U(this,t),V(this,e.apply(this,arguments))}return q(t,e),t.withComponent=function(e){var r=(i.displayName,i.componentId,B(i,["displayName","componentId"])),o=H({},r,{ParentComponent:t});return n(e,o,l)},$(t,null,[{key:"extend",get:function(){var e=(i.displayName,i.componentId,i.rules),a=B(i,["displayName","componentId","rules"]),s=void 0===e?l:e.concat(l),c=H({},a,{rules:s,ParentComponent:t});return r(n,o,c)}}]),t}(y);return T.contextTypes=(p={},p[he]=v.a.func,p[Z]=v.a.instanceOf(ee),p),T.displayName=d,T.styledComponentId=w,T.attrs=C,T.componentStyle=x,T.warnTooManyClasses=k,T.target=o,T}}(xe,Te),Oe=function(e,t,n){return function(r){for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];var s=n.apply(void 0,[r].concat(a)),u=c(we(JSON.stringify(s))),l=ee.instance.getName(u);if(l)return l;var p=e(u);if(ee.instance.alreadyInjected(u,p))return p;var f=t(s,p,"@keyframes");return ee.instance.inject("sc-keyframes-"+p,!0,f,u,p),p}}(D,R,_),je=function(e,t){return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var i=t.apply(void 0,[n].concat(o)),s=c(JSON.stringify(i)),u="sc-global-"+s;ee.instance.hasInjectedComponent(u)||ee.instance.inject(u,!1,e(i))}}(R,_),Pe=function(e,t){var n=function(n){return t(e,n)};return Ce.forEach(function(e){n[e]=n(e)}),n}(Ae,Te);t.default=Pe}).call(t,n(13))},function(e,t,n){!function(t){e.exports=t(null)}(function e(t){"use strict";function n(e,t,o,i){for(var u,l,p=0,f=0,m=0,g=0,y=0,b=0,v=0,C=0,w=0,k=0,x=0,T=0,P=0,S=0,E=0,M=0,I=0,R=0,Z=0,xe=o.length,Te=xe-1,Pe="",Ee="",Me="",Ue="",$e="",He="";E<xe;){if(v=o.charCodeAt(E),f+g+m+p===0){if(E===Te&&(M>0&&(Ee=Ee.replace(h,"")),(Ee=Ee.trim()).length>0)){switch(v){case X:case V:case F:case B:case q:break;default:Ee+=o.charAt(E)}v=F}if(1===I)switch(v){case W:case Q:I=0;break;case V:case B:case q:case X:break;default:E--,v=F}switch(v){case W:for(Ee=Ee.trim(),y=Ee.charCodeAt(0),x=1,E++;E<xe;){switch(v=o.charCodeAt(E)){case W:x++;break;case _:x--}if(0===x)break;Me+=o.charAt(E++)}switch(y===se&&(y=(Ee=Ee.replace(d,"").trim()).charCodeAt(0)),y){case K:switch(M>0&&(Ee=Ee.replace(h,"")),b=Ee.charCodeAt(1)){case ye:case pe:case fe:u=t;break;default:u=je}if(Me=n(t,u,Me,b),Z=Me.length,Oe>0&&0===Z&&(Z=Ee.length),Se>0&&(u=r(je,Ee,R),l=c(Le,Me,u,t,ve,be,Z,b),Ee=u.join(""),void 0!==l&&0===(Z=(Me=l.trim()).length)&&(b=0,Me="")),Z>0)switch(b){case ye:case pe:case fe:Me=Ee+"{"+Me+"}";break;case le:Ee=Ee.replace(A,"$1 $2"+(Fe>0?_e:"")),Me=Ee+"{"+Me+"}",Me="@"+(ke>0?N+Me+"@"+Me:Me);break;default:Me=Ee+Me}else Me="";break;default:Me=n(t,r(t,Ee,R),Me,i)}$e+=Me,T=0,I=0,S=0,M=0,R=0,P=0,Ee="",Me="",v=o.charCodeAt(++E);break;case _:case F:if(Ee=(M>0?Ee.replace(h,""):Ee).trim(),Ee.length>1)switch(0===S&&((y=Ee.charCodeAt(0))===Y||y>96&&y<123)&&Ee.indexOf(" ")&&(Ee=Ee.replace(" ",":")),Se>0&&void 0!==(l=c(Re,Ee,t,e,ve,be,Ue.length,i))&&0===(Ee=l.trim()).length&&(Ee="\0\0"),y=Ee.charCodeAt(0),b=Ee.charCodeAt(1),y+b){case se:break;case me:case ge:He+=Ee+o.charAt(E);break;default:Ue+=S>0?a(Ee,y,b,Ee.charCodeAt(2)):Ee+";"}T=0,I=0,S=0,M=0,R=0,Ee="",v=o.charCodeAt(++E)}}switch(v){case B:case q:if(f+g+m+p+Ae===0)switch(k){case U:case te:case ne:case K:case ie:case oe:case J:case ae:case re:case Y:case ee:case Q:case F:case W:case _:break;default:S>0&&(I=1)}f===re&&(f=0),Se*De>0&&c(Ie,Ee,t,e,ve,be,Ue.length,i),be=1,ve++;break;case F:case _:if(f+g+m+p===0){be++;break}default:switch(be++,Pe=o.charAt(E),v){case V:case X:if(g+p===0)switch(C){case Q:case ee:case V:case X:Pe="";break;default:v!==X&&(Pe=" ")}break;case se:Pe="\\0";break;case ce:Pe="\\f";break;case ue:Pe="\\v";break;case G:g+f+p===0&&we>0&&(R=1,M=1,Pe="\f"+Pe);break;case 108:if(g+f+p+Ce===0&&S>0)switch(E-S){case 2:C===de&&o.charCodeAt(E-3)===ee&&(Ce=C);case 8:w===he&&(Ce=w)}break;case ee:g+f+p===0&&(S=E);break;case Q:f+m+g+p===0&&(M=1,Pe+="\r");break;case ne:case te:0===f&&(g=g===v?0:0===g?v:g,E===Te&&(Te++,xe++));break;case $:g+f+m===0&&p++;break;case H:g+f+m===0&&p--;break;case U:g+f+p===0&&(E===Te&&(Te++,xe++),m--);break;case z:if(g+f+p===0){if(0===T)switch(2*C+3*w){case 533:break;default:x=0,T=1}m++}break;case K:f+m+g+p+S+P===0&&(P=1);break;case J:case re:if(g+p+m>0)break;switch(f){case 0:switch(2*v+3*o.charCodeAt(E+1)){case 235:f=re;break;case 220:f=J}break;case J:v===re&&C===J&&(Pe="",f=0)}}if(0===f){if(we+g+p+P===0&&i!==le&&v!==F)switch(v){case Q:case ie:case oe:case ae:case U:case z:if(0===T){switch(C){case V:case X:case q:case B:Pe+="\0";break;default:Pe="\0"+Pe+(v===Q?"":"\0")}M=1}else switch(v){case z:T=++x;break;case U:0==(T=--x)&&(M=1,Pe+="\0")}break;case X:switch(C){case se:case W:case _:case F:case Q:case ce:case V:case X:case q:case B:break;default:0===T&&(M=1,Pe+="\0")}}Ee+=Pe,v!==X&&(k=v)}}w=C,C=v,E++}if(Z=Ue.length,Oe>0&&0===Z&&0===$e.length&&0===t[0].length==!1&&(i!==pe||1===t.length&&(we>0?We:ze)===t[0])&&(Z=t.join(",").length+2),Z>0){if(u=0===we&&i!==le?s(t):t,Se>0&&void 0!==(l=c(Ne,Ue,u,e,ve,be,Z,i))&&0===(Ue=l).length)return He+Ue+$e;if(Ue=u.join(",")+"{"+Ue+"}",ke*Ce>0){switch(Ce){case he:Ue=Ue.replace(j,":"+L+"$1")+Ue;break;case de:Ue=Ue.replace(O,"::"+N+"input-$1")+Ue.replace(O,"::"+L+"$1")+Ue.replace(O,":"+D+"input-$1")+Ue}Ce=0}}return He+Ue+$e}function r(e,t,n){var r=t.trim().split(w),a=r,i=r.length,s=e.length;switch(s){case 0:case 1:for(var c=0,u=0===s?"":e[0]+" ";c<i;c++)a[c]=o(u,a[c],n,s).trim();break;default:for(var c=0,l=0,a=[];c<i;c++)for(var p=0;p<s;p++)a[l++]=o(e[p]+" ",r[c],n,s).trim()}return a}function o(e,t,n,r){var o=t,a=o.charCodeAt(0);switch(a<33&&(a=(o=o.trim()).charCodeAt(0)),a){case G:switch(we+r){case 0:case 1:if(0===e.trim().length)break;default:return o.replace(k,"$1"+e.trim())}break;case ee:switch(o.charCodeAt(1)){case 103:if(xe>0&&we>0)return o.replace(x,"$1").replace(k,"$1"+ze);break;default:return e.trim()+o}default:if(n*we>0&&o.indexOf("\f")>0)return o.replace(k,(e.charCodeAt(0)===ee?"":"$1")+e.trim())}return e+o}function a(e,t,n,r){var o,a=e+";",s=0,c=2*t+3*n+4*r;if(944===c)a=i(a);else if(ke>0)switch(c){case 963:110===a.charCodeAt(5)&&(a=N+a+a);break;case 978:a=N+a+L+a+a;break;case 1019:case 983:a=N+a+L+a+D+a+a;break;case 883:a.charCodeAt(8)===Y&&(a=N+a+a);break;case 932:a=N+a+D+a+a;break;case 964:a=N+a+D+"flex-"+a+a;break;case 1023:o=a.substring(a.indexOf(":",15)).replace("flex-",""),a=N+"box-pack"+o+N+a+D+"flex-pack"+o+a;break;case 975:switch(s=(a=e).length-10,o=(33===a.charCodeAt(s)?a.substring(0,s):a).substring(8).trim(),c=o.charCodeAt(0)+(0|o.charCodeAt(7))){case 203:o.charCodeAt(8)>110&&(a=a.replace(o,N+o)+";"+a);break;case 207:case 102:a=a.replace(o,N+(c>102?"inline-":"")+"box")+";"+a.replace(o,N+o)+";"+a.replace(o,D+o+"box")+";"+a}a+=";";break;case 938:if(a.charCodeAt(5)===Y)switch(a.charCodeAt(6)){case 105:o=a.replace("-items",""),a=N+a+N+"box-"+o+D+"flex-"+o+a;break;case 115:a=N+a+D+"flex-item-"+a.replace("-self","")+a;break;default:a=N+a+D+"flex-line-pack"+a.replace("align-content","")+a}break;case 1005:g.test(a)&&(a=a.replace(m,":"+N)+a.replace(m,":"+L)+a);break;case 953:(s=a.indexOf("-content",9))>0&&(o=a.substring(s-3),a="width:"+N+o+"width:"+L+o+"width:"+o);break;case 1015:if(e.charCodeAt(9)!==Y)break;case 962:a=N+a+(102===a.charCodeAt(5)?D+a:"")+a,n+r===211&&105===a.charCodeAt(13)&&a.indexOf("transform",10)>0&&(a=a.substring(0,a.indexOf(";",27)+1).replace(y,"$1"+N+"$2")+a);break;case 1e3:switch(o=a.substring(13).trim(),s=o.indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(s)){case 226:o=a.replace(R,"tb");break;case 232:o=a.replace(R,"tb-rl");break;case 220:o=a.replace(R,"lr");break;default:return a}a=N+a+D+o+a}return a}function i(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim(),a="";if(e.charCodeAt(9)!==Y)for(var i=o.split(b),s=0,n=0,t=i.length;s<t;n=0,s++){for(var c=i[s],u=c.split(v);c=u[n];){var l=c.charCodeAt(0);if(1===Fe&&(l>K&&l<90||l>96&&l<123||l===Z||l===Y&&c.charCodeAt(1)!==Y))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=_e}}u[n++]=c}a+=(0===s?"":",")+u.join(" ")}else a+=110===e.charCodeAt(10)?o+(1===Fe?_e:""):o;return a=r+a+";",ke>0?N+a+a:a}function s(e){for(var t,n,r=0,o=e.length,a=Array(o);r<o;r++){for(var i=e[r].split(C),s="",c=0,u=0,l=0,p=0,f=i.length;c<f;c++)if(!(0===(u=(n=i[c]).length)&&f>1)){if(l=s.charCodeAt(s.length-1),p=n.charCodeAt(0),t="",0!==c)switch(l){case J:case ie:case oe:case ae:case X:case z:break;default:t=" "}switch(p){case G:n=t+We;case ie:case oe:case ae:case X:case U:case z:break;case $:n=t+n+We;break;case ee:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(xe>0){n=t+n.substring(8,u-1);break}default:(c<1||i[c-1].length<1)&&(n=t+We+n)}break;case Q:t="";default:n=u>1&&n.indexOf(":")>0?t+n.replace(I,"$1"+We+"$2"):t+n+We}s+=n}a[r]=s.replace(h,"").trim()}return a}function c(e,t,n,r,o,a,i,s){for(var c,u=0,l=t;u<Se;u++)switch(c=Pe[u].call(f,e,l,n,r,o,a,i,s)){case void 0:case!1:case!0:case null:break;default:l=c}switch(l){case void 0:case!1:case!0:case null:case t:break;default:return l}}function u(e){return e.replace(h,"").replace(P,"").replace(S,"$1").replace(E,"$1").replace(M," ")}function l(e){switch(e){case void 0:case null:Se=Pe.length=0;break;default:switch(e.constructor){case Array:for(var t=0,n=e.length;t<n;t++)l(e[t]);break;case Function:Pe[Se++]=e;break;case Boolean:De=0|!!e}}return l}function p(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Fe=0|n;break;case"global":xe=0|n;break;case"cascade":we=0|n;break;case"compress":Te=0|n;break;case"prefix":ke=0|n;break;case"semicolon":Ae=0|n;break;case"preserve":Oe=0|n}}return p}function f(t,r){if(void 0!==this&&this.constructor===f)return e(t);var o=t,a=o.charCodeAt(0);a<33&&(a=(o=o.trim()).charCodeAt(0)),Fe>0&&(_e=o.replace(T,a===$?"":"-")),a=1,1===we?ze=o:We=o;var i,s=[ze];Se>0&&void 0!==(i=c(Me,r,s,s,ve,be,0,0))&&"string"==typeof i&&(r=i);var l=n(je,s,r,0);return Se>0&&void 0!==(i=c(Ee,l,s,s,ve,be,l.length,0))&&"string"!=typeof(l=i)&&(a=0),_e="",ze="",We="",Ce=0,ve=1,be=1,Te*a==0?l:u(l)}var d=/^\0+/g,h=/[\0\r\f]/g,m=/: */g,g=/zoo|gra/,y=/([,: ])(transform)/g,b=/,+\s*(?![^(]*[)])/g,v=/ +\s*(?![^(]*[)])/g,C=/ *[\0] */g,w=/,\r+?/g,k=/([\t\r\n ])*\f?&/g,x=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,T=/\W+/g,A=/@(k\w+)\s*(\S*)\s*/,O=/::(place)/g,j=/:(read-only)/g,P=/\s+(?=[{\];=:>])/g,S=/([[}=:>])\s+/g,E=/(\{[^{]+?);(?=\})/g,M=/\s{2,}/g,I=/([^\(])(:+) */g,R=/[svh]\w+-[tblr]{2}/,N="-webkit-",L="-moz-",D="-ms-",F=59,_=125,W=123,z=40,U=41,$=91,H=93,q=10,B=13,V=9,K=64,X=32,G=38,Y=45,Z=95,J=42,Q=44,ee=58,te=39,ne=34,re=47,oe=62,ae=43,ie=126,se=0,ce=12,ue=11,le=107,pe=109,fe=115,de=112,he=111,me=169,ge=163,ye=100,be=1,ve=1,Ce=0,we=1,ke=1,xe=1,Te=0,Ae=0,Oe=0,je=[],Pe=[],Se=0,Ee=-2,Me=-1,Ie=0,Re=1,Ne=2,Le=3,De=0,Fe=1,_e="",We="",ze="";return f.use=l,f.set=p,void 0!==t&&p(t),f})}])}); |
@@ -10,2 +10,6 @@ 'use strict'; | ||
var _templateObject = _taggedTemplateLiteral(['\n position: absolute;\n text-align: center;\n left: 10px;\n right: 10px;\n bottom: 0px;\n '], ['\n position: absolute;\n text-align: center;\n left: 10px;\n right: 10px;\n bottom: 0px;\n ']), | ||
_templateObject2 = _taggedTemplateLiteral(['\n display: inline-block;\n border: 0;\n border-radius: 50%;\n width: 12px;\n height: 12px;\n background: white;\n margin: 0 2px;\n text-indent: 1000px;\n overflow: hidden;\n cursor: pointer;\n outline: none;\n transition: all .3s;\n\n &[data-active=\'true\'] {\n background: orange;\n }\n '], ['\n display: inline-block;\n border: 0;\n border-radius: 50%;\n width: 12px;\n height: 12px;\n background: white;\n margin: 0 2px;\n text-indent: 1000px;\n overflow: hidden;\n cursor: pointer;\n outline: none;\n transition: all .3s;\n\n &[data-active=\'true\'] {\n background: orange;\n }\n ']), | ||
_templateObject3 = _taggedTemplateLiteral(['\n position: absolute;\n font-size: 16px;\n border: 0;\n outline: none;\n top: 45%;\n cursor: pointer;\n transition: all .3s;\n padding: 0;\n color: orange;\n font-family: Arial;\n background: none;\n\n &:disabled {\n opacity: .2;\n cursor: default;\n }\n\n &[direction="prev"] {\n left: 5px;\n &::before {\n content: "\\25C0";\n }\n }\n\n &[direction="next"] {\n right: 5px;\n &::before {\n content: "\\25b6";\n }\n }\n '], ['\n position: absolute;\n font-size: 16px;\n border: 0;\n outline: none;\n top: 45%;\n cursor: pointer;\n transition: all .3s;\n padding: 0;\n color: orange;\n font-family: Arial;\n background: none;\n\n &:disabled {\n opacity: .2;\n cursor: default;\n }\n\n &[direction="prev"] {\n left: 5px;\n &::before {\n content: "\\\\25C0";\n }\n }\n\n &[direction="next"] {\n right: 5px;\n &::before {\n content: "\\\\25b6";\n }\n }\n ']); | ||
var _react = require('react'); | ||
@@ -27,5 +31,5 @@ | ||
var _defaultStyles = require('./defaultStyles.css'); | ||
var _styledComponents = require('styled-components'); | ||
var _defaultStyles2 = _interopRequireDefault(_defaultStyles); | ||
var _styledComponents2 = _interopRequireDefault(_styledComponents); | ||
@@ -36,2 +40,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -265,6 +271,10 @@ | ||
var Pagination = _styledComponents2.default.div(_templateObject); | ||
var PaginationDot = _styledComponents2.default.button(_templateObject2); | ||
return _react2.default.createElement( | ||
'div', | ||
Pagination, | ||
{ | ||
className: this.props.paginationClass || _defaultStyles2.default.defaultPaginationClass, | ||
className: this.props.paginationClass, | ||
ref: function ref(node) { | ||
@@ -276,3 +286,3 @@ _this8.pagination = node; | ||
return _react2.default.createElement( | ||
'button', | ||
PaginationDot, | ||
{ | ||
@@ -308,5 +318,7 @@ 'aria-label': 'Goto Page ' + (i + 1), | ||
var classPart = (0, _lodash4.default)(kind) + 'Class'; | ||
var Arrow = _styledComponents2.default.button(_templateObject3); | ||
return _react2.default.createElement('button', { | ||
className: this.props['arrow' + classPart] || _defaultStyles2.default['defaultArrow' + classPart], | ||
return _react2.default.createElement(Arrow, { | ||
className: this.props['arrow' + classPart], | ||
direction: kind, | ||
disabled: nextPage === null, | ||
@@ -487,2 +499,3 @@ onClick: function onClick() { | ||
var style = { | ||
position: 'relative', | ||
height: prepareParam(height, null, tileMargin), | ||
@@ -497,3 +510,3 @@ width: prepareParam(width, parentWidth, tileMargin), | ||
{ | ||
className: this.props.className || _defaultStyles2.default.defaultTile, | ||
className: this.props.className, | ||
ref: function ref(node) { | ||
@@ -500,0 +513,0 @@ _this13.tile = node; |
@@ -8,3 +8,5 @@ 'use strict'; | ||
module.exports = { ReactFreeCarouselTile: ReactFreeCarouselTile }; | ||
module.exports = { | ||
ReactFreeCarouselTile: ReactFreeCarouselTile | ||
}; | ||
module.exports.default = ReactFreeCarousel; |
{ | ||
"name": "react-free-carousel", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Carousel component for free flex-box layout built with React.", | ||
@@ -43,4 +43,5 @@ "main": "lib/index.js", | ||
"lodash.capitalize": "4.2.1", | ||
"lodash.debounce": "4.0.8" | ||
"lodash.debounce": "4.0.8", | ||
"styled-components": "2.1.1" | ||
} | ||
} |
@@ -5,5 +5,4 @@ import React from 'react'; | ||
import capitalize from 'lodash.capitalize'; | ||
import styled from 'styled-components'; | ||
import styles from './defaultStyles.css'; | ||
const RENDER_DEBOUNCING_TIMEOUT = 600; | ||
@@ -195,5 +194,33 @@ const toArray = item => item instanceof Array ? item : [item]; | ||
renderPagination() { | ||
const Pagination = styled.div` | ||
position: absolute; | ||
text-align: center; | ||
left: 10px; | ||
right: 10px; | ||
bottom: 0px; | ||
`; | ||
const PaginationDot = styled.button` | ||
display: inline-block; | ||
border: 0; | ||
border-radius: 50%; | ||
width: 12px; | ||
height: 12px; | ||
background: white; | ||
margin: 0 2px; | ||
text-indent: 1000px; | ||
overflow: hidden; | ||
cursor: pointer; | ||
outline: none; | ||
transition: all .3s; | ||
&[data-active='true'] { | ||
background: orange; | ||
} | ||
`; | ||
return ( | ||
<div | ||
className={this.props.paginationClass || styles.defaultPaginationClass} | ||
<Pagination | ||
className={this.props.paginationClass} | ||
ref={node => { | ||
@@ -205,3 +232,3 @@ this.pagination = node; | ||
[...Array(this.state.pages + 1)].map((e, i) => | ||
<button | ||
<PaginationDot | ||
aria-label={`Goto Page ${i + 1}`} | ||
@@ -217,6 +244,6 @@ className={` | ||
{i + 1} | ||
</button> | ||
</PaginationDot> | ||
) | ||
} | ||
</div> | ||
</Pagination> | ||
); | ||
@@ -238,6 +265,39 @@ } | ||
const classPart = `${capitalize(kind)}Class`; | ||
const Arrow = styled.button` | ||
position: absolute; | ||
font-size: 16px; | ||
border: 0; | ||
outline: none; | ||
top: 45%; | ||
cursor: pointer; | ||
transition: all .3s; | ||
padding: 0; | ||
color: orange; | ||
font-family: Arial; | ||
background: none; | ||
&:disabled { | ||
opacity: .2; | ||
cursor: default; | ||
} | ||
&[direction="prev"] { | ||
left: 5px; | ||
&::before { | ||
content: "\\25C0"; | ||
} | ||
} | ||
&[direction="next"] { | ||
right: 5px; | ||
&::before { | ||
content: "\\25b6"; | ||
} | ||
} | ||
`; | ||
return ( | ||
<button | ||
className={this.props[`arrow${classPart}`] || styles[`defaultArrow${classPart}`]} | ||
<Arrow | ||
className={this.props[`arrow${classPart}`]} | ||
direction={kind} | ||
disabled={nextPage === null} | ||
@@ -404,2 +464,3 @@ onClick={() => { | ||
const style = { | ||
position: 'relative', | ||
height: prepareParam(height, null, tileMargin), | ||
@@ -413,3 +474,3 @@ width: prepareParam(width, parentWidth, tileMargin), | ||
<div | ||
className={this.props.className || styles.defaultTile} | ||
className={this.props.className} | ||
ref={node => { | ||
@@ -416,0 +477,0 @@ this.tile = node; |
@@ -7,3 +7,5 @@ 'use strict'; | ||
module.exports = {ReactFreeCarouselTile}; | ||
module.exports = { | ||
ReactFreeCarouselTile | ||
}; | ||
module.exports.default = ReactFreeCarousel; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
452314
5729
1
4
13
+ Addedstyled-components@2.1.1
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addedcss-color-keywords@1.0.0(transitive)
+ Addedcss-to-react-native@2.3.2(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedhoist-non-react-statics@1.2.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedis-function@1.0.2(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedpostcss-value-parser@3.3.1(transitive)
+ Addedstyled-components@2.1.1(transitive)
+ Addedstylis@3.5.4(transitive)
+ Addedsupports-color@3.2.3(transitive)