1import{M as m,N as o,O as x,G as E,P as b,h as y,Q as g,t as w,R as h}from"./Ndri3sLk.js";function M(e,f,r=f){var d=new WeakSet;m(e,"input",async l=>{var v=l?e.defaultValue:e.value;if(v=i(e)?u(v):v,r(v),o!==null&&d.add(o),await x(),v!==(v=f())){var c=e.selectionStart,s=e.selectionEnd,t=e.value.length;if(e.value=v??"",s!==null){var a=e.value.length;c===s&&s===t&&a>t?(e.selectionStart=a,e.selectionEnd=a):(e.selectionStart=c,e.selectionEnd=Math.min(s,a))}}}),(y&&e.defaultValue!==e.value||E(f)==null&&e.value)&&(r(i(e)?u(e.value):e.value),o!==null&&d.add(o)),b(()=>{var l=f();if(e===document.activeElement){var v=o;if(d.has(v))return}i(e)&&l===u(e.value)||e.type==="date"&&!l&&!e.value||l!==e.value&&(e.value=l??"")})}const _=new Set;function O(e,f,r,d,l=d){var v=r.getAttribute("type")==="checkbox",c=e;let s=!1;if(f!==null)for(var t of f)c=c[t]??=[];c.push(r),m(r,"change",()=>{var a=r.__value;v&&(a=k(c,a,r.checked)),l(a)},()=>l(v?[]:null)),b(()=>{var a=d();if(y&&r.defaultChecked!==r.checked){s=!0;return}v?(a=a||[],r.checked=a.includes(r.__value)):r.checked=g(r.__value,a)}),w(()=>{var a=c.indexOf(r);a!==-1&&c.splice(a,1)}),_.has(c)||(_.add(c),h(()=>{c.sort((a,n)=>a.compareDocumentPosition(n)===4?-1:1),_.delete(c)})),h(()=>{if(s){var a;if(v)a=k(c,a,r.checked);else{var n=c.find(S=>S.checked);a=n?.__value}l(a)}})}function k(e,f,r){for(var d=new Set,l=0;l<e.length;l+=1)e[l].checked&&d.add(e[l].__value);return r||d.delete(f),Array.from(d)}function i(e){var f=e.type;return f==="number"||f==="range"}function u(e){return e===""?null:+e}export{O as a,M as b};
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.