text: module.exports = (function() {
  var __MODS__ = {};
  var __DEFINE__ = function(modId, func, req) { var m = { exports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
  var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = { exports: {} }; __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); if(typeof m.exports === "object") { __MODS__[modId].m.exports.__proto__ = m.exports.__proto__; Object.keys(m.exports).forEach(function(k) { __MODS__[modId].m.exports[k] = m.exports[k]; var desp = Object.getOwnPropertyDescriptor(m.exports, k); if(desp && desp.configurable) Object.defineProperty(m.exports, k, { set: function(val) { __MODS__[modId].m.exports[k] = val; }, get: function() { return __MODS__[modId].m.exports[k]; } }); }); if(m.exports.__esModule) Object.defineProperty(__MODS__[modId].m.exports, "__esModule", { value: true }); } else { __MODS__[modId].m.exports = m.exports; } } return __MODS__[modId].m.exports; };
  var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
  var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
  __DEFINE__(1582942707243, function(require, module, exports) {
  
  const path = require('path');
  const pathExists = require('path-exists');
  const pLocate = require('p-locate');
  
  module.exports = (iterable, options) => {
  	options = Object.assign({
  		cwd: process.cwd()
  	}, options);
  
  	return pLocate(iterable, el => pathExists(path.resolve(options.cwd, el)), options);
  };
  
  module.exports.sync = (iterable, options) => {
  	options = Object.assign({
  		cwd: process.cwd()
  	}, options);
  
  	for (const el of iterable) {
  		if (pathExists.sync(path.resolve(options.cwd, el))) {
  			return el;
  		}
  	}
  };
  
  }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  return __REQUIRE__(1582942707243);
  })()
  //# sourceMappingURL=index.js.map