ponchojs
Version:
Poncho
3 lines (2 loc) • 37.5 kB
JavaScript
import e,{useRef as t,useDebugValue as r,useContext as n,createElement as o}from"react";import{m as a,h as s,u as i}from"./emotion-react-jsx-runtime.esm-991ce217.js";var c,l={exports:{}},u={},d=60103,p=60106,f=60107,h=60108,m=60114,g=60109,y=60110,v=60112,b=60113,w=60120,k=60115,S=60116,C=60121,A=60122,E=60117,x=60129,_=60131;function P(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case d:switch(e=e.type){case f:case m:case h:case b:case w:return e;default:switch(e=e&&e.$$typeof){case y:case v:case S:case k:case g:return e;default:return t}}case p:return t}}}"function"==typeof Symbol&&Symbol.for&&(d=(c=Symbol.for)("react.element"),p=c("react.portal"),f=c("react.fragment"),h=c("react.strict_mode"),m=c("react.profiler"),g=c("react.provider"),y=c("react.context"),v=c("react.forward_ref"),b=c("react.suspense"),w=c("react.suspense_list"),k=c("react.memo"),S=c("react.lazy"),C=c("react.block"),A=c("react.server.block"),E=c("react.fundamental"),x=c("react.debug_trace_mode"),_=c("react.legacy_hidden"));var N=g,O=d,R=v,I=f,$=S,T=k,D=p,j=m,M=h,z=b;u.ContextConsumer=y,u.ContextProvider=N,u.Element=O,u.ForwardRef=R,u.Fragment=I,u.Lazy=$,u.Memo=T,u.Portal=D,u.Profiler=j,u.StrictMode=M,u.Suspense=z,u.isAsyncMode=function(){return!1},u.isConcurrentMode=function(){return!1},u.isContextConsumer=function(e){return P(e)===y},u.isContextProvider=function(e){return P(e)===g},u.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===d},u.isForwardRef=function(e){return P(e)===v},u.isFragment=function(e){return P(e)===f},u.isLazy=function(e){return P(e)===S},u.isMemo=function(e){return P(e)===k},u.isPortal=function(e){return P(e)===p},u.isProfiler=function(e){return P(e)===m},u.isStrictMode=function(e){return P(e)===h},u.isSuspense=function(e){return P(e)===b},u.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===f||e===m||e===x||e===h||e===b||e===w||e===_||"object"==typeof e&&null!==e&&(e.$$typeof===S||e.$$typeof===k||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===E||e.$$typeof===C||e[0]===A)},u.typeOf=P;var L={};function F(e){function t(e,t,n){var o=t.trim().split(h),a=(t=o).length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";i<a;++i)t[i]=r(e,t[i],n).trim();break;default:var c=i=0;for(t=[];i<a;++i)for(var l=0;l<s;++l)t[c++]=r(e[l]+" ",o[i],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(n=n<33?(t=t.trim()).charCodeAt(0):n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<+r&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,a){var s=e+";",i=2*t+3*r+4*a;if(944==i){e=s.indexOf(":",9)+1;var c=s.substring(e,s.length-1).trim();c=s.substring(0,e).trim()+c+";";return 1===N||2===N&&o(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!o(s,1))return s;switch(i){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(c=s.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=s.replace(b,"tb");break;case 232:c=s.replace(b,"tb-rl");break;case 220:c=s.replace(b,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,i=(c=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102<i?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(S,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(S,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+a&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);r=e.substring(r+1,e.length-1);return $(2!==t?n:n.replace(C,"$1"),r,t)}function a(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,a,s,i,l,u){for(var d,p=0,f=t;p<I;++p)switch(d=R[p].call(c,e,f,r,n,o,a,s,i,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function i(e){return void 0!==(e=e.prefix)&&($=null,e?"function"!=typeof e?N=1:(N=2,$=e):N=0),i}function c(e,r){var i;e=[e=(e=e).charCodeAt(0)<33?e.trim():e];return 0<I&&void 0!==(i=s(-1,r,e,e,_,x,0,0,0,0))&&"string"==typeof i&&(r=i),r=function e(r,i,c,d,p){for(var f,h,m,b,k,S=0,C=0,A=0,E=0,R=0,$=0,D=m=f=0,j=0,M=0,z=0,L=0,F=c.length,V=F-1,B="",H="",Y="",q="";j<F;){if(h=c.charCodeAt(j),j===V&&0!==C+E+A+S&&(0!==C&&(h=47===C?10:47),E=A=S=0,F++,V++),0===C+E+A+S){if(j===V&&0<(B=0<M?B.replace(u,""):B).trim().length){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt(j)}h=59}switch(h){case 123:for(f=(B=B.trim()).charCodeAt(0),m=1,L=++j;j<F;){switch(h=c.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(j+1)){case 42:case 47:e:{for(D=j+1;D<V;++D)switch(c.charCodeAt(D)){case 47:if(42!==h||42!==c.charCodeAt(D-1)||j+2===D)break;j=D+1;break e;case 10:if(47===h){j=D+1;break e}}j=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<V&&c.charCodeAt(j)!==h;);}if(0===m)break;j++}if(m=c.substring(L,j),64===(f=0===f?(B=B.replace(l,"").trim()).charCodeAt(0):f)){switch(h=(B=0<M?B.replace(u,""):B).charCodeAt(1)){case 100:case 109:case 115:case 45:M=i;break;default:M=O}if(L=(m=e(i,M,m,h,p+1)).length,0<I&&(k=s(3,m,M=t(O,B,z),i,_,x,L,h,p,d),B=M.join(""),void 0!==k&&0===(L=(m=k.trim()).length)&&(h=0,m="")),0<L)switch(h){case 115:B=B.replace(w,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(g,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===d&&(H+=m,m="")}else m=""}else m=e(i,t(i,B,z),m,d,p+1);Y+=m,m=z=M=D=f=0,B="",h=c.charCodeAt(++j);break;case 125:case 59:if(1<(L=(B=(0<M?B.replace(u,""):B).trim()).length))switch(0===D&&(f=B.charCodeAt(0),45===f||96<f&&f<123)&&(L=(B=B.replace(" ",":")).length),0<I&&void 0!==(k=s(1,B,i,r,_,x,H.length,d,p,d))&&0===(L=(B=k.trim()).length)&&(B="\0\0"),f=B.charCodeAt(0),h=B.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){q+=B+c.charAt(j);break}default:58!==B.charCodeAt(L-1)&&(H+=n(B,f,h,B.charCodeAt(2)))}z=M=D=f=0,B="",h=c.charCodeAt(++j)}}switch(h){case 13:case 10:47===C?C=0:0===1+f&&107!==d&&0<B.length&&(M=1,B+="\0"),0<I*T&&s(0,B,i,r,_,x,H.length,d,p,d),x=1,_++;break;case 59:case 125:if(0===C+E+A+S){x++;break}default:switch(x++,b=c.charAt(j),h){case 9:case 32:if(0===E+S+C)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===E+C+S&&(M=z=1,b="\f"+b);break;case 108:if(0===E+C+S+P&&0<D)switch(j-D){case 2:112===R&&58===c.charCodeAt(j-3)&&(P=R);case 8:111===$&&(P=$)}break;case 58:0===E+C+S&&(D=j);break;case 44:0===C+A+E+S&&(M=1,b+="\r");break;case 34:case 39:0===C&&(E=E===h?0:0===E?h:E);break;case 91:0===E+C+A&&S++;break;case 93:0===E+C+A&&S--;break;case 41:0===E+C+S&&A--;break;case 40:0===E+C+S&&(0===f&&(2*R+3*$==533||(f=1)),A++);break;case 64:0===C+A+E+S+D+m&&(m=1);break;case 42:case 47:if(!(0<E+S+A))switch(C){case 0:switch(2*h+3*c.charCodeAt(j+1)){case 235:C=47;break;case 220:L=j,C=42}break;case 42:47===h&&42===R&&L+2!==j&&(33===c.charCodeAt(L+2)&&(H+=c.substring(L,j+1)),b="",C=0)}}0===C&&(B+=b)}$=R,R=h,j++}if(0<(L=H.length)){if(M=i,0<I&&void 0!==(k=s(2,H,M,r,_,x,L,d,p,d))&&0===(H=k).length)return q+H+Y;if(H=M.join(",")+"{"+H+"}",0!=N*P){switch(P=2!==N||o(H,2)?P:0){case 111:H=H.replace(v,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}P=0}}return q+H+Y}(O,e,r,0,0),0<I&&void 0!==(i=s(-2,r,e,e,_,x,r.length,0,0,0))&&(r=i),P=0,x=_=1,r}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,S=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,x=1,_=1,P=0,N=1,O=[],R=[],I=0,$=null,T=0;return c.use=function e(t){switch(t){case void 0:case null:I=R.length=0;break;default:if("function"==typeof t)R[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},c.set=i,void 0!==e&&i(e),c}"production"!==process.env.NODE_ENV&&function(){var e=60103,t=60106,r=60107,n=60108,o=60114,a=60109,s=60110,i=60112,c=60113,l=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;function y(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:var h=p.type;switch(h){case r:case o:case n:case c:case l:return h;default:var m=h&&h.$$typeof;switch(m){case s:case i:case d:case u:case a:return m;default:return f}}case t:return f}}}"function"==typeof Symbol&&Symbol.for&&(e=(P=Symbol.for)("react.element"),t=P("react.portal"),r=P("react.fragment"),n=P("react.strict_mode"),o=P("react.profiler"),a=P("react.provider"),s=P("react.context"),i=P("react.forward_ref"),c=P("react.suspense"),l=P("react.suspense_list"),u=P("react.memo"),d=P("react.lazy"),p=P("react.block"),f=P("react.server.block"),h=P("react.fundamental"),P("react.scope"),P("react.opaque.id"),m=P("react.debug_trace_mode"),P("react.offscreen"),g=P("react.legacy_hidden"));var v=s,b=a,w=e,k=i,S=r,C=d,A=u,E=t,x=o,_=n,P=c,N=!1,O=!1;L.ContextConsumer=v,L.ContextProvider=b,L.Element=w,L.ForwardRef=k,L.Fragment=S,L.Lazy=C,L.Memo=A,L.Portal=E,L.Profiler=x,L.StrictMode=_,L.Suspense=P,L.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},L.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},L.isContextConsumer=function(e){return y(e)===s},L.isContextProvider=function(e){return y(e)===a},L.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},L.isForwardRef=function(e){return y(e)===i},L.isFragment=function(e){return y(e)===r},L.isLazy=function(e){return y(e)===d},L.isMemo=function(e){return y(e)===u},L.isPortal=function(e){return y(e)===t},L.isProfiler=function(e){return y(e)===o},L.isStrictMode=function(e){return y(e)===n},L.isSuspense=function(e){return y(e)===c},L.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===m||e===n||e===c||e===l||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===s||e.$$typeof===i||e.$$typeof===h||e.$$typeof===p||e[0]===f)},L.typeOf=y}(),"production"===process.env.NODE_ENV?l.exports=u:l.exports=L;var V=/^((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)-.*))$/,B=a((function(e){return V.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Y=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},q=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!l.exports.typeOf(e)},U=Object.freeze([]),G=Object.freeze({});function W(e){return"function"==typeof e}function X(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Z(e){return e&&"string"==typeof e.styledComponentId}var J="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",K="undefined"!=typeof window&&"HTMLElement"in window,Q=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:"production"!==process.env.NODE_ENV),ee="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function te(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function re(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(0<r.length?" Args: "+r.join(", "):"")):new Error(te.apply(void 0,[ee[e]].concat(r)).trim())}var ne=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,o=n;o<=e;)(o<<=1)<0&&re(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=n;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),i=0,c=t.length;i<c;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},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 o=r;o<n;o++)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=(e=this.indexOfGroup(e))+r,o=e;o<n;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),oe=new Map,ae=new Map,se=1,ie=function(e){if(oe.has(e))return oe.get(e);for(;ae.has(se);)se++;var t=se++;return"production"!==process.env.NODE_ENV&&((0|t)<0||1<<30<t)&&re(16,""+t),oe.set(e,t),ae.set(t,e),t},ce=function(e){return ae.get(e)},le=function(e,t){oe.set(e,t),ae.set(t,e)},ue="style["+J+'][data-styled-version="5.3.0"]',de=new RegExp("^"+J+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),pe=function(e,t,r){for(var n,o=r.split(","),a=0,s=o.length;a<s;a++)(n=o[a])&&e.registerName(t,n)},fe=function(e,t){for(var r=t.innerHTML.split("/*!sc*/\n"),n=[],o=0,a=r.length;o<a;o++){var s,i,c,l=r[o].trim();l&&((s=l.match(de))?(i=0|parseInt(s[1],10),c=s[2],0!=i&&(le(c,i),pe(e,c,s[3]),e.getTag().insertRules(i,n)),n.length=0):n.push(l))}},he=function(e){var t=document.head,r=e||t,n=document.createElement("style");t=void 0!==(e=function(){for(var e=r.childNodes,t=e.length;0<=t;t--){var n=e[t];if(n&&1===n.nodeType&&n.hasAttribute(J))return n}}())?e.nextSibling:null;return n.setAttribute(J,"active"),n.setAttribute("data-styled-version","5.3.0"),(e="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null)&&n.setAttribute("nonce",e),r.insertBefore(n,t),n},me=function(){function e(e){(e=this.element=he(e)).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 o=t[r];if(o.ownerNode===e)return o}re(17)}(e),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){return void 0!==(e=this.sheet.cssRules[e])&&"string"==typeof e.cssText?e.cssText:""},e}(),ge=function(){function e(e){e=this.element=he(e),this.nodes=e.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&0<=e&&(t=document.createTextNode(t),e=this.nodes[e],this.element.insertBefore(t,e||null),this.length++,!0)},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}(),ye=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}(),ve=K,be={isServer:!K,useCSSOMInjection:!Q},we=function(){function e(e,t,r){void 0===t&&(t={}),this.options=H({},be,{},e=void 0===e?G:e),this.gs=t,this.names=new Map(r),!this.options.isServer&&K&&ve&&(ve=!1,function(e){for(var t=document.querySelectorAll(ue),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(J)&&(fe(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return ie(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(H({},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=(e=(r=this.options).isServer,t=r.useCSSOMInjection,r=r.target,r=new(e?ye:t?me:ge)(r),new ne(r)));var e,t,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){var r;ie(e),this.names.has(e)?this.names.get(e).add(t):((r=new Set).add(t),this.names.set(e,r))},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ie(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(ie(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="",o=0;o<r;o++){var a,s,i,c=ce(o);void 0!==c&&(a=e.names.get(c),s=t.getGroup(o),void 0!==a&&0!==s.length&&(c=J+".g"+o+'[id="'+c+'"]',i="",void 0!==a&&a.forEach((function(e){0<e.length&&(i+=e+",")})),n+=s+c+'{content:"'+i+'"}/*!sc*/\n'))}return n}(this)},e}(),ke=/(a)(d)/gi,Se=function(e){return String.fromCharCode(e+(25<e?39:97))};function Ce(e){for(var t="",r=Math.abs(e);52<r;r=r/52|0)t=Se(r%52)+t;return(Se(r%52)+t).replace(ke,"$1-$2")}var Ae=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ee=function(e){return Ae(5381,e)};var xe=Ee("5.3.0"),_e=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(W(r)&&!Z(r))return!1}return!0}(e),this.componentId=t,this.baseHash=Ae(xe,t),this.baseStyle=r,we.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n,o=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)this.staticRulesId&&t.hasNameForId(o,this.staticRulesId)?a.push(this.staticRulesId):(n=Ve(this.rules,e,t,r).join(""),i=Ce(Ae(this.baseHash,n.length)>>>0),t.hasNameForId(o,i)||(s=r(n,"."+i,void 0,o),t.insertRules(o,i,s)),a.push(i),this.staticRulesId=i);else{for(var s,i,c=this.rules.length,l=Ae(this.baseHash,r.hash),u="",d=0;d<c;d++){var p=this.rules[d];"string"==typeof p?(u+=p,"production"!==process.env.NODE_ENV&&(l=Ae(l,p+d))):p&&(p=Ve(p,e,t,r),p=Array.isArray(p)?p.join(""):p,l=Ae(l,p+d),u+=p)}u&&(s=Ce(l>>>0),t.hasNameForId(o,s)||(i=r(u,"."+s,void 0,o),t.insertRules(o,s,i)),a.push(s))}return a.join(" ")},e}(),Pe=/^\s*\/\/.*$/gm,Ne=[":","[",".","#"];var Oe=e.createContext();Oe.Consumer;var Re=e.createContext(),Ie=(Re.Consumer,new we),$e=function(e){function t(e,t,o){return 0===t&&-1!==Ne.indexOf(o[n.length])||o.match(a)?e:"."+r}e=(i=void 0===e?G:e).options;var r,n,o,a,s,i=void 0===(i=i.plugins)?U:i,c=new F(void 0===e?G:e),l=[];function u(e){if(e)try{s(e+"}")}catch(e){}}function d(e,t,s,i){return void 0===i&&(i="&"),e=e.replace(Pe,""),e=t&&s?s+" "+t+" { "+e+" }":e,r=i,n=t,o=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),c(s||!t?"":t,e)}return s=function(e){l.push(e)},e=function(e,t,r,n,o,a,i,c,l,d){switch(e){case 1:if(0===l&&64===t.charCodeAt(0))return s(t+";"),"";break;case 2:if(0===c)return t+"/*|*/";break;case 3:switch(c){case 102:case 112:return s(r[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(u)}},c.use([].concat(i,[function(e,r,a){2===e&&a.length&&0<a[0].lastIndexOf(n)&&(a[0]=a[0].replace(o,t))},e,function(e){if(-2===e)return e=l,l=[],e}])),d.hash=i.length?i.reduce((function(e,t){return t.name||re(15),Ae(e,t.name)}),5381).toString():"",d}();var Te=function(){function e(e,t){var r=this;this.inject=function(e,t){var n=r.name+(t=void 0===t?$e:t).hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return re(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return this.name+(e=void 0===e?$e:e).hash},e}(),De=/([A-Z])/,je=/([A-Z])/g,Me=/^ms-/,ze=function(e){return"-"+e.toLowerCase()};function Le(e){return De.test(e)?e.replace(je,ze).replace(Me,"-ms-"):e}var Fe=function(e){return null==e||!1===e||""===e};function Ve(e,t,r,n){if(Array.isArray(e)){for(var o,a=[],s=0,c=e.length;s<c;s+=1)""!==(o=Ve(e[s],t,r,n))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}if(Fe(e))return"";if(Z(e))return"."+e.styledComponentId;if(W(e)){if("function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t)return e;var u=e(t);return"production"!==process.env.NODE_ENV&&l.exports.isElement(u)&&console.warn(X(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Ve(u,t,r,n)}return e instanceof Te?r?(e.inject(r,n),e.getName(n)):e:q(e)?function e(t,r){var n,o,a,s=[];for(a in t)t.hasOwnProperty(a)&&!Fe(t[a])&&(q(t[a])?s.push.apply(s,e(t[a],a)):W(t[a])?s.push(Le(a)+":",t[a],";"):s.push(Le(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in i?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(s,["}"]):s}(e):e.toString()}function Be(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return W(e)||q(e)?Ve(Y(U,[e].concat(r))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Ve(Y(e,r))}var He=/invalid hook call/i,Ye=new Set,qe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ue=/(^-|-$)/g;function Ge(e){return e.replace(qe,"-").replace(Ue,"")}function We(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Xe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ze=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Je(e,t,r){var n=e[r];Xe(t)&&Xe(n)?Ke(n,t):e[r]=t}function Ke(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,a=r;o<a.length;o++){var s=a[o];if(Xe(s))for(var i in s)Ze(i)&&Je(e,s[i],i)}return e}var Qe=e.createContext();Qe.Consumer;var et={};function tt(a,i,c){var l=Z(a),u=!We(a),d=void 0===(g=i.attrs)?U:g,p=void 0===(f=i.componentId)?function(e,t){return e="string"!=typeof e?"sc":Ge(e),et[e]=(et[e]||0)+1,e=e+"-"+function(e){return Ce(Ee(e)>>>0)}("5.3.0"+e+et[e]),t?t+"-"+e:e}(i.displayName,i.parentComponentId):f,f=void 0===(g=i.displayName)?We(h=a)?"styled."+h:"Styled("+X(h)+")":g,h=i.displayName&&i.componentId?Ge(i.displayName)+"-"+i.componentId:i.componentId||p,m=l&&a.attrs?Array.prototype.concat(a.attrs,d).filter(Boolean):d,g=i.shouldForwardProp;l&&a.shouldForwardProp&&(g=i.shouldForwardProp?function(e,t,r){return a.shouldForwardProp(e,t,r)&&i.shouldForwardProp(e,t,r)}:a.shouldForwardProp);var y,v,b,w,k,S=(p=new _e(c,h,l?a.componentStyle:void 0)).isStatic&&0===d.length;return(d=function(e,t){return function(e,t,a,s){var i=e.attrs,c=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,d=e.shouldForwardProp,p=e.styledComponentId,f=e.target;"production"!==process.env.NODE_ENV&&r(p);i=(l=(h=function(e,t,r){return e.theme!==(r=void 0===r?G:r).theme&&e.theme||t||r.theme}(t,n(Qe),l)||G,m=i,g=H({},t,{theme:h=void 0===h?G:h}),y={},m.forEach((function(e){var t,r,n,o=e;for(t in o=W(o)?o(g):o)g[t]=y[t]="className"===t?(r=y[t],n=o[t],r&&n?r+" "+n:r||n):o[t]})),[g,y]))[1],h=c,m=s,c=l[0],s="production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0,l=n(Oe)||Ie,e=n(Re)||$e,e=m?h.generateAndInjectStyles(G,l,e):h.generateAndInjectStyles(c,l,e),"production"!==process.env.NODE_ENV&&r(e),"production"!==process.env.NODE_ENV&&!m&&s&&s(e),e=e,a=a;var h,m,g,y,v,b=i.$as||t.$as||i.as||t.as||f,w=We(b),k=i!==t?H({},t,{},i):t,S={};for(v in k)"$"!==v[0]&&"as"!==v&&("forwardedAs"===v?S.as=k[v]:(d?d(v,B,b):!w||B(v))&&(S[v]=k[v]));return t.style&&i.style!==t.style&&(S.style=H({},t.style,{},i.style)),S.className=Array.prototype.concat(u,p,e!==p?e:null,t.className,i.className).filter(Boolean).join(" "),S.ref=a,o(b,S)}(y,e,t,S)}).displayName=f,(y=e.forwardRef(d)).attrs=m,y.componentStyle=p,y.displayName=f,y.shouldForwardProp=g,y.foldedComponentIds=l?Array.prototype.concat(a.foldedComponentIds,a.styledComponentId):U,y.styledComponentId=h,y.target=l?a.target:a,y.withComponent=function(e){var t=i.componentId,r=function(e,t){if(null==e)return{};for(var r,n={},o=Object.keys(e),a=0;a<o.length;a++)r=o[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}(i,["componentId"]);t=t&&t+"-"+(We(e)?e:Ge(X(e)));return tt(e,H({},r,{attrs:m,componentId:t}),c)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=l?Ke({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(function(e,r){if("production"!==process.env.NODE_ENV){r="The component "+e+(r?' with the id of "'+r+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.";try{t(),Ye.has(r)||(console.warn(r),Ye.add(r))}catch(e){He.test(e.message)&&Ye.delete(r)}}}(f,h),y.warnTooManyClasses=(v=f,b=h,k=!(w={}),function(e){!k&&(w[e]=!0,200<=Object.keys(w).length)&&(console.warn("Over 200 classes were generated for component "+v+(b?' with the id of "'+b+'"':"")+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),k=!0,w={})})),y.toString=function(){return"."+y.styledComponentId},u&&s(y,a,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var rt=function(e){return function e(t,r,n){if(void 0===n&&(n=G),!l.exports.isValidElementType(r))return re(1,String(r));function o(){return t(r,n,Be.apply(void 0,arguments))}return o.withConfig=function(o){return e(t,r,H({},n,{},o))},o.attrs=function(o){return e(t,r,H({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(tt,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","textPath","tspan"].forEach((function(e){rt[e]=rt(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&process.env.NODE_ENV;var nt=rt;export{nt as s};
//# sourceMappingURL=styled-components.esm-0d53f334.js.map