const{isSafeInteger:t}=Number;module.exports=(e,r)=>{const[o,n]=e;if(!t(o)||!t(n)||o>n||!t(r)||r<=0)throw new TypeError(`Expected ints: start < end, partitions > 0; got: [${o}, ${n}], ${r}`);const s=n-o+1;return{*[Symbol.iterator](){let t=0;for(let e=0;e