import{a7 as D,A as T,aE as d,aF as S,y as v,N as L,O as E,F as A,D as O,G as M,J as R}from"./BfUaJvxP.js";function P(r,a){let i=null,f=v;var u;if(v){i=M;for(var t=R(document.head);t!==null&&(t.nodeType!==L||t.data!==r);)t=E(t);if(t===null)A(!1);else{var l=E(t);t.remove(),O(l)}}v||(u=document.head.appendChild(D()));try{T(()=>a(u),d|S)}finally{f&&(A(!0),O(i))}}function F(r){var a,i,f="";if(typeof r=="string"||typeof r=="number")f+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(a=0;a<u;a++)r[a]&&(i=F(r[a]))&&(f&&(f+=" "),f+=i)}else for(i in r)r[i]&&(f&&(f+=" "),f+=i);return f}function G(){for(var r,a,i=0,f="",u=arguments.length;i<u;i++)(r=arguments[i])&&(a=F(r))&&(f&&(f+=" "),f+=a);return f}function V(r){return typeof r=="object"?G(r):r??""}const h=[...` 	
\r\f \v\uFEFF`];function H(r,a,i){var f=r==null?"":""+r;if(a&&(f=f?f+" "+a:a),i){for(var u of Object.keys(i))if(i[u])f=f?f+" "+u:u;else if(f.length)for(var t=u.length,l=0;(l=f.indexOf(u,l))>=0;){var s=l+t;(l===0||h.includes(f[l-1]))&&(s===f.length||h.includes(f[s]))?f=(l===0?"":f.substring(0,l))+f.substring(s+1):l=s}}return f===""?null:f}function j(r,a=!1){var i=a?" !important;":";",f="";for(var u of Object.keys(r)){var t=r[u];t!=null&&t!==""&&(f+=" "+u+": "+t+i)}return f}function p(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function $(r,a){if(a){var i="",f,u;if(Array.isArray(a)?(f=a[0],u=a[1]):f=a,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var t=!1,l=0,s=!1,e=[];f&&e.push(...Object.keys(f).map(p)),u&&e.push(...Object.keys(u).map(p));var o=0,b=-1;const c=r.length;for(var n=0;n<c;n++){var g=r[n];if(s?g==="/"&&r[n-1]==="*"&&(s=!1):t?t===g&&(t=!1):g==="/"&&r[n+1]==="*"?s=!0:g==='"'||g==="'"?t=g:g==="("?l++:g===")"&&l--,!s&&t===!1&&l===0){if(g===":"&&b===-1)b=n;else if(g===";"||n===c-1){if(b!==-1){var N=p(r.substring(o,b).trim());if(!e.includes(N)){g!==";"&&n++;var C=r.substring(o,n).trim();i+=" "+C+";"}}o=n+1,b=-1}}}}return f&&(i+=j(f)),u&&(i+=j(u,!0)),i=i.trim(),i===""?null:i}return r==null?null:String(r)}function q(r,a,i,f,u,t){var l=r.__className;if(v||l!==i||l===void 0){var s=H(i,f,t);(!v||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):a?r.className=s:r.setAttribute("class",s)),r.__className=i}else if(t&&u!==t)for(var e in t){var o=!!t[e];(u==null||o!==!!u[e])&&r.classList.toggle(e,o)}return t}export{G as a,V as c,P as h,q as s,$ as t};
