function e(t,r,l="conditional"){return a=>{if(!a.parent)return null;let n=null;if(t(a.parent)&&(n=(Array.isArray(r)?r:[r]).find(u=>u(a)!==null)??null),l&&n){let o={};o[l]=n,n=o}return n}}function i(){return t=>(t.parent&&Object.values(t.parent.controls).forEach(r=>{r!==t&&r.updateValueAndValidity()}),null)}export{e as a,i as b};
