import e from"../../../../@babel/runtime/helpers/esm/extends.js";import{useContext as o,createElement as r,Fragment as t}from"react";import n from"../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js";import{getRegisteredStyles as i,insertStyles as a}from"../../../utils/dist/emotion-utils.esm.js";import{serializeStyles as s}from"../../../serialize/dist/emotion-serialize.esm.js";import{w as l,T as m}from"../../../react/dist/emotion-element-fecc36da.esm.js";var d=n,u=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:u},c=function(e,o,r){var t;if(o){var n=o.shouldForwardProp;t=e.__emotion_forwardProp&&n?function(o){return e.__emotion_forwardProp(o)&&n(o)}:n}return"function"!=typeof t&&r&&(t=e.__emotion_forwardProp),t},_="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",f="undefined"!=typeof document,v=function n(d,u){if("production"!==process.env.NODE_ENV&&void 0===d)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var v,y,h=d.__emotion_real===d,N=h&&d.__emotion_base||d;void 0!==u&&(v=u.label,y=u.target);var g=c(d,u,h),w=g||p(N),E=!w("as");return function(){var b=arguments,P=h&&void 0!==d.__emotion_styles?d.__emotion_styles.slice(0):[];if(void 0!==v&&P.push("label:"+v+";"),null==b[0]||void 0===b[0].raw)P.push.apply(P,b);else{"production"!==process.env.NODE_ENV&&void 0===b[0][0]&&console.error(_),P.push(b[0][0]);for(var S=b.length,O=1;O<S;O++)"production"!==process.env.NODE_ENV&&void 0===b[0][O]&&console.error(_),P.push(b[O],b[0][O])}var j=l((function(e,n,l){var d=E&&e.as||N,u="",c=[],_=e;if(null==e.theme){for(var v in _={},e)_[v]=e[v];_.theme=o(m)}"string"==typeof e.className?u=i(n.registered,c,e.className):null!=e.className&&(u=e.className+" ");var h=s(P.concat(c),n.registered,_),b=a(n,h,"string"==typeof d);u+=n.key+"-"+h.name,void 0!==y&&(u+=" "+y);var S=E&&void 0===g?p(d):w,O={};for(var j in e)E&&"as"===j||S(j)&&(O[j]=e[j]);O.className=u,O.ref=l;var C=r(d,O);if(!f&&void 0!==b){for(var x,T=h.name,D=h.next;void 0!==D;)T+=" "+D.name,D=D.next;return r(t,null,r("style",((x={})["data-emotion"]=n.key+" "+T,x.dangerouslySetInnerHTML={__html:b},x.nonce=n.sheet.nonce,x)),C)}return C}));return j.displayName=void 0!==v?v:"Styled("+("string"==typeof N?N:N.displayName||N.name||"Component")+")",j.defaultProps=d.defaultProps,j.__emotion_real=j,j.__emotion_base=N,j.__emotion_styles=P,j.__emotion_forwardProp=g,Object.defineProperty(j,"toString",{value:function(){return void 0===y&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+y}}),j.withComponent=function(o,r){return n(o,e({},u,r,{shouldForwardProp:c(j,r,!0)})).apply(void 0,P)},j}};export default v;
//# sourceMappingURL=emotion-styled-base.esm.js.map
