"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../../../../../../_virtual/gatherSequenceExpressions.js");require("../retrievers/getBindingIdentifiers.js");require("../validators/generated/index.js");const q=require("../builders/generated/index.js");require("../clone/cloneNode.js");const g=require("../../../../../../../../_virtual/getBindingIdentifiers.js"),v=require("../../../../../../../../_virtual/index35.js"),h=require("../../../../../../../../_virtual/cloneNode.js");var c;function b(){if(c)return a.__exports;c=1,Object.defineProperty(a.__exports,"__esModule",{value:!0}),a.__exports.default=o;var _=g.__exports,i=v.__exports,l=q.__require(),p=h.__exports;function o(f,r,u){const t=[];let d=!0;for(const e of f)if((0,i.isEmptyStatement)(e)||(d=!1),(0,i.isExpression)(e))t.push(e);else if((0,i.isExpressionStatement)(e))t.push(e.expression);else if((0,i.isVariableDeclaration)(e)){if(e.kind!=="var")return;for(const n of e.declarations){const s=(0,_.default)(n);for(const x of Object.keys(s))u.push({kind:e.kind,id:(0,p.default)(s[x])});n.init&&t.push((0,l.assignmentExpression)("=",n.id,n.init))}d=!0}else if((0,i.isIfStatement)(e)){const n=e.consequent?o([e.consequent],r,u):r.buildUndefinedNode(),s=e.alternate?o([e.alternate],r,u):r.buildUndefinedNode();if(!n||!s)return;t.push((0,l.conditionalExpression)(e.test,n,s))}else if((0,i.isBlockStatement)(e)){const n=o(e.body,r,u);if(!n)return;t.push(n)}else if((0,i.isEmptyStatement)(e))f.indexOf(e)===0&&(d=!0);else return;return d&&t.push(r.buildUndefinedNode()),t.length===1?t[0]:(0,l.sequenceExpression)(t)}return a.__exports}exports.__require=b;
//# sourceMappingURL=gatherSequenceExpressions.js.map
