/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{toConst as n}from"../../core/compilerUtils.js";function r(r){let t=0;return n(new Map(r.map(({name:n,count:r})=>{const o=[n,t];return 16===r?t+=4:9===r?t+=3:++t,o})))}function t(n){const r=new Map;let t=0;return n.forEach(n=>n.forEach(({name:n,count:o})=>{r.set(n,t),16===o?t+=4:9===o?t+=3:++t})),r}function o(n){return t(Array.from(n.values()).map(({layout:n})=>n))}export{o as fromBuffers,r as fromLayout,t as fromLayouts};
