"use strict";const l=require("./base-iCmnU-fv.cjs");class P{promise(r){return new Promise(e=>{e(r)})}promiseFun(r){return new Promise(e=>{r&&r(e)})}resolve(r){return Promise.resolve(r)}all(r){return Promise.all(r)}allByJson(r){return new Promise(e=>{if(l.CommonBase.isEmpty(r))return e({result:{},errors:{}});let s=0;const i=Object.keys(r),u=i.length,n={},t={},c=o=>{Promise.resolve(r[o]).then(m=>{s+=1,n[o]=m,s===u&&e({result:n,errors:t})},m=>{s+=1,t[o]=m,s===u&&e({result:n,errors:t})})};i.forEach(o=>{c(o)})})}}const a=new P;exports.CommonPromise=a;
//# sourceMappingURL=promise-BtoePzHD.cjs.map
