import e from"../../../../../_virtual/index19.mjs";import{isString as t,isRegExp as s}from"../../utils/validateTypes.mjs";import{declarationValueIndex as r}from"../../utils/nodeFieldIndices.mjs";import i from"../../utils/isStandardSyntaxFunction.mjs";import l from"../../utils/matchesStringOrRegExp.mjs";import o from"../../utils/report.mjs";import m from"../../utils/ruleMessages.mjs";import n from"../../utils/validateOptions.mjs";import u from"../../utils/vendor.mjs";const a="function-disallowed-list",d=m(a,{rejected:e=>`Unexpected function "${e}"`}),p=m=>(p,f)=>{n(f,a,{actual:m,possible:[t,s]})&&p.walkDecls(t=>{e(t.value).walk(e=>{if("function"!==e.type)return;if(!i(e))return;if(!l(u.unprefixed(e.value),m))return;const s=r(t)+e.sourceIndex,n=s+e.value.length;o({message:d.rejected,messageArgs:[e.value],node:t,index:s,endIndex:n,result:f,ruleName:a})})})};p.primaryOptionArray=!0,p.ruleName=a,p.messages=d,p.meta={url:"https://stylelint.io/user-guide/rules/function-disallowed-list"};export{p as default};