(function(f){if(typeofexports==="object"&&typeofmodule!=="undefined"){module.exports=f()}elseif(typeofdefine==="function"&&define.amd){define([],f)}else{varg;if(typeofwindow!=="undefined"){g=window}elseif(typeofglobal!=="undefined"){g=global}elseif(typeofself!=="undefined"){g=self}else{g=this}g.ejs=f()}})(function(){vardefine,module,exports;returnfunction(){functionr(e,n,t){functiono(i,f){if(!n[i]){if(!e[i]){varc="function"==typeofrequire&&require;if(!f&&c)returnc(i,!0);if(u)returnu(i,!0);vara=newError("Cannot find module '"+i+"'");throwa.code="MODULE_NOT_FOUND",a}varp=n[i]={exports:{}};e[i][0].call(p.exports,function(r){varn=e[i][1][r];returno(n||r)},p,p.exports,r,e,n,t)}returnn[i].exports}for(varu="function"==typeofrequire&&require,i=0;i<t.length;i++)o(t[i]);returno}returnr}()({1:[function(require,module,exports){"use strict";varfs=require("fs");varpath=require("path");varutils=require("./utils");varscopeOptionWarned=false;var_VERSION_STRING=require("../package.json").version;var_DEFAULT_OPEN_DELIMITER="<";var_DEFAULT_CLOSE_DELIMITER=">";var_DEFAULT_DELIMITER="%";var_DEFAULT_LOCALS_NAME="locals";var_NAME="ejs";var_REGEX_STRING="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)";var_OPTS_PASSABLE_WITH_DATA=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"];var_OPTS_PASSABLE_WITH_DATA_EXPRESS=_OPTS_PASSABLE_WITH_DATA.concat("cache");var_BOM=/^\uFEFF/;var_JS_IDENTIFIER=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;exports.cache=utils.cache;exports.fileLoader=fs.readFileSync;exports.localsName=_DEFAULT_LOCALS_NAME;exports.promiseImpl=newFunction("return this;")().Promise;exports.resolveInclude=function(name,filename,isDir){vardirname=path.dirname;varextname=path.extname;varresolve=path.resolve;varincludePath=resolve(isDir?filename:dirname(filename),name);varext=extname(name);if(!ext){includePath+=".ejs"}returnincludePath};functionresolvePaths(name,paths){varfilePath;if(paths.some(function(v){filePath=exports.resolveInclude(name,v,true);returnfs.existsSync(filePath)})){returnfilePath}}functiongetIncludePath(path,options){varincludePath;varfilePath;varviews=options.views;varmatch=/^[A-Za-z]+:\\|^\//.exec(path);if(match&&match.length){path=path.replace(/^\/*/,"");if(Array.isArray(options.root)){includePath=resolvePaths(path,options.root)}else{includePath=exports.resolveInclude(path,options.root||"/",true)}}else{if(options.filename){filePath=exports.resolveInclude(path,options.filename);if(fs.existsSync(filePath)){includePath=filePath}}if(!includePath&&Array.isArray(views)){includePath=resolvePaths(path,views)}if(!includePath&&typeofoptions.includer!=="function"){thrownewError('Could not find the include file "'+options.escapeFunction(path)+'"')}}returnincludePath}functionhandleCache(options,template){varfunc;varfilename=options.filename;varhasTemplate=arguments.length>1;if(options.cache){if(!filename){thrownewError("cache option requires a filename")}func=exports.cache.get(filename);if(func){returnfunc}if(!hasTemplate){template=fileLoader(filename).toString().replace(_BOM,"")}}elseif(!hasTemplate){if(!filename){thrownewError("Internal EJS error: no file name or template "+"provided")}template=fileLoader(filename).toString().replace(_BOM,"")}func=exports.compile(template,options);if(options.cache){exports.cache.set(filename,func)}returnfunc}functiontryHandleCache(options,data,cb){varresult;if(!cb){if(typeofexports.promiseImpl=="function"){returnnewexports.promiseImpl(function(resolve,reject){try{result=handleCache(options)(data);resolve(result)}catch(err){reject(err)}})}else{thrownewError("Please provide a callback function")}}else{try{result=handleCache(options)(data)}catch(err){returncb(err)}cb(null,result)}}functionfileLoader(filePath){returnexports.fileLoader(filePath)}functionincludeFile(path,options){varopts=utils.shallowCopy(utils.createNullProtoObjWherePossible(),options);opts.filename=getIncludePath(path,opts);if(typeofoptions.includer==="function"){varincluderResult=options.includer(path,opts