function TimelineSelections({n = 3, min = 1, max = 10, value = []}) {
const el = html`<div style=${{ display: "flex", flexDirection: 'column'}}></div>`;
const children = [...Array(n)].map((x,i) => RangeSelection({min, max, value: value.length? value[i] : []}));
el.append(html.fragment`${children}`);
children.forEach(x => {x.addEventListener('input', e => el.value = [...el.querySelectorAll('span')].map(x => x.value) );});
el.value = children.map(x => x.value);
return el;
}