/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/dotenv-override-true@6.2.2/lib/main.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const fs=require("fs"),path=require("path");function log(e){console.log(`[dotenv][DEBUG] ${e}`)}function parse(e,n){const o=Boolean(n&&n.debug),r={};return e.toString().split("\n").forEach((function(e,n){const t=e.match(/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/);if(null!=t){const e=t[1];let n=t[2]||"";const o=n?n.length:0;o>0&&'"'===n.charAt(0)&&'"'===n.charAt(o-1)&&(n=n.replace(/\\n/gm,"\n")),n=n.replace(/(^['"]|['"]$)/g,"").trim(),r[e]=n}else o&&log(`did not match key and value when parsing line ${n+1}: ${e}`)})),r}function config(e){let n=path.resolve(process.cwd(),".env"),o="utf8",r=!0,t=!1;e&&(null!=e.path&&(n=e.path),null!=e.encoding&&(o=e.encoding),null!=e.override&&(r=e.override),null!=e.debug&&(t=!0));try{const e=parse(fs.readFileSync(n,{encoding:o}),{debug:t});return Object.keys(e).forEach((function(n){r||!process.env.hasOwnProperty(n)?process.env[n]=e[n]:t&&log(`"${n}" is already defined in \`process.env\` and will not be overwritten`)})),{parsed:e}}catch(e){return{error:e}}}module.exports.config=config,module.exports.load=config,module.exports.parse=parse;
//# sourceMappingURL=/sm/1caccbd3a86df49721d3ef3aac11f0672488c2062ce74c4c9b268a4bfaf3f6eb.map