1import{i as f}from"./CxEa_k5X.js";import{N as v,m as t,O as s}from"./Btd0CN9o.js";function g({type:e,defaultValue:i,modelValue:l}){const n=l||i;return l!==void 0||i!==void 0?Array.isArray(n)?"multiple":"single":e??"single"}function m({type:e,defaultValue:i,modelValue:l}){return e||g({type:e,defaultValue:i,modelValue:l})}function p({type:e,defaultValue:i}){return i!==void 0?i:e==="single"?void 0:[]}function A(e,i){const l=t(()=>m(e)),n=v(e,"modelValue",i,{defaultValue:p(e),passive:e.modelValue===void 0,deep:!0});function a(r){if(l.value==="single")n.value=s(r,n.value)?void 0:r;else{const u=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(f(u,r)){const d=u.findIndex(c=>s(c,r));u.splice(d,1)}else u.push(r);n.value=u}}const o=t(()=>l.value==="single");return{modelValue:n,changeModelValue:a,isSingle:o}}export{A as u};
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.