import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/atRuleParamIndex.mjs";import{__require as s}from"../../utils/namespace.mjs";import{__require as a}from"../../utils/ruleUrl.mjs";import{__require as t}from"../../utils/whitespaceChecker.mjs";var i,n;function o(){if(n)return i;n=1;const{utils:o}=e,u=r(),l=s(),m=a(),p=t(),c=l("at-function-parentheses-space-before"),f=o.ruleMessages(c,{rejectedBefore:()=>"Unexpected whitespace before parentheses in function declaration",expectedBefore:()=>"Expected a single space before parentheses in function declaration"}),d={url:m(c),fixable:!0};function x(e){return(r,s)=>{if(!o.validateOptions(s,c,{actual:e,possible:["always","never"]}))return;const a=/^([\w-]+)\s*\(/,t="always"===e?"$1 (":"$1(",i=p("space",e,f).before;r.walkAtRules("function",e=>{const r=()=>{e.params=e.params.replace(a,t)},n=e.params.indexOf("("),l=u(e);i({source:e.params,index:n,err:a=>o.report({message:a,node:e,result:s,ruleName:c,index:l+n,endIndex:l+n,fix:r})})})}}return x.ruleName=c,x.messages=f,x.meta=d,i=x}export{o as __require};