import e from"../../utils/isStandardSyntaxAtRule.mjs";import{isString as t}from"../../utils/validateTypes.mjs";import s from"../../utils/report.mjs";import r from"../../utils/ruleMessages.mjs";import l from"../../utils/validateOptions.mjs";import i from"../../utils/vendor.mjs";const a="at-rule-disallowed-list",o=r(a,{rejected:e=>`Unexpected at-rule "${e}"`}),m=r=>(m,u)=>{if(!l(u,a,{actual:r,possible:[t]}))return;const n=[r].flat();m.walkAtRules(t=>{const r=t.name;if(!e(t))return;if(!n.includes(i.unprefixed(r).toLowerCase()))return;const l=`@${t.name}`;s({message:o.rejected,messageArgs:[l],node:t,result:u,ruleName:a,word:l})})};m.primaryOptionArray=!0,m.ruleName=a,m.messages=o,m.meta={url:"https://stylelint.io/user-guide/rules/at-rule-disallowed-list"};export{m as default};