"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/regenerator"),t=require("lodash");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e),a=n(r),o=function(){var e=u.default(a.default.mark((function e(r){var n,u,o,i,l,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.ids,u=r.chunkSize,o=r.fetcher,i=r.signal,0!==n.length){e.next=3;break}return e.abrupt("return",[]);case 3:return null==i||i.throwIfAborted(),l=t.chunk(n,u),e.next=7,Promise.all(l.map((function(e){return null==i||i.throwIfAborted(),o(e,i)})));case 7:return s=e.sent,e.abrupt("return",s.flat());case 9:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();exports.fetchByIdChunks=o;
//# sourceMappingURL=fetchByIdChunks.js.map
