var e={557:e=>{e.exports=function e(t,n,a){function s(r,c){if(!n[r]){if(!t[r]){if(i)return i(r,!0);var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}var l=n[r]={exports:{}};t[r][0].call(l.exports,function(e){return s(t[r][1][e]||e)},l,l.exports,e,t,n,a)}return n[r].exports}for(var i=void 0,r=0;r1;if(e.cache){if(!s)throw new Error("cache option requires a filename");if(a=n.cache.get(s))return a;i||(t=f(s).toString().replace(h,""))}else if(!i){if(!s)throw new Error("Internal EJS error: no file name or template provided");t=f(s).toString().replace(h,"")}return a=n.compile(t,e),e.cache&&n.cache.set(s,a),a}function f(e){return n.fileLoader(e)}function v(e,t){var s=i.shallowCopy(i.createNullProtoObjWherePossible(),t);if(s.filename=function(e,t){var s,i,r=t.views,c=/^[A-Za-z]+:\\|^\//.exec(e);if(c&&c.length)e=e.replace(/^\/*/,""),s=Array.isArray(t.root)?m(e,t.root):n.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=n.resolveInclude(e,t.filename),a.existsSync(i)&&(s=i)),!s&&Array.isArray(r)&&(s=m(e,r)),!s&&"function"!=typeof t.includer)throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return s}(e,s),"function"==typeof t.includer){var r=t.includer(e,s.filename);if(r&&(r.filename&&(s.filename=r.filename),r.template))return p(s,r.template)}return p(s)}function b(e,t,n,a,s){var i=t.split("\n"),r=Math.max(a-3,0),c=Math.min(i.length,a+3),o=s(n),l=i.slice(r,c).map(function(e,t){var n=t+r+1;return(n==a?" >> ":" ")+n+"| "+e}).join("\n");throw e.path=o,e.message=(o||"ejs")+":"+a+"\n"+l+"\n\n"+e.message,e}function g(e){return e.replace(/;(\s*$)/,"$1")}function x(e,t){var a=i.hasOwnOnlyObject(t),s=i.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",s.client=a.client||!1,s.escapeFunction=a.escape||a.escapeFunction||i.escapeXML,s.compileDebug=!1!==a.compileDebug,s.debug=!!a.debug,s.filename=a.filename,s.openDelimiter=a.openDelimiter||n.openDelimiter||"<",s.closeDelimiter=a.closeDelimiter||n.closeDelimiter||">",s.delimiter=a.delimiter||n.delimiter||"%",s.strict=a.strict||!1,s.context=a.context,s.cache=a.cache||!1,s.rmWhitespace=a.rmWhitespace,s.root=a.root,s.includer=a.includer,s.outputFunctionName=a.outputFunctionName,s.localsName=a.localsName||n.localsName||o,s.views=a.views,s.async=a.async,s.destructuredLocals=a.destructuredLocals,s.legacyInclude=void 0===a.legacyInclude||!!a.legacyInclude,s.strict?s._with=!1:s._with=void 0===a._with||a._with,this.opts=s,this.regex=this.createRegex()}n.cache=i.cache,n.fileLoader=a.readFileSync,n.localsName=o,n.promiseImpl=new Function("return this;")().Promise,n.resolveInclude=function(e,t,n){var a=s.dirname,i=s.extname,r=(0,s.resolve)(n?t:a(t),e);return i(e)||(r+=".ejs"),r},n.compile=function(e,t){return t&&t.scope&&(r||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),r=!0),t.context||(t.context=t.scope),delete t.scope),new x(e,t).compile()},n.render=function(e,t,n){var a=t||i.createNullProtoObjWherePossible(),s=n||i.createNullProtoObjWherePossible();return 2==arguments.length&&i.shallowCopyFromList(s,a,l),p(s,e)(a)},n.renderFile=function(){var e,t,a,s=Array.prototype.slice.call(arguments),r=s.shift(),c={filename:r};return"function"==typeof arguments[arguments.length-1]&&(e=s.pop()),s.length?(t=s.shift(),s.length?i.shallowCopy(c,s.pop()):(t.settings&&(t.settings.views&&(c.views=t.settings.views),t.settings["view cache"]&&(c.cache=!0),(a=t.settings["view options"])&&i.shallowCopy(c,a)),i.shallowCopyFromList(c,t,d)),c.filename=r):t=i.createNullProtoObjWherePossible(),function(e,t,a){var s;if(!a){if("function"==typeof n.promiseImpl)return new n.promiseImpl(function(n,a){try{n(s=p(e)(t))}catch(e){a(e)}});throw new Error("Please provide a callback function")}try{s=p(e)(t)}catch(e){return a(e)}a(null,s)}(c,t,e)},n.Template=x,n.clearCache=function(){n.cache.reset()},x.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},x.prototype={createRegex:function(){var e="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",t=i.escapeRegExpChars(this.opts.delimiter),n=i.escapeRegExpChars(this.opts.openDelimiter),a=i.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(//g,a),new RegExp(e)},compile:function(){var e,t,n,a=this.opts,r="",c="",o=a.escapeFunction,l=a.filename?JSON.stringify(a.filename):"undefined";if(!this.source){if(this.generateSource(),r+=' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n',a.outputFunctionName){if(!u.test(a.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");r+=" var "+a.outputFunctionName+" = __append;\n"}if(a.localsName&&!u.test(a.localsName))throw new Error("localsName is not a valid JS identifier.");if(a.destructuredLocals&&a.destructuredLocals.length){for(var d=" var __locals = ("+a.localsName+" || {}),\n",h=0;h0&&(d+=",\n "),d+=m+" = __locals."+m}r+=d+";\n"}!1!==a._with&&(r+=" with ("+a.localsName+" || {}) {\n",c+=" }\n"),c+=" return __output;\n",this.source=r+this.source+c}e=a.compileDebug?"var __line = 1\n , __lines = "+JSON.stringify(this.templateText)+"\n , __filename = "+l+";\ntry {\n"+this.source+"} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n":this.source,a.client&&(e="escapeFn = escapeFn || "+o.toString()+";\n"+e,a.compileDebug&&(e="rethrow = rethrow || "+b.toString()+";\n"+e)),a.strict&&(e='"use strict";\n'+e),a.debug&&console.log(e),a.compileDebug&&a.filename&&(e=e+"\n//# sourceURL="+l+"\n");try{if(a.async)try{n=new Function("return (async function(){}).constructor;")()}catch(e){throw e instanceof SyntaxError?new Error("This environment does not support async/await"):e}else n=Function;t=new n(a.localsName+", escapeFn, include, rethrow",e)}catch(e){throw e instanceof SyntaxError&&(a.filename&&(e.message+=" in "+a.filename),e.message+=" while compiling ejs\n\n",e.message+="If the above error is not helpful, you may want to try EJS-Lint:\n",e.message+="https://github.com/RyanZim/EJS-Lint",a.async||(e.message+="\n",e.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),e}var p=a.client?t:function(e){return t.apply(a.context,[e||i.createNullProtoObjWherePossible(),o,function(t,n){var s=i.shallowCopy(i.createNullProtoObjWherePossible(),e);return n&&(s=i.shallowCopy(s,n)),v(t,a)(s)},b])};if(a.filename&&"function"==typeof Object.defineProperty){var f=a.filename,g=s.basename(f,s.extname(f));try{Object.defineProperty(p,"name",{value:g,writable:!1,enumerable:!1,configurable:!0})}catch(e){}}return p},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,t=this.parseTemplateText(),n=this.opts.delimiter,a=this.opts.openDelimiter,s=this.opts.closeDelimiter;t&&t.length&&t.forEach(function(i,r){var c;if(0===i.indexOf(a+n)&&0!==i.indexOf(a+n+n)&&(c=t[r+2])!=n+s&&c!="-"+n+s&&c!="_"+n+s)throw new Error('Could not find matching close tag for "'+i+'".');e.scanLine(i)})},parseTemplateText:function(){for(var e,t=this.templateText,n=this.regex,a=n.exec(t),s=[];a;)0!==(e=a.index)&&(s.push(t.substring(0,e)),t=t.slice(e)),s.push(a[0]),t=t.slice(a[0].length),a=n.exec(t);return t&&s.push(t),s},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/"/g,'\\"'),this.source+=' ; __append("'+e+'")\n'},scanLine:function(e){var t,n=this.opts.delimiter,a=this.opts.openDelimiter,s=this.opts.closeDelimiter;switch(t=e.split("\n").length-1,e){case a+n:case a+n+"_":this.mode=x.modes.EVAL;break;case a+n+"=":this.mode=x.modes.ESCAPED;break;case a+n+"-":this.mode=x.modes.RAW;break;case a+n+"#":this.mode=x.modes.COMMENT;break;case a+n+n:this.mode=x.modes.LITERAL,this.source+=' ; __append("'+e.replace(a+n+n,a+n)+'")\n';break;case n+n+s:this.mode=x.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+s,n+s)+'")\n';break;case n+s:case"-"+n+s:case"_"+n+s:this.mode==x.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=0===e.indexOf("-")||0===e.indexOf("_");break;default:if(this.mode){switch(this.mode){case x.modes.EVAL:case x.modes.ESCAPED:case x.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf("\n")&&(e+="\n")}switch(this.mode){case x.modes.EVAL:this.source+=" ; "+e+"\n";break;case x.modes.ESCAPED:this.source+=" ; __append(escapeFn("+g(e)+"))\n";break;case x.modes.RAW:this.source+=" ; __append("+g(e)+")\n";break;case x.modes.COMMENT:break;case x.modes.LITERAL:this._addOutput(e)}}else this._addOutput(e)}this.opts.compileDebug&&t&&(this.currentLine+=t,this.source+=" ; __line = "+this.currentLine+"\n")}},n.escapeXML=i.escapeXML,n.__express=n.renderFile,n.VERSION=c,n.name="ejs","undefined"!=typeof window&&(window.ejs=n)},{"../package.json":6,"./utils":2,fs:3,path:4}],2:[function(e,t,n){var a=/[|\\{}()[\]^$+*?.]/g,s=Object.prototype.hasOwnProperty,i=function(e,t){return s.apply(e,[t])};n.escapeRegExpChars=function(e){return e?String(e).replace(a,"\\$&"):""};var r={"&":"&","<":"<",">":">",'"':""","'":"'"},c=/[&<>'"]/g;function o(e){return r[e]||e}function l(){return Function.prototype.toString.call(this)+';\nvar _ENCODE_HTML_RULES = {\n "&": "&"\n , "<": "<"\n , ">": ">"\n , \'"\': """\n , "\'": "'"\n }\n , _MATCH_HTML = /[&<>\'"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n'}n.escapeXML=function(e){return null==e?"":String(e).replace(c,o)};try{"function"==typeof Object.defineProperty?Object.defineProperty(n.escapeXML,"toString",{value:l}):n.escapeXML.toString=l}catch(e){console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}n.shallowCopy=function(e,t){if(t=t||{},null!=e)for(var n in t)i(t,n)&&"__proto__"!==n&&"constructor"!==n&&(e[n]=t[n]);return e},n.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},null!=e)for(var a=0;a=0;a--){var s=e[a];"."===s?e.splice(a,1):".."===s?(e.splice(a,1),n++):n&&(e.splice(a,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function a(e,t){if(e.filter)return e.filter(t);for(var n=[],a=0;a=-1&&!s;i--){var r=i>=0?arguments[i]:e.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(n=r+"/"+n,s="/"===r.charAt(0))}return(s?"/":"")+(n=t(a(n.split("/"),function(e){return!!e}),!s).join("/"))||"."},n.normalize=function(e){var i=n.isAbsolute(e),r="/"===s(e,-1);return(e=t(a(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&r&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function a(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var s=a(e.split("/")),i=a(t.split("/")),r=Math.min(s.length,i.length),c=r,o=0;o=1;--i)if(47===(t=e.charCodeAt(i))){if(!s){a=i;break}}else s=!1;return-1===a?n?"/":".":n&&1===a?"/":e.slice(0,a)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,a=-1,s=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!s){n=t+1;break}}else-1===a&&(s=!1,a=t+1);return-1===a?"":e.slice(n,a)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,a=-1,s=!0,i=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47!==c)-1===a&&(s=!1,a=r+1),46===c?-1===t?t=r:1!==i&&(i=1):-1!==t&&(i=-1);else if(!s){n=r+1;break}}return-1===t||-1===a||0===i||1===i&&t===a-1&&t===n+1?"":e.slice(t,a)};var s=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:5}],5:[function(e,t,n){var a,s,i=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function o(e){if(a===setTimeout)return setTimeout(e,0);if((a===r||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:r}catch(e){a=r}try{s="function"==typeof clearTimeout?clearTimeout:c}catch(e){s=c}}();var l,d=[],h=!1,u=-1;function m(){h&&l&&(h=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!h){var e=o(m);h=!0;for(var t=d.length;t;){for(l=d,d=[];++u1)for(var n=1;n (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}},{}]},{},[1])(1)}},t={};function n(a){var s=t[a];if(void 0!==s)return s.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a=n(557);const s="3.0.3";function i(e,t={}){t.title=t.title||`Test Report: ${(new Date).toISOString().slice(0,16).replace("T"," ")}`,t.debug=t.debug||!1,t.theme=t.theme||"default";let n='\n\n \n \n \n \n \n \n \n \n\n \n <%= title %>\n \n