const e=require("../../StyleContext.js"),t=require("../../../canUseDom.js");var n=`data-ant-cssinjs-cache-path`,r=`_FILE_STYLE__`;function i(e){return Object.keys(e).map(t=>`${t}:${e[t]}`).join(`;`)}var a,o=!0;function s(){if(!a&&(a={},t.default())){let e=document.createElement(`div`);e.className=n,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);a[t]=n});let r=document.querySelector(`style[${n}]`);r&&(o=!1,r.parentNode?.removeChild(r)),document.body.removeChild(e)}}function c(e){return s(),!!a[e]}function l(n){let i=a[n],s=null;if(i&&t.default())if(o)s=r;else{let t=document.querySelector(`style[${e.ATTR_MARK}="${a[n]}"]`);t?s=t.innerHTML:delete a[n]}return[s,i]}exports.ATTR_CACHE_MAP=n,exports.CSS_FILE_STYLE=r,exports.existPath=c,exports.getStyleAndHash=l,exports.prepare=s,exports.serialize=i;