@cruzach/styled-components
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -88,3 +88,3 @@ import { isElement, isValidElementType } from 'react-is'; | ||
var SC_ATTR_VERSION = 'data-styled-version'; | ||
var SC_VERSION = "1.0.0"; | ||
var SC_VERSION = "1.0.2"; | ||
var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window; | ||
@@ -1900,3 +1900,3 @@ var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production'; // Shared empty execution context when generating static styles | ||
var version = "1.0.0"; | ||
var version = "1.0.2"; | ||
/* Warning if you've imported this file on React Native */ | ||
@@ -1903,0 +1903,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react-is"),require("react")):"function"==typeof define&&define.amd?define(["react-is","react"],t):(e=e||self).styled=t(e.ReactIs,e.React)}(this,(function(e,t){"use strict";var r="default"in e?e.default:e,n="default"in t?t.default:t;function i(e){return e&&"string"==typeof e.styledComponentId}var a=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},o=function(e){return"object"==typeof e&&e.constructor===Object},s=Object.freeze([]),c=Object.freeze({});function l(e){return"function"==typeof e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var f="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d="undefined"!=typeof window&&"HTMLElement"in window,h="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof process&&(process.env.REACT_APP_SC_DISABLE_SPEEDY||process.env.SC_DISABLE_SPEEDY)||!1,p={},g=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null};function m(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+e+" for more information."+(r.length>0?" Additional arguments: "+r.join(", "):""))}var v=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(f))return n}}(r),a=void 0!==i?i.nextSibling:null;n.setAttribute(f,"active"),n.setAttribute("data-styled-version","1.0.0");var o=g();return o&&n.setAttribute("nonce",o),r.insertBefore(n,a),n},y=function(){function e(e){var t=this.element=v(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}m(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),b=function(){function e(e){var t=this.element=v(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),k=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),w=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&m(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=n;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,a=n;a<i;a++)t+=this.tag.getRule(a)+"\n";return t},e}(),S=new Map,C=new Map,A=1,x=function(e){if(S.has(e))return S.get(e);var t=A++;return S.set(e,t),C.set(t,e),t},O=function(e){return C.get(e)},I=function(e,t){t>=A&&(A=t+1),S.set(e,t),C.set(t,e)},R="style["+f+'][data-styled-version="1.0.0"]',T=/(?:\s*)?(.*?){((?:{[^}]*}|(?!{).*?)*)}/g,P=new RegExp("^"+f+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\]'),j=function(e,t,r){for(var n,i=r.split(","),a=0,o=i.length;a<o;a++)(n=i[a])&&e.registerName(t,n)},E=function(e,t){for(var r,n=t.innerHTML,i=[];r=T.exec(n);){var a=r[1].match(P);if(a){var o=0|parseInt(a[1],10),s=a[2];0!==o&&(I(s,o),j(e,s,r[2].split('"')[1]),e.getTag().insertRules(o,i)),i.length=0}else i.push(r[0].trim())}},N=d,_={isServer:!d,useCSSOMInjection:!h},z=function(){function e(e,t,r){void 0===e&&(e=_),void 0===t&&(t={}),this.options=u({},_,{},e),this.gs=t,this.names=new Map(r),!this.options.isServer&&d&&N&&(N=!1,function(e){for(var t=document.querySelectorAll(R),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(f)&&(E(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return x(e)};var t=e.prototype;return t.reconstructWithOptions=function(t){return new e(u({},this.options,{},t),this.gs,this.names)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(t=this.options,r=t.isServer,n=t.useCSSOMInjection,i=t.target,e=r?new k(i):n?new y(i):new b(i),new w(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(x(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(x(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(x(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var a=O(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(void 0!==o&&0!==s.length){var c=f+".g"+i+'[id="'+a+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}\n'}}}return n}(this)},e}();function M(e){function t(e,t,n){var i=t.trim().split(p);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<a;++s)for(var l=0;l<o;++l)t[c++]=r(e[l]+" ",i[s],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,a){var o=e+";",s=2*t+3*r+4*a;if(944===s){e=o.indexOf(":",9)+1;var c=o.substring(e,o.length-1).trim();return c=o.substring(0,e).trim()+c+";",1===T||2===T&&i(c,1)?"-webkit-"+c+c:c}if(0===T||2===T&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(x,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(c=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+c+o;case 1005:return d.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(c=o.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=o.replace(b,"tb");break;case 232:c=o.replace(b,"tb-rl");break;case 220:c=o.replace(b,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+c+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(c=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(c,"-webkit-"+c)+";"+o.replace(c,"-ms-"+c+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return c=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+c+"-ms-flex-"+c+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(S,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(S,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):o.replace(c,"-webkit-"+c)+o.replace(c,"-moz-"+c.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===r+a&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+o}return o}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),N(2!==t?n:n.replace(C,"$1"),r,t)}function a(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function o(e,t,r,n,i,a,o,s,l,u){for(var f,d=0,h=t;d<E;++d)switch(f=j[d].call(c,e,h,r,n,i,a,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?T=1:(T=2,N=e):T=0),s}function c(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<E){var c=o(-1,r,s,s,I,O,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var f=function e(r,s,c,f,d){for(var h,p,g,b,w,S=0,C=0,A=0,x=0,j=0,N=0,z=g=h=0,M=0,$=0,D=0,L=0,G=c.length,F=G-1,H="",B="",W="",q="";M<G;){if(p=c.charCodeAt(M),M===F&&0!==C+x+A+S&&(0!==C&&(p=47===C?10:47),x=A=S=0,G++,F++),0===C+x+A+S){if(M===F&&(0<$&&(H=H.replace(u,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(M)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),g=1,L=++M;M<G;){switch(p=c.charCodeAt(M)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(M+1)){case 42:case 47:e:{for(z=M+1;z<F;++z)switch(c.charCodeAt(z)){case 47:if(42===p&&42===c.charCodeAt(z-1)&&M+2!==z){M=z+1;break e}break;case 10:if(47===p){M=z+1;break e}}M=z}}break;case 91:p++;case 40:p++;case 34:case 39:for(;M++<F&&c.charCodeAt(M)!==p;);}if(0===g)break;M++}switch(g=c.substring(L,M),0===h&&(h=(H=H.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<$&&(H=H.replace(u,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:$=s;break;default:$=P}if(L=(g=e(s,$,g,p,d+1)).length,0<E&&(w=o(3,g,$=t(P,H,D),s,I,O,L,p,d,f),H=$.join(""),void 0!==w&&0===(L=(g=w.trim()).length)&&(p=0,g="")),0<L)switch(p){case 115:H=H.replace(k,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(m,"$1 $2"))+"{"+g+"}",g=1===T||2===T&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===f&&(B+=g,g="")}else g="";break;default:g=e(s,t(s,H,D),g,f,d+1)}W+=g,g=D=$=z=h=0,H="",p=c.charCodeAt(++M);break;case 125:case 59:if(1<(L=(H=(0<$?H.replace(u,""):H).trim()).length))switch(0===z&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(L=(H=H.replace(" ",":")).length),0<E&&void 0!==(w=o(1,H,s,r,I,O,B.length,f,d,f))&&0===(L=(H=w.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){q+=H+c.charAt(M);break}default:58!==H.charCodeAt(L-1)&&(B+=n(H,h,p,H.charCodeAt(2)))}D=$=z=h=0,H="",p=c.charCodeAt(++M)}}switch(p){case 13:case 10:47===C?C=0:0===1+h&&107!==f&&0<H.length&&($=1,H+="\0"),0<E*_&&o(0,H,s,r,I,O,B.length,f,d,f),O=1,I++;break;case 59:case 125:if(0===C+x+A+S){O++;break}default:switch(O++,b=c.charAt(M),p){case 9:case 32:if(0===x+S+C)switch(j){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===x+C+S&&($=D=1,b="\f"+b);break;case 108:if(0===x+C+S+R&&0<z)switch(M-z){case 2:112===j&&58===c.charCodeAt(M-3)&&(R=j);case 8:111===N&&(R=N)}break;case 58:0===x+C+S&&(z=M);break;case 44:0===C+A+x+S&&($=1,b+="\r");break;case 34:case 39:0===C&&(x=x===p?0:0===x?p:x);break;case 91:0===x+C+A&&S++;break;case 93:0===x+C+A&&S--;break;case 41:0===x+C+S&&A--;break;case 40:if(0===x+C+S){if(0===h)switch(2*j+3*N){case 533:break;default:h=1}A++}break;case 64:0===C+A+x+S+z+g&&(g=1);break;case 42:case 47:if(!(0<x+S+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(M+1)){case 235:C=47;break;case 220:L=M,C=42}break;case 42:47===p&&42===j&&L+2!==M&&(33===c.charCodeAt(L+2)&&(B+=c.substring(L,M+1)),b="",C=0)}}0===C&&(H+=b)}N=j,j=p,M++}if(0<(L=B.length)){if($=s,0<E&&(void 0!==(w=o(2,B,$,r,I,O,L,f,d,f))&&0===(B=w).length))return q+B+W;if(B=$.join(",")+"{"+B+"}",0!=T*R){switch(2!==T||i(B,2)||(R=0),R){case 111:B=B.replace(y,":-moz-$1")+B;break;case 112:B=B.replace(v,"::-webkit-input-$1")+B.replace(v,"::-moz-$1")+B.replace(v,":-ms-input-$1")+B}R=0}}return q+B+W}(P,s,r,0,0);return 0<E&&(void 0!==(c=o(-2,f,s,s,I,O,f.length,0,0,0))&&(f=c)),"",R=0,O=I=1,f}var l=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,I=1,R=0,T=1,P=[],j=[],E=0,N=null,_=0;return c.use=function e(t){switch(t){case void 0:case null:E=j.length=0;break;default:if("function"==typeof t)j[E++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else _=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var $=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},D=function(e){return $(5381,e)};var L=/^\s*\/\/.*$/gm;function G(e){var t,r,n,i=void 0===e?c:e,a=i.options,o=void 0===a?c:a,l=i.plugins,u=void 0===l?s:l,f=new M(o),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,a,o,s,c,l,u,f){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,n,i){return n>0&&-1!==i.slice(0,n).indexOf(r)&&i.slice(n-r.length,n)!==r?"."+t:e};function g(e,i,a,o){void 0===o&&(o="&");var s=e.replace(L,""),c=i&&a?a+" "+i+" { "+s+" }":s;return t=o,r=i,n=new RegExp("\\"+r+"\\b","g"),f(a||!i?"":i,c)}return f.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||m(15),$(e,t.name)}),5381).toString():"",g}var F=n.createContext(),H=F.Consumer,B=n.createContext(),W=(B.Consumer,new z),q=G();function U(){return t.useContext(F)||W}function V(){return t.useContext(B)||q}function Y(e){var r=t.useState(e.stylisPlugins),i=r[0],a=r[1],o=U(),s=t.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=t.useMemo((function(){return G({options:{prefix:!e.disableVendorPrefixes},plugins:i})}),[e.disableVendorPrefixes,i]);return t.useEffect((function(){(function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],f=t[l];if(!1===(i=r?r.call(n,u,f,l):void 0)||void 0===i&&u!==f)return!1}return!0})(i,e.stylisPlugins)||a(e.stylisPlugins)}),[e.stylisPlugins]),n.createElement(F.Provider,{value:s},n.createElement(B.Provider,{value:c},e.children))}var X=function(){function e(e,t){var r=this;this.inject=function(e){e.hasNameForId(r.id,r.name)||e.insertRules(r.id,r.name,q.apply(void 0,r.stringifyArgs))},this.toString=function(){return m(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),Z=/([A-Z])/g,J=/^ms-/;function K(e){return e.replace(Z,"-$1").toLowerCase().replace(J,"-ms-")}var Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ee=function(e){return null==e||!1===e||""===e},te=function e(t,r){var n=[];return Object.keys(t).forEach((function(r){if(!ee(t[r])){if(o(t[r]))return n.push.apply(n,e(t[r],r)),n;if(l(t[r]))return n.push(K(r)+":",t[r],";"),n;n.push(K(r)+": "+(i=r,null==(a=t[r])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||i in Q?String(a).trim():a+"px")+";")}var i,a;return n})),r?[r+" {"].concat(n,["}"]):n};function re(e,t,r){if(Array.isArray(e)){for(var n,a=[],s=0,c=e.length;s<c;s+=1)""!==(n=re(e[s],t,r))&&(Array.isArray(n)?a.push.apply(a,n):a.push(n));return a}return ee(e)?"":i(e)?"."+e.styledComponentId:l(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:re(e(t),t,r):e instanceof X?r?(e.inject(r),e.getName()):e:o(e)?te(e):e.toString();var u}function ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return l(e)||o(e)?re(a(s,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:re(a(e,r))}function ie(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(l(r)&&!i(r))return!1}return!0}var ae=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ie(e)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(re(this.rules,t,r).join(""),""),a=this.componentId+e;r.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){z.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),oe=function(e,t,r){return void 0===r&&(r=c),e.theme!==r.theme&&e.theme||t||r.theme},se=n.createContext(),ce=se.Consumer;var le=/(a)(d)/gi,ue=function(e){return String.fromCharCode(e+(e>25?39:97))};function fe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ue(t%52)+r;return(ue(t%52)+r).replace(le,"$1-$2")}var de=function(e){return fe(D(e)>>>0)};var he=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),r=g();return"<style "+[r&&'nonce="'+r+'"',f+'="true"','data-styled-version="1.0.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?m(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return m(2);var r=((t={})[f]="",t["data-styled-version"]="1.0.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=g();return i&&(r.nonce=i),[n.createElement("style",u({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new z({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?m(2):n.createElement(Y,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return m(3)},e}(),pe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},me={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ve={};function ye(e){return r.isMemo(e)?me:ve[e.$$typeof]||pe}ve[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ve[r.Memo]=me;var be=Object.defineProperty,ke=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Se=Object.getOwnPropertyDescriptor,Ce=Object.getPrototypeOf,Ae=Object.prototype;var xe=function e(t,r,n){if("string"!=typeof r){if(Ae){var i=Ce(r);i&&i!==Ae&&e(t,i,n)}var a=ke(r);we&&(a=a.concat(we(r)));for(var o=ye(t),s=ye(r),c=0;c<a.length;++c){var l=a[c];if(!(ge[l]||n&&n[l]||s&&s[l]||o&&o[l])){var u=Se(r,l);try{be(t,l,u)}catch(e){}}}}return t},Oe={StyleSheet:z,masterSheet:W},Ie=Object.freeze({__proto__:null,createGlobalStyle:function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o=ne.apply(void 0,[e].concat(i)),c="sc-global-"+de(JSON.stringify(o)),l=new ae(o,c);function f(e){var r=U(),n=V(),i=t.useContext(se),a=t.useRef(null);null===a.current&&(a.current=r.allocateGSInstance(c));var o=a.current;if(l.isStatic)l.renderStyles(o,p,r,n);else{var d=u({},e,{theme:oe(e,i,f.defaultProps)});l.renderStyles(o,d,r,n)}return t.useEffect((function(){return function(){return l.removeStyles(o,r)}}),s),null}return n.memo(f)},css:ne,isStyledComponent:i,keyframes:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ne.apply(void 0,[e].concat(r)).join(""),a=de(i);return new X(a,[i,a,"@keyframes"])},ServerStyleSheet:he,StyleSheetConsumer:H,StyleSheetContext:F,StyleSheetManager:Y,ThemeConsumer:ce,ThemeContext:se,ThemeProvider:function(e){var r=t.useContext(se),i=t.useMemo((function(){return function(e,t){return e?l(e)?e(t):Array.isArray(e)||"object"!=typeof e?m(8):t?u({},t,{},e):e:m(14)}(e.theme,r)}),[e.theme,r]);return e.children?n.createElement(se.Provider,{value:i},e.children):null},useTheme:function(){return t.useContext(se)},version:"1.0.0",withTheme:function(e){var r=n.forwardRef((function(r,i){var a=t.useContext(se),o=e.defaultProps,s=oe(r,a,o);return n.createElement(e,u({},r,{theme:s,ref:i}))}));return xe(r,e),r.displayName="WithTheme(undefined)",r},__PRIVATE__:Oe});var Re,Te,Pe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,je=(Re=function(e){return Pe.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},Te={},function(e){return void 0===Te[e]&&(Te[e]=Re(e)),Te[e]}),Ee=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ne=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function _e(e,t,r){var n=e[r];Ee(t)&&Ee(n)?ze(n,t):e[r]=t}function ze(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,a=r;i<a.length;i++){var o=a[i];if(Ee(o))for(var s in o)Ne(s)&&_e(e,o[s],s)}return e}var Me=function(){function e(e,t){this.rules=e,this.staticRulesId="",this.isStatic=ie(e),this.componentId=t,this.baseHash=D(t),z.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId;if(this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))return this.staticRulesId;var i=re(this.rules,e,t).join(""),a=fe($(this.baseHash,i.length)>>>0);if(!t.hasNameForId(n,a)){var o=r(i,"."+a,void 0,n);t.insertRules(n,a,o)}return this.staticRulesId=a,a}for(var s=this.rules.length,c=$(this.baseHash,r.hash),l="",u=0;u<s;u++){var f=this.rules[u];if("string"==typeof f)l+=f;else{var d=re(f,e,t),h=Array.isArray(d)?d.join(""):d;c=$(c,h+u),l+=h}}var p=fe(c>>>0);if(!t.hasNameForId(n,p)){var g=r(l,"."+p,void 0,n);t.insertRules(n,p,g)}return p},e}(),$e=/[[\].#*$><+~=|^:(),"'`-]+/g,De=/(^-|-$)/g;function Le(e){return e.replace($e,"-").replace(De,"")}function Ge(e){return"string"==typeof e&&!0}var Fe={};function He(e,r,n){var i=e.attrs,a=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,f=e.styledComponentId,d=e.target;t.useDebugValue(f);var h=function(e,t,r){void 0===e&&(e=c);var n=u({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,a,o=e;for(t in l(o)&&(o=o(n)),o)n[t]=i[t]="className"===t?(r=i[t],a=o[t],r&&a?r+" "+a:r||a):o[t]})),[n,i]}(oe(r,t.useContext(se),o)||c,r,i),p=h[0],g=h[1],m=function(e,r,n,i){var a=U(),o=V(),s=e.isStatic&&!r?e.generateAndInjectStyles(c,a,o):e.generateAndInjectStyles(n,a,o);return t.useDebugValue(s),s}(a,i.length>0,p),v=n,y=g.as||r.as||d,b=Ge(y),k=g!==r?u({},r,{},g):r,w=b||"as"in k||"forwardedAs"in k,S=w?{}:u({},k);if(w)for(var C in k)"forwardedAs"===C?S.as=k[C]:"as"===C||"forwardedAs"===C||b&&!je(C)||(S[C]=k[C]);return r.style&&g.style!==r.style&&(S.style=u({},r.style,{},g.style)),S.className=Array.prototype.concat(s,f,m!==f?m:null,r.className,g.className).filter(Boolean).join(" "),S.ref=v,t.createElement(y,S)}function Be(e,t,r){var a,o=i(e),c=!Ge(e),l=t.displayName,f=void 0===l?function(e){return Ge(e)?"styled."+e:"Styled(undefined)"}(e):l,d=t.componentId,h=void 0===d?function(e,t){var r="string"!=typeof e?"sc":Le(e);Fe[r]=(Fe[r]||0)+1;var n=r+"-"+de(r+Fe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):d,p=t.attrs,g=void 0===p?s:p,m=t.displayName&&t.componentId?Le(t.displayName)+"-"+t.componentId:t.componentId||h,v=o&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,y=new Me(o?e.componentStyle.rules.concat(r):r,m),b=function(e,t){return He(a,e,t)};return b.displayName=f,(a=n.forwardRef(b)).attrs=v,a.componentStyle=y,a.displayName=f,a.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):s,a.styledComponentId=m,a.target=o?e.target:e,a.withComponent=function(e){var n=t.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["componentId"]),a=n&&n+"-"+(Ge(e)?e:Le(void 0));return Be(e,u({},i,{attrs:v,componentId:a}),r)},Object.defineProperty(a,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?ze({},e.defaultProps,t):t}}),a.toString=function(){return"."+a.styledComponentId},c&&xe(a,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),a}var We=function(t){return function t(r,n,i){if(void 0===i&&(i=c),!e.isValidElementType(n))return m(1,String(n));var a=function(){return r(n,i,ne.apply(void 0,arguments))};return a.withConfig=function(e){return t(r,n,u({},i,{},e))},a.attrs=function(e){return t(r,n,u({},i,{attrs:Array.prototype.concat(i.attrs,e).filter(Boolean)}))},a}(Be,t)};for(var qe in["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","marquee","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","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){We[e]=We(e)})),Ie)We[qe]=Ie[qe];return We})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react-is"),require("react")):"function"==typeof define&&define.amd?define(["react-is","react"],t):(e=e||self).styled=t(e.ReactIs,e.React)}(this,(function(e,t){"use strict";var r="default"in e?e.default:e,n="default"in t?t.default:t;function i(e){return e&&"string"==typeof e.styledComponentId}var a=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},o=function(e){return"object"==typeof e&&e.constructor===Object},s=Object.freeze([]),c=Object.freeze({});function l(e){return"function"==typeof e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var f="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d="undefined"!=typeof window&&"HTMLElement"in window,h="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof process&&(process.env.REACT_APP_SC_DISABLE_SPEEDY||process.env.SC_DISABLE_SPEEDY)||!1,p={},g=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null};function m(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+e+" for more information."+(r.length>0?" Additional arguments: "+r.join(", "):""))}var v=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(f))return n}}(r),a=void 0!==i?i.nextSibling:null;n.setAttribute(f,"active"),n.setAttribute("data-styled-version","1.0.2");var o=g();return o&&n.setAttribute("nonce",o),r.insertBefore(n,a),n},y=function(){function e(e){var t=this.element=v(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}m(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),b=function(){function e(e){var t=this.element=v(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),k=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),w=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&m(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=n;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,a=n;a<i;a++)t+=this.tag.getRule(a)+"\n";return t},e}(),S=new Map,C=new Map,A=1,x=function(e){if(S.has(e))return S.get(e);var t=A++;return S.set(e,t),C.set(t,e),t},O=function(e){return C.get(e)},I=function(e,t){t>=A&&(A=t+1),S.set(e,t),C.set(t,e)},R="style["+f+'][data-styled-version="1.0.2"]',T=/(?:\s*)?(.*?){((?:{[^}]*}|(?!{).*?)*)}/g,P=new RegExp("^"+f+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\]'),j=function(e,t,r){for(var n,i=r.split(","),a=0,o=i.length;a<o;a++)(n=i[a])&&e.registerName(t,n)},E=function(e,t){for(var r,n=t.innerHTML,i=[];r=T.exec(n);){var a=r[1].match(P);if(a){var o=0|parseInt(a[1],10),s=a[2];0!==o&&(I(s,o),j(e,s,r[2].split('"')[1]),e.getTag().insertRules(o,i)),i.length=0}else i.push(r[0].trim())}},N=d,_={isServer:!d,useCSSOMInjection:!h},z=function(){function e(e,t,r){void 0===e&&(e=_),void 0===t&&(t={}),this.options=u({},_,{},e),this.gs=t,this.names=new Map(r),!this.options.isServer&&d&&N&&(N=!1,function(e){for(var t=document.querySelectorAll(R),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(f)&&(E(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return x(e)};var t=e.prototype;return t.reconstructWithOptions=function(t){return new e(u({},this.options,{},t),this.gs,this.names)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(t=this.options,r=t.isServer,n=t.useCSSOMInjection,i=t.target,e=r?new k(i):n?new y(i):new b(i),new w(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(x(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(x(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(x(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var a=O(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(void 0!==o&&0!==s.length){var c=f+".g"+i+'[id="'+a+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}\n'}}}return n}(this)},e}();function M(e){function t(e,t,n){var i=t.trim().split(p);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<a;++s)for(var l=0;l<o;++l)t[c++]=r(e[l]+" ",i[s],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,a){var o=e+";",s=2*t+3*r+4*a;if(944===s){e=o.indexOf(":",9)+1;var c=o.substring(e,o.length-1).trim();return c=o.substring(0,e).trim()+c+";",1===T||2===T&&i(c,1)?"-webkit-"+c+c:c}if(0===T||2===T&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(x,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(c=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+c+o;case 1005:return d.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(c=o.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=o.replace(b,"tb");break;case 232:c=o.replace(b,"tb-rl");break;case 220:c=o.replace(b,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+c+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(c=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:o=o.replace(c,"-webkit-"+c)+";"+o;break;case 207:case 102:o=o.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(c,"-webkit-"+c)+";"+o.replace(c,"-ms-"+c+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return c=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+c+"-ms-flex-"+c+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(S,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(S,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):o.replace(c,"-webkit-"+c)+o.replace(c,"-moz-"+c.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===r+a&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+o}return o}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),N(2!==t?n:n.replace(C,"$1"),r,t)}function a(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function o(e,t,r,n,i,a,o,s,l,u){for(var f,d=0,h=t;d<E;++d)switch(f=j[d].call(c,e,h,r,n,i,a,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?T=1:(T=2,N=e):T=0),s}function c(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<E){var c=o(-1,r,s,s,I,O,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var f=function e(r,s,c,f,d){for(var h,p,g,b,w,S=0,C=0,A=0,x=0,j=0,N=0,z=g=h=0,M=0,$=0,D=0,L=0,G=c.length,F=G-1,H="",B="",W="",q="";M<G;){if(p=c.charCodeAt(M),M===F&&0!==C+x+A+S&&(0!==C&&(p=47===C?10:47),x=A=S=0,G++,F++),0===C+x+A+S){if(M===F&&(0<$&&(H=H.replace(u,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=c.charAt(M)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),g=1,L=++M;M<G;){switch(p=c.charCodeAt(M)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(M+1)){case 42:case 47:e:{for(z=M+1;z<F;++z)switch(c.charCodeAt(z)){case 47:if(42===p&&42===c.charCodeAt(z-1)&&M+2!==z){M=z+1;break e}break;case 10:if(47===p){M=z+1;break e}}M=z}}break;case 91:p++;case 40:p++;case 34:case 39:for(;M++<F&&c.charCodeAt(M)!==p;);}if(0===g)break;M++}switch(g=c.substring(L,M),0===h&&(h=(H=H.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<$&&(H=H.replace(u,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:$=s;break;default:$=P}if(L=(g=e(s,$,g,p,d+1)).length,0<E&&(w=o(3,g,$=t(P,H,D),s,I,O,L,p,d,f),H=$.join(""),void 0!==w&&0===(L=(g=w.trim()).length)&&(p=0,g="")),0<L)switch(p){case 115:H=H.replace(k,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(m,"$1 $2"))+"{"+g+"}",g=1===T||2===T&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===f&&(B+=g,g="")}else g="";break;default:g=e(s,t(s,H,D),g,f,d+1)}W+=g,g=D=$=z=h=0,H="",p=c.charCodeAt(++M);break;case 125:case 59:if(1<(L=(H=(0<$?H.replace(u,""):H).trim()).length))switch(0===z&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(L=(H=H.replace(" ",":")).length),0<E&&void 0!==(w=o(1,H,s,r,I,O,B.length,f,d,f))&&0===(L=(H=w.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){q+=H+c.charAt(M);break}default:58!==H.charCodeAt(L-1)&&(B+=n(H,h,p,H.charCodeAt(2)))}D=$=z=h=0,H="",p=c.charCodeAt(++M)}}switch(p){case 13:case 10:47===C?C=0:0===1+h&&107!==f&&0<H.length&&($=1,H+="\0"),0<E*_&&o(0,H,s,r,I,O,B.length,f,d,f),O=1,I++;break;case 59:case 125:if(0===C+x+A+S){O++;break}default:switch(O++,b=c.charAt(M),p){case 9:case 32:if(0===x+S+C)switch(j){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===x+C+S&&($=D=1,b="\f"+b);break;case 108:if(0===x+C+S+R&&0<z)switch(M-z){case 2:112===j&&58===c.charCodeAt(M-3)&&(R=j);case 8:111===N&&(R=N)}break;case 58:0===x+C+S&&(z=M);break;case 44:0===C+A+x+S&&($=1,b+="\r");break;case 34:case 39:0===C&&(x=x===p?0:0===x?p:x);break;case 91:0===x+C+A&&S++;break;case 93:0===x+C+A&&S--;break;case 41:0===x+C+S&&A--;break;case 40:if(0===x+C+S){if(0===h)switch(2*j+3*N){case 533:break;default:h=1}A++}break;case 64:0===C+A+x+S+z+g&&(g=1);break;case 42:case 47:if(!(0<x+S+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(M+1)){case 235:C=47;break;case 220:L=M,C=42}break;case 42:47===p&&42===j&&L+2!==M&&(33===c.charCodeAt(L+2)&&(B+=c.substring(L,M+1)),b="",C=0)}}0===C&&(H+=b)}N=j,j=p,M++}if(0<(L=B.length)){if($=s,0<E&&(void 0!==(w=o(2,B,$,r,I,O,L,f,d,f))&&0===(B=w).length))return q+B+W;if(B=$.join(",")+"{"+B+"}",0!=T*R){switch(2!==T||i(B,2)||(R=0),R){case 111:B=B.replace(y,":-moz-$1")+B;break;case 112:B=B.replace(v,"::-webkit-input-$1")+B.replace(v,"::-moz-$1")+B.replace(v,":-ms-input-$1")+B}R=0}}return q+B+W}(P,s,r,0,0);return 0<E&&(void 0!==(c=o(-2,f,s,s,I,O,f.length,0,0,0))&&(f=c)),"",R=0,O=I=1,f}var l=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,I=1,R=0,T=1,P=[],j=[],E=0,N=null,_=0;return c.use=function e(t){switch(t){case void 0:case null:E=j.length=0;break;default:if("function"==typeof t)j[E++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else _=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var $=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},D=function(e){return $(5381,e)};var L=/^\s*\/\/.*$/gm;function G(e){var t,r,n,i=void 0===e?c:e,a=i.options,o=void 0===a?c:a,l=i.plugins,u=void 0===l?s:l,f=new M(o),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,a,o,s,c,l,u,f){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,n,i){return n>0&&-1!==i.slice(0,n).indexOf(r)&&i.slice(n-r.length,n)!==r?"."+t:e};function g(e,i,a,o){void 0===o&&(o="&");var s=e.replace(L,""),c=i&&a?a+" "+i+" { "+s+" }":s;return t=o,r=i,n=new RegExp("\\"+r+"\\b","g"),f(a||!i?"":i,c)}return f.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||m(15),$(e,t.name)}),5381).toString():"",g}var F=n.createContext(),H=F.Consumer,B=n.createContext(),W=(B.Consumer,new z),q=G();function U(){return t.useContext(F)||W}function V(){return t.useContext(B)||q}function Y(e){var r=t.useState(e.stylisPlugins),i=r[0],a=r[1],o=U(),s=t.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=t.useMemo((function(){return G({options:{prefix:!e.disableVendorPrefixes},plugins:i})}),[e.disableVendorPrefixes,i]);return t.useEffect((function(){(function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],f=t[l];if(!1===(i=r?r.call(n,u,f,l):void 0)||void 0===i&&u!==f)return!1}return!0})(i,e.stylisPlugins)||a(e.stylisPlugins)}),[e.stylisPlugins]),n.createElement(F.Provider,{value:s},n.createElement(B.Provider,{value:c},e.children))}var X=function(){function e(e,t){var r=this;this.inject=function(e){e.hasNameForId(r.id,r.name)||e.insertRules(r.id,r.name,q.apply(void 0,r.stringifyArgs))},this.toString=function(){return m(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),Z=/([A-Z])/g,J=/^ms-/;function K(e){return e.replace(Z,"-$1").toLowerCase().replace(J,"-ms-")}var Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ee=function(e){return null==e||!1===e||""===e},te=function e(t,r){var n=[];return Object.keys(t).forEach((function(r){if(!ee(t[r])){if(o(t[r]))return n.push.apply(n,e(t[r],r)),n;if(l(t[r]))return n.push(K(r)+":",t[r],";"),n;n.push(K(r)+": "+(i=r,null==(a=t[r])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||i in Q?String(a).trim():a+"px")+";")}var i,a;return n})),r?[r+" {"].concat(n,["}"]):n};function re(e,t,r){if(Array.isArray(e)){for(var n,a=[],s=0,c=e.length;s<c;s+=1)""!==(n=re(e[s],t,r))&&(Array.isArray(n)?a.push.apply(a,n):a.push(n));return a}return ee(e)?"":i(e)?"."+e.styledComponentId:l(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:re(e(t),t,r):e instanceof X?r?(e.inject(r),e.getName()):e:o(e)?te(e):e.toString();var u}function ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return l(e)||o(e)?re(a(s,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:re(a(e,r))}function ie(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(l(r)&&!i(r))return!1}return!0}var ae=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ie(e)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(re(this.rules,t,r).join(""),""),a=this.componentId+e;r.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){z.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),oe=function(e,t,r){return void 0===r&&(r=c),e.theme!==r.theme&&e.theme||t||r.theme},se=n.createContext(),ce=se.Consumer;var le=/(a)(d)/gi,ue=function(e){return String.fromCharCode(e+(e>25?39:97))};function fe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ue(t%52)+r;return(ue(t%52)+r).replace(le,"$1-$2")}var de=function(e){return fe(D(e)>>>0)};var he=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),r=g();return"<style "+[r&&'nonce="'+r+'"',f+'="true"','data-styled-version="1.0.2"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?m(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return m(2);var r=((t={})[f]="",t["data-styled-version"]="1.0.2",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=g();return i&&(r.nonce=i),[n.createElement("style",u({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new z({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?m(2):n.createElement(Y,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return m(3)},e}(),pe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},me={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ve={};function ye(e){return r.isMemo(e)?me:ve[e.$$typeof]||pe}ve[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ve[r.Memo]=me;var be=Object.defineProperty,ke=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Se=Object.getOwnPropertyDescriptor,Ce=Object.getPrototypeOf,Ae=Object.prototype;var xe=function e(t,r,n){if("string"!=typeof r){if(Ae){var i=Ce(r);i&&i!==Ae&&e(t,i,n)}var a=ke(r);we&&(a=a.concat(we(r)));for(var o=ye(t),s=ye(r),c=0;c<a.length;++c){var l=a[c];if(!(ge[l]||n&&n[l]||s&&s[l]||o&&o[l])){var u=Se(r,l);try{be(t,l,u)}catch(e){}}}}return t},Oe={StyleSheet:z,masterSheet:W},Ie=Object.freeze({__proto__:null,createGlobalStyle:function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o=ne.apply(void 0,[e].concat(i)),c="sc-global-"+de(JSON.stringify(o)),l=new ae(o,c);function f(e){var r=U(),n=V(),i=t.useContext(se),a=t.useRef(null);null===a.current&&(a.current=r.allocateGSInstance(c));var o=a.current;if(l.isStatic)l.renderStyles(o,p,r,n);else{var d=u({},e,{theme:oe(e,i,f.defaultProps)});l.renderStyles(o,d,r,n)}return t.useEffect((function(){return function(){return l.removeStyles(o,r)}}),s),null}return n.memo(f)},css:ne,isStyledComponent:i,keyframes:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=ne.apply(void 0,[e].concat(r)).join(""),a=de(i);return new X(a,[i,a,"@keyframes"])},ServerStyleSheet:he,StyleSheetConsumer:H,StyleSheetContext:F,StyleSheetManager:Y,ThemeConsumer:ce,ThemeContext:se,ThemeProvider:function(e){var r=t.useContext(se),i=t.useMemo((function(){return function(e,t){return e?l(e)?e(t):Array.isArray(e)||"object"!=typeof e?m(8):t?u({},t,{},e):e:m(14)}(e.theme,r)}),[e.theme,r]);return e.children?n.createElement(se.Provider,{value:i},e.children):null},useTheme:function(){return t.useContext(se)},version:"1.0.2",withTheme:function(e){var r=n.forwardRef((function(r,i){var a=t.useContext(se),o=e.defaultProps,s=oe(r,a,o);return n.createElement(e,u({},r,{theme:s,ref:i}))}));return xe(r,e),r.displayName="WithTheme(undefined)",r},__PRIVATE__:Oe});var Re,Te,Pe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,je=(Re=function(e){return Pe.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},Te={},function(e){return void 0===Te[e]&&(Te[e]=Re(e)),Te[e]}),Ee=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ne=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function _e(e,t,r){var n=e[r];Ee(t)&&Ee(n)?ze(n,t):e[r]=t}function ze(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,a=r;i<a.length;i++){var o=a[i];if(Ee(o))for(var s in o)Ne(s)&&_e(e,o[s],s)}return e}var Me=function(){function e(e,t){this.rules=e,this.staticRulesId="",this.isStatic=ie(e),this.componentId=t,this.baseHash=D(t),z.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId;if(this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))return this.staticRulesId;var i=re(this.rules,e,t).join(""),a=fe($(this.baseHash,i.length)>>>0);if(!t.hasNameForId(n,a)){var o=r(i,"."+a,void 0,n);t.insertRules(n,a,o)}return this.staticRulesId=a,a}for(var s=this.rules.length,c=$(this.baseHash,r.hash),l="",u=0;u<s;u++){var f=this.rules[u];if("string"==typeof f)l+=f;else{var d=re(f,e,t),h=Array.isArray(d)?d.join(""):d;c=$(c,h+u),l+=h}}var p=fe(c>>>0);if(!t.hasNameForId(n,p)){var g=r(l,"."+p,void 0,n);t.insertRules(n,p,g)}return p},e}(),$e=/[[\].#*$><+~=|^:(),"'`-]+/g,De=/(^-|-$)/g;function Le(e){return e.replace($e,"-").replace(De,"")}function Ge(e){return"string"==typeof e&&!0}var Fe={};function He(e,r,n){var i=e.attrs,a=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,f=e.styledComponentId,d=e.target;t.useDebugValue(f);var h=function(e,t,r){void 0===e&&(e=c);var n=u({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,a,o=e;for(t in l(o)&&(o=o(n)),o)n[t]=i[t]="className"===t?(r=i[t],a=o[t],r&&a?r+" "+a:r||a):o[t]})),[n,i]}(oe(r,t.useContext(se),o)||c,r,i),p=h[0],g=h[1],m=function(e,r,n,i){var a=U(),o=V(),s=e.isStatic&&!r?e.generateAndInjectStyles(c,a,o):e.generateAndInjectStyles(n,a,o);return t.useDebugValue(s),s}(a,i.length>0,p),v=n,y=g.as||r.as||d,b=Ge(y),k=g!==r?u({},r,{},g):r,w=b||"as"in k||"forwardedAs"in k,S=w?{}:u({},k);if(w)for(var C in k)"forwardedAs"===C?S.as=k[C]:"as"===C||"forwardedAs"===C||b&&!je(C)||(S[C]=k[C]);return r.style&&g.style!==r.style&&(S.style=u({},r.style,{},g.style)),S.className=Array.prototype.concat(s,f,m!==f?m:null,r.className,g.className).filter(Boolean).join(" "),S.ref=v,t.createElement(y,S)}function Be(e,t,r){var a,o=i(e),c=!Ge(e),l=t.displayName,f=void 0===l?function(e){return Ge(e)?"styled."+e:"Styled(undefined)"}(e):l,d=t.componentId,h=void 0===d?function(e,t){var r="string"!=typeof e?"sc":Le(e);Fe[r]=(Fe[r]||0)+1;var n=r+"-"+de(r+Fe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):d,p=t.attrs,g=void 0===p?s:p,m=t.displayName&&t.componentId?Le(t.displayName)+"-"+t.componentId:t.componentId||h,v=o&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,y=new Me(o?e.componentStyle.rules.concat(r):r,m),b=function(e,t){return He(a,e,t)};return b.displayName=f,(a=n.forwardRef(b)).attrs=v,a.componentStyle=y,a.displayName=f,a.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):s,a.styledComponentId=m,a.target=o?e.target:e,a.withComponent=function(e){var n=t.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["componentId"]),a=n&&n+"-"+(Ge(e)?e:Le(void 0));return Be(e,u({},i,{attrs:v,componentId:a}),r)},Object.defineProperty(a,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?ze({},e.defaultProps,t):t}}),a.toString=function(){return"."+a.styledComponentId},c&&xe(a,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),a}var We=function(t){return function t(r,n,i){if(void 0===i&&(i=c),!e.isValidElementType(n))return m(1,String(n));var a=function(){return r(n,i,ne.apply(void 0,arguments))};return a.withConfig=function(e){return t(r,n,u({},i,{},e))},a.attrs=function(e){return t(r,n,u({},i,{attrs:Array.prototype.concat(i.attrs,e).filter(Boolean)}))},a}(Be,t)};for(var qe in["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","marquee","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","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){We[e]=We(e)})),Ie)We[qe]=Ie[qe];return We})); | ||
//# sourceMappingURL=styled-components.min.js.map |
{ | ||
"name": "@cruzach/styled-components", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress", | ||
@@ -5,0 +5,0 @@ "main": "dist/styled-components.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display