import{b as i}from"./index-9PRMimni.js";function c(){const o=i();function n(e){return o.getRoles.some(r=>e.includes(r))}function s(e){return!e||!e.length?!0:n(e)}function u(e){const r=o.getRoles;if(Array.isArray(e))return r.every(t=>e.includes(t));throw new Error(`[hasEveryRole]: ${e} should be a array !`)}function a(e){const r=o.getRoles;if(Array.isArray(e))return r.some(t=>e.includes(t));throw new Error(`[hasSomeRole]: ${e} should be a array !`)}return{hasRole:s,hasEveryRole:u,hasSomeRole:a}}export{c as u};
