(innerFn1, outerFn, self1, tryLocsList)
| 53176 | }; |
| 53177 | } |
| 53178 | function wrap(innerFn1, outerFn, self1, tryLocsList) { |
| 53179 | var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context1 = new Context(tryLocsList || []); |
| 53180 | return generator._invoke = function(innerFn, self, context) { |
| 53181 | var state = "suspendedStart"; |
| 53182 | return function(method, arg) { |
| 53183 | if ("executing" === state) throw new Error("Generator is already running"); |
| 53184 | if ("completed" === state) { |
| 53185 | if ("throw" === method) throw arg; |
| 53186 | return doneResult(); |
| 53187 | } |
| 53188 | for(context.method = method, context.arg = arg;;){ |
| 53189 | var delegate = context.delegate; |
| 53190 | if (delegate) { |
| 53191 | var delegateResult = maybeInvokeDelegate(delegate, context); |
| 53192 | if (delegateResult) { |
| 53193 | if (delegateResult === ContinueSentinel) continue; |
| 53194 | return delegateResult; |
| 53195 | } |
| 53196 | } |
| 53197 | if ("next" === context.method) context.sent = context._sent = context.arg; |
| 53198 | else if ("throw" === context.method) { |
| 53199 | if ("suspendedStart" === state) throw state = "completed", context.arg; |
| 53200 | context.dispatchException(context.arg); |
| 53201 | } else "return" === context.method && context.abrupt("return", context.arg); |
| 53202 | state = "executing"; |
| 53203 | var record = tryCatch(innerFn, self, context); |
| 53204 | if ("normal" === record.type) { |
| 53205 | if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; |
| 53206 | return { |
| 53207 | value: record.arg, |
| 53208 | done: context.done |
| 53209 | }; |
| 53210 | } |
| 53211 | "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); |
| 53212 | } |
| 53213 | }; |
| 53214 | }(innerFn1, self1, context1), generator; |
| 53215 | } |
| 53216 | function tryCatch(fn, obj, arg) { |
| 53217 | try { |
| 53218 | return { |
no test coverage detected