"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _default=

func=>{
let prev=Promise.resolve();

return(...args)=>{
const next=prev.then(()=>func(...args));
prev=next;
return next;
};
};exports.default=_default;