import{__require as e}from"../../../../postcss-value-parser/lib/index.mjs";import r from"../../../../../_virtual/index13.mjs";import{__require as o}from"../../utils/declarationValueIndex.mjs";import{__require as t}from"../../utils/namespace.mjs";import{__require as n}from"../../utils/ruleUrl.mjs";var s,l;function a(){if(l)return s;l=1;const a=e(),{utils:u}=r,i=o(),c=t(),m=n(),p=c("function-color-channel"),d=u.ruleMessages(p,{expected:"Expected the color.channel function to be used"}),f={url:m(p)},h=new Set(["color.alpha","color.blackness","color.blue","color.green","color.hue","color.lightness","color.red","color.saturation","color.whiteness","alpha","blackness","blue","green","hue","lightness","opacity","red","saturation"]);function _(e){return(r,o)=>{u.validateOptions(o,p,{actual:e})&&r.walkDecls(e=>{const r=i(e);a(e.value).walk(t=>{if("function"!==t.type||""===t.value)return;const n=!("filter"===e.prop)&&function(e){return"function"===e.type&&h.has(e.value)}(t);if(n){const n=r+t.sourceIndex;u.report({message:d.expected,node:e,index:n,endIndex:n+t.value.length,result:o,ruleName:p})}})})}}return _.ruleName=p,_.messages=d,_.meta=f,s=_}export{a as __require};