define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(r.prototype.execute=function(e,t){var o=e.exit,r=t.state;if(!1!==o&&null!=o)return{looping:!1,count:r&&r.length||0};if(void 0===r){t.persist(r=[]);var i=e.items;if(null!=i){var n=0;if(Array.isArray(i))for(var l=0,s=i;l<s.length;l++){var a=s[l];r.push({looping:!0,pass:n++,item:a})}else if(function(e){if(e&&Symbol&&"function"==typeof e[Symbol.iterator])return!0;return!1}(i))for(var u=i[Symbol.iterator]();;){var f=u.next();if(f.done)break;r.push({looping:!0,pass:n++,item:f.value})}else for(var p in i)r.push({looping:!0,key:p,pass:n++,item:i[p]})}}if(t.passes<r.length){t.call("loop");t=r[t.passes];return t.count=r.length,t}return{looping:!1,count:r.length}},r.action="gcx:wf:core:loop:ForEach",r.suite="gcx:wf:builtin",r);function r(){}t.ForEach=o});