import e from"../../utils/isAutoprefixable.mjs";import r from"../../utils/isStandardSyntaxAtRule.mjs";import t from"../../utils/report.mjs";import s from"../../utils/ruleMessages.mjs";import a from"../../utils/validateOptions.mjs";const i="at-rule-no-vendor-prefix",l=s(i,{rejected:e=>`Unexpected vendor-prefixed at-rule "${e}"`}),o=s=>(o,u)=>{a(u,i,{actual:s})&&o.walkAtRules(s=>{if(!r(s))return;const a=s.name;if(!a.startsWith("-"))return;if(!e.atRuleName(a))return;const o=`@${a}`;t({message:l.rejected,messageArgs:[o],node:s,word:o,result:u,ruleName:i,fix:{apply:()=>{s.name=e.unprefix(s.name)},node:s}})})};o.ruleName=i,o.messages=l,o.meta={url:"https://stylelint.io/user-guide/rules/at-rule-no-vendor-prefix",fixable:!0};export{o as default};