function a(r){if(!r)return;if(Array.isArray(r))return{operator:r.length>1?"IS_ONE_OF":"IS",sqlOperator:"IN",values:r};let e=r.startsWith("-"),t=(e?r.slice(1):r).split(",").filter(Boolean);return t.length===0?void 0:{operator:e?t.length>1?"IS_NOT_ONE_OF":"IS_NOT":t.length>1?"IS_ONE_OF":"IS",sqlOperator:e?"NOT IN":"IN",values:t}}function s(r){let e=r.values.join(",");return r.operator.includes("NOT")?`-${e}`:e}export{a,s as b};
