let e=require("vue");var t={width:0,height:0,left:0,top:0};function n(n,r){let i=(0,e.ref)(new Map);return(0,e.watchEffect)(()=>{let e=new Map,a=n.value,o=r.value.get(a[0]?.key)||t,s=o.left+o.width;for(let n=0;n<a.length;n+=1){let{key:i}=a[n],o=r.value.get(i);o||(o=r.value.get(a[n-1]?.key)||t);let c=e.get(i)||{...o};c.right=s-c.left-c.width,e.set(i,c)}i.value=new Map(e)}),i}exports.default=n;