/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
function t(t){if(!Array.isArray(t))return o(t)?t.type:2;let r;for(const e of t){const t=e.type;if(o(e))if(null==r)r=t;else if(r!==t)return 2}return r??2}function r(t){let r=0;for(const{material:e}of t)if(n(e)){if(e.color[3]*e.opacity<1)return 0;r=1}return r}function e(t){let r=0;for(const{material:e}of t)if(n(e)){switch(e.objectTransparency){case 0:return 0;case 1:if(e.opacity<1)return 0}r=1}return r}function n(t){return t.size*t.color[3]*t.opacity>0}function o(t){return t.size*t.color[3]>0}function i(t,r,e,n){for(let o=0;o<t.length;o++){const i=t[o].index,f=r[o],c=r[o+1];if(n)for(let t=f;t<c;t++){const r=n[t];e.set(r,i)}else for(let t=f;t<c;t++)e.set(t,i)}}export{r as determineEdgeTransparency,e as determineObjectTransparency,t as determineRendererType,i as fillComponentBufferIndices};
