import{h as S,ay as Y,az as q,aA as D,aB as K,v as w,aC as F}from"./DNoLdQ8h.js";import{a as J,c as Q,d as W,b as X,n as Z,f as y,g as m}from"./CDjKoFya.js";function B(r){var i,f,u="";if(typeof r=="string"||typeof r=="number")u+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(i=0;i<s;i++)r[i]&&(f=B(r[i]))&&(u&&(u+=" "),u+=f)}else for(f in r)r[f]&&(u&&(u+=" "),u+=f);return u}function x(){for(var r,i,f=0,u="",s=arguments.length;f<s;f++)(r=arguments[f])&&(i=B(r))&&(u&&(u+=" "),u+=i);return u}function rr(r){return typeof r=="object"?x(r):r??""}const P=[...` 	
\r\f \v\uFEFF`];function fr(r,i,f){var u=r==null?"":""+r;if(i&&(u=u?u+" "+i:i),f){for(var s in f)if(f[s])u=u?u+" "+s:s;else if(u.length)for(var t=s.length,c=0;(c=u.indexOf(s,c))>=0;){var e=c+t;(c===0||P.includes(u[c-1]))&&(e===u.length||P.includes(u[e]))?u=(c===0?"":u.substring(0,c))+u.substring(e+1):c=e}}return u===""?null:u}function R(r,i=!1){var f=i?" !important;":";",u="";for(var s in r){var t=r[s];t!=null&&t!==""&&(u+=" "+s+": "+t+f)}return u}function M(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function ir(r,i){if(i){var f="",u,s;if(Array.isArray(i)?(u=i[0],s=i[1]):u=i,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var t=!1,c=0,e=!1,A=[];u&&A.push(...Object.keys(u).map(M)),s&&A.push(...Object.keys(s).map(M));var l=0,b=-1;const _=r.length;for(var v=0;v<_;v++){var d=r[v];if(e?d==="/"&&r[v-1]==="*"&&(e=!1):t?t===d&&(t=!1):d==="/"&&r[v+1]==="*"?e=!0:d==='"'||d==="'"?t=d:d==="("?c++:d===")"&&c--,!e&&t===!1&&c===0){if(d===":"&&b===-1)b=v;else if(d===";"||v===_-1){if(b!==-1){var C=M(r.substring(l,b).trim());if(!A.includes(C)){d!==";"&&v++;var p=r.substring(l,v).trim();f+=" "+p+";"}}l=v+1,b=-1}}}}return u&&(f+=R(u)),s&&(f+=R(s,!0)),f=f.trim(),f===""?null:f}return r==null?null:String(r)}function ur(r,i,f,u,s,t){var c=r.__className;if(S||c!==f||c===void 0){var e=fr(f,u,t);(!S||e!==r.getAttribute("class"))&&(e==null?r.removeAttribute("class"):i?r.className=e:r.setAttribute("class",e)),r.__className=f}else if(t&&s!==t)for(var A in t){var l=!!t[A];(s==null||l!==!!s[A])&&r.classList.toggle(A,l)}return t}function $(r,i={},f,u){for(var s in f){var t=f[s];i[s]!==t&&(f[s]==null?r.style.removeProperty(s):r.style.setProperty(s,t,u))}}function sr(r,i,f,u){var s=r.__style;if(S||s!==i){var t=ir(i,u);(!S||t!==r.getAttribute("style"))&&(t==null?r.removeAttribute("style"):r.style.cssText=t),r.__style=i}else u&&(Array.isArray(u)?($(r,f==null?void 0:f[0],u[0]),$(r,f==null?void 0:f[1],u[1],"important")):$(r,f,u));return u}const E=Symbol("class"),L=Symbol("style"),U=Symbol("is custom element"),V=Symbol("is html");function cr(r){if(S){var i=!1,f=()=>{if(!i){if(i=!0,r.hasAttribute("value")){var u=r.value;O(r,"value",null),r.value=u}if(r.hasAttribute("checked")){var s=r.checked;O(r,"checked",null),r.checked=s}}};r.__on_r=f,F(f),y()}}function lr(r,i){var f=T(r);f.value===(f.value=i??void 0)||r.value===i&&(i!==0||r.nodeName!=="PROGRESS")||(r.value=i??"")}function er(r,i){var f=T(r);f.checked!==(f.checked=i??void 0)&&(r.checked=i)}function tr(r,i){i?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function O(r,i,f,u){var s=T(r);S&&(s[i]=r.getAttribute(i),i==="src"||i==="srcset"||i==="href"&&r.nodeName==="LINK")||s[i]!==(s[i]=f)&&(i==="loading"&&(r[Y]=f),f==null?r.removeAttribute(i):typeof f!="string"&&z(r).includes(i)?r[i]=f:r.setAttribute(i,f))}function nr(r,i,f,u,s=!1){var t=T(r),c=t[U],e=!t[V];let A=S&&c;A&&w(!1);var l=i||{},b=r.tagName==="OPTION";for(var v in i)v in f||(f[v]=null);f.class?f.class=rr(f.class):f.class=null,f[L]&&(f.style??(f.style=null));var d=z(r);for(const a in f){let o=f[a];if(b&&a==="value"&&o==null){r.value=r.__value="",l[a]=o;continue}if(a==="class"){var C=r.namespaceURI==="http://www.w3.org/1999/xhtml";ur(r,C,o,u,i==null?void 0:i[E],f[E]),l[a]=o,l[E]=f[E];continue}if(a==="style"){sr(r,o,i==null?void 0:i[L],f[L]),l[a]=o,l[L]=f[L];continue}var p=l[a];if(o!==p){l[a]=o;var _=a[0]+a[1];if(_!=="$$")if(_==="on"){const g={},N="$$"+a;let n=a.slice(2);var I=m(n);if(J(n)&&(n=n.slice(0,-7),g.capture=!0),!I&&p){if(o!=null)continue;r.removeEventListener(n,l[N],g),l[N]=null}if(o!=null)if(I)r[`__${n}`]=o,W([n]);else{let G=function(H){l[a].call(this,H)};l[N]=Q(n,r,G,g)}else I&&(r[`__${n}`]=void 0)}else if(a==="style")O(r,a,o);else if(a==="autofocus")X(r,!!o);else if(!c&&(a==="__value"||a==="value"&&o!=null))r.value=r.__value=o;else if(a==="selected"&&b)tr(r,o);else{var h=a;e||(h=Z(h));var k=h==="defaultValue"||h==="defaultChecked";if(o==null&&!c&&!k)if(t[a]=null,h==="value"||h==="checked"){let g=r;const N=i===void 0;if(h==="value"){let n=g.defaultValue;g.removeAttribute(h),g.defaultValue=n,g.value=g.__value=N?n:null}else{let n=g.defaultChecked;g.removeAttribute(h),g.defaultChecked=n,g.checked=N?n:!1}}else r.removeAttribute(a);else k||d.includes(h)&&(c||typeof o!="string")?r[h]=o:typeof o!="function"&&O(r,h,o)}}}return A&&w(!0),l}function T(r){return r.__attributes??(r.__attributes={[U]:r.nodeName.includes("-"),[V]:r.namespaceURI===q})}var j=new Map;function z(r){var i=j.get(r.nodeName);if(i)return i;j.set(r.nodeName,i=[]);for(var f,u=r,s=Element.prototype;s!==u;){f=K(u);for(var t in f)f[t].set&&i.push(t);u=D(u)}return i}export{ur as a,nr as b,lr as c,er as d,cr as r,O as s};
