import{isString as e,isRegExp as r}from"../../utils/validateTypes.mjs";import t from"../../utils/isStandardSyntaxProperty.mjs";import s from"../../utils/matchesStringOrRegExp.mjs";import o from"../../utils/report.mjs";import m from"../../utils/ruleMessages.mjs";import i from"../../utils/validateOptions.mjs";import l from"../../utils/vendor.mjs";const p="property-allowed-list",a=m(p,{rejected:e=>`Unexpected property "${e}"`}),u=m=>(u,d)=>{i(d,p,{actual:m,possible:[e,r]})&&u.walkDecls(e=>{const r=e.prop;t(r)&&(s([r,l.unprefixed(r)],m)||o({message:a.rejected,messageArgs:[r],word:r,node:e,result:d,ruleName:p}))})};u.primaryOptionArray=!0,u.ruleName=p,u.messages=a,u.meta={url:"https://stylelint.io/user-guide/rules/property-allowed-list"};export{u as default};