import{Y as H,H as L,Z as T,aB as D,I as v,a6 as F,a7 as c,O as C,N as O,P as M,a3 as B,aC as h}from"./Dyk1ealw.js";function Z(r,a){let i=null,f=v;var u;if(v){i=M;for(var t=B(document.head);t!==null&&(t.nodeType!==F||t.data!==r);)t=c(t);if(t===null)C(!1);else{var l=c(t);t.remove(),O(l)}}v||(u=document.head.appendChild(H()));try{L(()=>{var s=T(()=>a(u));s.f|=D})}finally{f&&(C(!0),O(i))}}function N(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=N(r[a]))&&(f&&(f+=" "),f+=i)}else for(i in r)r[i]&&(f&&(f+=" "),f+=i);return f}function I(){for(var r,a,i=0,f="",u=arguments.length;i<u;i++)(r=arguments[i])&&(a=N(r))&&(f&&(f+=" "),f+=a);return f}function $(r){return typeof r=="object"?I(r):r??""}const j=[...` 	
\r\f \v\uFEFF`];function P(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||j.includes(f[l-1]))&&(s===f.length||j.includes(f[s]))?f=(l===0?"":f.substring(0,l))+f.substring(s+1):l=s}}return f===""?null:f}function E(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 q(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 A=r.length;for(var n=0;n<A;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===A-1){if(b!==-1){var S=p(r.substring(o,b).trim());if(!e.includes(S)){g!==";"&&n++;var d=r.substring(o,n).trim();i+=" "+d+";"}}o=n+1,b=-1}}}}return f&&(i+=E(f)),u&&(i+=E(u,!0)),i=i.trim(),i===""?null:i}return r==null?null:String(r)}function z(r,a,i,f,u,t){var l=r[h];if(v||l!==i||l===void 0){var s=P(i,f,t);(!v||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):a?r.className=s:r.setAttribute("class",s)),r[h]=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{I as a,$ as c,Z as h,z as s,q as t};
