| 1 | /*! For license information please see main.js.LICENSE.txt */ |
| 2 | (()=>{var e={4070:(e,t,i)=>{"use strict";var n=i(7311),a=i(382);function o(e){if(!(this instanceof o))return new o(e);this.headers=e.headers,this.negotiator=new n(e)}function r(e){return-1===e.indexOf("/")?a.lookup(e):e}function s(e){return"string"==typeof e}e.exports=o,o.prototype.type=o.prototype.types=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var i=0;i<t.length;i++)t[i]=arguments[i]}if(!t||0===t.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var n=t.map(r),a=this.negotiator.mediaTypes(n.filter(s)),o=a[0];return!!o&&t[n.indexOf(o)]},o.prototype.encoding=o.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var i=0;i<t.length;i++)t[i]=arguments[i]}return t&&0!==t.length?this.negotiator.encodings(t)[0]||!1:this.negotiator.encodings()},o.prototype.charset=o.prototype.charsets=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var i=0;i<t.length;i++)t[i]=arguments[i]}return t&&0!==t.length?this.negotiator.charsets(t)[0]||!1:this.negotiator.charsets()},o.prototype.lang=o.prototype.langs=o.prototype.language=o.prototype.languages=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var i=0;i<t.length;i++)t[i]=arguments[i]}return t&&0!==t.length?this.negotiator.languages(t)[0]||!1:this.negotiator.languages()}},7040:e=>{"use strict";function t(e,i,n){for(var a=0;a<e.length;a++){var o=e[a];n>0&&Array.isArray(o)?t(o,i,n-1):i.push(o)}return i}function i(e,t){for(var n=0;n<e.length;n++){var a=e[n];Array.isArray(a)?i(a,t):t.push(a)}return t}e.exports=function(e,n){return null==n?i(e,[]):t(e,[],n)}},2973:(e,t,i)=>{"use strict";var n=i(6282)("body-parser"),a=Object.create(null);function o(e){return function(){return function(e){var t=a[e];if(void 0!==t)return t;switch(e){case"json":t=i(9861);break;case"raw":t=i(453);break;case"text":t=i(9463);break;case"urlencoded":t=i(8768)}return a[e]=t}(e)}}t=e.exports=n.function((function(e){var i={};if(e)for(var n in e)"type"!==n&&(i[n]=e[n]);var a=t.urlencoded(i),o=t.json(i);return function(e,t,i){o(e,t,(function(n){if(n)return i(n);a(e,t,i)}))}}),"bodyParser: use individual json/urlencoded middlewares"),Object.defineProperty(t,"json",{configurable:!0,enumerable:!0,get:o("json")}),Object.defineProperty(t,"raw",{configurable:!0,enumerable:!0,get:o("raw")}),Object.defineProperty(t,"text",{configurable:!0,enumerable:!0,get:o("text")}),Object.defineProperty(t,"urlencoded",{configurable:!0,enumerable:!0,get:o("urlencoded")})},8394:(e,t,i)=>{"use strict";var n=i(3254),a=i(8906),o=i(8591),r=i(5694),s=i(5430),c=i(8123),p=i(9796);e.exports=function(e,t,i,l,u,d){var f,m,h=d;e._body=!0;var v=null!==h.encoding?h.encoding:null,x=h.verify;try{m=function(e,t,i){var a,o=(e.headers["content-encoding"]||"identity").toLowerCase(),r=e.headers["content-length"];if(t('content-encoding "%s"',o),!1===i&&"identity"!==o)throw n(415,"content encoding unsupported",{encoding:o,type:"encoding.unsupported"});switch(o){case"deflate":a=p.createInflate(),t("inflate body"),e.pipe(a);break;case"gzip":a=p.createGunzip(),t("gunzip body"),e.pipe(a);break;case"identity":(a=e).length=r;break;default:throw n(415,'unsupported content encoding "'+o+'"',{encoding:o,type:"encoding.unsupported"})}return a}(e,u,h.inflate),f=m.length,m.length=void 0}catch(e){return i(e)}if(h.length=f,h.encoding=x?null:v,null===h.encoding&&null!==v&&!r.encodingExists(v))return i(n(415,'unsupported charset "'+v.toUpperCase()+'"',{charset:v.toLowerCase(),type:"charset.unsupported"}));u("read body"),o(m,h,(function(o,p){var d;if(o)return d="encoding.unsupported"===o.type?n(415,'unsupported charset "'+v.toUpperCase()+'"',{charset:v.toLowerCase(),type:"charset.unsupported"}):n(400,o),m!==e&&(c(e),a(m,!0)),void function(e,t){s.isFinished(e)?t():(s(e,t),e.resume())}(e,(function(){i(n(400,d))}));if(x)try{u("verify body"),x(e,t,p,v)}catch(e){return void i(n(403,e,{body:p,type:e.type||"entity.verify.failed"}))}var f=p;try{u("parse body"),f="string"!=typeof p&&null!==v?r.decode(p,v):p,e.body=l(f)}catch(e){return void i(n(400,e,{body:f,type:e.type||"entity.parse.failed"}))}i()}))}},9861:(e,t,i)=>{"use strict";var n=i(6334),a=i(363),o=i(3254),r=i(6352)("body-parser:json"),s=i(8394),c=i(4654);e.exports=function(e){var t=e||{},i="number"!=typeof t.limit?n.parse(t.limit||"100kb"):t.limit,u=!1!==t.inflate,d=t.reviver,f=!1!==t.strict,m=t.type||"application/json",h=t.verify||!1;if(!1!==h&&"function"!=typeof h)throw new TypeError("option verify must be function");var v="function"!=typeof m?function(e){return function(t){return Boolean(c(t,e))}}(m):m;function x(e){if(0===e.length)return{};if(f){var t=(i=e,(n=p.exec(i))?n[1]:void 0);if("{"!==t&&"["!==t)throw r("strict violation"),function(e,t){var i=e.indexOf(t),n=-1!==i?e.substring(0,i)+"#":"";try{throw JSON.parse(n),new SyntaxError("strict violation")}catch(e){return l(e,{message:e.message.replace("#",t),stack:e.stack})}}(e,t)}var i,n;try{return r("parse json"),JSON.parse(e,d)}catch(e){throw l(e,{message:e.message,stack:e.stack})}}return function(e,t,n){if(e._body)return r("body already parsed"),void n();if(e.body=e.body||{},!c.hasBody(e))return r("skip empty body"),void n();if(r("content-type %j",e.headers["content-type"]),!v(e))return r("skip parsing"),void n();var p=function(e){try{return(a.parse(e).parameters.charset||"").toLowerCase()}catch(e){return}}(e)||"utf-8";if("utf-"!==p.slice(0,4))return r("invalid charset"),void n(o(415,'unsupported charset "'+p.toUpperCase()+'"',{charset:p,type:"charset.unsupported"}));s(e,t,n,x,r,{encoding:p,inflate:u,limit:i,verify:h})}};var p=/^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/;function l(e,t){for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];"stack"!==a&&"message"!==a&&delete e[a]}return e.stack=t.stack.replace(e.message,t.message),e.message=t.message,e}},453:(e,t,i)=>{"use strict";var n=i(6334),a=i(6352)("body-parser:raw"),o=i(8394),r=i(4654);e.exports=function(e){var t=e||{},i=!1!==t.inflate,s="number"!=typeof t.limit?n.parse(t.limit||"100kb"):t.limit,c=t.type||"application/octet-stream",p=t.verify||!1;if(!1!==p&&"function"!=typeof p)throw new TypeError("option verify must be function");var l="function"!=typeof c?function(e){return function(t){return Boolean(r(t,e))}}(c):c;function u(e){return e}return function(e,t,n){return e._body?(a("body already parsed"),void n()):(e.body=e.body||{},r.hasBody(e)?(a("content-type %j",e.headers["content-type"]),l(e)?void o(e,t,n,u,a,{encoding:null,inflate:i,limit:s,verify:p}):(a("skip parsing"),void n())):(a("skip empty body"),void n()))}}},9463:(e,t,i)=>{"use strict";var n=i(6334),a=i(363),o=i(6352)("body-parser:text"),r=i(8394),s=i(4654);e.exports=function(e){var t=e||{},i=t.defaultCharset||"utf-8",c=!1!==t.inflate,p="number"!=typeof t.limit?n.parse(t.limit||"100kb"):t.limit,l=t.type||"text/plain",u=t.verify||!1;if(!1!==u&&"function"!=typeof u)throw new TypeError("option verify must be function");var d="function"!=typeof l?function(e){return function(t){return Boolean(s(t,e))}}(l):l;function f(e){return e}return function(e,t,n){if(e._body)return o("body already parsed"),void n();if(e.body=e.body||{},!s.hasBody(e))return o("skip empty body"),void n();if(o("content-type %j",e.headers["content-type"]),!d(e))return o("skip parsing"),void n();var l=function(e){try{return(a.parse(e).parameters.charset||"").toLowerCase()}catch(e){return}}(e)||i;r(e,t,n,f,o,{encoding:l,inflate:c,limit:p,verify:u})}}},8768:(e,t,i)=>{"use strict";var n=i(6334),a=i(363),o=i(3254),r=i(6352)("body-parser:urlencoded"),s=i(6282)("body-parser"),c=i(8394),p=i(4654);e.exports=function(e){var t=e||{};void 0===t.extended&&s("undefined extended: provide extended option");var i=!1!==t.extended,l=!1!==t.inflate,f="number"!=typeof t.limit?n.parse(t.limit||"100kb"):t.limit,m=t.type||"application/x-www-form-urlencoded",h=t.verify||!1;if(!1!==h&&"function"!=typeof h)throw new TypeError("option verify must be function");var v=i?function(e){var t=void 0!==e.parameterLimit?e.parameterLimit:1e3,i=d("qs");if(isNaN(t)||t<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(t)&&(t|=0),function(e){var n=u(e,t);if(void 0===n)throw r("too many parameters"),o(413,"too many parameters",{type:"parameters.too.many"});var a=Math.max(100,n);return r("parse extended urlencoding"),i(e,{allowPrototypes:!0,arrayLimit:a,depth:1/0,parameterLimit:t})}}(t):function(e){var t=void 0!==e.parameterLimit?e.parameterLimit:1e3,i=d("querystring");if(isNaN(t)||t<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(t)&&(t|=0),function(e){if(void 0===u(e,t))throw r("too many parameters"),o(413,"too many parameters",{type:"parameters.too.many"});return r("parse urlencoding"),i(e,void 0,void 0,{maxKeys:t})}}(t),x="function"!=typeof m?function(e){return function(t){return Boolean(p(t,e))}}(m):m;function g(e){return e.length?v(e):{}}return function(e,t,i){if(e._body)return r("body already parsed"),void i();if(e.body=e.body||{},!p.hasBody(e))return r("skip empty body"),void i();if(r("content-type %j",e.headers["content-type"]),!x(e))return r("skip parsing"),void i();var n=function(e){try{return(a.parse(e).parameters.charset||"").toLowerCase()}catch(e){return}}(e)||"utf-8";if("utf-8"!==n)return r("invalid charset"),void i(o(415,'unsupported charset "'+n.toUpperCase()+'"',{charset:n,type:"charset.unsupported"}));c(e,t,i,g,r,{debug:r,encoding:n,inflate:l,limit:f,verify:h})}};var l=Object.create(null);function u(e,t){for(var i=0,n=0;-1!==(n=e.indexOf("&",n));)if(n++,++i===t)return;return i}function d(e){var t=l[e];if(void 0!==t)return t.parse;switch(e){case"qs":t=i(1895);break;case"querystring":t=i(3477)}return l[e]=t,t.parse}},8088:e=>{"use strict";e.exports={mask:(e,t,i,n,a)=>{for(var o=0;o<a;o++)i[n+o]=e[o]^t[3&o]},unmask:(e,t)=>{const i=e.length;for(var n=0;n<i;n++)e[n]^=t[3&n]}}},9717:(e,t,i)=>{"use strict";try{e.exports=i(2287)(__dirname)}catch(t){e.exports=i(8088)}},6334:e=>{"use strict";e.exports=function(e,t){return"string"==typeof e?r(e):"number"==typeof e?o(e,t):null},e.exports.format=o,e.exports.parse=r;var t=/\B(?=(\d{3})+(?!\d))/g,i=/(?:\.0*|(\.[^0]+)0+)$/,n={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},a=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function o(e,a){if(!Number.isFinite(e))return null;var o=Math.abs(e),r=a&&a.thousandsSeparator||"",s=a&&a.unitSeparator||"",c=a&&void 0!==a.decimalPlaces?a.decimalPlaces:2,p=Boolean(a&&a.fixedDecimals),l=a&&a.unit||"";l&&n[l.toLowerCase()]||(l=o>=n.pb?"PB":o>=n.tb?"TB":o>=n.gb?"GB":o>=n.mb?"MB":o>=n.kb?"KB":"B");var u=(e/n[l.toLowerCase()]).toFixed(c);return p||(u=u.replace(i,"$1")),r&&(u=u.split(".").map((function(e,i){return 0===i?e.replace(t,r):e})).join(".")),u+s+l}function r(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var t,i=a.exec(e),o="b";return i?(t=parseFloat(i[1]),o=i[4].toLowerCase()):(t=parseInt(e,10),o="b"),isNaN(t)?null:Math.floor(n[o]*t)}},2625:(e,t,i)=>{"use strict";var n=i(492),a=i(7112),o=a(n("String.prototype.indexOf"));e.exports=function(e,t){var i=n(e,!!t);return"function"==typeof i&&o(e,".prototype.")>-1?a(i):i}},7112:(e,t,i)=>{"use strict";var n=i(3306),a=i(492),o=a("%Function.prototype.apply%"),r=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||n.call(r,o),c=a("%Object.getOwnPropertyDescriptor%",!0),p=a("%Object.defineProperty%",!0),l=a("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){var t=s(n,r,arguments);if(c&&p){var i=c(t,"length");i.configurable&&p(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var u=function(){return s(n,o,arguments)};p?p(e.exports,"apply",{value:u}):e.exports.apply=u},9697:(e,t,i)=>{"use strict";e.exports=function(e,t){var i=t||{},a=i.type||"attachment",o=function(e,t){if(void 0!==e){var i={};if("string"!=typeof e)throw new TypeError("filename must be a string");if(void 0===t&&(t=!0),"string"!=typeof t&&"boolean"!=typeof t)throw new TypeError("fallback must be a string or boolean");if("string"==typeof t&&c.test(t))throw new TypeError("fallback must be ISO-8859-1 string");var a=n(e),o=d.test(a),s="string"!=typeof t?t&&x(a):n(t),p="string"==typeof s&&s!==a;return(p||!o||r.test(a))&&(i["filename*"]=a),(o||p)&&(i.filename=p?s:a),i}}(e,i.fallback);return function(e){var t=e.parameters,i=e.type;if(!i||"string"!=typeof i||!f.test(i))throw new TypeError("invalid type");var n=String(i).toLowerCase();if(t&&"object"==typeof t)for(var a,o=Object.keys(t).sort(),r=0;r<o.length;r++){var s="*"===(a=o[r]).substr(-1)?w(t[a]):y(t[a]);n+="; "+a+"="+s}return n}(new _(a,o))},e.exports.parse=function(e){if(!e||"string"!=typeof e)throw new TypeError("argument string is required");var t=h.exec(e);if(!t)throw new TypeError("invalid type format");var i,n,a=t[0].length,o=t[1].toLowerCase(),r=[],s={};for(a=u.lastIndex=";"===t[0].substr(-1)?a-1:a;t=u.exec(e);){if(t.index!==a)throw new TypeError("invalid parameter format");if(a+=t[0].length,i=t[1].toLowerCase(),n=t[2],-1!==r.indexOf(i))throw new TypeError("invalid duplicate parameter");r.push(i),i.indexOf("*")+1!==i.length?"string"!=typeof s[i]&&('"'===n[0]&&(n=n.substr(1,n.length-2).replace(p,"$1")),s[i]=n):(i=i.slice(0,-1),n=v(n),s[i]=n)}if(-1!==a&&a!==e.length)throw new TypeError("invalid parameter format");return new _(o,s)};var n=i(1017).basename,a=i(8467).Buffer,o=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,r=/%[0-9A-Fa-f]{2}/,s=/%([0-9A-Fa-f]{2})/g,c=/[^\x20-\x7e\xa0-\xff]/g,p=/\\([\u0000-\u007f])/g,l=/([\\"])/g,u=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,d=/^[\x20-\x7e\x80-\xff]+$/,f=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,m=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,h=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function v(e){var t=m.exec(e);if(!t)throw new TypeError("invalid extended field value");var i,n=t[1].toLowerCase(),o=t[2].replace(s,g);switch(n){case"iso-8859-1":i=x(o);break;case"utf-8":i=a.from(o,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return i}function x(e){return String(e).replace(c,"?")}function g(e,t){return String.fromCharCode(parseInt(t,16))}function b(e){return"%"+String(e).charCodeAt(0).toString(16).toUpperCase()}function y(e){return'"'+String(e).replace(l,"\\$1")+'"'}function w(e){var t=String(e);return"UTF-8''"+encodeURIComponent(t).replace(o,b)}function _(e,t){this.type=e,this.parameters=t}},363:(e,t)=>{"use strict";var i=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,o=/\\([\u000b\u0020-\u00ff])/g,r=/([\\"])/g,s=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function c(e){var t=String(e);if(a.test(t))return t;if(t.length>0&&!n.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(r,"\\$1")+'"'}function p(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,i=e.type;if(!i||!s.test(i))throw new TypeError("invalid type");var n=i;if(t&&"object"==typeof t)for(var o,r=Object.keys(t).sort(),p=0;p<r.length;p++){if(o=r[p],!a.test(o))throw new TypeError("invalid parameter name");n+="; "+o+"="+c(t[o])}return n},t.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),a=-1!==n?t.substr(0,n).trim():t.trim();if(!s.test(a))throw new TypeError("invalid media type");var r=new p(a.toLowerCase());if(-1!==n){var c,l,u;for(i.lastIndex=n;l=i.exec(t);){if(l.index!==n)throw new TypeError("invalid parameter format");n+=l[0].length,c=l[1].toLowerCase(),'"'===(u=l[2])[0]&&(u=u.substr(1,u.length-2).replace(o,"$1")),r.parameters[c]=u}if(n!==t.length)throw new TypeError("invalid parameter format")}return r}},9647:(e,t,i)=>{var n=i(6113);function a(e){return n.createHash("sha1").update(e).digest("hex")}t.sign=function(e,t){if("string"!=typeof e)throw new TypeError("Cookie value must be provided as a string.");if("string"!=typeof t)throw new TypeError("Secret string must be provided.");return e+"."+n.createHmac("sha256",t).update(e).digest("base64").replace(/\=+$/,"")},t.unsign=function(e,i){if("string"!=typeof e)throw new TypeError("Signed cookie string must be provided.");if("string"!=typeof i)throw new TypeError("Secret string must be provided.");var n=e.slice(0,e.lastIndexOf("."));return a(t.sign(n,i))==a(e)&&n}},8464:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var i={},n=(t||{}).decode||a,o=0;o<e.length;){var s=e.indexOf("=",o);if(-1===s)break;var c=e.indexOf(";",o);if(-1===c)c=e.length;else if(c<s){o=e.lastIndexOf(";",s-1)+1;continue}var p=e.slice(o,s).trim();if(void 0===i[p]){var l=e.slice(s+1,c).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),i[p]=r(l,n)}o=c+1}return i},t.serialize=function(e,t,a){var r=a||{},s=r.encode||o;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var c=s(t);if(c&&!n.test(c))throw new TypeError("argument val is invalid");var p=e+"="+c;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");p+="; Max-Age="+Math.floor(l)}if(r.domain){if(!n.test(r.domain))throw new TypeError("option domain is invalid");p+="; Domain="+r.domain}if(r.path){if(!n.test(r.path))throw new TypeError("option path is invalid");p+="; Path="+r.path}if(r.expires){var u=r.expires;if(!function(e){return"[object Date]"===i.call(e)||e instanceof Date}(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");p+="; Expires="+u.toUTCString()}if(r.httpOnly&&(p+="; HttpOnly"),r.secure&&(p+="; Secure"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return p};var i=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function o(e){return encodeURIComponent(e)}function r(e,t){try{return t(e)}catch(t){return e}}},4777:(e,t,i)=>{function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=i(8934)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+t.humanize(this.diff),i){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(o=a))})),e.splice(o,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())},8934:(e,t,i)=>{var n;function a(e){function i(){if(i.enabled){var e=i,a=+new Date,o=a-(n||a);e.diff=o,e.prev=n,e.curr=a,n=a;for(var r=new Array(arguments.length),s=0;s<r.length;s++)r[s]=arguments[s];r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var c=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(i,n){if("%%"===i)return i;c++;var a=t.formatters[n];if("function"==typeof a){var o=r[c];i=a.call(e,o),r.splice(c,1),c--}return i})),t.formatArgs.call(e,r);var p=i.log||t.log||console.log.bind(console);p.apply(e,r)}}return i.namespace=e,i.enabled=t.enabled(e),i.useColors=t.useColors(),i.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(i),i}(t=e.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,a=0;a<n;a++)i[a]&&("-"===(e=i[a].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var i,n;for(i=0,n=t.skips.length;i<n;i++)if(t.skips[i].test(e))return!1;for(i=0,n=t.names.length;i<n;i++)if(t.names[i].test(e))return!0;return!1},t.humanize=i(1836),t.names=[],t.skips=[],t.formatters={}},6352:(e,t,i)=>{"undefined"!=typeof process&&"renderer"===process.type?e.exports=i(4777):e.exports=i(6808)},6808:(e,t,i)=>{var n=i(6224),a=i(3837);(t=e.exports=i(8934)).init=function(e){e.inspectOpts={};for(var i=Object.keys(t.inspectOpts),n=0;n<i.length;n++)e.inspectOpts[i[n]]=t.inspectOpts[i[n]]},t.log=function(){return r.write(a.format.apply(a,arguments)+"\n")},t.formatArgs=function(e){var i=this.namespace;if(this.useColors){var n=this.color,a=" [3"+n+";1m"+i+" [0m";e[0]=a+e[0].split("\n").join("\n"+a),e.push("[3"+n+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(new Date).toUTCString()+" "+i+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=s,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(o)},t.colors=[6,2,3,4,5,1],t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var i=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[i]=n,e}),{});var o=parseInt(process.env.DEBUG_FD,10)||2;1!==o&&2!==o&&a.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var r=1===o?process.stdout:2===o?process.stderr:function(e){var t;switch(process.binding("tty_wrap").guessHandleType(e)){case"TTY":(t=new n.WriteStream(e))._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":(t=new(i(7147).SyncWriteStream)(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(t=new(i(1808).Socket)({fd:e,readable:!1,writable:!0})).readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}(o);function s(){return process.env.DEBUG}t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)},t.enable(s())},6282:(e,t,i)=>{var n=i(1017).relative;e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");var t=c(f()[1])[0];function i(e){s.call(i,e)}return i._file=t,i._ignored=function(e){return!!process.noDeprecation||o(process.env.NO_DEPRECATION||"",e)}(e),i._namespace=e,i._traced=function(e){return!!process.traceDeprecation||o(process.env.TRACE_DEPRECATION||"",e)}(e),i._warned=Object.create(null),i.function=h,i.property=v,i};var a=process.cwd();function o(e,t){for(var i=e.split(/[ ,]+/),n=String(t).toLowerCase(),a=0;a<i.length;a++){var o=i[a];if(o&&("*"===o||o.toLowerCase()===n))return!0}return!1}function r(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var i=0;i<e.length;i++)t+="\n at "+e[i].toString();return t}function s(e,t){var i,n,a=(n="deprecation",("function"!=typeof(i=process).listenerCount?i.listeners(n).length:i.listenerCount(n))>0);if(a||!this._ignored){var o,r,s,d,m=0,h=!1,v=f(),g=this._file;for(t?(d=t,(s=c(v[1])).name=d.name,g=s[0]):s=d=c(v[m=2]);m<v.length;m++)if((r=(o=c(v[m]))[0])===g)h=!0;else if(r===this._file)g=this._file;else if(h)break;var b=o?d.join(":")+"__"+o.join(":"):void 0;if(void 0===b||!(b in this._warned)){this._warned[b]=!0;var y=e;if(y||(y=s!==d&&s.name?p(s):p(d)),a){var w=x(this._namespace,y,v.slice(m));process.emit("deprecation",w)}else{var _=(process.stderr.isTTY?u:l).call(this,y,o,v.slice(m));process.stderr.write(_+"\n","utf8")}}}}function c(e){var t=e.getFileName()||"<anonymous>",i=e.getLineNumber(),n=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var a=[t,i,n];return a.callSite=e,a.name=e.getFunctionName(),a}function p(e){var t=e.callSite,i=e.name;i||(i="<anonymous@"+d(e)+">");var n=t.getThis(),a=n&&t.getTypeName();return"Object"===a&&(a=void 0),"Function"===a&&(a=n.name||a),a&&t.getMethodName()?a+"."+i:i}function l(e,t,i){var n=(new Date).toUTCString()+" "+this._namespace+" deprecated "+e;if(this._traced){for(var a=0;a<i.length;a++)n+="\n at "+i[a].toString();return n}return t&&(n+=" at "+d(t)),n}function u(e,t,i){var n="[36;1m"+this._namespace+"[22;39m [33;1mdeprecated[22;39m [0m"+e+"[39m";if(this._traced){for(var a=0;a<i.length;a++)n+="\n [36mat "+i[a].toString()+"[39m";return n}return t&&(n+=" [36m"+d(t)+"[39m"),n}function d(e){return n(a,e[0])+":"+e[1]+":"+e[2]}function f(){var e=Error.stackTraceLimit,t={},i=Error.prepareStackTrace;Error.prepareStackTrace=m,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var n=t.stack.slice(1);return Error.prepareStackTrace=i,Error.stackTraceLimit=e,n}function m(e,t){return t}function h(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");var i=function(e){for(var t="",i=0;i<e;i++)t+=", arg"+i;return t.substr(2)}(e.length),n=c(f()[1]);return n.name=e.name,new Function("fn","log","deprecate","message","site",'"use strict"\nreturn function ('+i+") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(e,s,this,t,n)}function v(e,t,i){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var n=Object.getOwnPropertyDescriptor(e,t);if(!n)throw new TypeError("must call property on owner object");if(!n.configurable)throw new TypeError("property must be configurable");var a=this,o=c(f()[1]);o.name=t,"value"in n&&(n=function(e,t,i){var n=Object.getOwnPropertyDescriptor(e,t),a=n.value;return n.get=function(){return a},n.writable&&(n.set=function(e){return a=e}),delete n.value,delete n.writable,Object.defineProperty(e,t,n),n}(e,t));var r=n.get,p=n.set;"function"==typeof r&&(n.get=function(){return s.call(a,i,o),r.apply(this,arguments)}),"function"==typeof p&&(n.set=function(){return s.call(a,i,o),p.apply(this,arguments)}),Object.defineProperty(e,t,n)}function x(e,t,i){var n,a=new Error;return Object.defineProperty(a,"constructor",{value:x}),Object.defineProperty(a,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(a,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(a,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(a,"stack",{configurable:!0,enumerable:!1,get:function(){return void 0!==n?n:n=r.call(this,i)},set:function(e){n=e}}),a}},8906:(e,t,i)=>{"use strict";var n=i(2361).EventEmitter,a=i(7147).ReadStream,o=i(2781),r=i(9796);function s(){}function c(){this._binding.clear()}function p(){"number"==typeof this.fd&&this.close()}e.exports=function(e,t){return!function(e){return e instanceof a}(e)?function(e){return e instanceof r.Gzip||e instanceof r.Gunzip||e instanceof r.Deflate||e instanceof r.DeflateRaw||e instanceof r.Inflate||e instanceof r.InflateRaw||e instanceof r.Unzip}(e)?function(e){"function"==typeof e.destroy?e._binding?(e.destroy(),e._processing?(e._needDrain=!0,e.once("drain",c)):e._binding.clear()):e._destroy&&e._destroy!==o.Transform.prototype._destroy?e.destroy():e._destroy&&"function"==typeof e.close?(e.destroyed=!0,e.close()):e.destroy():"function"==typeof e.close&&function(e){if(!0===e._hadError){var t=null===e._binding?"_binding":"_handle";e[t]={close:function(){this[t]=null}}}e.close()}(e)}(e):function(e){return e instanceof o&&"function"==typeof e.destroy}(e)&&e.destroy():function(e){e.destroy(),"function"==typeof e.close&&e.on("open",p)}(e),e instanceof n&&t&&(e.removeAllListeners("error"),e.addListener("error",s)),e}},8043:e=>{"use strict";function t(e,t){return function(i){for(var n=new Array(arguments.length),a=this,o="error"===e?i:null,r=0;r<n.length;r++)n[r]=arguments[r];t(o,a,e,n)}}e.exports=function(e,i){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var n=[],a=0;a<e.length;a++){var o=e[a];if(!Array.isArray(o)||o.length<2)throw new TypeError("each array member must be [ee, events...]");for(var r=o[0],s=1;s<o.length;s++){var c=o[s],p=t(c,l);r.on(c,p),n.push({ee:r,event:c,fn:p})}}function l(){u(),i.apply(null,arguments)}function u(){for(var e,t=0;t<n.length;t++)(e=n[t]).ee.removeListener(e.event,e.fn)}function d(e){i=e}return d.cancel=u,d}},6012:e=>{"use strict";e.exports=function(e){return String(e).replace(i,"$1�$2").replace(t,encodeURI)};var t=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,i=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g},7966:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){var i,n=""+e,a=t.exec(n);if(!a)return n;var o="",r=0,s=0;for(r=a.index;r<n.length;r++){switch(n.charCodeAt(r)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}s!==r&&(o+=n.substring(s,r)),s=r+1,o+=i}return s!==r?o+n.substring(s,r):o}},823:(e,t,i)=>{"use strict";e.exports=function(e,t){if(null==e)throw new TypeError("argument entity is required");var i,r=(i=e,"function"==typeof a&&i instanceof a||i&&"object"==typeof i&&"ctime"in i&&"[object Date]"===o.call(i.ctime)&&"mtime"in i&&"[object Date]"===o.call(i.mtime)&&"ino"in i&&"number"==typeof i.ino&&"size"in i&&"number"==typeof i.size),s=t&&"boolean"==typeof t.weak?t.weak:r;if(!r&&"string"!=typeof e&&!Buffer.isBuffer(e))throw new TypeError("argument entity must be string, Buffer, or fs.Stats");var c,p,l=r?(p=(c=e).mtime.getTime().toString(16),'"'+c.size.toString(16)+"-"+p+'"'):function(e){if(0===e.length)return'"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';var t=n.createHash("sha1").update(e,"utf8").digest("base64").substring(0,27);return'"'+("string"==typeof e?Buffer.byteLength(e,"utf8"):e.length).toString(16)+"-"+t+'"'}(e);return s?"W/"+l:l};var n=i(6113),a=i(7147).Stats,o=Object.prototype.toString},666:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,r){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,o||e,r),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function r(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,r=new Array(o);a<o;a++)r[a]=n[a].fn;return r},s.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,a,o,r){var s=i?i+e:e;if(!this._events[s])return!1;var c,p,l=this._events[s],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,a),!0;case 5:return l.fn.call(l.context,t,n,a,o),!0;case 6:return l.fn.call(l.context,t,n,a,o,r),!0}for(p=1,c=new Array(u-1);p<u;p++)c[p-1]=arguments[p];l.fn.apply(l.context,c)}else{var d,f=l.length;for(p=0;p<f;p++)switch(l[p].once&&this.removeListener(e,l[p].fn,void 0,!0),u){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,t);break;case 3:l[p].fn.call(l[p].context,t,n);break;case 4:l[p].fn.call(l[p].context,t,n,a);break;default:if(!c)for(d=1,c=new Array(u-1);d<u;d++)c[d-1]=arguments[d];l[p].fn.apply(l[p].context,c)}}return!0},s.prototype.on=function(e,t,i){return o(this,e,t,i,!1)},s.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},s.prototype.removeListener=function(e,t,n,a){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return r(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||a&&!s.once||n&&s.context!==n||r(this,o);else{for(var c=0,p=[],l=s.length;c<l;c++)(s[c].fn!==t||a&&!s[c].once||n&&s[c].context!==n)&&p.push(s[c]);p.length?this._events[o]=1===p.length?p[0]:p:r(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&r(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,e.exports=s},7130:(e,t,i)=>{e.exports=i(177).default},5158:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){null!==e.ws&&void 0!==e.ws||(e.ws=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];var s=i.map(n.default),c=(0,a.default)(e);return this.get.apply(this,r([c].concat(s))),this})};var n=o(i(2926)),a=o(i(6878));function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}},177:(e,t,i)=>{"use strict";t.default=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=t;null==c&&(c=n.default.createServer(e),e.listen=function(){var e;return(e=c).listen.apply(e,arguments)}),(0,s.default)(e),i.leaveRouterUntouched||(0,s.default)(a.default.Router);var p=i.wsOptions||{};p.server=c;var l=new o.default.Server(p);return l.on("connection",(function(t,i){"upgradeReq"in t&&(i=t.upgradeReq),i.ws=t,i.wsHandled=!1,i.url=(0,r.default)(i.url);var a=new n.default.ServerResponse(i);a.writeHead=function(e){e>200&&(a._header="",t.close())},e.handle(i,a,(function(){i.wsHandled||t.close()}))})),{app:e,getWss:function(){return l},applyTo:function(e){(0,s.default)(e)}}};var n=c(i(3685)),a=c(i(4492)),o=c(i(3860)),r=c(i(6878)),s=c(i(5158));function c(e){return e&&e.__esModule?e:{default:e}}},8333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e;return"/"!==t.charAt(t.length-1)&&(t+="/"),t}},6878:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){if(-1!==e.indexOf("?")){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.split("?"),2),i=t[0],n=t[1];return(0,a.default)(i)+".websocket?"+n}return(0,a.default)(e)+".websocket"};var n,a=(n=i(8333))&&n.__esModule?n:{default:n}},2926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,i,n){if(null!==t.ws&&void 0!==t.ws){t.wsHandled=!0;try{e(t.ws,t,n)}catch(e){n(e)}}else n()}}},7132:(e,t,i)=>{"use strict";e.exports=i(7982)},5417:(e,t,i)=>{"use strict";var n=i(2888),a=i(9724),o=i(5210),r=i(6299),s=i(8410),c=i(6352)("express:application"),p=i(3409),l=i(3685),u=i(4385).compileETag,d=i(4385).compileQueryParser,f=i(4385).compileTrust,m=i(6282)("express"),h=i(7040),v=i(9251),x=i(1017).resolve,g=i(6634),b=Object.prototype.hasOwnProperty,y=Array.prototype.slice,w=e.exports={},_="@@symbol:trust_proxy_default";function k(e){"test"!==this.get("env")&&console.error(e.stack||e.toString())}w.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()},w.defaultConfiguration=function(){var e="production";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,_,{configurable:!0,value:!0}),c("booting in %s mode",e),this.on("mount",(function(e){!0===this.settings[_]&&"function"==typeof e.settings["trust proxy fn"]&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),g(this.request,e.request),g(this.response,e.response),g(this.engines,e.engines),g(this.settings,e.settings)})),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",p),this.set("views",x("views")),this.set("jsonp callback name","callback"),this.enable("view cache"),Object.defineProperty(this,"router",{get:function(){throw new Error("'app.router' is deprecated!\nPlease see the 3.x to 4.x migration guide for details on how to update your app.")}})},w.lazyrouter=function(){this._router||(this._router=new a({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(s(this.get("query parser fn"))),this._router.use(r.init(this)))},w.handle=function(e,t,i){var a=this._router,o=i||n(e,t,{env:this.get("env"),onerror:k.bind(this)});if(!a)return c("no routes defined on app"),void o();a.handle(e,t,o)},w.use=function(e){var t=0,i="/";if("function"!=typeof e){for(var n=e;Array.isArray(n)&&0!==n.length;)n=n[0];"function"!=typeof n&&(t=1,i=e)}var a=h(y.call(arguments,t));if(0===a.length)throw new TypeError("app.use() requires a middleware function");this.lazyrouter();var o=this._router;return a.forEach((function(e){if(!e||!e.handle||!e.set)return o.use(i,e);c(".use app under %s",i),e.mountpath=i,e.parent=this,o.use(i,(function(t,i,n){var a=t.app;e.handle(t,i,(function(e){g(t,a.request),g(i,a.response),n(e)}))})),e.emit("mount",this)}),this),this},w.route=function(e){return this.lazyrouter(),this._router.route(e)},w.engine=function(e,t){if("function"!=typeof t)throw new Error("callback function required");var i="."!==e[0]?"."+e:e;return this.engines[i]=t,this},w.param=function(e,t){if(this.lazyrouter(),Array.isArray(e)){for(var i=0;i<e.length;i++)this.param(e[i],t);return this}return this._router.param(e,t),this},w.set=function(e,t){if(1!==arguments.length){switch(c('set "%s" to %o',e,t),this.settings[e]=t,e){case"etag":this.set("etag fn",u(t));break;case"query parser":this.set("query parser fn",d(t));break;case"trust proxy":this.set("trust proxy fn",f(t)),Object.defineProperty(this.settings,_,{configurable:!0,value:!1})}return this}for(var i=this.settings;i&&i!==Object.prototype;){if(b.call(i,e))return i[e];i=Object.getPrototypeOf(i)}},w.path=function(){return this.parent?this.parent.path()+this.mountpath:""},w.enabled=function(e){return Boolean(this.set(e))},w.disabled=function(e){return!this.set(e)},w.enable=function(e){return this.set(e,!0)},w.disable=function(e){return this.set(e,!1)},o.forEach((function(e){w[e]=function(t){if("get"===e&&1===arguments.length)return this.set(t);this.lazyrouter();var i=this._router.route(t);return i[e].apply(i,y.call(arguments,1)),this}})),w.all=function(e){this.lazyrouter();for(var t=this._router.route(e),i=y.call(arguments,1),n=0;n<o.length;n++)t[o[n]].apply(t,i);return this},w.del=m.function(w.delete,"app.del: Use app.delete instead"),w.render=function(e,t,i){var n,a=this.cache,o=i,r=this.engines,s=t,c={};if("function"==typeof t&&(o=t,s={}),v(c,this.locals),s._locals&&v(c,s._locals),v(c,s),null==c.cache&&(c.cache=this.enabled("view cache")),c.cache&&(n=a[e]),!n){if(!(n=new(this.get("view"))(e,{defaultEngine:this.get("view engine"),root:this.get("views"),engines:r})).path){var p=Array.isArray(n.root)&&n.root.length>1?'directories "'+n.root.slice(0,-1).join('", "')+'" or "'+n.root[n.root.length-1]+'"':'directory "'+n.root+'"',l=new Error('Failed to lookup view "'+e+'" in views '+p);return l.view=n,o(l)}c.cache&&(a[e]=n)}!function(e,t,i){try{e.render(t,i)}catch(e){i(e)}}(n,c,o)},w.listen=function(){var e=l.createServer(this);return e.listen.apply(e,arguments)}},7982:(e,t,i)=>{"use strict";var n=i(2973),a=i(2361).EventEmitter,o=i(1349),r=i(5417),s=i(6368),c=i(9724),p=i(4402),l=i(702);(t=e.exports=function(){var e=function(t,i,n){e.handle(t,i,n)};return o(e,a.prototype,!1),o(e,r,!1),e.request=Object.create(p,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(l,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}).application=r,t.request=p,t.response=l,t.Route=s,t.Router=c,t.json=n.json,t.query=i(8410),t.raw=n.raw,t.static=i(7548),t.text=n.text,t.urlencoded=n.urlencoded,["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"].forEach((function(e){Object.defineProperty(t,e,{get:function(){throw new Error("Most middleware (like "+e+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})}))},6299:(e,t,i)=>{"use strict";var n=i(6634);t.init=function(e){return function(t,i,a){e.enabled("x-powered-by")&&i.setHeader("X-Powered-By","Express"),t.res=i,i.req=t,t.next=a,n(t,e.request),n(i,e.response),i.locals=i.locals||Object.create(null),a()}}},8410:(e,t,i)=>{"use strict";var n=i(9251),a=i(9110),o=i(1895);e.exports=function(e){var t=n({},e),i=o.parse;return"function"==typeof e&&(i=e,t=void 0),void 0!==t&&void 0===t.allowPrototypes&&(t.allowPrototypes=!0),function(e,n,o){if(!e.query){var r=a(e).query;e.query=i(r,t)}o()}}},4402:(e,t,i)=>{"use strict";var n=i(4070),a=i(6282)("express"),o=i(1808).isIP,r=i(4654),s=i(3685),c=i(8116),p=i(2205),l=i(9110),u=i(903),d=Object.create(s.IncomingMessage.prototype);function f(e,t,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:i})}e.exports=d,d.get=d.header=function(e){if(!e)throw new TypeError("name argument is required to req.get");if("string"!=typeof e)throw new TypeError("name must be a string to req.get");var t=e.toLowerCase();switch(t){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[t]}},d.accepts=function(){var e=n(this);return e.types.apply(e,arguments)},d.acceptsEncodings=function(){var e=n(this);return e.encodings.apply(e,arguments)},d.acceptsEncoding=a.function(d.acceptsEncodings,"req.acceptsEncoding: Use acceptsEncodings instead"),d.acceptsCharsets=function(){var e=n(this);return e.charsets.apply(e,arguments)},d.acceptsCharset=a.function(d.acceptsCharsets,"req.acceptsCharset: Use acceptsCharsets instead"),d.acceptsLanguages=function(){var e=n(this);return e.languages.apply(e,arguments)},d.acceptsLanguage=a.function(d.acceptsLanguages,"req.acceptsLanguage: Use acceptsLanguages instead"),d.range=function(e,t){var i=this.get("Range");if(i)return p(e,i,t)},d.param=function(e,t){var i=this.params||{},n=this.body||{},o=this.query||{},r=1===arguments.length?"name":"name, default";return a("req.param("+r+"): Use req.params, req.body, or req.query instead"),null!=i[e]&&i.hasOwnProperty(e)?i[e]:null!=n[e]?n[e]:null!=o[e]?o[e]:t},d.is=function(e){var t=e;if(!Array.isArray(e)){t=new Array(arguments.length);for(var i=0;i<t.length;i++)t[i]=arguments[i]}return r(this,t)},f(d,"protocol",(function(){var e=this.connection.encrypted?"https":"http";if(!this.app.get("trust proxy fn")(this.connection.remoteAddress,0))return e;var t=this.get("X-Forwarded-Proto")||e,i=t.indexOf(",");return-1!==i?t.substring(0,i).trim():t.trim()})),f(d,"secure",(function(){return"https"===this.protocol})),f(d,"ip",(function(){var e=this.app.get("trust proxy fn");return u(this,e)})),f(d,"ips",(function(){var e=this.app.get("trust proxy fn"),t=u.all(this,e);return t.reverse().pop(),t})),f(d,"subdomains",(function(){var e=this.hostname;if(!e)return[];var t=this.app.get("subdomain offset");return(o(e)?[e]:e.split(".").reverse()).slice(t)})),f(d,"path",(function(){return l(this).pathname})),f(d,"hostname",(function(){var e=this.app.get("trust proxy fn"),t=this.get("X-Forwarded-Host");if(t&&e(this.connection.remoteAddress,0)?-1!==t.indexOf(",")&&(t=t.substring(0,t.indexOf(",")).trimRight()):t=this.get("Host"),t){var i="["===t[0]?t.indexOf("]")+1:0,n=t.indexOf(":",i);return-1!==n?t.substring(0,n):t}})),f(d,"host",a.function((function(){return this.hostname}),"req.host: Use req.hostname instead")),f(d,"fresh",(function(){var e=this.method,t=this.res,i=t.statusCode;return("GET"===e||"HEAD"===e)&&(i>=200&&i<300||304===i)&&c(this.headers,{etag:t.get("ETag"),"last-modified":t.get("Last-Modified")})})),f(d,"stale",(function(){return!this.fresh})),f(d,"xhr",(function(){return"xmlhttprequest"===(this.get("X-Requested-With")||"").toLowerCase()}))},702:(e,t,i)=>{"use strict";var n=i(8467).Buffer,a=i(9697),o=i(3254),r=i(6282)("express"),s=i(6012),c=i(7966),p=i(3685),l=i(4385).isAbsolute,u=i(5430),d=i(1017),f=i(2480),m=i(9251),h=i(9647).sign,v=i(4385).normalizeType,x=i(4385).normalizeTypes,g=i(4385).setCharset,b=i(8464),y=i(8147),w=d.extname,_=y.mime,k=d.resolve,S=i(3777),E=Object.create(p.ServerResponse.prototype);e.exports=E;var j=/;\s*charset\s*=/;function O(e,t,i,n){var a,o=!1;function r(){if(!o){o=!0;var e=new Error("Request aborted");e.code="ECONNABORTED",n(e)}}function s(e){o||(o=!0,n(e))}t.on("directory",(function(){if(!o){o=!0;var e=new Error("EISDIR, read");e.code="EISDIR",n(e)}})),t.on("end",(function(){o||(o=!0,n())})),t.on("error",s),t.on("file",(function(){a=!1})),t.on("stream",(function(){a=!0})),u(e,(function(e){return e&&"ECONNRESET"===e.code?r():e?s(e):void(o||setImmediate((function(){!1===a||o?o||(o=!0,n()):r()})))})),i.headers&&t.on("headers",(function(e){for(var t=i.headers,n=Object.keys(t),a=0;a<n.length;a++){var o=n[a];e.setHeader(o,t[o])}})),t.pipe(e)}function C(e,t,i,n){var a=t||i?JSON.stringify(e,t,i):JSON.stringify(e);return n&&"string"==typeof a&&(a=a.replace(/[<>&]/g,(function(e){switch(e.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return e}}))),a}E.status=function(e){return("string"==typeof e||Math.floor(e)!==e)&&e>99&&e<1e3&&r("res.status("+JSON.stringify(e)+"): use res.status("+Math.floor(e)+") instead"),this.statusCode=e,this},E.links=function(e){var t=this.get("Link")||"";return t&&(t+=", "),this.set("Link",t+Object.keys(e).map((function(t){return"<"+e[t]+'>; rel="'+t+'"'})).join(", "))},E.send=function(e){var t,i,a=e,o=this.req,s=this.app;switch(2===arguments.length&&("number"!=typeof arguments[0]&&"number"==typeof arguments[1]?(r("res.send(body, status): Use res.status(status).send(body) instead"),this.statusCode=arguments[1]):(r("res.send(status, body): Use res.status(status).send(body) instead"),this.statusCode=arguments[0],a=arguments[1])),"number"==typeof a&&1===arguments.length&&(this.get("Content-Type")||this.type("txt"),r("res.send(status): Use res.sendStatus(status) instead"),this.statusCode=a,a=f.message[a]),typeof a){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(null===a)a="";else{if(!n.isBuffer(a))return this.json(a);this.get("Content-Type")||this.type("bin")}}"string"==typeof a&&(t="utf8","string"==typeof(i=this.get("Content-Type"))&&this.set("Content-Type",g(i,"utf-8")));var c,p,l=s.get("etag fn"),u=!this.get("ETag")&&"function"==typeof l;return void 0!==a&&(n.isBuffer(a)?c=a.length:!u&&a.length<1e3?c=n.byteLength(a,t):(a=n.from(a,t),t=void 0,c=a.length),this.set("Content-Length",c)),u&&void 0!==c&&(p=l(a,t))&&this.set("ETag",p),o.fresh&&(this.statusCode=304),204!==this.statusCode&&304!==this.statusCode||(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),a=""),205===this.statusCode&&(this.set("Content-Length","0"),this.removeHeader("Transfer-Encoding"),a=""),"HEAD"===o.method?this.end():this.end(a,t),this},E.json=function(e){var t=e;2===arguments.length&&("number"==typeof arguments[1]?(r("res.json(obj, status): Use res.status(status).json(obj) instead"),this.statusCode=arguments[1]):(r("res.json(status, obj): Use res.status(status).json(obj) instead"),this.statusCode=arguments[0],t=arguments[1]));var i=this.app,n=i.get("json escape"),a=i.get("json replacer"),o=i.get("json spaces"),s=C(t,a,o,n);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(s)},E.jsonp=function(e){var t=e;2===arguments.length&&("number"==typeof arguments[1]?(r("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[1]):(r("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[0],t=arguments[1]));var i=this.app,n=i.get("json escape"),a=i.get("json replacer"),o=i.get("json spaces"),s=C(t,a,o,n),c=this.req.query[i.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(c)&&(c=c[0]),"string"==typeof c&&0!==c.length&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),c=c.replace(/[^\[\]\w$.]/g,""),void 0===s?s="":"string"==typeof s&&(s=s.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),s="/**/ typeof "+c+" === 'function' && "+c+"("+s+");"),this.send(s)},E.sendStatus=function(e){var t=f.message[e]||String(e);return this.statusCode=e,this.type("txt"),this.send(t)},E.sendFile=function(e,t,i){var n=i,a=this.req,o=a.next,r=t||{};if(!e)throw new TypeError("path argument is required to res.sendFile");if("string"!=typeof e)throw new TypeError("path must be a string to res.sendFile");if("function"==typeof t&&(n=t,r={}),!r.root&&!l(e))throw new TypeError("path must be absolute or specify root to res.sendFile");var s=encodeURI(e);O(this,y(a,s,r),r,(function(e){return n?n(e):e&&"EISDIR"===e.code?o():void(e&&"ECONNABORTED"!==e.code&&"write"!==e.syscall&&o(e))}))},E.sendfile=function(e,t,i){var n=i,a=this.req,o=a.next,r=t||{};"function"==typeof t&&(n=t,r={}),O(this,y(a,e,r),r,(function(e){return n?n(e):e&&"EISDIR"===e.code?o():void(e&&"ECONNABORTED"!==e.code&&"write"!==e.syscall&&o(e))}))},E.sendfile=r.function(E.sendfile,"res.sendfile: Use res.sendFile instead"),E.download=function(e,t,i,n){var o=n,r=t,s=i||null;"function"==typeof t?(o=t,r=null,s=null):"function"==typeof i&&(o=i,s=null),"object"!=typeof t||"function"!=typeof i&&void 0!==i||(r=null,s=t);var c={"Content-Disposition":a(r||e)};if(s&&s.headers)for(var p=Object.keys(s.headers),l=0;l<p.length;l++){var u=p[l];"content-disposition"!==u.toLowerCase()&&(c[u]=s.headers[u])}(s=Object.create(s)).headers=c;var d=s.root?e:k(e);return this.sendFile(d,s,o)},E.contentType=E.type=function(e){var t=-1===e.indexOf("/")?_.lookup(e):e;return this.set("Content-Type",t)},E.format=function(e){var t=this.req,i=t.next,n=Object.keys(e).filter((function(e){return"default"!==e})),a=n.length>0&&t.accepts(n);return this.vary("Accept"),a?(this.set("Content-Type",v(a).value),e[a](t,this,i)):e.default?e.default(t,this,i):i(o(406,{types:x(n).map((function(e){return e.value}))})),this},E.attachment=function(e){return e&&this.type(w(e)),this.set("Content-Disposition",a(e)),this},E.append=function(e,t){var i=this.get(e),n=t;return i&&(n=Array.isArray(i)?i.concat(t):Array.isArray(t)?[i].concat(t):[i,t]),this.set(e,n)},E.set=E.header=function(e,t){if(2===arguments.length){var i=Array.isArray(t)?t.map(String):String(t);if("content-type"===e.toLowerCase()){if(Array.isArray(i))throw new TypeError("Content-Type cannot be set to an Array");if(!j.test(i)){var n=_.charsets.lookup(i.split(";")[0]);n&&(i+="; charset="+n.toLowerCase())}}this.setHeader(e,i)}else for(var a in e)this.set(a,e[a]);return this},E.get=function(e){return this.getHeader(e)},E.clearCookie=function(e,t){var i=m({expires:new Date(1),path:"/"},t);return this.cookie(e,"",i)},E.cookie=function(e,t,i){var n=m({},i),a=this.req.secret,o=n.signed;if(o&&!a)throw new Error('cookieParser("secret") required for signed cookies');var r="object"==typeof t?"j:"+JSON.stringify(t):String(t);if(o&&(r="s:"+h(r,a)),null!=n.maxAge){var s=n.maxAge-0;isNaN(s)||(n.expires=new Date(Date.now()+s),n.maxAge=Math.floor(s/1e3))}return null==n.path&&(n.path="/"),this.append("Set-Cookie",b.serialize(e,String(r),n)),this},E.location=function(e){var t=e;return"back"===e&&(t=this.req.get("Referrer")||"/"),this.set("Location",s(t))},E.redirect=function(e){var t,i=e,a=302;2===arguments.length&&("number"==typeof arguments[0]?(a=arguments[0],i=arguments[1]):(r("res.redirect(url, status): Use res.redirect(status, url) instead"),a=arguments[1])),i=this.location(i).get("Location"),this.format({text:function(){t=f.message[a]+". Redirecting to "+i},html:function(){var e=c(i);t="<p>"+f.message[a]+'. Redirecting to <a href="'+e+'">'+e+"</a></p>"},default:function(){t=""}}),this.statusCode=a,this.set("Content-Length",n.byteLength(t)),"HEAD"===this.req.method?this.end():this.end(t)},E.vary=function(e){return!e||Array.isArray(e)&&!e.length?(r("res.vary(): Provide a field name"),this):(S(this,e),this)},E.render=function(e,t,i){var n=this.req.app,a=i,o=t||{},r=this.req,s=this;"function"==typeof t&&(a=t,o={}),o._locals=s.locals,a=a||function(e,t){if(e)return r.next(e);s.send(t)},n.render(e,o,a)}},9724:(e,t,i)=>{"use strict";var n=i(6368),a=i(3471),o=i(5210),r=i(9251),s=i(6352)("express:router"),c=i(6282)("express"),p=i(7040),l=i(9110),u=i(6634),d=/^\[object (\S+)\]$/,f=Array.prototype.slice,m=Object.prototype.toString,h=e.exports=function(e){var t=e||{};function i(e,t,n){i.handle(e,t,n)}return u(i,h),i.params={},i._params=[],i.caseSensitive=t.caseSensitive,i.mergeParams=t.mergeParams,i.strict=t.strict,i.stack=[],i};function v(e,t){for(var i=0;i<t.length;i++){var n=t[i];-1===e.indexOf(n)&&e.push(n)}}function x(e){var t=typeof e;return"object"!==t?t:m.call(e).replace(d,"$1")}function g(e,t){try{return e.match(t)}catch(e){return e}}h.param=function(e,t){if("function"==typeof e)return c("router.param(fn): Refactor to use path params"),void this._params.push(e);var i,n=this._params,a=n.length;":"===e[0]&&(c("router.param("+JSON.stringify(e)+", fn): Use router.param("+JSON.stringify(e.slice(1))+", fn) instead"),e=e.slice(1));for(var o=0;o<a;++o)(i=n[o](e,t))&&(t=i);if("function"!=typeof t)throw new Error("invalid param() call for "+e+", got "+t);return(this.params[e]=this.params[e]||[]).push(t),this},h.handle=function(e,t,i){var n=this;s("dispatching %s %s",e.method,e.url);var a,o,c=0,p=function(e){if("string"==typeof e&&0!==e.length&&"/"!==e[0]){var t=e.indexOf("?"),i=-1!==t?t:e.length,n=e.slice(0,i).indexOf("://");return-1!==n?e.substring(0,e.indexOf("/",3+n)):void 0}}(e.url)||"",u="",d=!1,f=0,m={},h=[],x=n.stack,b=e.params,y=e.baseUrl||"",w=function(e,t){for(var i=new Array(arguments.length-2),n=new Array(arguments.length-2),a=0;a<i.length;a++)i[a]=arguments[a+2],n[a]=t[i[a]];return function(){for(var a=0;a<i.length;a++)t[i[a]]=n[a];return e.apply(this,arguments)}}(i,e,"baseUrl","next","params");function _(i){var a="route"===i?null:i;if(d&&(e.url=e.url.slice(1),d=!1),0!==u.length&&(e.baseUrl=y,e.url=p+u+e.url.slice(p.length),u=""),"router"!==a)if(c>=x.length)setImmediate(w,a);else{if(++f>100)return setImmediate(_,i);var o,k,S,E=function(e){try{return l(e).pathname}catch(e){return}}(e);if(null==E)return w(a);for(;!0!==k&&c<x.length;)if(k=g(o=x[c++],E),S=o.route,"boolean"!=typeof k&&(a=a||k),!0===k&&S)if(a)k=!1;else{var j=e.method,O=S._handles_method(j);O||"OPTIONS"!==j||v(h,S._options()),O||"HEAD"===j||(k=!1)}if(!0!==k)return w(a);S&&(e.route=S),e.params=n.mergeParams?function(e,t){if("object"!=typeof t||!t)return e;var i=r({},t);if(!(0 in e)||!(0 in t))return r(i,e);for(var n=0,a=0;n in e;)n++;for(;a in t;)a++;for(n--;n>=0;n--)e[n+a]=e[n],n<a&&delete e[n];return r(i,e)}(o.params,b):o.params;var C=o.path;n.process_params(o,m,e,t,(function(i){return i?_(a||i):S?o.handle_request(e,t,_):void function(i,n,a,o){if(0!==a.length){if(a!==o.slice(0,a.length))return void _(n);var r=o[a.length];if(r&&"/"!==r&&"."!==r)return _(n);s("trim prefix (%s) from url %s",a,e.url),u=a,e.url=p+e.url.slice(p.length+u.length),p||"/"===e.url[0]||(e.url="/"+e.url,d=!0),e.baseUrl=y+("/"===u[u.length-1]?u.substring(0,u.length-1):u)}s("%s %s : %s",i.name,a,e.originalUrl),n?i.handle_error(n,e,t,_):i.handle_request(e,t,_),f=0}(o,a,C,E)}))}else setImmediate(w,null)}e.next=_,"OPTIONS"===e.method&&(a=w,o=function(e,i){if(i||0===h.length)return e(i);!function(e,t,i){try{var n=t.join(",");e.set("Allow",n),e.send(n)}catch(e){i(e)}}(t,h,e)},w=function(){var e=new Array(arguments.length+1);e[0]=a;for(var t=0,i=arguments.length;t<i;t++)e[t+1]=arguments[t];o.apply(this,e)}),e.baseUrl=y,e.originalUrl=e.originalUrl||e.url,_()},h.process_params=function(e,t,i,n,a){var o=this.params,r=e.keys;if(!r||0===r.length)return a();var s,c,p,l,u,d=0,f=0;function m(e){return e?a(e):d>=r.length?a():(f=0,c=r[d++],s=c.name,p=i.params[s],l=o[s],u=t[s],void 0!==p&&l?u&&(u.match===p||u.error&&"route"!==u.error)?(i.params[s]=u.value,m(u.error)):(t[s]=u={error:null,match:p,value:p},void h()):m())}function h(e){var t=l[f++];if(u.value=i.params[c.name],e)return u.error=e,void m(e);if(!t)return m();try{t(i,n,h,p,c.name)}catch(e){h(e)}}m()},h.use=function(e){var t=0,i="/";if("function"!=typeof e){for(var n=e;Array.isArray(n)&&0!==n.length;)n=n[0];"function"!=typeof n&&(t=1,i=e)}var o=p(f.call(arguments,t));if(0===o.length)throw new TypeError("Router.use() requires a middleware function");for(var r=0;r<o.length;r++){if("function"!=typeof(e=o[r]))throw new TypeError("Router.use() requires a middleware function but got a "+x(e));s("use %o %s",i,e.name||"<anonymous>");var c=new a(i,{sensitive:this.caseSensitive,strict:!1,end:!1},e);c.route=void 0,this.stack.push(c)}return this},h.route=function(e){var t=new n(e),i=new a(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},t.dispatch.bind(t));return i.route=t,this.stack.push(i),t},o.concat("all").forEach((function(e){h[e]=function(t){var i=this.route(t);return i[e].apply(i,f.call(arguments,1)),this}}))},3471:(e,t,i)=>{"use strict";var n=i(9864),a=i(6352)("express:router:layer"),o=Object.prototype.hasOwnProperty;function r(e,t,i){if(!(this instanceof r))return new r(e,t,i);a("new %o",e);var o=t||{};this.handle=i,this.name=i.name||"<anonymous>",this.params=void 0,this.path=void 0,this.regexp=n(e,this.keys=[],o),this.regexp.fast_star="*"===e,this.regexp.fast_slash="/"===e&&!1===o.end}function s(e){if("string"!=typeof e||0===e.length)return e;try{return decodeURIComponent(e)}catch(t){throw t instanceof URIError&&(t.message="Failed to decode param '"+e+"'",t.status=t.statusCode=400),t}}e.exports=r,r.prototype.handle_error=function(e,t,i,n){var a=this.handle;if(4!==a.length)return n(e);try{a(e,t,i,n)}catch(e){n(e)}},r.prototype.handle_request=function(e,t,i){var n=this.handle;if(n.length>3)return i();try{n(e,t,i)}catch(e){i(e)}},r.prototype.match=function(e){var t;if(null!=e){if(this.regexp.fast_slash)return this.params={},this.path="",!0;if(this.regexp.fast_star)return this.params={0:s(e)},this.path=e,!0;t=this.regexp.exec(e)}if(!t)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=t[0];for(var i=this.keys,n=this.params,a=1;a<t.length;a++){var r=i[a-1].name,c=s(t[a]);void 0===c&&o.call(n,r)||(n[r]=c)}return!0}},6368:(e,t,i)=>{"use strict";var n=i(6352)("express:router:route"),a=i(7040),o=i(3471),r=i(5210),s=Array.prototype.slice,c=Object.prototype.toString;function p(e){this.path=e,this.stack=[],n("new %o",e),this.methods={}}e.exports=p,p.prototype._handles_method=function(e){if(this.methods._all)return!0;var t=e.toLowerCase();return"head"!==t||this.methods.head||(t="get"),Boolean(this.methods[t])},p.prototype._options=function(){var e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push("head");for(var t=0;t<e.length;t++)e[t]=e[t].toUpperCase();return e},p.prototype.dispatch=function(e,t,i){var n=0,a=this.stack,o=0;if(0===a.length)return i();var r=e.method.toLowerCase();"head"!==r||this.methods.head||(r="get"),e.route=this,function s(c){if(c&&"route"===c)return i();if(c&&"router"===c)return i(c);var p=a[n++];return p?++o>100?setImmediate(s,c):p.method&&p.method!==r?s(c):(c?p.handle_error(c,e,t,s):p.handle_request(e,t,s),void(o=0)):i(c)}()},p.prototype.all=function(){for(var e=a(s.call(arguments)),t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i){var n=c.call(i),r="Route.all() requires a callback function but got a "+n;throw new TypeError(r)}var p=o("/",{},i);p.method=void 0,this.methods._all=!0,this.stack.push(p)}return this},r.forEach((function(e){p.prototype[e]=function(){for(var t=a(s.call(arguments)),i=0;i<t.length;i++){var r=t[i];if("function"!=typeof r){var p=c.call(r),l="Route."+e+"() requires a callback function but got a "+p;throw new Error(l)}n("%s %o",e,this.path);var u=o("/",{},r);u.method=e,this.methods[e]=!0,this.stack.push(u)}return this}}))},4385:(e,t,i)=>{"use strict";var n=i(8467).Buffer,a=i(9697),o=i(363),r=i(6282)("express"),s=i(7040),c=i(8147).mime,p=i(823),l=i(903),u=i(1895),d=i(3477);function f(e){return function(t,i){var a=n.isBuffer(t)?t:n.from(t,i);return p(a,e)}}function m(e){return u.parse(e,{allowPrototypes:!0})}function h(){return{}}t.etag=f({weak:!1}),t.wetag=f({weak:!0}),t.isAbsolute=function(e){return"/"===e[0]||":"===e[1]&&("\\"===e[2]||"/"===e[2])||"\\\\"===e.substring(0,2)||void 0},t.flatten=r.function(s,"utils.flatten: use array-flatten npm module instead"),t.normalizeType=function(e){return~e.indexOf("/")?function(e,t){for(var i=e.split(/ *; */),n={value:i[0],quality:1,params:{},originalIndex:void 0},a=1;a<i.length;++a){var o=i[a].split(/ *= */);"q"===o[0]?n.quality=parseFloat(o[1]):n.params[o[0]]=o[1]}return n}(e):{value:c.lookup(e),params:{}}},t.normalizeTypes=function(e){for(var i=[],n=0;n<e.length;++n)i.push(t.normalizeType(e[n]));return i},t.contentDisposition=r.function(a,"utils.contentDisposition: use content-disposition npm module instead"),t.compileETag=function(e){var i;if("function"==typeof e)return e;switch(e){case!0:case"weak":i=t.wetag;break;case!1:break;case"strong":i=t.etag;break;default:throw new TypeError("unknown value for etag function: "+e)}return i},t.compileQueryParser=function(e){var t;if("function"==typeof e)return e;switch(e){case!0:case"simple":t=d.parse;break;case!1:t=h;break;case"extended":t=m;break;default:throw new TypeError("unknown value for query parser function: "+e)}return t},t.compileTrust=function(e){return"function"==typeof e?e:!0===e?function(){return!0}:"number"==typeof e?function(t,i){return i<e}:("string"==typeof e&&(e=e.split(",").map((function(e){return e.trim()}))),l.compile(e||[]))},t.setCharset=function(e,t){if(!e||!t)return e;var i=o.parse(e);return i.parameters.charset=t,o.format(i)}},3409:(e,t,i)=>{"use strict";var n=i(6352)("express:view"),a=i(1017),o=i(7147),r=a.dirname,s=a.basename,c=a.extname,p=a.join,l=a.resolve;function u(e,t){var a=t||{};if(this.defaultEngine=a.defaultEngine,this.ext=c(e),this.name=e,this.root=a.root,!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");var o=e;if(this.ext||(this.ext="."!==this.defaultEngine[0]?"."+this.defaultEngine:this.defaultEngine,o+=this.ext),!a.engines[this.ext]){var r=this.ext.slice(1);n('require "%s"',r);var s=i(9476)(r).__express;if("function"!=typeof s)throw new Error('Module "'+r+'" does not provide a view engine.');a.engines[this.ext]=s}this.engine=a.engines[this.ext],this.path=this.lookup(o)}function d(e){n('stat "%s"',e);try{return o.statSync(e)}catch(e){return}}e.exports=u,u.prototype.lookup=function(e){var t,i=[].concat(this.root);n('lookup "%s"',e);for(var a=0;a<i.length&&!t;a++){var o=i[a],c=l(o,e),p=r(c),u=s(c);t=this.resolve(p,u)}return t},u.prototype.render=function(e,t){n('render "%s"',this.path),this.engine(this.path,e,t)},u.prototype.resolve=function(e,t){var i=this.ext,n=p(e,t),a=d(n);return a&&a.isFile()||(a=d(n=p(e,s(t,i),"index"+i)))&&a.isFile()?n:void 0}},9476:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=9476,e.exports=t},4492:(e,t,i)=>{"use strict";e.exports=i(9590)},5857:(e,t,i)=>{"use strict";var n=i(2888),a=i(124),o=i(5210),r=i(7527),s=i(1614),c=i(6352)("express:application"),p=i(6295),l=i(3685),u=i(1633).compileETag,d=i(1633).compileQueryParser,f=i(1633).compileTrust,m=i(6282)("express"),h=i(7040),v=i(9251),x=i(1017).resolve,g=i(6634),b=Object.prototype.hasOwnProperty,y=Array.prototype.slice,w=e.exports={},_="@@symbol:trust_proxy_default";function k(e){"test"!==this.get("env")&&console.error(e.stack||e.toString())}w.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()},w.defaultConfiguration=function(){var e="production";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,_,{configurable:!0,value:!0}),c("booting in %s mode",e),this.on("mount",(function(e){!0===this.settings[_]&&"function"==typeof e.settings["trust proxy fn"]&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),g(this.request,e.request),g(this.response,e.response),g(this.engines,e.engines),g(this.settings,e.settings)})),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",p),this.set("views",x("views")),this.set("jsonp callback name","callback"),this.enable("view cache"),Object.defineProperty(this,"router",{get:function(){throw new Error("'app.router' is deprecated!\nPlease see the 3.x to 4.x migration guide for details on how to update your app.")}})},w.lazyrouter=function(){this._router||(this._router=new a({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(s(this.get("query parser fn"))),this._router.use(r.init(this)))},w.handle=function(e,t,i){var a=this._router,o=i||n(e,t,{env:this.get("env"),onerror:k.bind(this)});if(!a)return c("no routes defined on app"),void o();a.handle(e,t,o)},w.use=function(e){var t=0,i="/";if("function"!=typeof e){for(var n=e;Array.isArray(n)&&0!==n.length;)n=n[0];"function"!=typeof n&&(t=1,i=e)}var a=h(y.call(arguments,t));if(0===a.length)throw new TypeError("app.use() requires a middleware function");this.lazyrouter();var o=this._router;return a.forEach((function(e){if(!e||!e.handle||!e.set)return o.use(i,e);c(".use app under %s",i),e.mountpath=i,e.parent=this,o.use(i,(function(t,i,n){var a=t.app;e.handle(t,i,(function(e){g(t,a.request),g(i,a.response),n(e)}))})),e.emit("mount",this)}),this),this},w.route=function(e){return this.lazyrouter(),this._router.route(e)},w.engine=function(e,t){if("function"!=typeof t)throw new Error("callback function required");var i="."!==e[0]?"."+e:e;return this.engines[i]=t,this},w.param=function(e,t){if(this.lazyrouter(),Array.isArray(e)){for(var i=0;i<e.length;i++)this.param(e[i],t);return this}return this._router.param(e,t),this},w.set=function(e,t){if(1!==arguments.length){switch(c('set "%s" to %o',e,t),this.settings[e]=t,e){case"etag":this.set("etag fn",u(t));break;case"query parser":this.set("query parser fn",d(t));break;case"trust proxy":this.set("trust proxy fn",f(t)),Object.defineProperty(this.settings,_,{configurable:!0,value:!1})}return this}for(var i=this.settings;i&&i!==Object.prototype;){if(b.call(i,e))return i[e];i=Object.getPrototypeOf(i)}},w.path=function(){return this.parent?this.parent.path()+this.mountpath:""},w.enabled=function(e){return Boolean(this.set(e))},w.disabled=function(e){return!this.set(e)},w.enable=function(e){return this.set(e,!0)},w.disable=function(e){return this.set(e,!1)},o.forEach((function(e){w[e]=function(t){if("get"===e&&1===arguments.length)return this.set(t);this.lazyrouter();var i=this._router.route(t);return i[e].apply(i,y.call(arguments,1)),this}})),w.all=function(e){this.lazyrouter();for(var t=this._router.route(e),i=y.call(arguments,1),n=0;n<o.length;n++)t[o[n]].apply(t,i);return this},w.del=m.function(w.delete,"app.del: Use app.delete instead"),w.render=function(e,t,i){var n,a=this.cache,o=i,r=this.engines,s=t,c={};if("function"==typeof t&&(o=t,s={}),v(c,this.locals),s._locals&&v(c,s._locals),v(c,s),null==c.cache&&(c.cache=this.enabled("view cache")),c.cache&&(n=a[e]),!n){if(!(n=new(this.get("view"))(e,{defaultEngine:this.get("view engine"),root:this.get("views"),engines:r})).path){var p=Array.isArray(n.root)&&n.root.length>1?'directories "'+n.root.slice(0,-1).join('", "')+'" or "'+n.root[n.root.length-1]+'"':'directory "'+n.root+'"',l=new Error('Failed to lookup view "'+e+'" in views '+p);return l.view=n,o(l)}c.cache&&(a[e]=n)}!function(e,t,i){try{e.render(t,i)}catch(e){i(e)}}(n,c,o)},w.listen=function(){var e=l.createServer(this);return e.listen.apply(e,arguments)}},9590:(e,t,i)=>{"use strict";var n=i(2973),a=i(2361).EventEmitter,o=i(1349),r=i(5857),s=i(5977),c=i(124),p=i(5045),l=i(2872);(t=e.exports=function(){var e=function(t,i,n){e.handle(t,i,n)};return o(e,a.prototype,!1),o(e,r,!1),e.request=Object.create(p,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(l,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}).application=r,t.request=p,t.response=l,t.Route=s,t.Router=c,t.json=n.json,t.query=i(1614),t.raw=n.raw,t.static=i(7548),t.text=n.text,t.urlencoded=n.urlencoded,["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"].forEach((function(e){Object.defineProperty(t,e,{get:function(){throw new Error("Most middleware (like "+e+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})}))},7527:(e,t,i)=>{"use strict";var n=i(6634);t.init=function(e){return function(t,i,a){e.enabled("x-powered-by")&&i.setHeader("X-Powered-By","Express"),t.res=i,i.req=t,t.next=a,n(t,e.request),n(i,e.response),i.locals=i.locals||Object.create(null),a()}}},1614:(e,t,i)=>{"use strict";var n=i(9251),a=i(9110),o=i(1895);e.exports=function(e){var t=n({},e),i=o.parse;return"function"==typeof e&&(i=e,t=void 0),void 0!==t&&void 0===t.allowPrototypes&&(t.allowPrototypes=!0),function(e,n,o){if(!e.query){var r=a(e).query;e.query=i(r,t)}o()}}},5045:(e,t,i)=>{"use strict";var n=i(4070),a=i(6282)("express"),o=i(1808).isIP,r=i(4654),s=i(3685),c=i(8116),p=i(2205),l=i(9110),u=i(903),d=Object.create(s.IncomingMessage.prototype);function f(e,t,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:i})}e.exports=d,d.get=d.header=function(e){if(!e)throw new TypeError("name argument is required to req.get");if("string"!=typeof e)throw new TypeError("name must be a string to req.get");var t=e.toLowerCase();switch(t){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[t]}},d.accepts=function(){var e=n(this);return e.types.apply(e,arguments)},d.acceptsEncodings=function(){var e=n(this);return e.encodings.apply(e,arguments)},d.acceptsEncoding=a.function(d.acceptsEncodings,"req.acceptsEncoding: Use acceptsEncodings instead"),d.acceptsCharsets=function(){var e=n(this);return e.charsets.apply(e,arguments)},d.acceptsCharset=a.function(d.acceptsCharsets,"req.acceptsCharset: Use acceptsCharsets instead"),d.acceptsLanguages=function(){var e=n(this);return e.languages.apply(e,arguments)},d.acceptsLanguage=a.function(d.acceptsLanguages,"req.acceptsLanguage: Use acceptsLanguages instead"),d.range=function(e,t){var i=this.get("Range");if(i)return p(e,i,t)},d.param=function(e,t){var i=this.params||{},n=this.body||{},o=this.query||{},r=1===arguments.length?"name":"name, default";return a("req.param("+r+"): Use req.params, req.body, or req.query instead"),null!=i[e]&&i.hasOwnProperty(e)?i[e]:null!=n[e]?n[e]:null!=o[e]?o[e]:t},d.is=function(e){var t=e;if(!Array.isArray(e)){t=new Array(arguments.length);for(var i=0;i<t.length;i++)t[i]=arguments[i]}return r(this,t)},f(d,"protocol",(function(){var e=this.connection.encrypted?"https":"http";if(!this.app.get("trust proxy fn")(this.connection.remoteAddress,0))return e;var t=this.get("X-Forwarded-Proto")||e,i=t.indexOf(",");return-1!==i?t.substring(0,i).trim():t.trim()})),f(d,"secure",(function(){return"https"===this.protocol})),f(d,"ip",(function(){var e=this.app.get("trust proxy fn");return u(this,e)})),f(d,"ips",(function(){var e=this.app.get("trust proxy fn"),t=u.all(this,e);return t.reverse().pop(),t})),f(d,"subdomains",(function(){var e=this.hostname;if(!e)return[];var t=this.app.get("subdomain offset");return(o(e)?[e]:e.split(".").reverse()).slice(t)})),f(d,"path",(function(){return l(this).pathname})),f(d,"hostname",(function(){var e=this.app.get("trust proxy fn"),t=this.get("X-Forwarded-Host");if(t&&e(this.connection.remoteAddress,0)?-1!==t.indexOf(",")&&(t=t.substring(0,t.indexOf(",")).trimRight()):t=this.get("Host"),t){var i="["===t[0]?t.indexOf("]")+1:0,n=t.indexOf(":",i);return-1!==n?t.substring(0,n):t}})),f(d,"host",a.function((function(){return this.hostname}),"req.host: Use req.hostname instead")),f(d,"fresh",(function(){var e=this.method,t=this.res,i=t.statusCode;return("GET"===e||"HEAD"===e)&&(i>=200&&i<300||304===i)&&c(this.headers,{etag:t.get("ETag"),"last-modified":t.get("Last-Modified")})})),f(d,"stale",(function(){return!this.fresh})),f(d,"xhr",(function(){return"xmlhttprequest"===(this.get("X-Requested-With")||"").toLowerCase()}))},2872:(e,t,i)=>{"use strict";var n=i(8467).Buffer,a=i(9697),o=i(3254),r=i(6282)("express"),s=i(6012),c=i(7966),p=i(3685),l=i(1633).isAbsolute,u=i(5430),d=i(1017),f=i(2480),m=i(9251),h=i(9647).sign,v=i(1633).normalizeType,x=i(1633).normalizeTypes,g=i(1633).setCharset,b=i(8464),y=i(8147),w=d.extname,_=y.mime,k=d.resolve,S=i(3777),E=Object.create(p.ServerResponse.prototype);e.exports=E;var j=/;\s*charset\s*=/;function O(e,t,i,n){var a,o=!1;function r(){if(!o){o=!0;var e=new Error("Request aborted");e.code="ECONNABORTED",n(e)}}function s(e){o||(o=!0,n(e))}t.on("directory",(function(){if(!o){o=!0;var e=new Error("EISDIR, read");e.code="EISDIR",n(e)}})),t.on("end",(function(){o||(o=!0,n())})),t.on("error",s),t.on("file",(function(){a=!1})),t.on("stream",(function(){a=!0})),u(e,(function(e){return e&&"ECONNRESET"===e.code?r():e?s(e):void(o||setImmediate((function(){!1===a||o?o||(o=!0,n()):r()})))})),i.headers&&t.on("headers",(function(e){for(var t=i.headers,n=Object.keys(t),a=0;a<n.length;a++){var o=n[a];e.setHeader(o,t[o])}})),t.pipe(e)}function C(e,t,i,n){var a=t||i?JSON.stringify(e,t,i):JSON.stringify(e);return n&&"string"==typeof a&&(a=a.replace(/[<>&]/g,(function(e){switch(e.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return e}}))),a}E.status=function(e){return("string"==typeof e||Math.floor(e)!==e)&&e>99&&e<1e3&&r("res.status("+JSON.stringify(e)+"): use res.status("+Math.floor(e)+") instead"),this.statusCode=e,this},E.links=function(e){var t=this.get("Link")||"";return t&&(t+=", "),this.set("Link",t+Object.keys(e).map((function(t){return"<"+e[t]+'>; rel="'+t+'"'})).join(", "))},E.send=function(e){var t,i,a=e,o=this.req,s=this.app;switch(2===arguments.length&&("number"!=typeof arguments[0]&&"number"==typeof arguments[1]?(r("res.send(body, status): Use res.status(status).send(body) instead"),this.statusCode=arguments[1]):(r("res.send(status, body): Use res.status(status).send(body) instead"),this.statusCode=arguments[0],a=arguments[1])),"number"==typeof a&&1===arguments.length&&(this.get("Content-Type")||this.type("txt"),r("res.send(status): Use res.sendStatus(status) instead"),this.statusCode=a,a=f.message[a]),typeof a){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(null===a)a="";else{if(!n.isBuffer(a))return this.json(a);this.get("Content-Type")||this.type("bin")}}"string"==typeof a&&(t="utf8","string"==typeof(i=this.get("Content-Type"))&&this.set("Content-Type",g(i,"utf-8")));var c,p,l=s.get("etag fn"),u=!this.get("ETag")&&"function"==typeof l;return void 0!==a&&(n.isBuffer(a)?c=a.length:!u&&a.length<1e3?c=n.byteLength(a,t):(a=n.from(a,t),t=void 0,c=a.length),this.set("Content-Length",c)),u&&void 0!==c&&(p=l(a,t))&&this.set("ETag",p),o.fresh&&(this.statusCode=304),204!==this.statusCode&&304!==this.statusCode||(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),a=""),205===this.statusCode&&(this.set("Content-Length","0"),this.removeHeader("Transfer-Encoding"),a=""),"HEAD"===o.method?this.end():this.end(a,t),this},E.json=function(e){var t=e;2===arguments.length&&("number"==typeof arguments[1]?(r("res.json(obj, status): Use res.status(status).json(obj) instead"),this.statusCode=arguments[1]):(r("res.json(status, obj): Use res.status(status).json(obj) instead"),this.statusCode=arguments[0],t=arguments[1]));var i=this.app,n=i.get("json escape"),a=i.get("json replacer"),o=i.get("json spaces"),s=C(t,a,o,n);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(s)},E.jsonp=function(e){var t=e;2===arguments.length&&("number"==typeof arguments[1]?(r("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[1]):(r("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[0],t=arguments[1]));var i=this.app,n=i.get("json escape"),a=i.get("json replacer"),o=i.get("json spaces"),s=C(t,a,o,n),c=this.req.query[i.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(c)&&(c=c[0]),"string"==typeof c&&0!==c.length&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),c=c.replace(/[^\[\]\w$.]/g,""),void 0===s?s="":"string"==typeof s&&(s=s.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),s="/**/ typeof "+c+" === 'function' && "+c+"("+s+");"),this.send(s)},E.sendStatus=function(e){var t=f.message[e]||String(e);return this.statusCode=e,this.type("txt"),this.send(t)},E.sendFile=function(e,t,i){var n=i,a=this.req,o=a.next,r=t||{};if(!e)throw new TypeError("path argument is required to res.sendFile");if("string"!=typeof e)throw new TypeError("path must be a string to res.sendFile");if("function"==typeof t&&(n=t,r={}),!r.root&&!l(e))throw new TypeError("path must be absolute or specify root to res.sendFile");var s=encodeURI(e);O(this,y(a,s,r),r,(function(e){return n?n(e):e&&"EISDIR"===e.code?o():void(e&&"ECONNABORTED"!==e.code&&"write"!==e.syscall&&o(e))}))},E.sendfile=function(e,t,i){var n=i,a=this.req,o=a.next,r=t||{};"function"==typeof t&&(n=t,r={}),O(this,y(a,e,r),r,(function(e){return n?n(e):e&&"EISDIR"===e.code?o():void(e&&"ECONNABORTED"!==e.code&&"write"!==e.syscall&&o(e))}))},E.sendfile=r.function(E.sendfile,"res.sendfile: Use res.sendFile instead"),E.download=function(e,t,i,n){var o=n,r=t,s=i||null;"function"==typeof t?(o=t,r=null,s=null):"function"==typeof i&&(o=i,s=null),"object"!=typeof t||"function"!=typeof i&&void 0!==i||(r=null,s=t);var c={"Content-Disposition":a(r||e)};if(s&&s.headers)for(var p=Object.keys(s.headers),l=0;l<p.length;l++){var u=p[l];"content-disposition"!==u.toLowerCase()&&(c[u]=s.headers[u])}(s=Object.create(s)).headers=c;var d=s.root?e:k(e);return this.sendFile(d,s,o)},E.contentType=E.type=function(e){var t=-1===e.indexOf("/")?_.lookup(e):e;return this.set("Content-Type",t)},E.format=function(e){var t=this.req,i=t.next,n=Object.keys(e).filter((function(e){return"default"!==e})),a=n.length>0&&t.accepts(n);return this.vary("Accept"),a?(this.set("Content-Type",v(a).value),e[a](t,this,i)):e.default?e.default(t,this,i):i(o(406,{types:x(n).map((function(e){return e.value}))})),this},E.attachment=function(e){return e&&this.type(w(e)),this.set("Content-Disposition",a(e)),this},E.append=function(e,t){var i=this.get(e),n=t;return i&&(n=Array.isArray(i)?i.concat(t):Array.isArray(t)?[i].concat(t):[i,t]),this.set(e,n)},E.set=E.header=function(e,t){if(2===arguments.length){var i=Array.isArray(t)?t.map(String):String(t);if("content-type"===e.toLowerCase()){if(Array.isArray(i))throw new TypeError("Content-Type cannot be set to an Array");if(!j.test(i)){var n=_.charsets.lookup(i.split(";")[0]);n&&(i+="; charset="+n.toLowerCase())}}this.setHeader(e,i)}else for(var a in e)this.set(a,e[a]);return this},E.get=function(e){return this.getHeader(e)},E.clearCookie=function(e,t){var i=m({expires:new Date(1),path:"/"},t);return this.cookie(e,"",i)},E.cookie=function(e,t,i){var n=m({},i),a=this.req.secret,o=n.signed;if(o&&!a)throw new Error('cookieParser("secret") required for signed cookies');var r="object"==typeof t?"j:"+JSON.stringify(t):String(t);if(o&&(r="s:"+h(r,a)),null!=n.maxAge){var s=n.maxAge-0;isNaN(s)||(n.expires=new Date(Date.now()+s),n.maxAge=Math.floor(s/1e3))}return null==n.path&&(n.path="/"),this.append("Set-Cookie",b.serialize(e,String(r),n)),this},E.location=function(e){var t=e;return"back"===e&&(t=this.req.get("Referrer")||"/"),this.set("Location",s(t))},E.redirect=function(e){var t,i=e,a=302;2===arguments.length&&("number"==typeof arguments[0]?(a=arguments[0],i=arguments[1]):(r("res.redirect(url, status): Use res.redirect(status, url) instead"),a=arguments[1])),i=this.location(i).get("Location"),this.format({text:function(){t=f.message[a]+". Redirecting to "+i},html:function(){var e=c(i);t="<p>"+f.message[a]+'. Redirecting to <a href="'+e+'">'+e+"</a></p>"},default:function(){t=""}}),this.statusCode=a,this.set("Content-Length",n.byteLength(t)),"HEAD"===this.req.method?this.end():this.end(t)},E.vary=function(e){return!e||Array.isArray(e)&&!e.length?(r("res.vary(): Provide a field name"),this):(S(this,e),this)},E.render=function(e,t,i){var n=this.req.app,a=i,o=t||{},r=this.req,s=this;"function"==typeof t&&(a=t,o={}),o._locals=s.locals,a=a||function(e,t){if(e)return r.next(e);s.send(t)},n.render(e,o,a)}},124:(e,t,i)=>{"use strict";var n=i(5977),a=i(1052),o=i(5210),r=i(9251),s=i(6352)("express:router"),c=i(6282)("express"),p=i(7040),l=i(9110),u=i(6634),d=/^\[object (\S+)\]$/,f=Array.prototype.slice,m=Object.prototype.toString,h=e.exports=function(e){var t=e||{};function i(e,t,n){i.handle(e,t,n)}return u(i,h),i.params={},i._params=[],i.caseSensitive=t.caseSensitive,i.mergeParams=t.mergeParams,i.strict=t.strict,i.stack=[],i};function v(e,t){for(var i=0;i<t.length;i++){var n=t[i];-1===e.indexOf(n)&&e.push(n)}}function x(e){var t=typeof e;return"object"!==t?t:m.call(e).replace(d,"$1")}function g(e,t){try{return e.match(t)}catch(e){return e}}h.param=function(e,t){if("function"==typeof e)return c("router.param(fn): Refactor to use path params"),void this._params.push(e);var i,n=this._params,a=n.length;":"===e[0]&&(c("router.param("+JSON.stringify(e)+", fn): Use router.param("+JSON.stringify(e.slice(1))+", fn) instead"),e=e.slice(1));for(var o=0;o<a;++o)(i=n[o](e,t))&&(t=i);if("function"!=typeof t)throw new Error("invalid param() call for "+e+", got "+t);return(this.params[e]=this.params[e]||[]).push(t),this},h.handle=function(e,t,i){var n=this;s("dispatching %s %s",e.method,e.url);var a,o,c=0,p=function(e){if("string"==typeof e&&0!==e.length&&"/"!==e[0]){var t=e.indexOf("?"),i=-1!==t?t:e.length,n=e.slice(0,i).indexOf("://");return-1!==n?e.substring(0,e.indexOf("/",3+n)):void 0}}(e.url)||"",u="",d=!1,f=0,m={},h=[],x=n.stack,b=e.params,y=e.baseUrl||"",w=function(e,t){for(var i=new Array(arguments.length-2),n=new Array(arguments.length-2),a=0;a<i.length;a++)i[a]=arguments[a+2],n[a]=t[i[a]];return function(){for(var a=0;a<i.length;a++)t[i[a]]=n[a];return e.apply(this,arguments)}}(i,e,"baseUrl","next","params");function _(i){var a="route"===i?null:i;if(d&&(e.url=e.url.slice(1),d=!1),0!==u.length&&(e.baseUrl=y,e.url=p+u+e.url.slice(p.length),u=""),"router"!==a)if(c>=x.length)setImmediate(w,a);else{if(++f>100)return setImmediate(_,i);var o,k,S,E=function(e){try{return l(e).pathname}catch(e){return}}(e);if(null==E)return w(a);for(;!0!==k&&c<x.length;)if(k=g(o=x[c++],E),S=o.route,"boolean"!=typeof k&&(a=a||k),!0===k&&S)if(a)k=!1;else{var j=e.method,O=S._handles_method(j);O||"OPTIONS"!==j||v(h,S._options()),O||"HEAD"===j||(k=!1)}if(!0!==k)return w(a);S&&(e.route=S),e.params=n.mergeParams?function(e,t){if("object"!=typeof t||!t)return e;var i=r({},t);if(!(0 in e)||!(0 in t))return r(i,e);for(var n=0,a=0;n in e;)n++;for(;a in t;)a++;for(n--;n>=0;n--)e[n+a]=e[n],n<a&&delete e[n];return r(i,e)}(o.params,b):o.params;var C=o.path;n.process_params(o,m,e,t,(function(i){i?_(a||i):S?o.handle_request(e,t,_):function(i,n,a,o){if(0!==a.length){if(a!==o.slice(0,a.length))return void _(n);var r=o[a.length];if(r&&"/"!==r&&"."!==r)return _(n);s("trim prefix (%s) from url %s",a,e.url),u=a,e.url=p+e.url.slice(p.length+u.length),p||"/"===e.url[0]||(e.url="/"+e.url,d=!0),e.baseUrl=y+("/"===u[u.length-1]?u.substring(0,u.length-1):u)}s("%s %s : %s",i.name,a,e.originalUrl),n?i.handle_error(n,e,t,_):i.handle_request(e,t,_)}(o,a,C,E),f=0}))}else setImmediate(w,null)}e.next=_,"OPTIONS"===e.method&&(a=w,o=function(e,i){if(i||0===h.length)return e(i);!function(e,t,i){try{var n=t.join(",");e.set("Allow",n),e.send(n)}catch(e){i(e)}}(t,h,e)},w=function(){var e=new Array(arguments.length+1);e[0]=a;for(var t=0,i=arguments.length;t<i;t++)e[t+1]=arguments[t];o.apply(this,e)}),e.baseUrl=y,e.originalUrl=e.originalUrl||e.url,_()},h.process_params=function(e,t,i,n,a){var o=this.params,r=e.keys;if(!r||0===r.length)return a();var s,c,p,l,u,d=0,f=0;function m(e){return e?a(e):d>=r.length?a():(f=0,c=r[d++],s=c.name,p=i.params[s],l=o[s],u=t[s],void 0!==p&&l?u&&(u.match===p||u.error&&"route"!==u.error)?(i.params[s]=u.value,m(u.error)):(t[s]=u={error:null,match:p,value:p},void h()):m())}function h(e){var t=l[f++];if(u.value=i.params[c.name],e)return u.error=e,void m(e);if(!t)return m();try{t(i,n,h,p,c.name)}catch(e){h(e)}}m()},h.use=function(e){var t=0,i="/";if("function"!=typeof e){for(var n=e;Array.isArray(n)&&0!==n.length;)n=n[0];"function"!=typeof n&&(t=1,i=e)}var o=p(f.call(arguments,t));if(0===o.length)throw new TypeError("Router.use() requires a middleware function");for(var r=0;r<o.length;r++){if("function"!=typeof(e=o[r]))throw new TypeError("Router.use() requires a middleware function but got a "+x(e));s("use %o %s",i,e.name||"<anonymous>");var c=new a(i,{sensitive:this.caseSensitive,strict:!1,end:!1},e);c.route=void 0,this.stack.push(c)}return this},h.route=function(e){var t=new n(e),i=new a(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},t.dispatch.bind(t));return i.route=t,this.stack.push(i),t},o.concat("all").forEach((function(e){h[e]=function(t){var i=this.route(t);return i[e].apply(i,f.call(arguments,1)),this}}))},1052:(e,t,i)=>{"use strict";var n=i(9864),a=i(6352)("express:router:layer"),o=Object.prototype.hasOwnProperty;function r(e,t,i){if(!(this instanceof r))return new r(e,t,i);a("new %o",e);var o=t||{};this.handle=i,this.name=i.name||"<anonymous>",this.params=void 0,this.path=void 0,this.regexp=n(e,this.keys=[],o),this.regexp.fast_star="*"===e,this.regexp.fast_slash="/"===e&&!1===o.end}function s(e){if("string"!=typeof e||0===e.length)return e;try{return decodeURIComponent(e)}catch(t){throw t instanceof URIError&&(t.message="Failed to decode param '"+e+"'",t.status=t.statusCode=400),t}}e.exports=r,r.prototype.handle_error=function(e,t,i,n){var a=this.handle;if(4!==a.length)return n(e);try{a(e,t,i,n)}catch(e){n(e)}},r.prototype.handle_request=function(e,t,i){var n=this.handle;if(n.length>3)return i();try{n(e,t,i)}catch(e){i(e)}},r.prototype.match=function(e){var t;if(null!=e){if(this.regexp.fast_slash)return this.params={},this.path="",!0;if(this.regexp.fast_star)return this.params={0:s(e)},this.path=e,!0;t=this.regexp.exec(e)}if(!t)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=t[0];for(var i=this.keys,n=this.params,a=1;a<t.length;a++){var r=i[a-1].name,c=s(t[a]);void 0===c&&o.call(n,r)||(n[r]=c)}return!0}},5977:(e,t,i)=>{"use strict";var n=i(6352)("express:router:route"),a=i(7040),o=i(1052),r=i(5210),s=Array.prototype.slice,c=Object.prototype.toString;function p(e){this.path=e,this.stack=[],n("new %o",e),this.methods={}}e.exports=p,p.prototype._handles_method=function(e){if(this.methods._all)return!0;var t=e.toLowerCase();return"head"!==t||this.methods.head||(t="get"),Boolean(this.methods[t])},p.prototype._options=function(){var e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push("head");for(var t=0;t<e.length;t++)e[t]=e[t].toUpperCase();return e},p.prototype.dispatch=function(e,t,i){var n=0,a=this.stack,o=0;if(0===a.length)return i();var r=e.method.toLowerCase();"head"!==r||this.methods.head||(r="get"),e.route=this,function s(c){if(c&&"route"===c)return i();if(c&&"router"===c)return i(c);var p=a[n++];return p?++o>100?setImmediate(s,c):p.method&&p.method!==r?s(c):(c?p.handle_error(c,e,t,s):p.handle_request(e,t,s),void(o=0)):i(c)}()},p.prototype.all=function(){for(var e=a(s.call(arguments)),t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i){var n=c.call(i),r="Route.all() requires a callback function but got a "+n;throw new TypeError(r)}var p=o("/",{},i);p.method=void 0,this.methods._all=!0,this.stack.push(p)}return this},r.forEach((function(e){p.prototype[e]=function(){for(var t=a(s.call(arguments)),i=0;i<t.length;i++){var r=t[i];if("function"!=typeof r){var p=c.call(r),l="Route."+e+"() requires a callback function but got a "+p;throw new Error(l)}n("%s %o",e,this.path);var u=o("/",{},r);u.method=e,this.methods[e]=!0,this.stack.push(u)}return this}}))},1633:(e,t,i)=>{"use strict";var n=i(8467).Buffer,a=i(9697),o=i(363),r=i(6282)("express"),s=i(7040),c=i(8147).mime,p=i(823),l=i(903),u=i(1895),d=i(3477);function f(e){return function(t,i){var a=n.isBuffer(t)?t:n.from(t,i);return p(a,e)}}function m(e){return u.parse(e,{allowPrototypes:!0})}function h(){return{}}t.etag=f({weak:!1}),t.wetag=f({weak:!0}),t.isAbsolute=function(e){return"/"===e[0]||":"===e[1]&&("\\"===e[2]||"/"===e[2])||"\\\\"===e.substring(0,2)||void 0},t.flatten=r.function(s,"utils.flatten: use array-flatten npm module instead"),t.normalizeType=function(e){return~e.indexOf("/")?function(e,t){for(var i=e.split(/ *; */),n={value:i[0],quality:1,params:{},originalIndex:void 0},a=1;a<i.length;++a){var o=i[a].split(/ *= */);"q"===o[0]?n.quality=parseFloat(o[1]):n.params[o[0]]=o[1]}return n}(e):{value:c.lookup(e),params:{}}},t.normalizeTypes=function(e){for(var i=[],n=0;n<e.length;++n)i.push(t.normalizeType(e[n]));return i},t.contentDisposition=r.function(a,"utils.contentDisposition: use content-disposition npm module instead"),t.compileETag=function(e){var i;if("function"==typeof e)return e;switch(e){case!0:case"weak":i=t.wetag;break;case!1:break;case"strong":i=t.etag;break;default:throw new TypeError("unknown value for etag function: "+e)}return i},t.compileQueryParser=function(e){var t;if("function"==typeof e)return e;switch(e){case!0:case"simple":t=d.parse;break;case!1:t=h;break;case"extended":t=m;break;default:throw new TypeError("unknown value for query parser function: "+e)}return t},t.compileTrust=function(e){return"function"==typeof e?e:!0===e?function(){return!0}:"number"==typeof e?function(t,i){return i<e}:("string"==typeof e&&(e=e.split(",").map((function(e){return e.trim()}))),l.compile(e||[]))},t.setCharset=function(e,t){if(!e||!t)return e;var i=o.parse(e);return i.parameters.charset=t,o.format(i)}},6295:(e,t,i)=>{"use strict";var n=i(6352)("express:view"),a=i(1017),o=i(7147),r=a.dirname,s=a.basename,c=a.extname,p=a.join,l=a.resolve;function u(e,t){var a=t||{};if(this.defaultEngine=a.defaultEngine,this.ext=c(e),this.name=e,this.root=a.root,!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");var o=e;if(this.ext||(this.ext="."!==this.defaultEngine[0]?"."+this.defaultEngine:this.defaultEngine,o+=this.ext),!a.engines[this.ext]){var r=this.ext.slice(1);n('require "%s"',r);var s=i(8508)(r).__express;if("function"!=typeof s)throw new Error('Module "'+r+'" does not provide a view engine.');a.engines[this.ext]=s}this.engine=a.engines[this.ext],this.path=this.lookup(o)}function d(e){n('stat "%s"',e);try{return o.statSync(e)}catch(e){return}}e.exports=u,u.prototype.lookup=function(e){var t,i=[].concat(this.root);n('lookup "%s"',e);for(var a=0;a<i.length&&!t;a++){var o=i[a],c=l(o,e),p=r(c),u=s(c);t=this.resolve(p,u)}return t},u.prototype.render=function(e,t){n('render "%s"',this.path),this.engine(this.path,e,t)},u.prototype.resolve=function(e,t){var i=this.ext,n=p(e,t),a=d(n);return a&&a.isFile()||(a=d(n=p(e,s(t,i),"index"+i)))&&a.isFile()?n:void 0}},8508:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8508,e.exports=t},2888:(e,t,i)=>{"use strict";var n=i(6352)("finalhandler"),a=i(6012),o=i(7966),r=i(5430),s=i(9110),c=i(2480),p=i(8123),l=/\x20{2}/g,u=/\n/g,d="function"==typeof setImmediate?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))},f=r.isFinished;function m(e){return"boolean"!=typeof e.headersSent?Boolean(e._header):e.headersSent}e.exports=function(e,t,i){var h=i||{},v=h.env||"production",x=h.onerror;return function(i){var h,g,b;if(i||!m(t)){if(i?(b=function(e){return"number"==typeof e.status&&e.status>=400&&e.status<600?e.status:"number"==typeof e.statusCode&&e.statusCode>=400&&e.statusCode<600?e.statusCode:void 0}(i),void 0===b?b=function(e){var t=e.statusCode;return("number"!=typeof t||t<400||t>599)&&(t=500),t}(t):h=function(e){if(e.headers&&"object"==typeof e.headers){for(var t=Object.create(null),i=Object.keys(e.headers),n=0;n<i.length;n++){var a=i[n];t[a]=e.headers[a]}return t}}(i),g=function(e,t,i){var n;return"production"!==i&&((n=e.stack)||"function"!=typeof e.toString||(n=e.toString())),n||c.message[t]}(i,b,v)):(b=404,g="Cannot "+e.method+" "+a(function(e){try{return s.original(e).pathname}catch(e){return"resource"}}(e))),n("default %s",b),i&&x&&d(x,i,e,t),m(t))return n("cannot %d after headers sent",b),void e.socket.destroy();!function(e,t,i,n,a){function s(){var r=function(e){return'<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>'+o(e).replace(u,"<br>").replace(l," ")+"</pre>\n</body>\n</html>\n"}(a);t.statusCode=i,t.statusMessage=c.message[i],t.removeHeader("Content-Encoding"),t.removeHeader("Content-Language"),t.removeHeader("Content-Range"),function(e,t){if(t)for(var i=Object.keys(t),n=0;n<i.length;n++){var a=i[n];e.setHeader(a,t[a])}}(t,n),t.setHeader("Content-Security-Policy","default-src 'none'"),t.setHeader("X-Content-Type-Options","nosniff"),t.setHeader("Content-Type","text/html; charset=utf-8"),t.setHeader("Content-Length",Buffer.byteLength(r,"utf8")),"HEAD"!==e.method?t.end(r,"utf8"):t.end()}f(e)?s():(p(e),r(e,s),e.resume())}(e,t,b,h,g)}else n("cannot 404 after headers sent")}}},9841:e=>{var t;e.exports=function(){t||"function"!=typeof t&&(t=function(){}),t.apply(null,arguments)}},8364:(e,t,i)=>{var n=i(7310),a=n.URL,o=i(3685),r=i(5687),s=i(2781).Writable,c=i(9491),p=i(9841),l=["abort","aborted","connect","error","socket","timeout"],u=Object.create(null);l.forEach((function(e){u[e]=function(t,i,n){this._redirectable.emit(e,t,i,n)}}));var d=w("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),f=w("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),m=w("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),h=w("ERR_STREAM_WRITE_AFTER_END","write after end");function v(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var i=this;this._onNativeResponse=function(e){i._processResponse(e)},this._performRequest()}function x(e){var t={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(e).forEach((function(o){var r=o+":",s=i[r]=e[o],l=t[o]=Object.create(s);Object.defineProperties(l,{request:{value:function(e,o,s){if("string"==typeof e){var l=e;try{e=b(new a(l))}catch(t){e=n.parse(l)}}else a&&e instanceof a?e=b(e):(s=o,o=e,e={protocol:r});return"function"==typeof o&&(s=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=i,c.equal(o.protocol,r,"protocol mismatch"),p("options",o),new v(o,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,i){var n=l.request(e,t,i);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function g(){}function b(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function y(e,t){var i;for(var n in t)e.test(n)&&(i=t[n],delete t[n]);return null==i?void 0:String(i).trim()}function w(e,t){function i(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Error ["+e+"]",i.prototype.code=e,i}function _(e){for(var t=0;t<l.length;t++)e.removeListener(l[t],u[l[t]]);e.on("error",g),e.abort()}v.prototype=Object.create(s.prototype),v.prototype.abort=function(){_(this._currentRequest),this.emit("abort")},v.prototype.write=function(e,t,i){if(this._ending)throw new h;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(i=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,i)):(this.emit("error",new m),this.abort()):i&&i()},v.prototype.end=function(e,t,i){if("function"==typeof e?(i=e,e=t=null):"function"==typeof t&&(i=t,t=null),e){var n=this,a=this._currentRequest;this.write(e,t,(function(){n._ended=!0,a.end(null,null,i)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,i)},v.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},v.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},v.prototype.setTimeout=function(e,t){var i=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout((function(){i.emit("timeout"),o()}),e),n(t)}function o(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",o),i.removeListener("error",o),i.removeListener("response",o),t&&i.removeListener("timeout",t),i.socket||i._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){v.prototype[e]=function(t,i){return this._currentRequest[e](t,i)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(v.prototype,e,{get:function(){return this._currentRequest[e]}})})),v.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},v.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var i=e.substr(0,e.length-1);this._options.agent=this._options.agents[i]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options),a._redirectable=this;for(var o=0;o<l.length;o++)a.on(l[o],u[l[o]]);if(this._isRedirect){var r=0,s=this,c=this._requestBodyBuffers;!function e(t){if(a===s._currentRequest)if(t)s.emit("error",t);else if(r<c.length){var i=c[r++];a.finished||a.write(i.data,i.encoding,e)}else s._ended&&a.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},v.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(_(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new f);else{((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],y(/^content-/i,this._options.headers));var a,o=y(/^host$/i,this._options.headers),r=n.parse(this._currentUrl),s=o||r.host,c=/^\w+:/.test(i)?this._currentUrl:n.format(Object.assign(r,{host:s}));try{a=n.resolve(c,i)}catch(e){return void this.emit("error",new d(e))}p("redirecting to",a),this._isRedirect=!0;var l=n.parse(a);if(Object.assign(this._options,l),(l.protocol!==r.protocol&&"https:"!==l.protocol||l.host!==s&&!function(e,t){const i=e.length-t.length-1;return i>0&&"."===e[i]&&e.endsWith(t)}(l.host,s))&&y(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new d(e))}}},e.exports=x({http:o,https:r}),e.exports.wrap=x},184:e=>{"use strict";function t(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}e.exports=function(e){if(!e)throw new TypeError("argument req is required");var i=function(e){for(var t=e.length,i=[],n=e.length,a=e.length-1;a>=0;a--)switch(e.charCodeAt(a)){case 32:n===t&&(n=t=a);break;case 44:n!==t&&i.push(e.substring(n,t)),n=t=a;break;default:n=a}return n!==t&&i.push(e.substring(n,t)),i}(e.headers["x-forwarded-for"]||"");return[t(e)].concat(i)}},8116:e=>{"use strict";var t=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;function i(e){var t=e&&Date.parse(e);return"number"==typeof t?t:NaN}e.exports=function(e,n){var a=e["if-modified-since"],o=e["if-none-match"];if(!a&&!o)return!1;var r=e["cache-control"];if(r&&t.test(r))return!1;if(o&&"*"!==o){var s=n.etag;if(!s)return!1;for(var c=!0,p=function(e){for(var t=0,i=[],n=0,a=0,o=e.length;a<o;a++)switch(e.charCodeAt(a)){case 32:n===t&&(n=t=a+1);break;case 44:i.push(e.substring(n,t)),n=t=a+1;break;default:t=a+1}return i.push(e.substring(n,t)),i}(o),l=0;l<p.length;l++){var u=p[l];if(u===s||u==="W/"+s||"W/"+u===s){c=!1;break}}if(c)return!1}if(a){var d=n["last-modified"];if(!(d&&i(d)<=i(a)))return!1}return!0}},3807:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,n=Object.prototype.toString,a="[object Function]";e.exports=function(e){var o=this;if("function"!=typeof o||n.call(o)!==a)throw new TypeError(t+o);for(var r,s=i.call(arguments,1),c=function(){if(this instanceof r){var t=o.apply(this,s.concat(i.call(arguments)));return Object(t)===t?t:this}return o.apply(e,s.concat(i.call(arguments)))},p=Math.max(0,o.length-s.length),l=[],u=0;u<p;u++)l.push("$"+u);if(r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),o.prototype){var d=function(){};d.prototype=o.prototype,r.prototype=new d,d.prototype=null}return r}},3306:(e,t,i)=>{"use strict";var n=i(3807);e.exports=Function.prototype.bind||n},492:(e,t,i)=>{"use strict";var n,a=SyntaxError,o=Function,r=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var p=function(){throw new r},l=c?function(){try{return p}catch(e){try{return c(arguments,"callee").get}catch(e){return p}}}():p,u=i(9997)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},m="undefined"==typeof Uint8Array?n:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):n,"%Symbol%":u?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":r,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},v=function e(t){var i;if("%AsyncFunction%"===t)i=s("async function () {}");else if("%GeneratorFunction%"===t)i=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)i=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&(i=d(a.prototype))}return h[t]=i,i},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=i(3306),b=i(7214),y=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),k=g.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,j=function(e){var t=k(e,0,1),i=k(e,-1);if("%"===t&&"%"!==i)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,S,(function(e,t,i,a){n[n.length]=i?_(a,E,"$1"):t||e})),n},O=function(e,t){var i,n=e;if(b(x,n)&&(n="%"+(i=x[n])[0]+"%"),b(h,n)){var o=h[n];if(o===f&&(o=v(n)),void 0===o&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new r('"allowMissing" argument must be a boolean');var i=j(e),n=i.length>0?i[0]:"",o=O("%"+n+"%",t),s=o.name,p=o.value,l=!1,u=o.alias;u&&(n=u[0],w(i,y([0,1],u)));for(var d=1,f=!0;d<i.length;d+=1){var m=i[d],v=k(m,0,1),x=k(m,-1);if(('"'===v||"'"===v||"`"===v||'"'===x||"'"===x||"`"===x)&&v!==x)throw new a("property names with quotes must have matching quotes");if("constructor"!==m&&f||(l=!0),b(h,s="%"+(n+="."+m)+"%"))p=h[s];else if(null!=p){if(!(m in p)){if(!t)throw new r("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&d+1>=i.length){var g=c(p,m);p=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:p[m]}else f=b(p,m),p=p[m];f&&!l&&(h[s]=p)}}return p}},9997:(e,t,i)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=i(3880);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&a()}},3880:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),i=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},7214:(e,t,i)=>{"use strict";var n=i(3306);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},3254:(e,t,i)=>{"use strict";var n,a=i(6282)("http-errors"),o=i(6634),r=i(2480),s=i(9154),c=i(99);function p(e){return Number(String(e).charAt(0)+"00")}function l(e,t){var i=Object.getOwnPropertyDescriptor(e,"name");i&&i.configurable&&(i.value=t,Object.defineProperty(e,"name",i))}function u(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=function e(){for(var t,i,n=500,o={},s=0;s<arguments.length;s++){var c=arguments[s],l=typeof c;if("object"===l&&c instanceof Error)n=(t=c).status||t.statusCode||n;else if("number"===l&&0===s)n=c;else if("string"===l)i=c;else{if("object"!==l)throw new TypeError("argument #"+(s+1)+" unsupported type "+l);o=c}}"number"==typeof n&&(n<400||n>=600)&&a("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof n||!r.message[n]&&(n<400||n>=600))&&(n=500);var u=e[n]||e[p(n)];for(var d in t||(t=u?new u(i):new Error(i||r.message[n]),Error.captureStackTrace(t,e)),u&&t instanceof u&&t.status===n||(t.expose=n<500,t.status=t.statusCode=n),o)"status"!==d&&"statusCode"!==d&&(t[d]=o[d]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(n=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof n||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,i){t.forEach((function(t){var n,a=c(r.message[t]);switch(p(t)){case 400:n=function(e,t,i){var n=u(t);function a(e){var t=null!=e?e:r.message[i],s=new Error(t);return Error.captureStackTrace(s,a),o(s,a.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:n,writable:!0}),s}return s(a,e),l(a,n),a.prototype.status=i,a.prototype.statusCode=i,a.prototype.expose=!0,a}(i,a,t);break;case 500:n=function(e,t,i){var n=u(t);function a(e){var t=null!=e?e:r.message[i],s=new Error(t);return Error.captureStackTrace(s,a),o(s,a.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:n,writable:!0}),s}return s(a,e),l(a,n),a.prototype.status=i,a.prototype.statusCode=i,a.prototype.expose=!1,a}(i,a,t)}n&&(e[t]=n,e[a]=n)}))}(e.exports,r.codes,e.exports.HttpError)},4166:(e,t,i)=>{e.exports=i(1015)},1015:(e,t,i)=>{var n=i(2079).Server;function a(e){return new n(e)}n.createProxyServer=a,n.createServer=a,n.createProxy=a,e.exports=n},6180:(e,t,i)=>{var n=t,a=i(7310),o=i(3837)._extend,r=i(3829),s=/(^|,)\s*upgrade\s*($|,)/i,c=/^https|wss/;n.isSSL=c,n.setupOutgoing=function(e,t,i,p){e.port=t[p||"target"].port||(c.test(t[p||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach((function(i){e[i]=t[p||"target"][i]})),e.method=t.method||i.method,e.headers=o({},i.headers),t.headers&&o(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),c.test(t[p||"target"].protocol)&&(e.rejectUnauthorized=void 0===t.secure||t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},"string"==typeof e.headers.connection&&s.test(e.headers.connection)||(e.headers.connection="close"));var l=t[p||"target"],u=l&&!1!==t.prependPath&&l.path||"",d=t.toProxy?i.url:a.parse(i.url).path||"";return d=t.ignorePath?"":d,e.path=n.urlJoin(u,d),t.changeOrigin&&(e.headers.host=r(e.port,t[p||"target"].protocol)&&!~e.host.indexOf(":")?e.host+":"+e.port:e.host),e},n.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e},n.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):"";return t?t[1]:n.hasEncryptedConnection(e)?"443":"80"},n.hasEncryptedConnection=function(e){return Boolean(e.connection.encrypted||e.connection.pair)},n.urlJoin=function(){var e,t=Array.prototype.slice.call(arguments),i=t.length-1,n=t[i],a=n.split("?");return t[i]=a.shift(),(e=[t.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")]).push.apply(e,a),e.join("?")},n.rewriteCookieProperty=function e(t,i,n){return Array.isArray(t)?t.map((function(t){return e(t,i,n)})):t.replace(new RegExp("(;\\s*"+n+"=)([^;]+)","i"),(function(e,t,n){var a;if(n in i)a=i[n];else{if(!("*"in i))return e;a=i["*"]}return a?t+a:""}))}},2079:(e,t,i)=>{var n=e.exports,a=i(3837)._extend,o=i(7310).parse,r=i(666),s=i(3685),c=i(5687),p=i(2645),l=i(2328);function u(e){return function(t){return function(i,n){var r,s,c="ws"===e?this.wsPasses:this.webPasses,p=[].slice.call(arguments),l=p.length-1;"function"==typeof p[l]&&(s=p[l],l--);var u=t;if(p[l]instanceof Buffer||p[l]===n||(u=a({},t),a(u,p[l]),l--),p[l]instanceof Buffer&&(r=p[l]),["target","forward"].forEach((function(e){"string"==typeof u[e]&&(u[e]=o(u[e]))})),!u.target&&!u.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var d=0;d<c.length&&!c[d](i,n,u,r,this,s);d++);}}}function d(e){r.call(this),(e=e||{}).prependPath=!1!==e.prependPath,this.web=this.proxyRequest=u("web")(e),this.ws=this.proxyWebsocketRequest=u("ws")(e),this.options=e,this.webPasses=Object.keys(p).map((function(e){return p[e]})),this.wsPasses=Object.keys(l).map((function(e){return l[e]})),this.on("error",this.onError,this)}n.Server=d,n.createRightProxy=u,i(3837).inherits(d,r),d.prototype.onError=function(e){if(1===this.listeners("error").length)throw e},d.prototype.listen=function(e,t){var i=this,n=function(e,t){i.web(e,t)};return this._server=this.options.ssl?c.createServer(this.options.ssl,n):s.createServer(n),this.options.ws&&this._server.on("upgrade",(function(e,t,n){i.ws(e,t,n)})),this._server.listen(e,t),this},d.prototype.close=function(e){var t=this;this._server&&this._server.close((function(){t._server=null,e&&e.apply(null,arguments)}))},d.prototype.before=function(e,t,i){if("ws"!==e&&"web"!==e)throw new Error("type must be `web` or `ws`");var n="ws"===e?this.wsPasses:this.webPasses,a=!1;if(n.forEach((function(e,i){e.name===t&&(a=i)})),!1===a)throw new Error("No such pass");n.splice(a,0,i)},d.prototype.after=function(e,t,i){if("ws"!==e&&"web"!==e)throw new Error("type must be `web` or `ws`");var n="ws"===e?this.wsPasses:this.webPasses,a=!1;if(n.forEach((function(e,i){e.name===t&&(a=i)})),!1===a)throw new Error("No such pass");n.splice(a++,0,i)}},2645:(e,t,i)=>{var n=i(3685),a=i(5687),o=i(5739),r=i(6180),s=i(8364);o=Object.keys(o).map((function(e){return o[e]}));var c={http:n,https:a};e.exports={deleteLength:function(e,t,i){"DELETE"!==e.method&&"OPTIONS"!==e.method||e.headers["content-length"]||(e.headers["content-length"]="0",delete e.headers["transfer-encoding"])},timeout:function(e,t,i){i.timeout&&e.socket.setTimeout(i.timeout)},XHeaders:function(e,t,i){if(i.xfwd){var n=e.isSpdy||r.hasEncryptedConnection(e),a={for:e.connection.remoteAddress||e.socket.remoteAddress,port:r.getPort(e),proto:n?"https":"http"};["for","port","proto"].forEach((function(t){e.headers["x-forwarded-"+t]=(e.headers["x-forwarded-"+t]||"")+(e.headers["x-forwarded-"+t]?",":"")+a[t]})),e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers.host||""}},stream:function(e,t,i,n,a,p){a.emit("start",e,t,i.target||i.forward);var l=i.followRedirects?s:c,u=l.http,d=l.https;if(i.forward){var f=("https:"===i.forward.protocol?d:u).request(r.setupOutgoing(i.ssl||{},i,e,"forward")),m=x(f,i.forward);if(e.on("error",m),f.on("error",m),(i.buffer||e).pipe(f),!i.target)return t.end()}var h=("https:"===i.target.protocol?d:u).request(r.setupOutgoing(i.ssl||{},i,e));h.on("socket",(function(n){a&&!h.getHeader("expect")&&a.emit("proxyReq",h,e,t,i)})),i.proxyTimeout&&h.setTimeout(i.proxyTimeout,(function(){h.abort()})),e.on("aborted",(function(){h.abort()}));var v=x(h,i.target);function x(i,n){return function(o){if(e.socket.destroyed&&"ECONNRESET"===o.code)return a.emit("econnreset",o,e,t,n),i.abort();p?p(o,e,t,n):a.emit("error",o,e,t,n)}}e.on("error",v),h.on("error",v),(i.buffer||e).pipe(h),h.on("response",(function(n){if(a&&a.emit("proxyRes",n,e,t),!t.headersSent&&!i.selfHandleResponse)for(var r=0;r<o.length&&!o[r](e,t,n,i);r++);t.finished?a&&a.emit("end",e,t,n):(n.on("end",(function(){a&&a.emit("end",e,t,n)})),i.selfHandleResponse||n.pipe(t))}))}}},5739:(e,t,i)=>{var n=i(7310),a=i(6180),o=/^201|30(1|2|7|8)$/;e.exports={removeChunked:function(e,t,i){"1.0"===e.httpVersion&&delete i.headers["transfer-encoding"]},setConnection:function(e,t,i){"1.0"===e.httpVersion?i.headers.connection=e.headers.connection||"close":"2.0"===e.httpVersion||i.headers.connection||(i.headers.connection=e.headers.connection||"keep-alive")},setRedirectHostRewrite:function(e,t,i,a){if((a.hostRewrite||a.autoRewrite||a.protocolRewrite)&&i.headers.location&&o.test(i.statusCode)){var r=n.parse(a.target),s=n.parse(i.headers.location);if(r.host!=s.host)return;a.hostRewrite?s.host=a.hostRewrite:a.autoRewrite&&(s.host=e.headers.host),a.protocolRewrite&&(s.protocol=a.protocolRewrite),i.headers.location=s.format()}},writeHeaders:function(e,t,i,n){var o,r=n.cookieDomainRewrite,s=n.cookiePathRewrite,c=n.preserveHeaderKeyCase;if("string"==typeof r&&(r={"*":r}),"string"==typeof s&&(s={"*":s}),c&&null!=i.rawHeaders){o={};for(var p=0;p<i.rawHeaders.length;p+=2){var l=i.rawHeaders[p];o[l.toLowerCase()]=l}}Object.keys(i.headers).forEach((function(e){var n=i.headers[e];c&&o&&(e=o[e]||e),function(e,i){null!=i&&(r&&"set-cookie"===e.toLowerCase()&&(i=a.rewriteCookieProperty(i,r,"domain")),s&&"set-cookie"===e.toLowerCase()&&(i=a.rewriteCookieProperty(i,s,"path")),t.setHeader(String(e).trim(),i))}(e,n)}))},writeStatusCode:function(e,t,i){i.statusMessage?(t.statusCode=i.statusCode,t.statusMessage=i.statusMessage):t.statusCode=i.statusCode}}},2328:(e,t,i)=>{var n=i(3685),a=i(5687),o=i(6180);e.exports={checkMethodAndHeader:function(e,t){return"GET"===e.method&&e.headers.upgrade?"websocket"!==e.headers.upgrade.toLowerCase()?(t.destroy(),!0):void 0:(t.destroy(),!0)},XHeaders:function(e,t,i){if(i.xfwd){var n={for:e.connection.remoteAddress||e.socket.remoteAddress,port:o.getPort(e),proto:o.hasEncryptedConnection(e)?"wss":"ws"};["for","port","proto"].forEach((function(t){e.headers["x-forwarded-"+t]=(e.headers["x-forwarded-"+t]||"")+(e.headers["x-forwarded-"+t]?",":"")+n[t]}))}},stream:function(e,t,i,r,s,c){var p=function(e,t){return Object.keys(t).reduce((function(e,i){var n=t[i];if(!Array.isArray(n))return e.push(i+": "+n),e;for(var a=0;a<n.length;a++)e.push(i+": "+n[a]);return e}),[e]).join("\r\n")+"\r\n\r\n"};o.setupSocket(t),r&&r.length&&t.unshift(r);var l=(o.isSSL.test(i.target.protocol)?a:n).request(o.setupOutgoing(i.ssl||{},i,e));return s&&s.emit("proxyReqWs",l,e,t,i,r),l.on("error",u),l.on("response",(function(e){e.upgrade||(t.write(p("HTTP/"+e.httpVersion+" "+e.statusCode+" "+e.statusMessage,e.headers)),e.pipe(t))})),l.on("upgrade",(function(e,i,n){i.on("error",u),i.on("end",(function(){s.emit("close",e,i,n)})),t.on("error",(function(){i.end()})),o.setupSocket(i),n&&n.length&&i.unshift(n),t.write(p("HTTP/1.1 101 Switching Protocols",e.headers)),i.pipe(t).pipe(i),s.emit("open",i),s.emit("proxySocket",i)})),l.end();function u(i){c?c(i,e,t):s.emit("error",i,e,t),t.end()}}}},6579:(e,t,i)=>{"use strict";var n=i(6209).Buffer;t._dbcs=p;for(var a=-1,o=-10,r=-1e3,s=new Array(256),c=0;c<256;c++)s[c]=a;function p(e,t){if(this.encodingName=e.encodingName,!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var i=e.table();this.decodeTables=[],this.decodeTables[0]=s.slice(0),this.decodeTableSeq=[];for(var n=0;n<i.length;n++)this._addDecodeChunk(i[n]);this.defaultCharUnicode=t.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var o={};if(e.encodeSkipVals)for(n=0;n<e.encodeSkipVals.length;n++){var c=e.encodeSkipVals[n];if("number"==typeof c)o[c]=!0;else for(var p=c.from;p<=c.to;p++)o[p]=!0}if(this._fillEncodeTable(0,0,o),e.encodeAdd)for(var l in e.encodeAdd)Object.prototype.hasOwnProperty.call(e.encodeAdd,l)&&this._setEncodeChar(l.charCodeAt(0),e.encodeAdd[l]);if(this.defCharSB=this.encodeTable[0][t.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===a&&(this.defCharSB=this.encodeTable[0]["?"]),this.defCharSB===a&&(this.defCharSB="?".charCodeAt(0)),"function"==typeof e.gb18030){this.gb18030=e.gb18030();var u=this.decodeTables.length,d=this.decodeTables[u]=s.slice(0),f=this.decodeTables.length,m=this.decodeTables[f]=s.slice(0);for(n=129;n<=254;n++){var h=r-this.decodeTables[0][n],v=this.decodeTables[h];for(p=48;p<=57;p++)v[p]=r-u}for(n=129;n<=254;n++)d[n]=r-f;for(n=48;n<=57;n++)m[n]=-2}}function l(e,t){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=t.encodeTable,this.encodeTableSeq=t.encodeTableSeq,this.defaultCharSingleByte=t.defCharSB,this.gb18030=t.gb18030}function u(e,t){this.nodeIdx=0,this.prevBuf=n.alloc(0),this.decodeTables=t.decodeTables,this.decodeTableSeq=t.decodeTableSeq,this.defaultCharUnicode=t.defaultCharUnicode,this.gb18030=t.gb18030}function d(e,t){if(e[0]>t)return-1;for(var i=0,n=e.length;i<n-1;){var a=i+Math.floor((n-i+1)/2);e[a]<=t?i=a:n=a}return i}p.prototype.encoder=l,p.prototype.decoder=u,p.prototype._getDecodeTrieNode=function(e){for(var t=[];e>0;e>>=8)t.push(255&e);0==t.length&&t.push(0);for(var i=this.decodeTables[0],n=t.length-1;n>0;n--){var o=i[t[n]];if(o==a)i[t[n]]=r-this.decodeTables.length,this.decodeTables.push(i=s.slice(0));else{if(!(o<=r))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16));i=this.decodeTables[r-o]}}return i},p.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16),i=this._getDecodeTrieNode(t);t&=255;for(var n=1;n<e.length;n++){var a=e[n];if("string"==typeof a)for(var r=0;r<a.length;){var s=a.charCodeAt(r++);if(55296<=s&&s<56320){var c=a.charCodeAt(r++);if(!(56320<=c&&c<57344))throw new Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+e[0]);i[t++]=65536+1024*(s-55296)+(c-56320)}else if(4080<s&&s<=4095){for(var p=4095-s+2,l=[],u=0;u<p;u++)l.push(a.charCodeAt(r++));i[t++]=o-this.decodeTableSeq.length,this.decodeTableSeq.push(l)}else i[t++]=s}else{if("number"!=typeof a)throw new Error("Incorrect type '"+typeof a+"' given in "+this.encodingName+" at chunk "+e[0]);var d=i[t-1]+1;for(r=0;r<a;r++)i[t++]=d++}}if(t>255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)},p.prototype._getEncodeBucket=function(e){var t=e>>8;return void 0===this.encodeTable[t]&&(this.encodeTable[t]=s.slice(0)),this.encodeTable[t]},p.prototype._setEncodeChar=function(e,t){var i=this._getEncodeBucket(e),n=255&e;i[n]<=o?this.encodeTableSeq[o-i[n]][-1]=t:i[n]==a&&(i[n]=t)},p.prototype._setEncodeSequence=function(e,t){var i,n=e[0],r=this._getEncodeBucket(n),s=255&n;r[s]<=o?i=this.encodeTableSeq[o-r[s]]:(i={},r[s]!==a&&(i[-1]=r[s]),r[s]=o-this.encodeTableSeq.length,this.encodeTableSeq.push(i));for(var c=1;c<e.length-1;c++){var p=i[n];"object"==typeof p?i=p:(i=i[n]={},void 0!==p&&(i[-1]=p))}i[n=e[e.length-1]]=t},p.prototype._fillEncodeTable=function(e,t,i){for(var n=this.decodeTables[e],a=0;a<256;a++){var s=n[a],c=t+a;i[c]||(s>=0?this._setEncodeChar(s,c):s<=r?this._fillEncodeTable(r-s,c<<8,i):s<=o&&this._setEncodeSequence(this.decodeTableSeq[o-s],c))}},l.prototype.write=function(e){for(var t=n.alloc(e.length*(this.gb18030?4:3)),i=this.leadSurrogate,r=this.seqObj,s=-1,c=0,p=0;;){if(-1===s){if(c==e.length)break;var l=e.charCodeAt(c++)}else l=s,s=-1;if(55296<=l&&l<57344)if(l<56320){if(-1===i){i=l;continue}i=l,l=a}else-1!==i?(l=65536+1024*(i-55296)+(l-56320),i=-1):l=a;else-1!==i&&(s=l,l=a,i=-1);var u=a;if(void 0!==r&&l!=a){var f=r[l];if("object"==typeof f){r=f;continue}"number"==typeof f?u=f:null==f&&void 0!==(f=r[-1])&&(u=f,s=l),r=void 0}else if(l>=0){var m=this.encodeTable[l>>8];if(void 0!==m&&(u=m[255&l]),u<=o){r=this.encodeTableSeq[o-u];continue}if(u==a&&this.gb18030){var h=d(this.gb18030.uChars,l);if(-1!=h){u=this.gb18030.gbChars[h]+(l-this.gb18030.uChars[h]),t[p++]=129+Math.floor(u/12600),u%=12600,t[p++]=48+Math.floor(u/1260),u%=1260,t[p++]=129+Math.floor(u/10),u%=10,t[p++]=48+u;continue}}}u===a&&(u=this.defaultCharSingleByte),u<256?t[p++]=u:u<65536?(t[p++]=u>>8,t[p++]=255&u):(t[p++]=u>>16,t[p++]=u>>8&255,t[p++]=255&u)}return this.seqObj=r,this.leadSurrogate=i,t.slice(0,p)},l.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var e=n.alloc(10),t=0;if(this.seqObj){var i=this.seqObj[-1];void 0!==i&&(i<256?e[t++]=i:(e[t++]=i>>8,e[t++]=255&i)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(e[t++]=this.defaultCharSingleByte,this.leadSurrogate=-1),e.slice(0,t)}},l.prototype.findIdx=d,u.prototype.write=function(e){var t=n.alloc(2*e.length),i=this.nodeIdx,s=this.prevBuf,c=this.prevBuf.length,p=-this.prevBuf.length;c>0&&(s=n.concat([s,e.slice(0,10)]));for(var l=0,u=0;l<e.length;l++){var f,m=l>=0?e[l]:s[l+c];if((f=this.decodeTables[i][m])>=0);else if(f===a)l=p,f=this.defaultCharUnicode.charCodeAt(0);else if(-2===f){var h=p>=0?e.slice(p,l+1):s.slice(p+c,l+1+c),v=12600*(h[0]-129)+1260*(h[1]-48)+10*(h[2]-129)+(h[3]-48),x=d(this.gb18030.gbChars,v);f=this.gb18030.uChars[x]+v-this.gb18030.gbChars[x]}else{if(f<=r){i=r-f;continue}if(!(f<=o))throw new Error("iconv-lite internal error: invalid decoding table value "+f+" at "+i+"/"+m);for(var g=this.decodeTableSeq[o-f],b=0;b<g.length-1;b++)f=g[b],t[u++]=255&f,t[u++]=f>>8;f=g[g.length-1]}if(f>65535){f-=65536;var y=55296+Math.floor(f/1024);t[u++]=255&y,t[u++]=y>>8,f=56320+f%1024}t[u++]=255&f,t[u++]=f>>8,i=0,p=l+1}return this.nodeIdx=i,this.prevBuf=p>=0?e.slice(p):s.slice(p+c),t.slice(0,u).toString("ucs2")},u.prototype.end=function(){for(var e="";this.prevBuf.length>0;){e+=this.defaultCharUnicode;var t=this.prevBuf.slice(1);this.prevBuf=n.alloc(0),this.nodeIdx=0,t.length>0&&(e+=this.write(t))}return this.nodeIdx=0,e}},3934:(e,t,i)=>{"use strict";e.exports={shiftjis:{type:"_dbcs",table:function(){return i(3031)},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return i(9591)},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return i(2356)}},gbk:{type:"_dbcs",table:function(){return i(2356).concat(i(2137))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return i(2356).concat(i(2137))},gb18030:function(){return i(8855)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return i(2236)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return i(5580)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return i(5580).concat(i(5639))},encodeSkipVals:[41676]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},3275:(e,t,i)=>{"use strict";for(var n=[i(5354),i(2757),i(6332),i(7417),i(5558),i(1183),i(6579),i(3934)],a=0;a<n.length;a++){var o=n[a];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}},5354:(e,t,i)=>{"use strict";var n=i(6209).Buffer;function a(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,"base64"===this.enc?this.encoder=c:"cesu8"===this.enc&&(this.enc="utf8",this.encoder=p,"💩"!==n.from("eda0bdedb2a9","hex").toString()&&(this.decoder=l,this.defaultCharUnicode=t.defaultCharUnicode))}e.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:a},a.prototype.encoder=s,a.prototype.decoder=r;var o=i(1576).StringDecoder;function r(e,t){o.call(this,t.enc)}function s(e,t){this.enc=t.enc}function c(e,t){this.prevStr=""}function p(e,t){}function l(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}o.prototype.end||(o.prototype.end=function(){}),r.prototype=o.prototype,s.prototype.write=function(e){return n.from(e,this.enc)},s.prototype.end=function(){},c.prototype.write=function(e){var t=(e=this.prevStr+e).length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),n.from(e,"base64")},c.prototype.end=function(){return n.from(this.prevStr,"base64")},p.prototype.write=function(e){for(var t=n.alloc(3*e.length),i=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?t[i++]=o:o<2048?(t[i++]=192+(o>>>6),t[i++]=128+(63&o)):(t[i++]=224+(o>>>12),t[i++]=128+(o>>>6&63),t[i++]=128+(63&o))}return t.slice(0,i)},p.prototype.end=function(){},l.prototype.write=function(e){for(var t=this.acc,i=this.contBytes,n=this.accBytes,a="",o=0;o<e.length;o++){var r=e[o];128!=(192&r)?(i>0&&(a+=this.defaultCharUnicode,i=0),r<128?a+=String.fromCharCode(r):r<224?(t=31&r,i=1,n=1):r<240?(t=15&r,i=2,n=1):a+=this.defaultCharUnicode):i>0?(t=t<<6|63&r,n++,0==--i&&(a+=2===n&&t<128&&t>0||3===n&&t<2048?this.defaultCharUnicode:String.fromCharCode(t))):a+=this.defaultCharUnicode}return this.acc=t,this.contBytes=i,this.accBytes=n,a},l.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}},7417:(e,t,i)=>{"use strict";var n=i(6209).Buffer;function a(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||128!==e.chars.length&&256!==e.chars.length)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===e.chars.length){for(var i="",a=0;a<128;a++)i+=String.fromCharCode(a);e.chars=i+e.chars}this.decodeBuf=n.from(e.chars,"ucs2");var o=n.alloc(65536,t.defaultCharSingleByte.charCodeAt(0));for(a=0;a<e.chars.length;a++)o[e.chars.charCodeAt(a)]=a;this.encodeBuf=o}function o(e,t){this.encodeBuf=t.encodeBuf}function r(e,t){this.decodeBuf=t.decodeBuf}t._sbcs=a,a.prototype.encoder=o,a.prototype.decoder=r,o.prototype.write=function(e){for(var t=n.alloc(e.length),i=0;i<e.length;i++)t[i]=this.encodeBuf[e.charCodeAt(i)];return t},o.prototype.end=function(){},r.prototype.write=function(e){for(var t=this.decodeBuf,i=n.alloc(2*e.length),a=0,o=0,r=0;r<e.length;r++)a=2*e[r],i[o=2*r]=t[a],i[o+1]=t[a+1];return i.toString("ucs2")},r.prototype.end=function(){}},1183:e=>{"use strict";e.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:" |
| 3 | ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:" |
| 4 | Ą˘Ł¤ĽŚ§¨ŠŞŤŹŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:" |
| 5 | Ħ˘£¤�Ĥ§¨İŞĞĴ�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:" |
nothing calls this directly
no outgoing calls
no test coverage detected