var r,n=["all","some","none"],e={all:function(n){for(var e=r(),t=0;t<n.lenght;t++){if(!e[n[t]])return!1}return!0},some:function(n){for(var e=r(),t=0;t<n.lenght;t++){if(e[n[t]])return!0}return!1},none:function(n){for(var e=r(),t=0;t<n.lenght;t++){if(e[n[t]])return!1}return!0}};function t(r,t){var i=t.arg,o=t.value,a=void 0===o?[]:o,u=Array.isArray(a)?a:[a];i=n.includes(i)?i:"all",e[i](u)||r.parentNode&&r.parentNode.removeChild(r)}var i={inserted:t,update:t},o={install:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.directive("permission",i),r=e.getPermissionMap||function(){return{}}}};export default o;
