GitFOSS
William Nemenchainitial commit
86fb32e9/11/2022, 1:13:39 AM
.js
JavaScript
(text/javascript)
import e,{typeOf as t,isValidElementType as r}from"react-is";import n,{useState as a,useContext as i,useMemo as o,useEffect as s,useRef as c,useLayoutEffect as l,createElement as u}from"react";function d(e){function t(e,t,n){var a=t.trim().split(p);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<o;++l)t[c++]=r(e[l]+" ",a[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,i){var o=e+";",s=2*t+3*r+4*i;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===R||2===R&&a(c,1)?"-webkit-"+c+c:c}if(0===R||2===R&&!a(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 f.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-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(w,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(w,"")+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,i).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+i&&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 a(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),j(2!==t?n:n.replace(C,"$1"),r,t)}function i(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function o(e,t,r,n,a,i,o,s,l,u){for(var d,f=0,h=t;f<_;++f)switch(d=T[f].call(c,e,h,r,n,a,i,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?R=1:(R=2,j=e):R=0),s}function c(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<_){var c=o(-1,r,s,s,P,I,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var d=function e(r,s,c,d,f){for(var h,p,g,b,k,w=0,C=0,A=0,x=0,T=0,j=0,D=g=h=0,z=0,M=0,L=0,$=0,F=c.length,B=F-1,G="",H="",W="",Y="";z<F;){if(p=c.charCodeAt(z),z===B&&0!==C+x+A+w&&(0!==C&&(p=47===C?10:47),x=A=w=0,F++,B++),0===C+x+A+w){if(z===B&&(0<M&&(G=G.replace(u,"")),0<G.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:G+=c.charAt(z)}p=59}switch(p){case 123:for(h=(G=G.trim()).charCodeAt(0),g=1,$=++z;z<F;){switch(p=c.charCodeAt(z)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(z+1)){case 42:case 47:e:{for(D=z+1;D<B;++D)switch(c.charCodeAt(D)){case 47:if(42===p&&42===c.charCodeAt(D-1)&&z+2!==D){z=D+1;break e}break;case 10:if(47===p){z=D+1;break e}}z=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;z++<B&&c.charCodeAt(z)!==p;);}if(0===g)break;z++}switch(g=c.substring($,z),0===h&&(h=(G=G.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<M&&(G=G.replace(u,"")),p=G.charCodeAt(1)){case 100:case 109:case 115:case 45:M=s;break;default:M=E}if($=(g=e(s,M,g,p,f+1)).length,0<_&&(k=o(3,g,M=t(E,G,L),s,P,I,$,p,f,d),G=M.join(""),void 0!==k&&0===($=(g=k.trim()).length)&&(p=0,g="")),0<$)switch(p){case 115:G=G.replace(S,i);case 100:case 109:case 45:g=G+"{"+g+"}";break;case 107:g=(G=G.replace(m,"$1 $2"))+"{"+g+"}",g=1===R||2===R&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=G+g,112===d&&(H+=g,g="")}else g="";break;default:g=e(s,t(s,G,L),g,d,f+1)}W+=g,g=L=M=D=h=0,G="",p=c.charCodeAt(++z);break;case 125:case 59:if(1<($=(G=(0<M?G.replace(u,""):G).trim()).length))switch(0===D&&(h=G.charCodeAt(0),45===h||96<h&&123>h)&&($=(G=G.replace(" ",":")).length),0<_&&void 0!==(k=o(1,G,s,r,P,I,H.length,d,f,d))&&0===($=(G=k.trim()).length)&&(G="\0\0"),h=G.charCodeAt(0),p=G.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Y+=G+c.charAt(z);break}default:58!==G.charCodeAt($-1)&&(H+=n(G,h,p,G.charCodeAt(2)))}L=M=D=h=0,G="",p=c.charCodeAt(++z)}}switch(p){case 13:case 10:47===C?C=0:0===1+h&&107!==d&&0<G.length&&(M=1,G+="\0"),0<_*N&&o(0,G,s,r,P,I,H.length,d,f,d),I=1,P++;break;case 59:case 125:if(0===C+x+A+w){I++;break}default:switch(I++,b=c.charAt(z),p){case 9:case 32:if(0===x+w+C)switch(T){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+w&&(M=L=1,b="\f"+b);break;case 108:if(0===x+C+w+O&&0<D)switch(z-D){case 2:112===T&&58===c.charCodeAt(z-3)&&(O=T);case 8:111===j&&(O=j)}break;case 58:0===x+C+w&&(D=z);break;case 44:0===C+A+x+w&&(M=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&&w++;break;case 93:0===x+C+A&&w--;break;case 41:0===x+C+w&&A--;break;case 40:if(0===x+C+w){if(0===h)switch(2*T+3*j){case 533:break;default:h=1}A++}break;case 64:0===C+A+x+w+D+g&&(g=1);break;case 42:case 47:if(!(0<x+w+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(z+1)){case 235:C=47;break;case 220:$=z,C=42}break;case 42:47===p&&42===T&&$+2!==z&&(33===c.charCodeAt($+2)&&(H+=c.substring($,z+1)),b="",C=0)}}0===C&&(G+=b)}j=T,T=p,z++}if(0<($=H.length)){if(M=s,0<_&&(void 0!==(k=o(2,H,M,r,P,I,$,d,f,d))&&0===(H=k).length))return Y+H+W;if(H=M.join(",")+"{"+H+"}",0!=R*O){switch(2!==R||a(H,2)||(O=0),O){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}O=0}}return Y+H+W}(E,s,r,0,0);return 0<_&&(void 0!==(c=o(-2,d,s,s,P,I,d.length,0,0,0))&&(d=c)),"",O=0,I=P=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,f=/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}/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,I=1,P=1,O=0,R=1,E=[],T=[],_=0,j=null,N=0;return c.use=function e(t){switch(t){case void 0:case null:_=T.length=0;break;default:if("function"==typeof t)T[_++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else N=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var f={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 h,p,g=/^((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|disablePictureInPicture|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|inert|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)-.*))$/,m=(h=function(e){return g.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},p={},function(e){return void 0===p[e]&&(p[e]=h(e)),p[e]}),v={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},y={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},b={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},S={};function k(t){return e.isMemo(t)?b:S[t.$$typeof]||v}S[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},S[e.Memo]=b;var w=Object.defineProperty,C=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,x=Object.getOwnPropertyDescriptor,I=Object.getPrototypeOf,P=Object.prototype;var O=function e(t,r,n){if("string"!=typeof r){if(P){var a=I(r);a&&a!==P&&e(t,a,n)}var i=C(r);A&&(i=i.concat(A(r)));for(var o=k(t),s=k(r),c=0;c<i.length;++c){var l=i[c];if(!(y[l]||n&&n[l]||s&&s[l]||o&&o[l])){var u=x(r,l);try{w(t,l,u)}catch(e){}}}}return t};function R(){return(R=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 E=function(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r},T=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!t(e)},_=Object.freeze([]),j=Object.freeze({});function N(e){return"function"==typeof e}function D(e){return e.displayName||e.name||"Component"}function z(e){return e&&"string"==typeof e.styledComponentId}var M="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",L="5.2.1",$="undefined"!=typeof window&&"HTMLElement"in window,F=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),B={};function G(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://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var H=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,a=n;e>=a;)(a<<=1)<0&&G(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var i=n;i<a;i++)this.groupSizes[i]=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 a=r;a<n;a++)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),a=n+r,i=n;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),W=new Map,Y=new Map,U=1,q=function(e){if(W.has(e))return W.get(e);for(;Y.has(U);)U++;var t=U++;return W.set(e,t),Y.set(t,e),t},V=function(e){return Y.get(e)},X=function(e,t){W.set(e,t),Y.set(t,e)},Z="style["+M+'][data-styled-version="5.2.1"]',J=new RegExp("^"+M+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),K=function(e,t,r){for(var n,a=r.split(","),i=0,o=a.length;i<o;i++)(n=a[i])&&e.registerName(t,n)},Q=function(e,t){for(var r=t.innerHTML.split("/*!sc*/\n"),n=[],a=0,i=r.length;a<i;a++){var o=r[a].trim();if(o){var s=o.match(J);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(X(l,c),K(e,l,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(o)}}},ee=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},te=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(M))return n}}(r),i=void 0!==a?a.nextSibling:null;n.setAttribute(M,"active"),n.setAttribute("data-styled-version","5.2.1");var o=ee();return o&&n.setAttribute("nonce",o),r.insertBefore(n,i),n},re=function(){function e(e){var t=this.element=te(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 a=t[r];if(a.ownerNode===e)return a}G(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}(),ne=function(){function e(e){var t=this.element=te(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}(),ae=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}(),ie=$,oe={isServer:!$,useCSSOMInjection:!F},se=function(){function e(e,t,r){void 0===e&&(e=j),void 0===t&&(t={}),this.options=R({},oe,{},e),this.gs=t,this.names=new Map(r),!this.options.isServer&&$&&ie&&(ie=!1,function(e){for(var t=document.querySelectorAll(Z),r=0,n=t.length;r<n;r++){var a=t[r];a&&"active"!==a.getAttribute(M)&&(Q(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return q(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(R({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,a=t.target,e=r?new ae(a):n?new re(a):new ne(a),new H(e)));var e,t,r,n,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(q(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(q(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(q(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="",a=0;a<r;a++){var i=V(a);if(void 0!==i){var o=e.names.get(i),s=t.getGroup(a);if(void 0!==o&&0!==s.length){var c=M+".g"+a+'[id="'+i+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),ce=/(a)(d)/gi,le=function(e){return String.fromCharCode(e+(e>25?39:97))};function ue(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=le(t%52)+r;return(le(t%52)+r).replace(ce,"$1-$2")}var de=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fe=function(e){return de(5381,e)};function he(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(N(r)&&!z(r))return!1}return!0}var pe=fe("5.2.1"),ge=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&he(e),this.componentId=t,this.baseHash=de(pe,t),this.baseStyle=r,se.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))a.push(this.staticRulesId);else{var i=Ne(this.rules,e,t,r).join(""),o=ue(de(this.baseHash,i.length)>>>0);if(!t.hasNameForId(n,o)){var s=r(i,"."+o,void 0,n);t.insertRules(n,o,s)}a.push(o),this.staticRulesId=o}else{for(var c=this.rules.length,l=de(this.baseHash,r.hash),u="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=Ne(f,e,t,r),p=Array.isArray(h)?h.join(""):h;l=de(l,p+d),u+=p}}if(u){var g=ue(l>>>0);if(!t.hasNameForId(n,g)){var m=r(u,"."+g,void 0,n);t.insertRules(n,g,m)}a.push(g)}}return a.join(" ")},e}(),me=/^\s*\/\/.*$/gm,ve=[":","[",".","#"];function ye(e){var t,r,n,a,i=void 0===e?j:e,o=i.options,s=void 0===o?j:o,c=i.plugins,l=void 0===c?_:c,u=new d(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,i,o,s,c,l,u,d){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(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&ve.includes(i[r.length])||i.match(a)?e:"."+t};function g(e,i,o,s){void 0===s&&(s="&");var c=e.replace(me,""),l=i&&o?o+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),a=new RegExp("(\\"+r+"\\b){2,}"),u(o||!i?"":i,l)}return u.use([].concat(l,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=l.length?l.reduce((function(e,t){return t.name||G(15),de(e,t.name)}),5381).toString():"",g}var be=n.createContext(),Se=be.Consumer,ke=n.createContext(),we=(ke.Consumer,new se),Ce=ye();function Ae(){return i(be)||we}function xe(){return i(ke)||Ce}function Ie(e){var t=a(e.stylisPlugins),r=t[0],i=t[1],c=Ae(),l=o((function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=o((function(){return ye({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return s((function(){(function(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(a=r?r.call(n,u,d,l):void 0)||void 0===a&&u!==d)return!1}return!0})(r,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),n.createElement(be.Provider,{value:l},n.createElement(ke.Provider,{value:u},e.children))}var Pe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return G(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ce),this.name+e.hash},e}(),Oe=/([A-Z])/,Re=/([A-Z])/g,Ee=/^ms-/,Te=function(e){return"-"+e.toLowerCase()};function _e(e){return Oe.test(e)?e.replace(Re,Te).replace(Ee,"-ms-"):e}var je=function(e){return null==e||!1===e||""===e};function Ne(e,t,r,n){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o<s;o+=1)""!==(a=Ne(e[o],t,r,n))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}return je(e)?"":z(e)?"."+e.styledComponentId:N(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Ne(e(t),t,r,n):e instanceof Pe?r?(e.inject(r,n),e.getName(n)):e:T(e)?function e(t,r){var n,a,i=[];for(var o in t)t.hasOwnProperty(o)&&!je(t[o])&&(T(t[o])?i.push.apply(i,e(t[o],o)):N(t[o])?i.push(_e(o)+":",t[o],";"):i.push(_e(o)+": "+(n=o,(null==(a=t[o])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||n in f?String(a).trim():a+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}function De(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 N(e)||T(e)?Ne(E(_,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Ne(E(e,r))}var ze=function(e,t,r){return void 0===r&&(r=j),e.theme!==r.theme&&e.theme||t||r.theme},Me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Le=/(^-|-$)/g;function $e(e){return e.replace(Me,"-").replace(Le,"")}var Fe=function(e){return ue(fe(e)>>>0)};function Be(e){return"string"==typeof e&&!0}var Ge=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},He=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function We(e,t,r){var n=e[r];Ge(t)&&Ge(n)?Ye(n,t):e[r]=t}function Ye(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 a=0,i=r;a<i.length;a++){var o=i[a];if(Ge(o))for(var s in o)He(s)&&We(e,o[s],s)}return e}var Ue=n.createContext(),qe=Ue.Consumer;function Ve(e){var t=i(Ue),r=o((function(){return function(e,t){return e?N(e)?e(t):Array.isArray(e)||"object"!=typeof e?G(8):t?R({},t,{},e):e:G(14)}(e.theme,t)}),[e.theme,t]);return e.children?n.createElement(Ue.Provider,{value:r},e.children):null}var Xe={};function Ze(e,t,r){var a=z(e),o=!Be(e),s=t.attrs,c=void 0===s?_:s,l=t.componentId,d=void 0===l?function(e,t){var r="string"!=typeof e?"sc":$e(e);Xe[r]=(Xe[r]||0)+1;var n=r+"-"+Fe("5.2.1"+r+Xe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):l,f=t.displayName,h=void 0===f?function(e){return Be(e)?"styled."+e:"Styled("+D(e)+")"}(e):f,p=t.displayName&&t.componentId?$e(t.displayName)+"-"+t.componentId:t.componentId||d,g=a&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,v=t.shouldForwardProp;a&&e.shouldForwardProp&&(v=t.shouldForwardProp?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var y,b=new ge(r,p,a?e.componentStyle:void 0),S=b.isStatic&&0===c.length,k=function(e,t){return function(e,t,r,n){var a=e.attrs,o=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=j);var n=R({},t,{theme:e}),a={};return r.forEach((function(e){var t,r,i,o=e;for(t in N(o)&&(o=o(n)),o)n[t]=a[t]="className"===t?(r=a[t],i=o[t],r&&i?r+" "+i:r||i):o[t]})),[n,a]}(ze(t,i(Ue),s)||j,t,a),p=h[0],g=h[1],v=function(e,t,r,n){var a=Ae(),i=xe();return t?e.generateAndInjectStyles(j,a,i):e.generateAndInjectStyles(r,a,i)}(o,n,p),y=r,b=g.$as||t.$as||g.as||t.as||f,S=Be(b),k=g!==t?R({},t,{},g):t,w={};for(var C in k)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?w.as=k[C]:(l?l(C,m):!S||m(C))&&(w[C]=k[C]));return t.style&&g.style!==t.style&&(w.style=R({},t.style,{},g.style)),w.className=Array.prototype.concat(c,d,v!==d?v:null,t.className,g.className).filter(Boolean).join(" "),w.ref=y,u(b,w)}(y,e,t,S)};return k.displayName=h,(y=n.forwardRef(k)).attrs=g,y.componentStyle=b,y.displayName=h,y.shouldForwardProp=v,y.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,y.styledComponentId=p,y.target=a?e.target:e,y.withComponent=function(e){var n=t.componentId,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,["componentId"]),i=n&&n+"-"+(Be(e)?e:$e(D(e)));return Ze(e,R({},a,{attrs:g,componentId:i}),r)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?Ye({},e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},o&&O(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Je=function(e){return function e(t,n,a){if(void 0===a&&(a=j),!r(n))return G(1,String(n));var i=function(){return t(n,a,De.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,R({},a,{},r))},i.attrs=function(r){return e(t,n,R({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},i}(Ze,e)};["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){Je[e]=Je(e)}));var Ke=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=he(e),se.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var a=n(Ne(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&se.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Qe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];var o=De.apply(void 0,[e].concat(r)),s="sc-global-"+Fe(JSON.stringify(o)),u=new Ke(o,s);function d(e){var t=Ae(),r=xe(),n=i(Ue),a=c(t.allocateGSInstance(s)).current;return l((function(){return f(a,e,t,n,r),function(){return u.removeStyles(a,t)}}),[a,e,t,n,r]),null}function f(e,t,r,n,a){if(u.isStatic)u.renderStyles(e,B,r,a);else{var i=R({},t,{theme:ze(t,n,d.defaultProps)});u.renderStyles(e,i,r,a)}}return n.memo(d)}function et(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 a=De.apply(void 0,[e].concat(r)).join(""),i=Fe(a);return new Pe(i,a)}var tt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),r=ee();return"<style "+[r&&'nonce="'+r+'"',M+'="true"','data-styled-version="5.2.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?G(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return G(2);var r=((t={})[M]="",t["data-styled-version"]="5.2.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),a=ee();return a&&(r.nonce=a),[n.createElement("style",R({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new se({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?G(2):n.createElement(Ie,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return G(3)},e}(),rt=function(e){var t=n.forwardRef((function(t,r){var a=i(Ue),o=e.defaultProps,s=ze(t,a,o);return n.createElement(e,R({},t,{theme:s,ref:r}))}));return O(t,e),t.displayName="WithTheme("+D(e)+")",t},nt=function(){return i(Ue)},at={StyleSheet:se,masterSheet:we};const it=!0;export default Je;export{Je as styled,tt as ServerStyleSheet,Se as StyleSheetConsumer,be as StyleSheetContext,Ie as StyleSheetManager,qe as ThemeConsumer,Ue as ThemeContext,Ve as ThemeProvider,at as __PRIVATE__,it as __esModule,Qe as createGlobalStyle,De as css,z as isStyledComponent,et as keyframes,nt as useTheme,L as version,rt as withTheme};

William Nemenchainitial commit
86fb32e9/11/2022, 1:13:39 AM
.js
JavaScript
(text/javascript)
import e,{typeOf as t,isValidElementType as r}from"react-is";import n,{useState as a,useContext as i,useMemo as o,useEffect as s,useRef as c,useLayoutEffect as l,createElement as u}from"react";function d(e){function t(e,t,n){var a=t.trim().split(p);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<o;++l)t[c++]=r(e[l]+" ",a[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,i){var o=e+";",s=2*t+3*r+4*i;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===R||2===R&&a(c,1)?"-webkit-"+c+c:c}if(0===R||2===R&&!a(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 f.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-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(w,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(w,"")+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,i).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+i&&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 a(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),j(2!==t?n:n.replace(C,"$1"),r,t)}function i(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function o(e,t,r,n,a,i,o,s,l,u){for(var d,f=0,h=t;f<_;++f)switch(d=T[f].call(c,e,h,r,n,a,i,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!=typeof e?R=1:(R=2,j=e):R=0),s}function c(e,r){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<_){var c=o(-1,r,s,s,P,I,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var d=function e(r,s,c,d,f){for(var h,p,g,b,k,w=0,C=0,A=0,x=0,T=0,j=0,D=g=h=0,z=0,M=0,L=0,$=0,F=c.length,B=F-1,G="",H="",W="",Y="";z<F;){if(p=c.charCodeAt(z),z===B&&0!==C+x+A+w&&(0!==C&&(p=47===C?10:47),x=A=w=0,F++,B++),0===C+x+A+w){if(z===B&&(0<M&&(G=G.replace(u,"")),0<G.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:G+=c.charAt(z)}p=59}switch(p){case 123:for(h=(G=G.trim()).charCodeAt(0),g=1,$=++z;z<F;){switch(p=c.charCodeAt(z)){case 123:g++;break;case 125:g--;break;case 47:switch(p=c.charCodeAt(z+1)){case 42:case 47:e:{for(D=z+1;D<B;++D)switch(c.charCodeAt(D)){case 47:if(42===p&&42===c.charCodeAt(D-1)&&z+2!==D){z=D+1;break e}break;case 10:if(47===p){z=D+1;break e}}z=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;z++<B&&c.charCodeAt(z)!==p;);}if(0===g)break;z++}switch(g=c.substring($,z),0===h&&(h=(G=G.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<M&&(G=G.replace(u,"")),p=G.charCodeAt(1)){case 100:case 109:case 115:case 45:M=s;break;default:M=E}if($=(g=e(s,M,g,p,f+1)).length,0<_&&(k=o(3,g,M=t(E,G,L),s,P,I,$,p,f,d),G=M.join(""),void 0!==k&&0===($=(g=k.trim()).length)&&(p=0,g="")),0<$)switch(p){case 115:G=G.replace(S,i);case 100:case 109:case 45:g=G+"{"+g+"}";break;case 107:g=(G=G.replace(m,"$1 $2"))+"{"+g+"}",g=1===R||2===R&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=G+g,112===d&&(H+=g,g="")}else g="";break;default:g=e(s,t(s,G,L),g,d,f+1)}W+=g,g=L=M=D=h=0,G="",p=c.charCodeAt(++z);break;case 125:case 59:if(1<($=(G=(0<M?G.replace(u,""):G).trim()).length))switch(0===D&&(h=G.charCodeAt(0),45===h||96<h&&123>h)&&($=(G=G.replace(" ",":")).length),0<_&&void 0!==(k=o(1,G,s,r,P,I,H.length,d,f,d))&&0===($=(G=k.trim()).length)&&(G="\0\0"),h=G.charCodeAt(0),p=G.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Y+=G+c.charAt(z);break}default:58!==G.charCodeAt($-1)&&(H+=n(G,h,p,G.charCodeAt(2)))}L=M=D=h=0,G="",p=c.charCodeAt(++z)}}switch(p){case 13:case 10:47===C?C=0:0===1+h&&107!==d&&0<G.length&&(M=1,G+="\0"),0<_*N&&o(0,G,s,r,P,I,H.length,d,f,d),I=1,P++;break;case 59:case 125:if(0===C+x+A+w){I++;break}default:switch(I++,b=c.charAt(z),p){case 9:case 32:if(0===x+w+C)switch(T){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+w&&(M=L=1,b="\f"+b);break;case 108:if(0===x+C+w+O&&0<D)switch(z-D){case 2:112===T&&58===c.charCodeAt(z-3)&&(O=T);case 8:111===j&&(O=j)}break;case 58:0===x+C+w&&(D=z);break;case 44:0===C+A+x+w&&(M=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&&w++;break;case 93:0===x+C+A&&w--;break;case 41:0===x+C+w&&A--;break;case 40:if(0===x+C+w){if(0===h)switch(2*T+3*j){case 533:break;default:h=1}A++}break;case 64:0===C+A+x+w+D+g&&(g=1);break;case 42:case 47:if(!(0<x+w+A))switch(C){case 0:switch(2*p+3*c.charCodeAt(z+1)){case 235:C=47;break;case 220:$=z,C=42}break;case 42:47===p&&42===T&&$+2!==z&&(33===c.charCodeAt($+2)&&(H+=c.substring($,z+1)),b="",C=0)}}0===C&&(G+=b)}j=T,T=p,z++}if(0<($=H.length)){if(M=s,0<_&&(void 0!==(k=o(2,H,M,r,P,I,$,d,f,d))&&0===(H=k).length))return Y+H+W;if(H=M.join(",")+"{"+H+"}",0!=R*O){switch(2!==R||a(H,2)||(O=0),O){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}O=0}}return Y+H+W}(E,s,r,0,0);return 0<_&&(void 0!==(c=o(-2,d,s,s,P,I,d.length,0,0,0))&&(d=c)),"",O=0,I=P=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,f=/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}/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,I=1,P=1,O=0,R=1,E=[],T=[],_=0,j=null,N=0;return c.use=function e(t){switch(t){case void 0:case null:_=T.length=0;break;default:if("function"==typeof t)T[_++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else N=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var f={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 h,p,g=/^((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|disablePictureInPicture|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|inert|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)-.*))$/,m=(h=function(e){return g.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},p={},function(e){return void 0===p[e]&&(p[e]=h(e)),p[e]}),v={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},y={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},b={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},S={};function k(t){return e.isMemo(t)?b:S[t.$$typeof]||v}S[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},S[e.Memo]=b;var w=Object.defineProperty,C=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,x=Object.getOwnPropertyDescriptor,I=Object.getPrototypeOf,P=Object.prototype;var O=function e(t,r,n){if("string"!=typeof r){if(P){var a=I(r);a&&a!==P&&e(t,a,n)}var i=C(r);A&&(i=i.concat(A(r)));for(var o=k(t),s=k(r),c=0;c<i.length;++c){var l=i[c];if(!(y[l]||n&&n[l]||s&&s[l]||o&&o[l])){var u=x(r,l);try{w(t,l,u)}catch(e){}}}}return t};function R(){return(R=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 E=function(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r},T=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!t(e)},_=Object.freeze([]),j=Object.freeze({});function N(e){return"function"==typeof e}function D(e){return e.displayName||e.name||"Component"}function z(e){return e&&"string"==typeof e.styledComponentId}var M="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",L="5.2.1",$="undefined"!=typeof window&&"HTMLElement"in window,F=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),B={};function G(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://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var H=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,a=n;e>=a;)(a<<=1)<0&&G(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var i=n;i<a;i++)this.groupSizes[i]=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 a=r;a<n;a++)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),a=n+r,i=n;i<a;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),W=new Map,Y=new Map,U=1,q=function(e){if(W.has(e))return W.get(e);for(;Y.has(U);)U++;var t=U++;return W.set(e,t),Y.set(t,e),t},V=function(e){return Y.get(e)},X=function(e,t){W.set(e,t),Y.set(t,e)},Z="style["+M+'][data-styled-version="5.2.1"]',J=new RegExp("^"+M+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),K=function(e,t,r){for(var n,a=r.split(","),i=0,o=a.length;i<o;i++)(n=a[i])&&e.registerName(t,n)},Q=function(e,t){for(var r=t.innerHTML.split("/*!sc*/\n"),n=[],a=0,i=r.length;a<i;a++){var o=r[a].trim();if(o){var s=o.match(J);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(X(l,c),K(e,l,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(o)}}},ee=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},te=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(M))return n}}(r),i=void 0!==a?a.nextSibling:null;n.setAttribute(M,"active"),n.setAttribute("data-styled-version","5.2.1");var o=ee();return o&&n.setAttribute("nonce",o),r.insertBefore(n,i),n},re=function(){function e(e){var t=this.element=te(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 a=t[r];if(a.ownerNode===e)return a}G(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}(),ne=function(){function e(e){var t=this.element=te(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}(),ae=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}(),ie=$,oe={isServer:!$,useCSSOMInjection:!F},se=function(){function e(e,t,r){void 0===e&&(e=j),void 0===t&&(t={}),this.options=R({},oe,{},e),this.gs=t,this.names=new Map(r),!this.options.isServer&&$&&ie&&(ie=!1,function(e){for(var t=document.querySelectorAll(Z),r=0,n=t.length;r<n;r++){var a=t[r];a&&"active"!==a.getAttribute(M)&&(Q(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return q(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(R({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,a=t.target,e=r?new ae(a):n?new re(a):new ne(a),new H(e)));var e,t,r,n,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(q(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(q(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(q(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="",a=0;a<r;a++){var i=V(a);if(void 0!==i){var o=e.names.get(i),s=t.getGroup(a);if(void 0!==o&&0!==s.length){var c=M+".g"+a+'[id="'+i+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),n+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return n}(this)},e}(),ce=/(a)(d)/gi,le=function(e){return String.fromCharCode(e+(e>25?39:97))};function ue(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=le(t%52)+r;return(le(t%52)+r).replace(ce,"$1-$2")}var de=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fe=function(e){return de(5381,e)};function he(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(N(r)&&!z(r))return!1}return!0}var pe=fe("5.2.1"),ge=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&he(e),this.componentId=t,this.baseHash=de(pe,t),this.baseStyle=r,se.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))a.push(this.staticRulesId);else{var i=Ne(this.rules,e,t,r).join(""),o=ue(de(this.baseHash,i.length)>>>0);if(!t.hasNameForId(n,o)){var s=r(i,"."+o,void 0,n);t.insertRules(n,o,s)}a.push(o),this.staticRulesId=o}else{for(var c=this.rules.length,l=de(this.baseHash,r.hash),u="",d=0;d<c;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=Ne(f,e,t,r),p=Array.isArray(h)?h.join(""):h;l=de(l,p+d),u+=p}}if(u){var g=ue(l>>>0);if(!t.hasNameForId(n,g)){var m=r(u,"."+g,void 0,n);t.insertRules(n,g,m)}a.push(g)}}return a.join(" ")},e}(),me=/^\s*\/\/.*$/gm,ve=[":","[",".","#"];function ye(e){var t,r,n,a,i=void 0===e?j:e,o=i.options,s=void 0===o?j:o,c=i.plugins,l=void 0===c?_:c,u=new d(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,i,o,s,c,l,u,d){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(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&ve.includes(i[r.length])||i.match(a)?e:"."+t};function g(e,i,o,s){void 0===s&&(s="&");var c=e.replace(me,""),l=i&&o?o+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),a=new RegExp("(\\"+r+"\\b){2,}"),u(o||!i?"":i,l)}return u.use([].concat(l,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=l.length?l.reduce((function(e,t){return t.name||G(15),de(e,t.name)}),5381).toString():"",g}var be=n.createContext(),Se=be.Consumer,ke=n.createContext(),we=(ke.Consumer,new se),Ce=ye();function Ae(){return i(be)||we}function xe(){return i(ke)||Ce}function Ie(e){var t=a(e.stylisPlugins),r=t[0],i=t[1],c=Ae(),l=o((function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=o((function(){return ye({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return s((function(){(function(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(a=r?r.call(n,u,d,l):void 0)||void 0===a&&u!==d)return!1}return!0})(r,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),n.createElement(be.Provider,{value:l},n.createElement(ke.Provider,{value:u},e.children))}var Pe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return G(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ce),this.name+e.hash},e}(),Oe=/([A-Z])/,Re=/([A-Z])/g,Ee=/^ms-/,Te=function(e){return"-"+e.toLowerCase()};function _e(e){return Oe.test(e)?e.replace(Re,Te).replace(Ee,"-ms-"):e}var je=function(e){return null==e||!1===e||""===e};function Ne(e,t,r,n){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o<s;o+=1)""!==(a=Ne(e[o],t,r,n))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}return je(e)?"":z(e)?"."+e.styledComponentId:N(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Ne(e(t),t,r,n):e instanceof Pe?r?(e.inject(r,n),e.getName(n)):e:T(e)?function e(t,r){var n,a,i=[];for(var o in t)t.hasOwnProperty(o)&&!je(t[o])&&(T(t[o])?i.push.apply(i,e(t[o],o)):N(t[o])?i.push(_e(o)+":",t[o],";"):i.push(_e(o)+": "+(n=o,(null==(a=t[o])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||n in f?String(a).trim():a+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}function De(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 N(e)||T(e)?Ne(E(_,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Ne(E(e,r))}var ze=function(e,t,r){return void 0===r&&(r=j),e.theme!==r.theme&&e.theme||t||r.theme},Me=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Le=/(^-|-$)/g;function $e(e){return e.replace(Me,"-").replace(Le,"")}var Fe=function(e){return ue(fe(e)>>>0)};function Be(e){return"string"==typeof e&&!0}var Ge=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},He=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function We(e,t,r){var n=e[r];Ge(t)&&Ge(n)?Ye(n,t):e[r]=t}function Ye(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 a=0,i=r;a<i.length;a++){var o=i[a];if(Ge(o))for(var s in o)He(s)&&We(e,o[s],s)}return e}var Ue=n.createContext(),qe=Ue.Consumer;function Ve(e){var t=i(Ue),r=o((function(){return function(e,t){return e?N(e)?e(t):Array.isArray(e)||"object"!=typeof e?G(8):t?R({},t,{},e):e:G(14)}(e.theme,t)}),[e.theme,t]);return e.children?n.createElement(Ue.Provider,{value:r},e.children):null}var Xe={};function Ze(e,t,r){var a=z(e),o=!Be(e),s=t.attrs,c=void 0===s?_:s,l=t.componentId,d=void 0===l?function(e,t){var r="string"!=typeof e?"sc":$e(e);Xe[r]=(Xe[r]||0)+1;var n=r+"-"+Fe("5.2.1"+r+Xe[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):l,f=t.displayName,h=void 0===f?function(e){return Be(e)?"styled."+e:"Styled("+D(e)+")"}(e):f,p=t.displayName&&t.componentId?$e(t.displayName)+"-"+t.componentId:t.componentId||d,g=a&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,v=t.shouldForwardProp;a&&e.shouldForwardProp&&(v=t.shouldForwardProp?function(r,n){return e.shouldForwardProp(r,n)&&t.shouldForwardProp(r,n)}:e.shouldForwardProp);var y,b=new ge(r,p,a?e.componentStyle:void 0),S=b.isStatic&&0===c.length,k=function(e,t){return function(e,t,r,n){var a=e.attrs,o=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=j);var n=R({},t,{theme:e}),a={};return r.forEach((function(e){var t,r,i,o=e;for(t in N(o)&&(o=o(n)),o)n[t]=a[t]="className"===t?(r=a[t],i=o[t],r&&i?r+" "+i:r||i):o[t]})),[n,a]}(ze(t,i(Ue),s)||j,t,a),p=h[0],g=h[1],v=function(e,t,r,n){var a=Ae(),i=xe();return t?e.generateAndInjectStyles(j,a,i):e.generateAndInjectStyles(r,a,i)}(o,n,p),y=r,b=g.$as||t.$as||g.as||t.as||f,S=Be(b),k=g!==t?R({},t,{},g):t,w={};for(var C in k)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?w.as=k[C]:(l?l(C,m):!S||m(C))&&(w[C]=k[C]));return t.style&&g.style!==t.style&&(w.style=R({},t.style,{},g.style)),w.className=Array.prototype.concat(c,d,v!==d?v:null,t.className,g.className).filter(Boolean).join(" "),w.ref=y,u(b,w)}(y,e,t,S)};return k.displayName=h,(y=n.forwardRef(k)).attrs=g,y.componentStyle=b,y.displayName=h,y.shouldForwardProp=v,y.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,y.styledComponentId=p,y.target=a?e.target:e,y.withComponent=function(e){var n=t.componentId,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,["componentId"]),i=n&&n+"-"+(Be(e)?e:$e(D(e)));return Ze(e,R({},a,{attrs:g,componentId:i}),r)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?Ye({},e.defaultProps,t):t}}),y.toString=function(){return"."+y.styledComponentId},o&&O(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Je=function(e){return function e(t,n,a){if(void 0===a&&(a=j),!r(n))return G(1,String(n));var i=function(){return t(n,a,De.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,R({},a,{},r))},i.attrs=function(r){return e(t,n,R({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},i}(Ze,e)};["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){Je[e]=Je(e)}));var Ke=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=he(e),se.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var a=n(Ne(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&se.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Qe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];var o=De.apply(void 0,[e].concat(r)),s="sc-global-"+Fe(JSON.stringify(o)),u=new Ke(o,s);function d(e){var t=Ae(),r=xe(),n=i(Ue),a=c(t.allocateGSInstance(s)).current;return l((function(){return f(a,e,t,n,r),function(){return u.removeStyles(a,t)}}),[a,e,t,n,r]),null}function f(e,t,r,n,a){if(u.isStatic)u.renderStyles(e,B,r,a);else{var i=R({},t,{theme:ze(t,n,d.defaultProps)});u.renderStyles(e,i,r,a)}}return n.memo(d)}function et(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 a=De.apply(void 0,[e].concat(r)).join(""),i=Fe(a);return new Pe(i,a)}var tt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),r=ee();return"<style "+[r&&'nonce="'+r+'"',M+'="true"','data-styled-version="5.2.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?G(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return G(2);var r=((t={})[M]="",t["data-styled-version"]="5.2.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),a=ee();return a&&(r.nonce=a),[n.createElement("style",R({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new se({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?G(2):n.createElement(Ie,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return G(3)},e}(),rt=function(e){var t=n.forwardRef((function(t,r){var a=i(Ue),o=e.defaultProps,s=ze(t,a,o);return n.createElement(e,R({},t,{theme:s,ref:r}))}));return O(t,e),t.displayName="WithTheme("+D(e)+")",t},nt=function(){return i(Ue)},at={StyleSheet:se,masterSheet:we};const it=!0;export default Je;export{Je as styled,tt as ServerStyleSheet,Se as StyleSheetConsumer,be as StyleSheetContext,Ie as StyleSheetManager,qe as ThemeConsumer,Ue as ThemeContext,Ve as ThemeProvider,at as __PRIVATE__,it as __esModule,Qe as createGlobalStyle,De as css,z as isStyledComponent,et as keyframes,nt as useTheme,L as version,rt as withTheme};

GitFOSS • v0.2.0 (#421408f) • MIT License