import{validation}from"../../Validation.js";import{featuresToArray}from"./tools.js";class GetAttributeValue{execute(t,e){var i=validation.string("attribute",t.attribute,validation.never),a=featuresToArray(validation.exists("features",t.features))[validation.number("index",t.index,0)];const r={feature:void 0,value:void 0};if(null==a)return r;t=a.attributes;if(null==t)return r;r.feature=a;i=t[i];return r.value=null!==i?i:void 0,r}}GetAttributeValue.action="gcx:wf:arcgis::GetAttributeValue",GetAttributeValue.suite="gcx:wf:builtin";export{GetAttributeValue};