(function(){"use strict";function z(){["close","fetch","XMLHttpRequest","importScripts"].forEach(v=>{self[v]&&Object.defineProperty(self,v,{value:()=>{throw new Error("Security Error: worker api is disabled.")},configurable:!1,writable:!1})})}function P(v){return Object.assign(Object.create(null),v)}const U=["self","globalThis","Worker","SharedWorker","postMessage","onmessage","indexedDB","location","navigator","origin","console","setTimeout","setInterval"];(function(v){if(typeof exports=="object"&&typeof module!="undefined")module.exports=v();else if(typeof define=="function"&&define.amd)define([],v);else{var w;typeof window!="undefined"?w=window:typeof global!="undefined"?w=global:typeof self!="undefined"?w=self:w=this,w.ejs=v()}})(function(){return(function(){function v(w,i,p){function d(g,o){if(!i[g]){if(!w[g]){var c=typeof require=="function"&&require;if(!o&&c)return c(g,!0);if(f)return f(g,!0);var s=new Error("Cannot find module '"+g+"'");throw s.code="MODULE_NOT_FOUND",s}var n=i[g]={exports:{}};w[g][0].call(n.exports,function(a){var h=w[g][1][a];return d(h||a)},n,n.exports,v,w,i,p)}return i[g].exports}for(var f=typeof require=="function"&&require,x=0;x<p.length;x++)d(p[x]);return d}return v})()({1:[function(v,w,i){var p=v("fs"),d=v("path"),f=v("./utils"),x=!1,g=v("../package.json").version,o="<",c=">",s="%",n="locals",a="ejs",h="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",_=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],b=_.concat("cache"),S=/^\uFEFF/,j=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;i.cache=f.cache,i.fileLoader=p.readFileSync,i.localsName=n,i.promiseImpl=new Function("return this;")().Promise,i.resolveInclude=function(t,l,e){var r=d.dirname,u=d.extname,y=d.resolve,O=y(e?l:r(l),t),k=u(t);return k||(O+=".ejs"),O};function m(t,l){var e;if(l.some(function(r){return e=i.resolveInclude(t,r,!0),p.existsSync(e)}))return e}function L(t,l){var e,r,u=l.views,y=/^[A-Za-z]+:\\|^\//.exec(t);if(y&&y.length)t=t.replace(/^\/*/,""),Array.isArray(l.root)?e=m(t,l.root):e=i.resolveInclude(t,l.root||"/",!0);else if(l.filename&&(r=i.resolveInclude(t,l.filename),p.existsSync(r)&&(e=r)),!e&&Array.isArray(u)&&(e=m(t,u)),!e&&typeof l.includer!="function")throw new Error('Could not find the include file "'+l.escapeFunction(t)+'"');return e}function A(t,l){var e,r=t.filename,u=arguments.length>1;if(t.cache){if(!r)throw new Error("cache option requires a filename");if(e=i.cache.get(r),e)return e;u||(l=R(r).toString().replace(S,""))}else if(!u){if(!r)throw new Error("Internal EJS error: no file name or template provided");l=R(r).toString().replace(S,"")}return e=i.compile(l,t),t.cache&&i.cache.set(r,e),e}function H(t,l,e){var r;if(e){try{r=A(t)(l)}catch(u){return e(u)}e(null,r)}else{if(typeof i.promiseImpl=="function")return new i.promiseImpl(function(u,y){try{r=A(t)(l),u(r)}catch(O){y(O)}});throw new Error("Please provide a callback function")}}function R(t){return i.fileLoader(t)}function V(t,l){var e=f.shallowCopy(f.createNullProtoObjWherePossible(),l);if(e.filename=L(t,e),typeof l.includer=="function"){var r=l.includer(t,e.filename);if(r&&(r.filename&&(e.filename=r.filename),r.template))return A(e,r.template)}return A(e)}function $(t,l,e,r,u){var y=l.split(`
`),O=Math.max(r-3,0),k=Math.min(y.length,r+3),N=u(e),C=y.slice(O,k).map(function(F,M){var D=M+O+1;return(D==r?" >> ":"    ")+D+"| "+F}).join(`
`);throw t.path=N,t.message=(N||"ejs")+":"+r+`
`+C+`

`+t.message,t}function q(t){return t.replace(/;(\s*$)/,"$1")}i.compile=function(t,l){var e;return l&&l.scope&&(x||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),x=!0),l.context||(l.context=l.scope),delete l.scope),e=new E(t,l),e.compile()},i.render=function(t,l,e){var r=l||f.createNullProtoObjWherePossible(),u=e||f.createNullProtoObjWherePossible();return arguments.length==2&&f.shallowCopyFromList(u,r,_),A(u,t)(r)},i.renderFile=function(){var t=Array.prototype.slice.call(arguments),l=t.shift(),e,r={filename:l},u,y;return typeof arguments[arguments.length-1]=="function"&&(e=t.pop()),t.length?(u=t.shift(),t.length?f.shallowCopy(r,t.pop()):(u.settings&&(u.settings.views&&(r.views=u.settings.views),u.settings["view cache"]&&(r.cache=!0),y=u.settings["view options"],y&&f.shallowCopy(r,y)),f.shallowCopyFromList(r,u,b)),r.filename=l):u=f.createNullProtoObjWherePossible(),H(r,u,e)},i.Template=E,i.clearCache=function(){i.cache.reset()};function E(t,l){var e=f.hasOwnOnlyObject(l),r=f.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",r.client=e.client||!1,r.escapeFunction=e.escape||e.escapeFunction||f.escapeXML,r.compileDebug=e.compileDebug!==!1,r.debug=!!e.debug,r.filename=e.filename,r.openDelimiter=e.openDelimiter||i.openDelimiter||o,r.closeDelimiter=e.closeDelimiter||i.closeDelimiter||c,r.delimiter=e.delimiter||i.delimiter||s,r.strict=e.strict||!1,r.context=e.context,r.cache=e.cache||!1,r.rmWhitespace=e.rmWhitespace,r.root=e.root,r.includer=e.includer,r.outputFunctionName=e.outputFunctionName,r.localsName=e.localsName||i.localsName||n,r.views=e.views,r.async=e.async,r.destructuredLocals=e.destructuredLocals,r.legacyInclude=typeof e.legacyInclude!="undefined"?!!e.legacyInclude:!0,r.strict?r._with=!1:r._with=typeof e._with!="undefined"?e._with:!0,this.opts=r,this.regex=this.createRegex()}E.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},E.prototype={createRegex:function(){var t=h,l=f.escapeRegExpChars(this.opts.delimiter),e=f.escapeRegExpChars(this.opts.openDelimiter),r=f.escapeRegExpChars(this.opts.closeDelimiter);return t=t.replace(/%/g,l).replace(/</g,e).replace(/>/g,r),new RegExp(t)},compile:function(){var t,l,e=this.opts,r="",u="",y=e.escapeFunction,O,k=e.filename?JSON.stringify(e.filename):"undefined";if(!this.source){if(this.generateSource(),r+=`  var __output = "";
  function __append(s) { if (s !== undefined && s !== null) __output += s }
`,e.outputFunctionName){if(!j.test(e.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");r+="  var "+e.outputFunctionName+` = __append;
`}if(e.localsName&&!j.test(e.localsName))throw new Error("localsName is not a valid JS identifier.");if(e.destructuredLocals&&e.destructuredLocals.length){for(var N="  var __locals = ("+e.localsName+` || {}),
`,C=0;C<e.destructuredLocals.length;C++){var F=e.destructuredLocals[C];if(!j.test(F))throw new Error("destructuredLocals["+C+"] is not a valid JS identifier.");C>0&&(N+=`,
  `),N+=F+" = __locals."+F}r+=N+`;
`}e._with!==!1&&(r+="  with ("+e.localsName+` || {}) {
`,u+=`  }
`),u+=`  return __output;
`,this.source=r+this.source+u}e.compileDebug?t=`var __line = 1
  , __lines = `+JSON.stringify(this.templateText)+`
  , __filename = `+k+`;
try {
`+this.source+`} catch (e) {
  rethrow(e, __lines, __filename, __line, escapeFn);
}
`:t=this.source,e.client&&(t="escapeFn = escapeFn || "+y.toString()+`;
`+t,e.compileDebug&&(t="rethrow = rethrow || "+$.toString()+`;
`+t)),e.strict&&(t=`"use strict";
`+t),e.debug&&console.log(t),e.compileDebug&&e.filename&&(t=t+`
//# sourceURL=`+k+`
`);try{if(e.async)try{O=new Function("return (async function(){}).constructor;")()}catch(T){throw T instanceof SyntaxError?new Error("This environment does not support async/await"):T}else O=Function;l=new O(e.localsName+", escapeFn, include, rethrow",t)}catch(T){throw T instanceof SyntaxError&&(e.filename&&(T.message+=" in "+e.filename),T.message+=` while compiling ejs

`,T.message+=`If the above error is not helpful, you may want to try EJS-Lint:
`,T.message+="https://github.com/RyanZim/EJS-Lint",e.async||(T.message+=`
`,T.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),T}var M=e.client?l:function(T){var B=function(G,J){var W=f.shallowCopy(f.createNullProtoObjWherePossible(),T);return J&&(W=f.shallowCopy(W,J)),V(G,e)(W)};return l.apply(e.context,[T||f.createNullProtoObjWherePossible(),y,B,$])};if(e.filename&&typeof Object.defineProperty=="function"){var D=e.filename,Z=d.basename(D,d.extname(D));try{Object.defineProperty(M,"name",{value:Z,writable:!1,enumerable:!1,configurable:!0})}catch(T){}}return M},generateSource:function(){var t=this.opts;t.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var l=this,e=this.parseTemplateText(),r=this.opts.delimiter,u=this.opts.openDelimiter,y=this.opts.closeDelimiter;e&&e.length&&e.forEach(function(O,k){var N;if(O.indexOf(u+r)===0&&O.indexOf(u+r+r)!==0&&(N=e[k+2],!(N==r+y||N=="-"+r+y||N=="_"+r+y)))throw new Error('Could not find matching close tag for "'+O+'".');l.scanLine(O)})},parseTemplateText:function(){for(var t=this.templateText,l=this.regex,e=l.exec(t),r=[],u;e;)u=e.index,u!==0&&(r.push(t.substring(0,u)),t=t.slice(u)),r.push(e[0]),t=t.slice(e[0].length),e=l.exec(t);return t&&r.push(t),r},_addOutput:function(t){if(this.truncate&&(t=t.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!t)return t;t=t.replace(/\\/g,"\\\\"),t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace(/"/g,'\\"'),this.source+='    ; __append("'+t+`")
`},scanLine:function(t){var l=this,e=this.opts.delimiter,r=this.opts.openDelimiter,u=this.opts.closeDelimiter,y=0;switch(y=t.split(`
`).length-1,t){case r+e:case r+e+"_":this.mode=E.modes.EVAL;break;case r+e+"=":this.mode=E.modes.ESCAPED;break;case r+e+"-":this.mode=E.modes.RAW;break;case r+e+"#":this.mode=E.modes.COMMENT;break;case r+e+e:this.mode=E.modes.LITERAL,this.source+='    ; __append("'+t.replace(r+e+e,r+e)+`")
`;break;case e+e+u:this.mode=E.modes.LITERAL,this.source+='    ; __append("'+t.replace(e+e+u,e+u)+`")
`;break;case e+u:case"-"+e+u:case"_"+e+u:this.mode==E.modes.LITERAL&&this._addOutput(t),this.mode=null,this.truncate=t.indexOf("-")===0||t.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case E.modes.EVAL:case E.modes.ESCAPED:case E.modes.RAW:t.lastIndexOf("//")>t.lastIndexOf(`
`)&&(t+=`
`)}switch(this.mode){case E.modes.EVAL:this.source+="    ; "+t+`
`;break;case E.modes.ESCAPED:this.source+="    ; __append(escapeFn("+q(t)+`))
`;break;case E.modes.RAW:this.source+="    ; __append("+q(t)+`)
`;break;case E.modes.COMMENT:break;case E.modes.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}l.opts.compileDebug&&y&&(this.currentLine+=y,this.source+="    ; __line = "+this.currentLine+`
`)}},i.escapeXML=f.escapeXML,i.__express=i.renderFile,i.VERSION=g,i.name=a,typeof window!="undefined"&&(window.ejs=i)},{"../package.json":6,"./utils":2,fs:3,path:4}],2:[function(v,w,i){var p=/[|\\{}()[\]^$+*?.]/g,d=Object.prototype.hasOwnProperty,f=function(n,a){return d.apply(n,[a])};i.escapeRegExpChars=function(n){return n?String(n).replace(p,"\\$&"):""};var x={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},g=/[&<>'"]/g;function o(n){return x[n]||n}var c=`var _ENCODE_HTML_RULES = {
      "&": "&amp;"
    , "<": "&lt;"
    , ">": "&gt;"
    , '"': "&#34;"
    , "'": "&#39;"
    }
  , _MATCH_HTML = /[&<>'"]/g;
function encode_char(c) {
  return _ENCODE_HTML_RULES[c] || c;
};
`;i.escapeXML=function(n){return n==null?"":String(n).replace(g,o)};function s(){return Function.prototype.toString.call(this)+`;
`+c}try{typeof Object.defineProperty=="function"?Object.defineProperty(i.escapeXML,"toString",{value:s}):i.escapeXML.toString=s}catch(n){console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}i.shallowCopy=function(n,a){if(a=a||{},n!=null)for(var h in a)f(a,h)&&(h==="__proto__"||h==="constructor"||(n[h]=a[h]));return n},i.shallowCopyFromList=function(n,a,h){if(h=h||[],a=a||{},n!=null)for(var _=0;_<h.length;_++){var b=h[_];if(typeof a[b]!="undefined"){if(!f(a,b)||b==="__proto__"||b==="constructor")continue;n[b]=a[b]}}return n},i.cache={_data:{},set:function(n,a){this._data[n]=a},get:function(n){return this._data[n]},remove:function(n){delete this._data[n]},reset:function(){this._data={}}},i.hyphenToCamel=function(n){return n.replace(/-[a-z]/g,function(a){return a[1].toUpperCase()})},i.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})(),i.hasOwnOnlyObject=function(n){var a=i.createNullProtoObjWherePossible();for(var h in n)f(n,h)&&(a[h]=n[h]);return a}},{}],3:[function(v,w,i){},{}],4:[function(v,w,i){(function(p){function d(o,c){for(var s=0,n=o.length-1;n>=0;n--){var a=o[n];a==="."?o.splice(n,1):a===".."?(o.splice(n,1),s++):s&&(o.splice(n,1),s--)}if(c)for(;s--;s)o.unshift("..");return o}i.resolve=function(){for(var o="",c=!1,s=arguments.length-1;s>=-1&&!c;s--){var n=s>=0?arguments[s]:p.cwd();if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");n&&(o=n+"/"+o,c=n.charAt(0)==="/")}return o=d(x(o.split("/"),function(a){return!!a}),!c).join("/"),(c?"/":"")+o||"."},i.normalize=function(o){var c=i.isAbsolute(o),s=g(o,-1)==="/";return o=d(x(o.split("/"),function(n){return!!n}),!c).join("/"),!o&&!c&&(o="."),o&&s&&(o+="/"),(c?"/":"")+o},i.isAbsolute=function(o){return o.charAt(0)==="/"},i.join=function(){var o=Array.prototype.slice.call(arguments,0);return i.normalize(x(o,function(c,s){if(typeof c!="string")throw new TypeError("Arguments to path.join must be strings");return c}).join("/"))},i.relative=function(o,c){o=i.resolve(o).substr(1),c=i.resolve(c).substr(1);function s(j){for(var m=0;m<j.length&&j[m]==="";m++);for(var L=j.length-1;L>=0&&j[L]==="";L--);return m>L?[]:j.slice(m,L-m+1)}for(var n=s(o.split("/")),a=s(c.split("/")),h=Math.min(n.length,a.length),_=h,b=0;b<h;b++)if(n[b]!==a[b]){_=b;break}for(var S=[],b=_;b<n.length;b++)S.push("..");return S=S.concat(a.slice(_)),S.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(o){if(typeof o!="string"&&(o=o+""),o.length===0)return".";for(var c=o.charCodeAt(0),s=c===47,n=-1,a=!0,h=o.length-1;h>=1;--h)if(c=o.charCodeAt(h),c===47){if(!a){n=h;break}}else a=!1;return n===-1?s?"/":".":s&&n===1?"/":o.slice(0,n)};function f(o){typeof o!="string"&&(o=o+"");var c=0,s=-1,n=!0,a;for(a=o.length-1;a>=0;--a)if(o.charCodeAt(a)===47){if(!n){c=a+1;break}}else s===-1&&(n=!1,s=a+1);return s===-1?"":o.slice(c,s)}i.basename=function(o,c){var s=f(o);return c&&s.substr(-1*c.length)===c&&(s=s.substr(0,s.length-c.length)),s},i.extname=function(o){typeof o!="string"&&(o=o+"");for(var c=-1,s=0,n=-1,a=!0,h=0,_=o.length-1;_>=0;--_){var b=o.charCodeAt(_);if(b===47){if(!a){s=_+1;break}continue}n===-1&&(a=!1,n=_+1),b===46?c===-1?c=_:h!==1&&(h=1):c!==-1&&(h=-1)}return c===-1||n===-1||h===0||h===1&&c===n-1&&c===s+1?"":o.slice(c,n)};function x(o,c){if(o.filter)return o.filter(c);for(var s=[],n=0;n<o.length;n++)c(o[n],n,o)&&s.push(o[n]);return s}var g="ab".substr(-1)==="b"?function(o,c,s){return o.substr(c,s)}:function(o,c,s){return c<0&&(c=o.length+c),o.substr(c,s)}}).call(this,v("_process"))},{_process:5}],5:[function(v,w,i){var p=w.exports={},d,f;function x(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=x}catch(m){d=x}try{typeof clearTimeout=="function"?f=clearTimeout:f=g}catch(m){f=g}})();function o(m){if(d===setTimeout)return setTimeout(m,0);if((d===x||!d)&&setTimeout)return d=setTimeout,setTimeout(m,0);try{return d(m,0)}catch(L){try{return d.call(null,m,0)}catch(A){return d.call(this,m,0)}}}function c(m){if(f===clearTimeout)return clearTimeout(m);if((f===g||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(m);try{return f(m)}catch(L){try{return f.call(null,m)}catch(A){return f.call(this,m)}}}var s=[],n=!1,a,h=-1;function _(){!n||!a||(n=!1,a.length?s=a.concat(s):h=-1,s.length&&b())}function b(){if(!n){var m=o(_);n=!0;for(var L=s.length;L;){for(a=s,s=[];++h<L;)a&&a[h].run();h=-1,L=s.length}a=null,n=!1,c(m)}}p.nextTick=function(m){var L=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)L[A-1]=arguments[A];s.push(new S(m,L)),s.length===1&&!n&&o(b)};function S(m,L){this.fun=m,this.array=L}S.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={};function j(){}p.on=j,p.addListener=j,p.once=j,p.off=j,p.removeListener=j,p.removeAllListeners=j,p.emit=j,p.prependListener=j,p.prependOnceListener=j,p.listeners=function(m){return[]},p.binding=function(m){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(m){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],6:[function(v,w,i){w.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.9",author:"Matthew Eernisse <mde@fleegix.org> (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)});const I=self.postMessage;z();const X=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;self.onmessage=function(v){const w=v.data,i=w.payload||P({});try{const p=i.ctx||P({}),d=Object.keys(p).filter(g=>X.test(g)),f="<% "+U.map(g=>"var "+g+" = null;").join(`
`)+d.map(g=>"var "+g+' = locals["'+g+'"];').join(`
`)+"%>"+i.template,x=ejs.render(f,p,{strict:!0,_with:!1,context:null});I(P({requestId:w.requestId,result:x}))}catch(p){console.error("Failed to render template: "+p),I(P({requestId:w.requestId,error:"Failed to render template: "+p}))}},I(P({type:"worker_ready"}))})();
