import{__require as e}from"../../../../postcss-value-parser/lib/index.mjs";import r from"../../../../../_virtual/index13.mjs";import{__require as t}from"../../utils/declarationValueIndex.mjs";import{__require as a}from"../../utils/namespace.mjs";import{__require as s}from"../../utils/ruleUrl.mjs";var n,o;function u(){if(o)return n;o=1;const u=e(),{utils:i}=r,l=t(),c=a(),d=s(),m=c("function-color-relative"),f=i.ruleMessages(m,{expected:"Expected the scale-color function to be used"}),p={url:d(m)},_=new Set(["saturate","desaturate","darken","lighten","opacify","fade-in","transparentize","fade-out"]);function v(e){return"function"===e.type&&_.has(e.value)}function x(e){return(r,t)=>{i.validateOptions(t,m,{actual:e})&&r.walkDecls(e=>{const r=l(e);u(e.value).walk(a=>{if("function"!==a.type||""===a.value)return;const s="filter"===e.prop,n=!s&&v(a),o=s&&"drop-shadow"===a.value&&a.nodes.some(v);if(n||o){(o?a.nodes.filter(v):[a]).forEach(a=>{const s=r+a.sourceIndex;i.report({message:f.expected,node:e,index:s,endIndex:s+a.value.length,result:t,ruleName:m})})}})})}}return x.ruleName=m,x.messages=f,x.meta=p,n=x}export{u as __require};