import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/validateTypes.mjs";import{__require as s}from"../../utils/namespace.mjs";import{__require as t}from"../../utils/ruleUrl.mjs";import{__require as i}from"../../../../postcss-value-parser/lib/index.mjs";import{__require as a}from"../../utils/isNativeCssFunction.mjs";var u,l;function o(){if(l)return u;l=1;const{utils:o}=e,{isRegExp:n,isString:m}=r(),c=s(),p=t(),f=i(),_=a(),d=c("function-disallowed-list"),v=o.ruleMessages(d,{rejected:e=>`Unexpected function "${e}"`}),j={url:p(d)};function q(e){const r=[].concat(e);return(s,t)=>{function i(e,s){e&&f(e).walk(e=>{if("function"!==e.type||_(e.value)||""===e.value)return;const i=e.value.indexOf("."),a=i>-1?e.value.slice(i+1):e.value;r.forEach(e=>{(m(e)&&a===e||n(e)&&a.match(e))&&o.report({message:v.rejected(a),node:s,word:a,result:t,ruleName:d})})})}o.validateOptions(t,d,{actual:e,possible:[m,n]})&&(s.walkDecls(e=>{i(e.value,e)}),s.walkAtRules("return",e=>{i(e.params,e)}))}}return q.ruleName=d,q.messages=v,q.meta=j,u=q}export{o as __require};