function(iter){try{var result=0;const _temp=_forOf(iter,function(value){return Promise.resolve(value).then(function(_value){result+=_value;});});return Promise.resolve(_temp&&_temp.then?_temp.then(function(){return result;}):result);}catch(e){return Promise.reject(e);}}