1import{an as q,k as g,ao as B,ap as D,aq as H,D as E,ar as Y,as as j}from"./D66mYQhZ.mjs";import{i as z,g as G,f as K,h as F,j as J}from"./CgyuKl9f.mjs";import{t as Q,c as W,s as X}from"./kuQhHpW1.mjs";function Z(s,a){if(a){const i=document.body;s.autofocus=!0,q(()=>{document.activeElement===i&&s.focus()})}}function b(s,a={},i,o){for(var f in i){var c=i[f];a[f]!==c&&(i[f]==null?s.style.removeProperty(f):s.style.setProperty(f,c,o))}}function m(s,a,i,o){var f=s.__style;if(g||f!==a){var c=Q(a,o);(!g||c!==s.getAttribute("style"))&&(c==null?s.removeAttribute("style"):s.style.cssText=c),s.__style=a}else o&&(Array.isArray(o)?(b(s,i==null?void 0:i[0],o[0]),b(s,i==null?void 0:i[1],o[1],"important")):b(s,i,o));return o}const d=Symbol("class"),v=Symbol("style"),M=Symbol("is custom element"),C=Symbol("is html");function x(s,a){a?s.hasAttribute("selected")||s.setAttribute("selected",""):s.removeAttribute("selected")}function T(s,a,i,o){var f=$(s);g&&(f[a]=s.getAttribute(a),a==="src"||a==="srcset"||a==="href"&&s.nodeName==="LINK")||f[a]!==(f[a]=i)&&(a==="loading"&&(s[B]=i),i==null?s.removeAttribute(a):typeof i!="string"&&k(s).includes(a)?s[a]=i:s.setAttribute(a,i))}function ts(s,a,i,o,f=!1){var c=$(s),h=c[M],O=!c[C];let p=g&&h;p&&E(!1);var e=a||{},S=s.tagName==="OPTION";for(var y in a)y in i||(i[y]=null);i.class?i.class=W(i.class):i[d]&&(i.class=null),i[v]&&(i.style??(i.style=null));var P=k(s);for(const t in i){let r=i[t];if(S&&t==="value"&&r==null){s.value=s.__value="",e[t]=r;continue}if(t==="class"){var R=s.namespaceURI==="http://www.w3.org/1999/xhtml";X(s,R,r,o,a==null?void 0:a[d],i[d]),e[t]=r,e[d]=i[d];continue}if(t==="style"){m(s,r,a==null?void 0:a[v],i[v]),e[t]=r,e[v]=i[v];continue}var L=e[t];if(r!==L){e[t]=r;var N=t[0]+t[1];if(N!=="$$")if(N==="on"){const l={},_="$$"+t;let u=t.slice(2);var A=J(u);if(z(u)&&(u=u.slice(0,-7),l.capture=!0),!A&&L){if(r!=null)continue;s.removeEventListener(u,e[_],l),e[_]=null}if(r!=null)if(A)s[`__${u}`]=r,K([u]);else{let U=function(V){e[t].call(this,V)};e[_]=G(u,s,U,l)}else A&&(s[`__${u}`]=void 0)}else if(t==="style")T(s,t,r);else if(t==="autofocus")Z(s,!!r);else if(!h&&(t==="__value"||t==="value"&&r!=null))s.value=s.__value=r;else if(t==="selected"&&S)x(s,r);else{var n=t;O||(n=F(n));var w=n==="defaultValue"||n==="defaultChecked";if(r==null&&!h&&!w)if(c[t]=null,n==="value"||n==="checked"){let l=s;const _=a===void 0;if(n==="value"){let u=l.defaultValue;l.removeAttribute(n),l.defaultValue=u,l.value=l.__value=_?u:null}else{let u=l.defaultChecked;l.removeAttribute(n),l.defaultChecked=u,l.checked=_?u:!1}}else s.removeAttribute(t);else w||P.includes(n)&&(h||typeof r!="string")?s[n]=r:typeof r!="function"&&T(s,n,r)}}}return p&&E(!0),e}function $(s){return s.__attributes??(s.__attributes={[M]:s.nodeName.includes("-"),[C]:s.namespaceURI===D})}var I=new Map;function k(s){var a=I.get(s.nodeName);if(a)return a;I.set(s.nodeName,a=[]);for(var i,o=s,f=Element.prototype;f!==o;){i=Y(o);for(var c in i)i[c].set&&a.push(c);o=H(o)}return a}const rs=j();export{ts as a,m as b,rs as c,T as s};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.