Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

formidable-oss-badges

Package Overview
Dependencies
Maintainers
31
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formidable-oss-badges - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dist/project-badges.cjs.js

2

dist/formidable-oss-badges.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("stylis/stylis.min"),require("stylis-rule-sheet"),require("react"),require("react-is"),require("stream"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","stylis/stylis.min","stylis-rule-sheet","react","react-is","stream","prop-types","react-dom"],t):t(e.ProjectBadges={},e.Stylis,e._insertRulePlugin,e.React,e.reactIs,e.stream,e.propTypes,e.ReactDOM)}(this,function(e,t,n,r,o,i,a,s){"use strict";function l(e,t){void 0===t&&(t=P);var n,r,o=[],i=!1,a=function(e,n){return t(e,o[n],n)};return function(){for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];return i&&n===this&&s.length===o.length&&s.every(a)?r:(r=e.apply(this,s),i=!0,n=this,o=s,r)}}function c(e){return"function"==typeof e}function u(e){return e.displayName||e.name||"Component"}function d(e){return e&&"string"==typeof e.styledComponentId}function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(ne,""),i=t&&n?n+" "+t+" { "+o+" }":o;return le=r,ce=t,ue=new RegExp("\\"+ce+"\\b","g"),oe(n||!t?"":t,i)}function f(e){return e.replace(He,"-$1").toLowerCase().replace(Ge,"-ms-")}function h(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in N?String(t).trim():t+"px"}function m(e,t,n){if(Array.isArray(e)){for(var r,i=[],a=0,s=e.length;a<s;a+=1)null!==(r=m(e[a],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}if(qe(e))return null;if(d(e))return"."+e.styledComponentId;if(c(e)){if(t){var l=!1;try{o.isElement(new e(t))&&(l=!0)}catch(e){}if(l)throw new ee(13,u(e));return m(e(t),t,n)}return e}return e instanceof De?n?(e.inject(n),e.getName()):e:$(e)?Ve(e):e.toString()}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return m(c(e)||$(e)?z(X,[e].concat(n)):z(e,n))}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y;if(!o.isValidElementType(t))throw new ee(1,String(t));var r=function(){return e(t,n,y.apply(void 0,arguments))};return r.withConfig=function(r){return g(e,t,q({},n,r))},r.attrs=function(r){return g(e,t,q({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function v(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,((r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}function b(e){var t="",n=void 0;for(n=e;n>We;n=Math.floor(n/We))t=Ue(n%We)+t;return Ue(n%We)+t}function S(e){for(var t in e)if(c(e[t]))return!0;return!1}function w(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!w(r,t))return!1;if(c(r)&&!d(r))return!1}return!t.some(function(e){return c(e)||S(e)})}function C(e){return e.replace(Ze,"-").replace(Ke,"")}function x(e){return"string"==typeof e}function I(e){return x(e)?"styled."+e:"Styled("+u(e)+")"}function O(e,t,n){if("string"!=typeof t){var r=st(t);r&&r!==lt&&O(e,r,n);for(var o=ct.concat(rt(t),it(t)),i=tt[e.$$typeof]||Qe,a=tt[t.$$typeof]||Qe,s=o.length,l=void 0,c=void 0;s--;)if(c=o[s],!(et[c]||n&&n[c]||a&&a[c]||i&&i[c])&&(l=at(t,c)))try{nt(e,c,l)}catch(e){}return e}return e}function k(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}function j(e,t,n){var r="string"!=typeof t?"sc":C(t),o=(ht[r]||0)+1;ht[r]=o;var i=r+"-"+e.generateName(r+o);return n?n+"-"+i:i}function A(e,t,n){var r=d(e),o=!x(e),i=t.displayName,a=void 0===i?I(e):i,s=t.componentId,l=void 0===s?j(Ye,t.displayName,t.parentComponentId):s,c=t.ParentComponent,p=void 0===c?mt:c,f=t.attrs,h=void 0===f?X:f,m=t.displayName&&t.componentId?C(t.displayName)+"-"+t.componentId:t.componentId||l,y=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,g=new Ye(r?e.componentStyle.rules.concat(n):n,y,m),v=R.forwardRef(function(e,t){return R.createElement(p,q({},e,{forwardedClass:v,forwardedRef:t}))});return v.attrs=y,v.componentStyle=g,v.displayName=a,v.styledComponentId=m,v.target=r?e.target:e,v.withComponent=function(e){var r=t.componentId,o=W(t,["componentId"]),i=r&&r+"-"+(x(e)?e:C(u(e)));return A(e,q({},o,{attrs:y,componentId:i,ParentComponent:p}),n)},v.toString=function(){return"."+v.styledComponentId},o&&O(v,e,{attrs:!0,componentStyle:!0,displayName:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}function E(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=y.apply(void 0,[e].concat(n)),i=b(v(vt(JSON.stringify(o))));return new De(i,p(o,i,"@keyframes"))}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var R="default"in r?r.default:r;i=i&&i.hasOwnProperty("default")?i.default:i,a=a&&a.hasOwnProperty("default")?a.default:a,s=s&&s.hasOwnProperty("default")?s.default:s;var M=function(e){return RegExp("[gjpqy]").test(e)?"50%":"52%"},T=function(e,t,n,r){if(0===n)return e.concat(t);if(t.length+e[e.length-1].length<=10){var o=e.pop()+" "+t;return e.concat(o)}return e.concat(t)},N={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},P=function(e,t){return e===t},F=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|valueLink|accept|acceptCharset|accessKey|action|allow|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|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|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|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)|(on[A-Z].*)|((data|aria|x)-.*))$/i,L=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(F.test.bind(F)),B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=function(e,t){return e.raw=t,e},z=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},D="function"==typeof Symbol&&"symbol"===B(Symbol.iterator)?function(e){return void 0===e?"undefined":B(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":B(e)},H=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":B(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},W=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},U=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":B(t))&&"function"!=typeof t?e:t},$=function(e){return"object"===(void 0===e?"undefined":D(e))&&e.constructor===Object},X=Object.freeze([]),Y=Object.freeze({}),J="undefined"!=typeof process&&process.env.SC_ATTR||"data-styled",Z="undefined"!=typeof window&&"HTMLElement"in window,K="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1,Q={},ee=function(e){function t(n){H(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=U(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/src/utils/errors.md#"+n+" for more information. "+(o?"Additional arguments: "+o.join(", "):"")));return U(a)}return V(t,e),t}(Error),te=function(e){var t=""+(e||""),n=[];return t.replace(/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var o=e.componentId,i=e.matchIndex,a=n[r+1];return{componentId:o,cssFromDOM:a?t.slice(i,a.matchIndex):t.slice(i)}})},ne=/^\s*\/\/.*$/gm,re=new t({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),oe=new t({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),ie=[],ae=function(e){if(-2===e){var t=ie;return ie=[],t}},se=n(function(e){ie.push(e)}),le=void 0,ce=void 0,ue=void 0,de=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(ce)&&n.slice(t-ce.length,t)!==ce?"."+le:e},pe=function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(ce)>0&&(n[0]=n[0].replace(ue,de))};oe.use([pe,se,ae]),re.use([se,ae]);var fe=function(e){return re("",e)},he=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},me=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},ye=function(e,t){e[t]=Object.create(null)},ge=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},ve=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},be=function(e){var t=Object.create(null);for(var n in e)t[n]=q({},e[n]);return t},Se=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n<t;n+=1){var r=document.styleSheets[n];if(r.ownerNode===e)return r}throw new ee(10)},we=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},Ce=function(e,t,n){for(var r=t-n,o=t;o>r;o-=1)e.deleteRule(o)},xe=function(e){return"\n/* sc-component-id: "+e+" */\n"},Ie=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},Oe=function(e,t,n){var r=document.createElement("style");r.setAttribute(J,""),r.setAttribute("data-styled-version","4.1.1");var o=he();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new ee(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r},ke=function(e,t){return function(n){var r=he();return"<style "+[r&&'nonce="'+r+'"',J+'="'+ve(t)+'"','data-styled-version="4.1.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},je=function(e,t){return function(){var n,r=(n={},n[J]=ve(t),n["data-styled-version"]="4.1.1",n),o=he();return o&&(r.nonce=o),R.createElement("style",q({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},Ae=function(e){return function(){return Object.keys(e)}},Ee=function(e,t){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),ye(n,e),r[e])},l=function(r,l,c){for(var u=s(r),d=Se(e),p=Ie(o,u),f=0,h=[],m=l.length,y=0;y<m;y+=1){var g=l[y],v=i;v&&-1!==g.indexOf("@import")?h.push(g):we(d,g,p+f)&&(v=!1,f+=1)}i&&h.length>0&&(a=!0,t().insertRules(r+"-import",h)),o[u]+=f,me(n,r,c)},c=function(s){var l=r[s];if(void 0!==l){var c=o[l],u=Se(e),d=Ie(o,l)-1;Ce(u,d,c),o[l]=0,ye(n,s),i&&a&&t().removeRules(s+"-import")}},u=function(){var t=Se(e).cssRules,n="";for(var i in r){n+=xe(i);for(var a=r[i],s=Ie(o,a),l=s-o[a];l<s;l+=1){var c=t[l];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new ee(5)},css:u,getIds:Ae(r),hasNameForId:ge(n),insertMarker:s,insertRules:l,removeRules:c,sealed:!1,styleTag:e,toElement:je(u,n),toHTML:ke(u,n)}},Re=function(e){return document.createTextNode(xe(e))},Me=function(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,i=!1,a=function(t){var o=r[t];return void 0!==o?o:(r[t]=Re(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(e,r,s){for(var l=a(e),c=[],u=r.length,d=0;d<u;d+=1){var p=r[d],f=o;if(f&&-1!==p.indexOf("@import"))c.push(p);else{f=!1;var h=d===u-1?"":" ";l.appendData(""+p+h)}}me(n,e,s),o&&c.length>0&&(i=!0,t().insertRules(e+"-import",c))},l=function(a){var s=r[a];if(void 0!==s){var l=Re(a);e.replaceChild(l,s),r[a]=l,ye(n,a),o&&i&&t().removeRules(a+"-import")}},c=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new ee(5)},css:c,getIds:Ae(r),hasNameForId:ge(n),insertMarker:a,insertRules:s,removeRules:l,sealed:!1,styleTag:e,toElement:je(c,n),toHTML:ke(c,n)}},Te=function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},a=function(e,t,n){i(e)[0]+=t.join(" "),me(r,e,n)},s=function(e){var t=o[e];void 0!==t&&(t[0]="",ye(r,e))},l=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=xe(t)+n)}return e};return{clone:function(){var t=be(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return e(t,n)},css:l,getIds:Ae(o),hasNameForId:ge(r),insertMarker:i,insertRules:a,removeRules:s,sealed:!1,styleTag:null,toElement:je(l,r),toHTML:ke(l,r)}},Ne=function(e,t,n,r,o){if(Z&&!n){var i=Oe(e,t,r);return K?Me(i,o):Ee(i,o)}return Te()},Pe=function(e,t,n){for(var r=0,o=n.length;r<o;r+=1){var i=n[r],a=i.componentId,s=i.cssFromDOM,l=fe(s);e.insertRules(a,l)}for(var c=0,u=t.length;c<u;c+=1){var d=t[c];d.parentNode&&d.parentNode.removeChild(d)}},Fe=void 0;Fe=Z?K?40:1e3:-1;var Le,Be=0,_e=void 0,ze=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];H(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=Ne(t.target,n?n.styleTag:null,t.forceServer,!0)},Be+=1,this.id=Be,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!Z||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+J+'][data-styled-version="4.1.1"]'),o=r.length;if(!o)return this;for(var i=0;i<o;i+=1){var a=r[i];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,l=(a.getAttribute(J)||"").trim().split(/\s+/),c=l.length,u=0;u<c;u+=1)s=l[u],this.rehydratedNames[s]=!0;t.push.apply(t,te(a.textContent)),e.push(a)}var d=t.length;if(!d)return this;var p=this.makeTag(null);Pe(p,e,t),this.capacity=Math.max(1,Fe-d),this.tags.push(p);for(var f=0;f<d;f+=1)this.tagMap[t[f].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_e=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),o=0;o<n.length;o+=1)t.tagMap[n[o]]=r;return r}),t.rehydratedNames=q({},this.rehydratedNames),t.deferred=q({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach(function(e){e.sealed=!0})},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return Ne(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=Fe,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,o=0;o<r.length;o+=1)r[o].inject(e,t,n);var i=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);i.insertRules(e,a,n),this.deferred[e]=void 0}else i.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map(function(t,n){var o="sc-"+e+"-"+n;return r.cloneElement(t.toElement(),{key:o})})},G(e,null,[{key:"master",get:function(){return _e||(_e=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),De=function(){function e(t,n){var r=this;H(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new ee(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),He=/([A-Z])/g,Ge=/^ms-/,qe=function(e){return void 0===e||null===e||!1===e||""===e},Ve=function e(t,n){var r=Object.keys(t).filter(function(e){return!qe(t[e])}).map(function(n){return $(t[n])?e(t[n],n):f(n)+": "+h(n,t[n])+";"}).join(" ");return n?n+" {\n "+r+"\n}":r},We=52,Ue=function(e){return String.fromCharCode(e+(e>25?39:97))},$e=!1,Xe=function(e){return b(v(e))},Ye=function(){function e(t,n,r){H(this,e),this.rules=t,this.isStatic=!$e&&w(t,n),this.componentId=r,ze.master.hasId(r)||ze.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,o=this.lastClassName;if(Z&&n&&"string"==typeof o&&t.hasNameForId(r,o))return o;var i=m(this.rules,e,t),a=Xe(this.componentId+i.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,p(i,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return Xe(e)},e}(),Je=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Ze=/[[\].#*$><+~=|^:(),"'`-]+/g,Ke=/(^-|-$)/g,Qe={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},et={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tt=(Le={},Le[o.ForwardRef]={$$typeof:!0,render:!0},Le),nt=Object.defineProperty,rt=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,it=void 0===ot?function(){return[]}:ot,at=Object.getOwnPropertyDescriptor,st=Object.getPrototypeOf,lt=Object.prototype,ct=Array.prototype,ut=r.createContext(),dt=ut.Consumer,pt=(function(e){function t(n){H(this,t);var r=U(this,e.call(this,n));return r.getContext=l(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}V(t,e),t.prototype.render=function(){return this.props.children?R.createElement(ut.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return R.createElement(ut.Provider,{value:t},R.Children.only(this.props.children))},t.prototype.getTheme=function(e,t){if(c(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":D(e)))throw new ee(8);return q({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)}}(r.Component),r.createContext()),ft=pt.Consumer,ht=(function(e){function t(n){H(this,t);var r=U(this,e.call(this,n));return r.getContext=l(r.getContext),r}V(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new ze(t);throw new ee(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return R.createElement(pt.Provider,{value:this.getContext(n,r)},t)}}(r.Component),{}),mt=function(e){function t(){H(this,t);var n=U(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return V(t,e),t.prototype.render=function(){return R.createElement(ft,null,this.renderOuter)},t.prototype.renderOuter=function(e){return this.styleSheet=e,this.props.forwardedClass.componentStyle.isStatic?this.renderInner():R.createElement(dt,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedClass,n=t.componentStyle,o=t.defaultProps,i=t.styledComponentId,a=t.target,s=void 0;s=n.isStatic?this.generateAndInjectStyles(Y,this.props,this.styleSheet):void 0!==e?this.generateAndInjectStyles(Je(this.props,e,o),this.props,this.styleSheet):this.generateAndInjectStyles(this.props.theme||Y,this.props,this.styleSheet);var l=this.props.as||this.attrs.as||a,c=x(l),u={},d=q({},this.attrs,this.props),p=void 0;for(p in d)"forwardedClass"!==p&&"as"!==p&&("forwardedRef"===p?u.ref=d[p]:c&&!L(p)||(u[p]=d[p]));return this.props.style&&this.attrs.style&&(u.style=q({},this.attrs.style,this.props.style)),u.className=[this.props.className,i,this.attrs.className,s].filter(Boolean).join(" "),r.createElement(l,u)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,o=q({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var n=e,i=!1,a=void 0,s=void 0;c(n)&&(n=n(t),i=!0);for(s in n)a=n[s],i||!c(a)||k(a)||d(a)||(a=a(o)),r.attrs[s]=a,o[s]=a}),o):o},t.prototype.generateAndInjectStyles=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ze.master,r=t.forwardedClass,o=r.attrs,i=r.componentStyle;r.warnTooManyClasses;return i.isStatic&&!o.length?i.generateAndInjectStyles(Y,n):i.generateAndInjectStyles(this.buildExecutionContext(e,t,o),n)},t}(r.Component),yt=function(e){return g(A,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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){yt[e]=yt(e)});var gt=function(){function e(t,n){H(this,e),this.rules=t,this.componentId=n,this.isStatic=w(t,X),ze.master.hasId(n)||ze.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=p(m(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();Z&&(window.scCGSHMRCache={});var vt=function(e){return e.replace(/\s|\\n/g,"")},bt=_(['\n @font-face {\n font-family: "Bai Jamjuree Semi Bold";\n src: url(',');\n }\n \n @font-face {\n font-family: "Work Sans Semi Bold";\n src: url(',");\n }\n"],['\n @font-face {\n font-family: "Bai Jamjuree Semi Bold";\n src: url(',');\n }\n \n @font-face {\n font-family: "Work Sans Semi Bold";\n src: url(',");\n }\n"]),St=_([""],[""]),wt=_(["\n 0% {\n opacity: 0.4;\n }\n 60% {\n opacity: 0.1;\n }\n 75% {\n opacity: 0.1;\n }\n 85% {\n opacity: 0.5;\n }\n 100% {\n opacity: 0.4;\n }\n"],["\n 0% {\n opacity: 0.4;\n }\n 60% {\n opacity: 0.1;\n }\n 75% {\n opacity: 0.1;\n }\n 85% {\n opacity: 0.5;\n }\n 100% {\n opacity: 0.4;\n }\n"]),Ct=_(["\n 0% {\n opacity: 0.7;\n }\n 60% {\n opacity: 0.4;\n }\n 75% {\n opacity: 0.4;\n }\n 85% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.7;\n }\n"],["\n 0% {\n opacity: 0.7;\n }\n 60% {\n opacity: 0.4;\n }\n 75% {\n opacity: 0.4;\n }\n 85% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.7;\n }\n"]),xt=_(["\n &:hover "," {\n animation: "," 1s;\n }\n &:hover "," {\n animation: "," 1s;\n }\n"],["\n &:hover "," {\n animation: "," 1s;\n }\n &:hover "," {\n animation: "," 1s;\n }\n"]),It=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=y.apply(void 0,[e].concat(n)),i="sc-global-"+v(JSON.stringify(o)),a=new gt(o,i),s=function(e){function t(){H(this,t);var n=U(this,e.call(this)),r=n.constructor,o=r.globalStyle,i=r.styledComponentId;return Z&&(window.scCGSHMRCache[i]=(window.scCGSHMRCache[i]||0)+1),n.state={globalStyle:o,styledComponentId:i},n}return V(t,e),t.prototype.componentDidMount=function(){},t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return R.createElement(ft,null,function(t){e.styleSheet=t||ze.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(Q,e.styleSheet),null):R.createElement(dt,null,function(t){var r=e.constructor.defaultProps,o=q({},e.props);return void 0!==t&&(o.theme=Je(e.props,t,r)),n.renderStyles(o,e.styleSheet),null})})},t}(R.Component);return s.defaultProps={suppressMultiMountWarning:!1},s.globalStyle=a,s.styledComponentId=i,s}(bt),Ot=yt.path(St),kt=yt.path(St),jt=E(wt),At=E(Ct),Et=yt.svg(xt,Ot,At,kt,jt),Rt=function(e){var t=e.color,n=void 0===t?"#FFFFFF":t,r=e.abbreviation,o=e.description,i=e.number,a=e.className,s=o&&o.split(" ").reduce(T,[]),l=s&&s.map(function(e,t,n){return R.createElement("text",{x:"39%",y:(1===n.length?"66":65+6*t)+"%",fontFamily:"Work Sans Semi Bold",fontSize:1===n.length?"24":"18",letterSpacing:1.8,fill:"#1D1E1F",textAnchor:"middle"},e.toUpperCase())}),c=M(r);return R.createElement(R.Fragment,null,R.createElement(It,null),R.createElement(Et,{viewBox:"0 0 380 374",className:a},R.createElement("defs",null,R.createElement("filter",{x:"-25.7%",y:"-25.2%",width:"151.3%",height:"150.3%",filterUnits:"objectBoundingBox",id:"Badge_Copy_svg__a"},R.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),R.createElement("feGaussianBlur",{stdDeviation:20,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),R.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),R.createElement("feMerge",null,R.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),R.createElement("feMergeNode",{in:"SourceGraphic"})))),R.createElement("g",{filter:"url(#Badge_Copy_svg__a)",transform:"translate(40 34)",x:"0",fill:"none",fillRule:"evenodd"},R.createElement("path",{d:"M170.918 9.364l97.823 43.419a52 52 0 0 1 30.904 47.528V205.69a52 52 0 0 1-30.904 47.528l-97.823 43.42a52 52 0 0 1-42.192 0l-97.822-43.42A52 52 0 0 1 0 205.689V100.31a52 52 0 0 1 30.904-47.528l97.822-43.42a52 52 0 0 1 42.192 0z",fill:"#202020"}),R.createElement("path",{d:"M7 220h286c-4.967 18.355-52.765 44.09-143.393 77.203C57.192 265.586 9.657 239.852 7 220z",fill:n}),R.createElement(kt,{d:"M149.822 39.175L45.223 85.501A15.5 15.5 0 0 0 36 99.673v106.543a15.5 15.5 0 0 0 9.314 14.212l104.508 45.485 104.508-45.485a15.5 15.5 0 0 0 9.315-14.212V99.673a15.5 15.5 0 0 0-9.223-14.172l-104.6-46.326zm0-13.124l109.476 48.401c9.717 4.378 16.347 14.34 16.347 25.221v106.543a27.5 27.5 0 0 1-16.526 25.215L149.822 279 40.526 231.431A27.5 27.5 0 0 1 24 206.216V99.673c0-10.88 6.826-21.025 16.364-25.22L149.822 26.05z",fill:n,fillRule:"nonzero",opacity:.4,className:"innerRing"}),R.createElement(Ot,{d:"M149.822 26.118L40.691 74.3A28 28 0 0 0 24 99.914v106.172A28 28 0 0 0 40.691 231.7l109.131 48.182L258.954 231.7a28 28 0 0 0 16.69-25.614V99.914a28 28 0 0 0-16.69-25.614L149.822 26.118zM149.988 13l113.657 50.643c14.493 6.399 24 20.428 24 36.271v106.172a40 40 0 0 1-23.844 36.592L149.822 293 35.844 242.678A40 40 0 0 1 12 206.086V99.914c0-15.843 9.66-29.91 23.844-36.23L149.988 13z",fill:n,fillRule:"nonzero",opacity:.7,className:"middleRing"}),R.createElement("path",{d:"M166.05 20.332a40 40 0 0 0-32.455 0l-97.823 43.42A40 40 0 0 0 12 100.311v105.377a40 40 0 0 0 23.772 36.56l97.823 43.42a40 40 0 0 0 32.455 0l97.822-43.42a40 40 0 0 0 23.773-36.56V100.31a40 40 0 0 0-23.773-36.56l-97.822-43.42zm4.868-10.968l97.823 43.419a52 52 0 0 1 30.904 47.528V205.69a52 52 0 0 1-30.904 47.528l-97.823 43.42a52 52 0 0 1-42.192 0l-97.822-43.42A52 52 0 0 1 0 205.689V100.31a52 52 0 0 1 30.904-47.528l97.822-43.42a52 52 0 0 1 42.192 0z",fill:n,fillRule:"nonzero"}),R.createElement("text",{fill:n,fontFamily:"Bai Jamjuree Semi Bold",fontSize:140,x:"39%",y:c,textAnchor:"middle",letterSpacing:-4},r),R.createElement("path",{d:"M150.175 9l35.21 18.827c-4.524 15.062-18.576 26.044-35.21 26.044-16.556 0-30.554-10.878-35.146-25.831L150.175 9z",fill:n}),R.createElement("text",{fontFamily:"Work Sans Semi Bold",fill:"#1D1E1F",fontSize:"24px",letterSpacing:.138,textAnchor:"middle",x:"39.5%",y:"10%"},i),l)))};e.ProjectBadge=Rt,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("stylis/stylis.min"),require("stylis-rule-sheet"),require("react"),require("react-is"),require("stream"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","stylis/stylis.min","stylis-rule-sheet","react","react-is","stream","prop-types","react-dom"],t):t(e.ProjectBadges={},e.Stylis,e._insertRulePlugin,e.React,e.reactIs,e.stream,e.propTypes,e.ReactDOM)}(this,function(e,t,n,r,o,i,a,s){"use strict";function l(e,t){void 0===t&&(t=P);var n,r,o=[],i=!1,a=function(e,n){return t(e,o[n],n)};return function(){for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];return i&&n===this&&s.length===o.length&&s.every(a)?r:(r=e.apply(this,s),i=!0,n=this,o=s,r)}}function c(e){return"function"==typeof e}function u(e){return e.displayName||e.name||"Component"}function d(e){return e&&"string"==typeof e.styledComponentId}function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",o=e.join("").replace(ne,""),i=t&&n?n+" "+t+" { "+o+" }":o;return le=r,ce=t,ue=new RegExp("\\"+ce+"\\b","g"),oe(n||!t?"":t,i)}function f(e){return e.replace(He,"-$1").toLowerCase().replace(Ge,"-ms-")}function h(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in N?String(t).trim():t+"px"}function m(e,t,n){if(Array.isArray(e)){for(var r,i=[],a=0,s=e.length;a<s;a+=1)null!==(r=m(e[a],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}if(Ve(e))return null;if(d(e))return"."+e.styledComponentId;if(c(e)){if(t){var l=!1;try{o.isElement(new e(t))&&(l=!0)}catch(e){}if(l)throw new ee(13,u(e));return m(e(t),t,n)}return e}return e instanceof De?n?(e.inject(n),e.getName()):e:$(e)?qe(e):e.toString()}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return m(c(e)||$(e)?L(X,[e].concat(n)):L(e,n))}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y;if(!o.isValidElementType(t))throw new ee(1,String(t));var r=function(){return e(t,n,y.apply(void 0,arguments))};return r.withConfig=function(r){return g(e,t,V({},n,r))},r.attrs=function(r){return g(e,t,V({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}function v(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,((r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}function b(e){var t="",n=void 0;for(n=e;n>We;n=Math.floor(n/We))t=Ue(n%We)+t;return Ue(n%We)+t}function S(e){for(var t in e)if(c(e[t]))return!0;return!1}function w(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!w(r,t))return!1;if(c(r)&&!d(r))return!1}return!t.some(function(e){return c(e)||S(e)})}function x(e){return e.replace(Ze,"-").replace(Ke,"")}function C(e){return"string"==typeof e}function O(e){return C(e)?"styled."+e:"Styled("+u(e)+")"}function I(e,t,n){if("string"!=typeof t){var r=st(t);r&&r!==lt&&I(e,r,n);for(var o=ct.concat(rt(t),it(t)),i=tt[e.$$typeof]||Qe,a=tt[t.$$typeof]||Qe,s=o.length,l=void 0,c=void 0;s--;)if(c=o[s],!(et[c]||n&&n[c]||a&&a[c]||i&&i[c])&&(l=at(t,c)))try{nt(e,c,l)}catch(e){}return e}return e}function k(e){return!!(e&&e.prototype&&e.prototype.isReactComponent)}function E(e,t,n){var r="string"!=typeof t?"sc":x(t),o=(ht[r]||0)+1;ht[r]=o;var i=r+"-"+e.generateName(r+o);return n?n+"-"+i:i}function A(e,t,n){var r=d(e),o=!C(e),i=t.displayName,a=void 0===i?O(e):i,s=t.componentId,l=void 0===s?E(Ye,t.displayName,t.parentComponentId):s,c=t.ParentComponent,p=void 0===c?mt:c,f=t.attrs,h=void 0===f?X:f,m=t.displayName&&t.componentId?x(t.displayName)+"-"+t.componentId:t.componentId||l,y=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,g=new Ye(r?e.componentStyle.rules.concat(n):n,y,m),v=R.forwardRef(function(e,t){return R.createElement(p,V({},e,{forwardedClass:v,forwardedRef:t}))});return v.attrs=y,v.componentStyle=g,v.displayName=a,v.styledComponentId=m,v.target=r?e.target:e,v.withComponent=function(e){var r=t.componentId,o=W(t,["componentId"]),i=r&&r+"-"+(C(e)?e:x(u(e)));return A(e,V({},o,{attrs:y,componentId:i,ParentComponent:p}),n)},v.toString=function(){return"."+v.styledComponentId},o&&I(v,e,{attrs:!0,componentStyle:!0,displayName:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}function j(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=y.apply(void 0,[e].concat(n)),i=b(v(vt(JSON.stringify(o))));return new De(i,p(o,i,"@keyframes"))}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var R="default"in r?r.default:r;i=i&&i.hasOwnProperty("default")?i.default:i,a=a&&a.hasOwnProperty("default")?a.default:a,s=s&&s.hasOwnProperty("default")?s.default:s;var M=function(e){return RegExp("[gjpqy]").test(e)?"50%":"52%"},T=function(e,t,n,r){if(0===n)return e.concat(t);if(t.length+e[e.length-1].length<=10){var o=e.pop()+" "+t;return e.concat(o)}return e.concat(t)},N={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},P=function(e,t){return e===t},F=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|valueLink|accept|acceptCharset|accessKey|action|allow|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|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|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|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)|(on[A-Z].*)|((data|aria|x)-.*))$/i,B=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(F.test.bind(F)),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(e,t){return e.raw=t,e},L=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},D="function"==typeof Symbol&&"symbol"===_(Symbol.iterator)?function(e){return void 0===e?"undefined":_(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_(e)},H=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":_(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},W=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},U=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":_(t))&&"function"!=typeof t?e:t},$=function(e){return"object"===(void 0===e?"undefined":D(e))&&e.constructor===Object},X=Object.freeze([]),Y=Object.freeze({}),J="undefined"!=typeof process&&process.env.SC_ATTR||"data-styled",Z="undefined"!=typeof window&&"HTMLElement"in window,K="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1,Q={},ee=function(e){function t(n){H(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=U(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/src/utils/errors.md#"+n+" for more information. "+(o?"Additional arguments: "+o.join(", "):"")));return U(a)}return q(t,e),t}(Error),te=function(e){var t=""+(e||""),n=[];return t.replace(/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var o=e.componentId,i=e.matchIndex,a=n[r+1];return{componentId:o,cssFromDOM:a?t.slice(i,a.matchIndex):t.slice(i)}})},ne=/^\s*\/\/.*$/gm,re=new t({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),oe=new t({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),ie=[],ae=function(e){if(-2===e){var t=ie;return ie=[],t}},se=n(function(e){ie.push(e)}),le=void 0,ce=void 0,ue=void 0,de=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(ce)&&n.slice(t-ce.length,t)!==ce?"."+le:e},pe=function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(ce)>0&&(n[0]=n[0].replace(ue,de))};oe.use([pe,se,ae]),re.use([se,ae]);var fe=function(e){return re("",e)},he=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},me=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},ye=function(e,t){e[t]=Object.create(null)},ge=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},ve=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},be=function(e){var t=Object.create(null);for(var n in e)t[n]=V({},e[n]);return t},Se=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n<t;n+=1){var r=document.styleSheets[n];if(r.ownerNode===e)return r}throw new ee(10)},we=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},xe=function(e,t,n){for(var r=t-n,o=t;o>r;o-=1)e.deleteRule(o)},Ce=function(e){return"\n/* sc-component-id: "+e+" */\n"},Oe=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},Ie=function(e,t,n){var r=document.createElement("style");r.setAttribute(J,""),r.setAttribute("data-styled-version","4.1.1");var o=he();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new ee(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r},ke=function(e,t){return function(n){var r=he();return"<style "+[r&&'nonce="'+r+'"',J+'="'+ve(t)+'"','data-styled-version="4.1.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},Ee=function(e,t){return function(){var n,r=(n={},n[J]=ve(t),n["data-styled-version"]="4.1.1",n),o=he();return o&&(r.nonce=o),R.createElement("style",V({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},Ae=function(e){return function(){return Object.keys(e)}},je=function(e,t){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),ye(n,e),r[e])},l=function(r,l,c){for(var u=s(r),d=Se(e),p=Oe(o,u),f=0,h=[],m=l.length,y=0;y<m;y+=1){var g=l[y],v=i;v&&-1!==g.indexOf("@import")?h.push(g):we(d,g,p+f)&&(v=!1,f+=1)}i&&h.length>0&&(a=!0,t().insertRules(r+"-import",h)),o[u]+=f,me(n,r,c)},c=function(s){var l=r[s];if(void 0!==l){var c=o[l],u=Se(e),d=Oe(o,l)-1;xe(u,d,c),o[l]=0,ye(n,s),i&&a&&t().removeRules(s+"-import")}},u=function(){var t=Se(e).cssRules,n="";for(var i in r){n+=Ce(i);for(var a=r[i],s=Oe(o,a),l=s-o[a];l<s;l+=1){var c=t[l];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new ee(5)},css:u,getIds:Ae(r),hasNameForId:ge(n),insertMarker:s,insertRules:l,removeRules:c,sealed:!1,styleTag:e,toElement:Ee(u,n),toHTML:ke(u,n)}},Re=function(e){return document.createTextNode(Ce(e))},Me=function(e,t){var n=Object.create(null),r=Object.create(null),o=void 0!==t,i=!1,a=function(t){var o=r[t];return void 0!==o?o:(r[t]=Re(t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(e,r,s){for(var l=a(e),c=[],u=r.length,d=0;d<u;d+=1){var p=r[d],f=o;if(f&&-1!==p.indexOf("@import"))c.push(p);else{f=!1;var h=d===u-1?"":" ";l.appendData(""+p+h)}}me(n,e,s),o&&c.length>0&&(i=!0,t().insertRules(e+"-import",c))},l=function(a){var s=r[a];if(void 0!==s){var l=Re(a);e.replaceChild(l,s),r[a]=l,ye(n,a),o&&i&&t().removeRules(a+"-import")}},c=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new ee(5)},css:c,getIds:Ae(r),hasNameForId:ge(n),insertMarker:a,insertRules:s,removeRules:l,sealed:!1,styleTag:e,toElement:Ee(c,n),toHTML:ke(c,n)}},Te=function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},a=function(e,t,n){i(e)[0]+=t.join(" "),me(r,e,n)},s=function(e){var t=o[e];void 0!==t&&(t[0]="",ye(r,e))},l=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=Ce(t)+n)}return e};return{clone:function(){var t=be(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return e(t,n)},css:l,getIds:Ae(o),hasNameForId:ge(r),insertMarker:i,insertRules:a,removeRules:s,sealed:!1,styleTag:null,toElement:Ee(l,r),toHTML:ke(l,r)}},Ne=function(e,t,n,r,o){if(Z&&!n){var i=Ie(e,t,r);return K?Me(i,o):je(i,o)}return Te()},Pe=function(e,t,n){for(var r=0,o=n.length;r<o;r+=1){var i=n[r],a=i.componentId,s=i.cssFromDOM,l=fe(s);e.insertRules(a,l)}for(var c=0,u=t.length;c<u;c+=1){var d=t[c];d.parentNode&&d.parentNode.removeChild(d)}},Fe=void 0;Fe=Z?K?40:1e3:-1;var Be,_e=0,ze=void 0,Le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];H(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=Ne(t.target,n?n.styleTag:null,t.forceServer,!0)},_e+=1,this.id=_e,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!Z||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+J+'][data-styled-version="4.1.1"]'),o=r.length;if(!o)return this;for(var i=0;i<o;i+=1){var a=r[i];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,l=(a.getAttribute(J)||"").trim().split(/\s+/),c=l.length,u=0;u<c;u+=1)s=l[u],this.rehydratedNames[s]=!0;t.push.apply(t,te(a.textContent)),e.push(a)}var d=t.length;if(!d)return this;var p=this.makeTag(null);Pe(p,e,t),this.capacity=Math.max(1,Fe-d),this.tags.push(p);for(var f=0;f<d;f+=1)this.tagMap[t[f].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ze=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),o=0;o<n.length;o+=1)t.tagMap[n[o]]=r;return r}),t.rehydratedNames=V({},this.rehydratedNames),t.deferred=V({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach(function(e){e.sealed=!0})},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return Ne(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=Fe,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,o=0;o<r.length;o+=1)r[o].inject(e,t,n);var i=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);i.insertRules(e,a,n),this.deferred[e]=void 0}else i.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map(function(t,n){var o="sc-"+e+"-"+n;return r.cloneElement(t.toElement(),{key:o})})},G(e,null,[{key:"master",get:function(){return ze||(ze=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),De=function(){function e(t,n){var r=this;H(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new ee(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),He=/([A-Z])/g,Ge=/^ms-/,Ve=function(e){return void 0===e||null===e||!1===e||""===e},qe=function e(t,n){var r=Object.keys(t).filter(function(e){return!Ve(t[e])}).map(function(n){return $(t[n])?e(t[n],n):f(n)+": "+h(n,t[n])+";"}).join(" ");return n?n+" {\n "+r+"\n}":r},We=52,Ue=function(e){return String.fromCharCode(e+(e>25?39:97))},$e=!1,Xe=function(e){return b(v(e))},Ye=function(){function e(t,n,r){H(this,e),this.rules=t,this.isStatic=!$e&&w(t,n),this.componentId=r,Le.master.hasId(r)||Le.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,o=this.lastClassName;if(Z&&n&&"string"==typeof o&&t.hasNameForId(r,o))return o;var i=m(this.rules,e,t),a=Xe(this.componentId+i.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,p(i,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return Xe(e)},e}(),Je=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,r=!!n&&e.theme===n.theme;return e.theme&&!r?e.theme:t||n.theme},Ze=/[[\].#*$><+~=|^:(),"'`-]+/g,Ke=/(^-|-$)/g,Qe={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},et={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tt=(Be={},Be[o.ForwardRef]={$$typeof:!0,render:!0},Be),nt=Object.defineProperty,rt=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,it=void 0===ot?function(){return[]}:ot,at=Object.getOwnPropertyDescriptor,st=Object.getPrototypeOf,lt=Object.prototype,ct=Array.prototype,ut=r.createContext(),dt=ut.Consumer,pt=(function(e){function t(n){H(this,t);var r=U(this,e.call(this,n));return r.getContext=l(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}q(t,e),t.prototype.render=function(){return this.props.children?R.createElement(ut.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return R.createElement(ut.Provider,{value:t},R.Children.only(this.props.children))},t.prototype.getTheme=function(e,t){if(c(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":D(e)))throw new ee(8);return V({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)}}(r.Component),r.createContext()),ft=pt.Consumer,ht=(function(e){function t(n){H(this,t);var r=U(this,e.call(this,n));return r.getContext=l(r.getContext),r}q(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new Le(t);throw new ee(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return R.createElement(pt.Provider,{value:this.getContext(n,r)},t)}}(r.Component),{}),mt=function(e){function t(){H(this,t);var n=U(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return q(t,e),t.prototype.render=function(){return R.createElement(ft,null,this.renderOuter)},t.prototype.renderOuter=function(e){return this.styleSheet=e,this.props.forwardedClass.componentStyle.isStatic?this.renderInner():R.createElement(dt,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedClass,n=t.componentStyle,o=t.defaultProps,i=t.styledComponentId,a=t.target,s=void 0;s=n.isStatic?this.generateAndInjectStyles(Y,this.props,this.styleSheet):void 0!==e?this.generateAndInjectStyles(Je(this.props,e,o),this.props,this.styleSheet):this.generateAndInjectStyles(this.props.theme||Y,this.props,this.styleSheet);var l=this.props.as||this.attrs.as||a,c=C(l),u={},d=V({},this.attrs,this.props),p=void 0;for(p in d)"forwardedClass"!==p&&"as"!==p&&("forwardedRef"===p?u.ref=d[p]:c&&!B(p)||(u[p]=d[p]));return this.props.style&&this.attrs.style&&(u.style=V({},this.attrs.style,this.props.style)),u.className=[this.props.className,i,this.attrs.className,s].filter(Boolean).join(" "),r.createElement(l,u)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,o=V({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var n=e,i=!1,a=void 0,s=void 0;c(n)&&(n=n(t),i=!0);for(s in n)a=n[s],i||!c(a)||k(a)||d(a)||(a=a(o)),r.attrs[s]=a,o[s]=a}),o):o},t.prototype.generateAndInjectStyles=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Le.master,r=t.forwardedClass,o=r.attrs,i=r.componentStyle;r.warnTooManyClasses;return i.isStatic&&!o.length?i.generateAndInjectStyles(Y,n):i.generateAndInjectStyles(this.buildExecutionContext(e,t,o),n)},t}(r.Component),yt=function(e){return g(A,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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){yt[e]=yt(e)});var gt=function(){function e(t,n){H(this,e),this.rules=t,this.componentId=n,this.isStatic=w(t,X),Le.master.hasId(n)||Le.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=p(m(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();Z&&(window.scCGSHMRCache={});var vt=function(e){return e.replace(/\s|\\n/g,"")},bt=z(['\n @font-face {\n font-family: "Bai Jamjuree Semi Bold";\n src: url(',');\n }\n \n @font-face {\n font-family: "Work Sans Semi Bold";\n src: url(',");\n }\n"],['\n @font-face {\n font-family: "Bai Jamjuree Semi Bold";\n src: url(',');\n }\n \n @font-face {\n font-family: "Work Sans Semi Bold";\n src: url(',");\n }\n"]),St=z([""],[""]),wt=z(["\n 0% {\n opacity: 0.4;\n }\n 60% {\n opacity: 0.1;\n }\n 75% {\n opacity: 0.1;\n }\n 85% {\n opacity: 0.5;\n }\n 100% {\n opacity: 0.4;\n }\n"],["\n 0% {\n opacity: 0.4;\n }\n 60% {\n opacity: 0.1;\n }\n 75% {\n opacity: 0.1;\n }\n 85% {\n opacity: 0.5;\n }\n 100% {\n opacity: 0.4;\n }\n"]),xt=z(["\n 0% {\n opacity: 0.7;\n }\n 60% {\n opacity: 0.4;\n }\n 75% {\n opacity: 0.4;\n }\n 85% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.7;\n }\n"],["\n 0% {\n opacity: 0.7;\n }\n 60% {\n opacity: 0.4;\n }\n 75% {\n opacity: 0.4;\n }\n 85% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.7;\n }\n"]),Ct=z(["\n &:hover "," {\n animation: "," 1s;\n }\n &:hover "," {\n animation: "," 1s;\n }\n"],["\n &:hover "," {\n animation: "," 1s;\n }\n &:hover "," {\n animation: "," 1s;\n }\n"]),Ot=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=y.apply(void 0,[e].concat(n)),i="sc-global-"+v(JSON.stringify(o)),a=new gt(o,i),s=function(e){function t(){H(this,t);var n=U(this,e.call(this)),r=n.constructor,o=r.globalStyle,i=r.styledComponentId;return Z&&(window.scCGSHMRCache[i]=(window.scCGSHMRCache[i]||0)+1),n.state={globalStyle:o,styledComponentId:i},n}return q(t,e),t.prototype.componentDidMount=function(){},t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return R.createElement(ft,null,function(t){e.styleSheet=t||Le.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(Q,e.styleSheet),null):R.createElement(dt,null,function(t){var r=e.constructor.defaultProps,o=V({},e.props);return void 0!==t&&(o.theme=Je(e.props,t,r)),n.renderStyles(o,e.styleSheet),null})})},t}(R.Component);return s.defaultProps={suppressMultiMountWarning:!1},s.globalStyle=a,s.styledComponentId=i,s}(bt),It=yt.path(St),kt=yt.path(St),Et=j(wt),At=j(xt),jt=yt.svg(Ct,It,At,kt,Et),Rt=function(e){var t=e.color,n=void 0===t?"#FFFFFF":t,r=e.abbreviation,o=e.description,i=e.number,a=e.className,s=e.children,l=o&&o.split(" ").reduce(T,[]),c=l&&l.map(function(e,t,n){return R.createElement("text",{key:"description-"+t,x:"39%",y:(1===n.length?"66":65+6*t)+"%",fontFamily:"Work Sans Semi Bold",fontSize:1===n.length?"24":"18",letterSpacing:1.8,fill:"#1D1E1F",textAnchor:"middle"},e.toUpperCase())}),u=M(r);return R.createElement(R.Fragment,null,R.createElement(Ot,null),R.createElement(jt,{viewBox:"0 0 380 374",className:a},R.createElement("defs",null,R.createElement("filter",{x:"-25.7%",y:"-25.2%",width:"151.3%",height:"150.3%",filterUnits:"objectBoundingBox",id:"Badge_Copy_svg__a"},R.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),R.createElement("feGaussianBlur",{stdDeviation:20,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),R.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),R.createElement("feMerge",null,R.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),R.createElement("feMergeNode",{in:"SourceGraphic"})))),R.createElement("g",{filter:"url(#Badge_Copy_svg__a)",transform:"translate(40 34)",x:"0",fill:"none",fillRule:"evenodd"},R.createElement("path",{d:"M170.918 9.364l97.823 43.419a52 52 0 0 1 30.904 47.528V205.69a52 52 0 0 1-30.904 47.528l-97.823 43.42a52 52 0 0 1-42.192 0l-97.822-43.42A52 52 0 0 1 0 205.689V100.31a52 52 0 0 1 30.904-47.528l97.822-43.42a52 52 0 0 1 42.192 0z",fill:"#202020"}),R.createElement("path",{d:"M7 220h286c-4.967 18.355-52.765 44.09-143.393 77.203C57.192 265.586 9.657 239.852 7 220z",fill:n}),R.createElement(kt,{d:"M149.822 39.175L45.223 85.501A15.5 15.5 0 0 0 36 99.673v106.543a15.5 15.5 0 0 0 9.314 14.212l104.508 45.485 104.508-45.485a15.5 15.5 0 0 0 9.315-14.212V99.673a15.5 15.5 0 0 0-9.223-14.172l-104.6-46.326zm0-13.124l109.476 48.401c9.717 4.378 16.347 14.34 16.347 25.221v106.543a27.5 27.5 0 0 1-16.526 25.215L149.822 279 40.526 231.431A27.5 27.5 0 0 1 24 206.216V99.673c0-10.88 6.826-21.025 16.364-25.22L149.822 26.05z",fill:n,fillRule:"nonzero",opacity:.4,className:"innerRing"}),R.createElement(It,{d:"M149.822 26.118L40.691 74.3A28 28 0 0 0 24 99.914v106.172A28 28 0 0 0 40.691 231.7l109.131 48.182L258.954 231.7a28 28 0 0 0 16.69-25.614V99.914a28 28 0 0 0-16.69-25.614L149.822 26.118zM149.988 13l113.657 50.643c14.493 6.399 24 20.428 24 36.271v106.172a40 40 0 0 1-23.844 36.592L149.822 293 35.844 242.678A40 40 0 0 1 12 206.086V99.914c0-15.843 9.66-29.91 23.844-36.23L149.988 13z",fill:n,fillRule:"nonzero",opacity:.7,className:"middleRing"}),R.createElement("path",{d:"M166.05 20.332a40 40 0 0 0-32.455 0l-97.823 43.42A40 40 0 0 0 12 100.311v105.377a40 40 0 0 0 23.772 36.56l97.823 43.42a40 40 0 0 0 32.455 0l97.822-43.42a40 40 0 0 0 23.773-36.56V100.31a40 40 0 0 0-23.773-36.56l-97.822-43.42zm4.868-10.968l97.823 43.419a52 52 0 0 1 30.904 47.528V205.69a52 52 0 0 1-30.904 47.528l-97.823 43.42a52 52 0 0 1-42.192 0l-97.822-43.42A52 52 0 0 1 0 205.689V100.31a52 52 0 0 1 30.904-47.528l97.822-43.42a52 52 0 0 1 42.192 0z",fill:n,fillRule:"nonzero"}),s||R.createElement("text",{fill:n,fontFamily:"Bai Jamjuree Semi Bold",fontSize:140,x:"39%",y:u,textAnchor:"middle",letterSpacing:-4},r),R.createElement("path",{d:"M150.175 9l35.21 18.827c-4.524 15.062-18.576 26.044-35.21 26.044-16.556 0-30.554-10.878-35.146-25.831L150.175 9z",fill:n}),R.createElement("text",{fontFamily:"Work Sans Semi Bold",fill:"#1D1E1F",fontSize:"24px",letterSpacing:.138,textAnchor:"middle",x:"39.5%",y:"10%"},i),c)))},Mt=function(e){var t=e.color,n=void 0===t?"#FFFFFF":t,r=e.className,o=e.children;return R.createElement(R.Fragment,null,R.createElement(Ot,null),R.createElement(jt,{viewBox:"0 0 380 374",className:r},R.createElement("defs",null,R.createElement("filter",{x:"-25.7%",y:"-25.2%",width:"151.3%",height:"150.3%",filterUnits:"objectBoundingBox",id:"Badge_Copy_svg__a"},R.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),R.createElement("feGaussianBlur",{stdDeviation:20,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),R.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),R.createElement("feMerge",null,R.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),R.createElement("feMergeNode",{in:"SourceGraphic"})))),R.createElement("g",{filter:"url(#Badge_Copy_svg__a)",transform:"translate(40 34)",x:"0",fill:"none",fillRule:"evenodd"},R.createElement("path",{d:"M170.918 9.364l97.823 43.419a52 52 0 0 1 30.904 47.528V205.69a52 52 0 0 1-30.904 47.528l-97.823 43.42a52 52 0 0 1-42.192 0l-97.822-43.42A52 52 0 0 1 0 205.689V100.31a52 52 0 0 1 30.904-47.528l97.822-43.42a52 52 0 0 1 42.192 0z",fill:"#202020"}),R.createElement("path",{d:"M166.05 20.332a40 40 0 0 0-32.455 0l-97.823 43.42A40 40 0 0 0 12 100.311v105.377a40 40 0 0 0 23.772 36.56l97.823 43.42a40 40 0 0 0 32.455 0l97.822-43.42a40 40 0 0 0 23.773-36.56V100.31a40 40 0 0 0-23.773-36.56l-97.822-43.42zm4.868-10.968l97.823 43.419a52 52 0 0 1 30.904 47.528V205.69a52 52 0 0 1-30.904 47.528l-97.823 43.42a52 52 0 0 1-42.192 0l-97.822-43.42A52 52 0 0 1 0 205.689V100.31a52 52 0 0 1 30.904-47.528l97.822-43.42a52 52 0 0 1 42.192 0z",fill:n,fillRule:"nonzero"}),o)))};e.ProjectBadge=Rt,e.IconBadge=Mt,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "formidable-oss-badges",
"version": "0.2.0",
"version": "0.2.1",
"description": "Badges for Formidable OSS",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,2 +0,2 @@

# ProjectBadges
# Formidable OSS Badges

@@ -8,3 +8,8 @@ Badges for Formidable Open Source Projects

- [Using the package](#using-the-package)
- [Component props](#component-props)
- [ProjectBadge](#projectbadge)
- [Component props](#projectbadge-props)
- [Component children](#projectbadge-children)
- [IconBadge](#iconbadge)
- [Component props](#iconbadge-props)
- [Component children](#iconbadge-children)
- [Examples](#examples)

@@ -16,6 +21,7 @@ - [Try component locally](#try-the-component-locally)

- `yarn add formidable-oss-badges` or `npm install formidable-oss-badges`
- In your react app, `import { ProjectBadge } from "formidable-oss-badges";`
- Use the `<ProjectBadge />` component as directed below
- In your react app, `import { ProjectBadge, IconBadge } from "formidable-oss-badges";`
- Use the `<ProjectBadge />` and/or `<IconBadge></IconBadge>` component as directed below
## Component props
## ProjectBadge
### ProjectBadge props

@@ -34,2 +40,33 @@ The `<ProjectBadge />` component takes five, optional, props:

### ProjectBadge children
Will accept any svg child (we recommend to use an `<image/>` with an embedded png, svg or lossless image format of your choice. See example 5).
Presence of a child will cause the component to ignore any `abbreviation` prop.
You will need to position the child yourself.
e.g:
```jsx
<image
x="14%"
y="20%"
/>
```
## IconBadge
### IconBadge props
`<IconBadge />` only accepts a color prop.
Prop | Type | Description | Example |
| ------------ | ---------------- | -------------------------------------------------------------------------------------------- | ------------------- |
| color | String (hex/RGB) | Base color of the badge | `"#FF00FF"` |
### IconBadge children
Like `ProjectBadge`, will accept any svg child (we recommend to use an `<image/>` with an embedded png, svg or lossless image format of your choice. See example 4).
This badge should always be given a child.
You will need to position the child yourself.
## Examples

@@ -40,3 +77,3 @@

```jsx
<ProjectBadge color="#89E" abbreviation="No" description="Number"/>
<ProjectBadge color="#89E" abbreviation="No" description="Number" />
```

@@ -47,3 +84,8 @@

```jsx
<ProjectBadge color="#E48055" abbreviation="Em" description="Enzyme Matchers" number="09" />
<ProjectBadge
color="#E48055"
abbreviation="Em"
description="Enzyme Matchers"
number="09"
/>
```

@@ -54,11 +96,45 @@

```jsx
<ProjectBadge />
<ProjectBadge />
```
### Children:
4:
IconBadge which just shows an outline:
```jsx
<IconBadge color="#89E">
<image
x="14%"
y="20%"
width="50%"
href="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/512px-React-icon.svg.png"
/>
</IconBadge>
```
5:
ProjectBadge with svg child:
```jsx
<ProjectBadge abbreviation="R" description="React" number="09" color="#90dafa">
<image
x="14%"
y="20%"
width="50%"
href="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/512px-React-icon.svg.png"
/>
</ProjectBadge>
```
![Example project badges](https://user-images.githubusercontent.com/19417581/56662487-fe10f900-669b-11e9-8af1-373793f4326b.png)
## Try the component locally
![Example image embedded badges](https://user-images.githubusercontent.com/21056165/57460381-eb3a1f00-726c-11e9-8811-e8adc048c6fb.png)
To try out the badge component locally:
## Try the components locally
To try out the badge components locally:
1. `git clone` this repo

@@ -71,2 +147,4 @@ 2. `cd formidable-oss-badges`

You can then edit `examples/src/App.js`, either by returning the component directly, or by adding an object with the props you would like to trial in the `dataForExamples` array
You can then edit `examples/src/App.js`, either by returning the components directly, or by adding an object with the props you would like to trial in the `dataForExamples` array.
Note that this array is currently just used for passing *props* into `<ProjectBadge />` and not for passing children or for rendering `<IconBadge />`.
export { default as ProjectBadge } from "./ProjectBadge";
export { default as IconBadge } from "./IconBadge";

@@ -7,2 +7,5 @@ import React from "react";

// ProjectBadge can accept SVG as children in that case it will
// replace the abbreviation with the children
const ProjectBadge = ({

@@ -13,3 +16,4 @@ color = "#FFFFFF",

number,
className
className,
children
}) => {

@@ -23,2 +27,3 @@ const descriptionArr =

<text
key={`description-${idx}`}
x="39%"

@@ -102,13 +107,18 @@ y={`${array.length === 1 ? "66" : 65 + idx * 6}%`}

/>
<text
fill={color}
fontFamily="Bai Jamjuree Semi Bold"
fontSize={140}
x="39%"
y={abbrYAxis}
textAnchor="middle"
letterSpacing={-4}
>
{abbreviation}
</text>
{!!children ? (
children
) : (
<text
fill={color}
fontFamily="Bai Jamjuree Semi Bold"
fontSize={140}
x="39%"
y={abbrYAxis}
textAnchor="middle"
letterSpacing={-4}
>
{abbreviation}
</text>
)}
<path

@@ -115,0 +125,0 @@ d="M150.175 9l35.21 18.827c-4.524 15.062-18.576 26.044-35.21 26.044-16.556 0-30.554-10.878-35.146-25.831L150.175 9z"

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc