node_modules/mdsvex/dist/main.es.js
// Run `fns`.  Last argument must be a completion handler.
Run `fns`.  Last argument must be a completion handler.
Run ` fns ` . Last argument must be a completion handler .
function run() {
    var index = -1;
    var input = slice$2.call(arguments, 0, -1);
    var done = arguments[arguments.length - 1];
    if (typeof done !== 'function') {
      throw new Error('Expected function as last argument, not ' + done)
    }
    next.apply(null, [null].concat(input));
    function next(err) {
      var fn = fns[++index];
      var params = slice$2.call(arguments, 0);
      var values = params.slice(1);
      var length = input.length;
      var pos = -1;
      if (err) {
        done(err);
        return
      }
      while (++pos < length) {
        if (values[pos] === null || values[pos] === undefined) {
          values[pos] = input[pos];
        }
      }
      input = values;
      if (fn) {
        wrap_1$1(fn, next).apply(null, input);
      } else {
        done.apply(null, [null].concat(input));
      }
    }
  }
function run ( ) { var index = - 1 ; var input = slice$2 . call ( arguments , 0 , - 1 ) ; var done = arguments [ arguments . length - 1 ] ; if ( typeof done !== 'function' ) { throw new Error ( 'Expected function as last argument, not ' + done ) } next . apply ( null , [ null ] . concat ( input ) ) ; function next ( err ) { var fn = fns [ ++ index ] ; var params = slice$2 . call ( arguments , 0 ) ; var values = params . slice ( 1 ) ; var length = input . length ; var pos = - 1 ; if ( err ) { done ( err ) ; return } while ( ++ pos < length ) { if ( values [ pos ] === null || values [ pos ] === undefined ) { values [ pos ] = input [ pos ] ; } } input = values ; if ( fn ) { wrap_1$1 ( fn , next ) . apply ( null , input ) ; } else { done . apply ( null , [ null ] . concat ( input ) ) ; } } }
Run `fns`.
Run ` fns ` .
// Run the next `fn`, if any. // Copy non-nully input into values. // Next or done.