import{R as f,a1 as u,a2 as n,a3 as v,a4 as h,a5 as g,a6 as A,a7 as S}from"./I3maXEMG.js";const k=Symbol("is custom element"),l=Symbol("is html"),p=n?"link":"LINK",N=n?"progress":"PROGRESS";function L(r){if(f){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var t=r.value;_(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var a=r.checked;_(r,"checked",null),r.checked=a}}};r.__on_r=e,v(e),h()}}function M(r,s){var e=o(r);e.value===(e.value=s??void 0)||r.value===s&&(s!==0||r.nodeName!==N)||(r.value=s??"")}function y(r,s){var e=o(r);e.checked!==(e.checked=s??void 0)&&(r.checked=s)}function _(r,s,e,t){var a=o(r);f&&(a[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName===p)||a[s]!==(a[s]=e)&&(s==="loading"&&(r[g]=e),e==null?r.removeAttribute(s):typeof e!="string"&&T(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function o(r){return r.__attributes??={[k]:r.nodeName.includes("-"),[l]:r.namespaceURI===u}}var i=new Map;function T(r){var s=r.getAttribute("is")||r.nodeName,e=i.get(s);if(e)return e;i.set(s,e=[]);for(var t,a=r,d=Element.prototype;d!==a;){t=S(a);for(var c in t)t[c].set&&e.push(c);a=A(a)}return e}export{M as a,y as b,L as r,_ as s};
