ooko
Version:
Task management service based on the Kanban methodology
2 lines • 825 kB
JavaScript
/*! For license information please see server.js.LICENSE.txt */
import*as e from"express";import*as t from"fs";import*as a from"node:buffer";import*as i from"node:crypto";import*as n from"node:fs";import*as r from"node:path";import*as o from"pouchdb";import*as s from"readline";import*as c from"stream";import*as p from"url";import{createRequire as l}from"node:module";const d=l(import.meta.url);import{dirname as u,resolve as m}from"path";var h,f,v,x,g,b={6424(e,t,a){var i=a(6287),n=a(7695);e.exports=function(e,t,a){i(t).reduce(function(e,t){return n(e,t,e[t.key],a)},e)}},6287(e){var t=/^[^\[]*/,a=/^\[(\d+)\]/,i=/^\[([^\]]+)\]/;e.exports=function(e){function n(){return[{type:"object",key:e,last:!0}]}var r=t.exec(e)[0];if(!r)return n();for(var o=e.length,s=r.length,c={type:"object",key:r},p=[c];s<o;){var l;if("["!==e[s]||"]"!==e[s+1])if(null===(l=a.exec(e.substring(s)))){if(null===(l=i.exec(e.substring(s))))return n();s+=l[0].length,c.nextType="object",c={type:"object",key:l[1]},p.push(c)}else s+=l[0].length,c.nextType="array",c={type:"array",key:parseInt(l[1],10)},p.push(c);else if(s+=2,c.append=!0,s!==o)return n()}return c.last=!0,p}},7695(e){function t(e){return void 0===e?"undefined":Array.isArray(e)?"array":"object"==typeof e?"object":"scalar"}function a(e,i,n,r){switch(t(n)){case"undefined":i.append?e[i.key]=[r]:e[i.key]=r;break;case"array":e[i.key].push(r);break;case"object":return a(n,{type:"object",key:"",last:!0},n[""],r);case"scalar":e[i.key]=[e[i.key],r]}return e}e.exports=function(e,i,n,r){if(i.last)return a(e,i,n,r);var o;switch(t(n)){case"undefined":return"array"===i.nextType?e[i.key]=[]:e[i.key]=Object.create(null),e[i.key];case"object":return e[i.key];case"array":return"array"===i.nextType?n:(o=Object.create(null),e[i.key]=o,n.forEach(function(e,t){void 0!==e&&(o[""+t]=e)}),o);case"scalar":return(o=Object.create(null))[""]=n,e[i.key]=o,o}}},2746(e){var t=Object.prototype.toString,a="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return r=e,"ArrayBuffer"===t.call(r).slice(8,-1)?function(e,t,i){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(void 0===i)i=n;else if((i>>>=0)>n)throw new RangeError("'length' is out of bounds");return a?Buffer.from(e.slice(t,t+i)):new Buffer(new Uint8Array(e.slice(t,t+i)))}(e,i,n):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return a?Buffer.from(e,t):new Buffer(e,t)}(e,i):a?Buffer.from(e):new Buffer(e);var r}},8561(e,t,a){const{parseContentType:i}=a(12),n=[a(7679),a(4018)].filter(function(e){return"function"==typeof e.detect});e.exports=e=>{if("object"==typeof e&&null!==e||(e={}),"object"!=typeof e.headers||null===e.headers||"string"!=typeof e.headers["content-type"])throw new Error("Missing Content-Type");return function(e){const t=e.headers,a=i(t["content-type"]);if(!a)throw new Error("Malformed content type");for(const i of n){if(!i.detect(a))continue;const n={limits:e.limits,headers:t,conType:a,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(n.highWaterMark=e.highWaterMark),e.fileHwm&&(n.fileHwm=e.fileHwm),n.defCharset=e.defCharset,n.defParamCharset=e.defParamCharset,n.preservePath=e.preservePath,new i(n)}throw new Error(`Unsupported content type: ${t["content-type"]}`)}(e)}},7679(e,t,a){const{Readable:i,Writable:n}=a(2203),r=a(249),{basename:o,convertToUTF8:s,getDecoder:c,parseContentType:p,parseDisposition:l}=a(12),d=Buffer.from("\r\n"),u=Buffer.from("\r"),m=Buffer.from("-");function h(){}const f=16384;class v{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0}push(e,t,a){let i=t;for(;t<a;)switch(this.state){case 0:{let n=!1;for(;t<a;++t){if(this.byteCount===f)return-1;++this.byteCount;const a=e[t];if(1!==w[a]){if(58!==a)return-1;if(this.name+=e.latin1Slice(i,t),0===this.name.length)return-1;++t,n=!0,this.state=1;break}}if(!n){this.name+=e.latin1Slice(i,t);break}}case 1:{let n=!1;for(;t<a;++t){if(this.byteCount===f)return-1;++this.byteCount;const a=e[t];if(32!==a&&9!==a){i=t,n=!0,this.state=2;break}}if(!n)break}case 2:switch(this.crlf){case 0:for(;t<a;++t){if(this.byteCount===f)return-1;++this.byteCount;const a=e[t];if(1!==k[a]){if(13!==a)return-1;++this.crlf;break}}this.value+=e.latin1Slice(i,t++);break;case 1:if(this.byteCount===f)return-1;if(++this.byteCount,10!==e[t++])return-1;++this.crlf;break;case 2:{if(this.byteCount===f)return-1;++this.byteCount;const a=e[t];32===a||9===a?(i=t,this.crlf=0):(++this.pairCount<2e3&&(this.name=this.name.toLowerCase(),void 0===this.header[this.name]?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),13===a?(++this.crlf,++t):(i=t,this.crlf=0,this.state=0,this.name="",this.value=""));break}case 3:{if(this.byteCount===f)return-1;if(++this.byteCount,10!==e[t++])return-1;const a=this.header;return this.reset(),this.cb(a),t}}}return t}}class x extends i{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once("end",()=>{if(this._read(),0===--t._fileEndsLeft&&t._finalcb){const e=t._finalcb;t._finalcb=null,process.nextTick(e)}})}_read(e){const t=this._readcb;t&&(this._readcb=null,t())}}const g={push:(e,t)=>{},destroy:()=>{}};function b(e,t){return e}function y(e,t,a){if(a)return t(a);t(a=_(e))}function _(e){if(e._hparser)return new Error("Malformed part header");const t=e._fileStream;return t&&(e._fileStream=null,t.destroy(new Error("Unexpected end of file"))),e._complete?void 0:new Error("Unexpected end of form")}const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1,1,1];e.exports=class extends n{constructor(e){if(super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0}),!e.conType.params||"string"!=typeof e.conType.params.boundary)throw new Error("Multipart: Boundary not found");const t=e.conType.params.boundary,a="string"==typeof e.defParamCharset&&e.defParamCharset?c(e.defParamCharset):b,i=e.defCharset||"utf8",n=e.preservePath,f={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.fileHwm?e.fileHwm:void 0},y=e.limits,_=y&&"number"==typeof y.fieldSize?y.fieldSize:1048576,w=y&&"number"==typeof y.fileSize?y.fileSize:1/0,k=y&&"number"==typeof y.files?y.files:1/0,E=y&&"number"==typeof y.fields?y.fields:1/0,j=y&&"number"==typeof y.parts?y.parts:1/0;let S=-1,T=0,z=0,A=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let C,O,P,N,B,I=0,M=0,R=!1,q=!1,U=!1;this._hparser=null;const L=new v(e=>{let t;if(this._hparser=null,A=!1,N="text/plain",O=i,P="7bit",B=void 0,R=!1,!e["content-disposition"])return void(A=!0);const r=l(e["content-disposition"][0],a);if(r&&"form-data"===r.type){if(r.params&&(r.params.name&&(B=r.params.name),r.params["filename*"]?t=r.params["filename*"]:r.params.filename&&(t=r.params.filename),void 0===t||n||(t=o(t))),e["content-type"]){const t=p(e["content-type"][0]);t&&(N=`${t.type}/${t.subtype}`,t.params&&"string"==typeof t.params.charset&&(O=t.params.charset.toLowerCase()))}if(e["content-transfer-encoding"]&&(P=e["content-transfer-encoding"][0].toLowerCase()),"application/octet-stream"===N||void 0!==t){if(z===k)return q||(q=!0,this.emit("filesLimit")),void(A=!0);if(++z,0===this.listenerCount("file"))return void(A=!0);I=0,this._fileStream=new x(f,this),++this._fileEndsLeft,this.emit("file",B,this._fileStream,{filename:t,encoding:P,mimeType:N})}else{if(T===E)return U||(U=!0,this.emit("fieldsLimit")),void(A=!0);if(++T,0===this.listenerCount("field"))return void(A=!0);C=[],M=0}}else A=!0});let D=0;const F=(e,t,a,i,n)=>{e:for(;t;){if(null!==this._hparser){const e=this._hparser.push(t,a,i);if(-1===e){this._hparser=null,L.reset(),this.emit("error",new Error("Malformed part header"));break}a=e}if(a===i)break;if(0!==D){if(1===D){switch(t[a]){case 45:D=2,++a;break;case 13:D=3,++a;break;default:D=0}if(a===i)return}if(2===D){if(D=0,45===t[a])return this._complete=!0,void(this._bparser=g);const e=this._writecb;this._writecb=h,F(!1,m,0,1,!1),this._writecb=e}else if(3===D){if(D=0,10===t[a]){if(++a,S>=j)break;if(this._hparser=L,a===i)break;continue e}{const e=this._writecb;this._writecb=h,F(!1,u,0,1,!1),this._writecb=e}}}if(!A)if(this._fileStream){let e;const r=Math.min(i-a,w-I);n?e=t.slice(a,a+r):(e=Buffer.allocUnsafe(r),t.copy(e,0,a,a+r)),I+=e.length,I===w?(e.length>0&&this._fileStream.push(e),this._fileStream.emit("limit"),this._fileStream.truncated=!0,A=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(void 0!==C){let e;const r=Math.min(i-a,_-M);n?e=t.slice(a,a+r):(e=Buffer.allocUnsafe(r),t.copy(e,0,a,a+r)),M+=r,C.push(e),M===_&&(A=!0,R=!0)}break}if(e){if(D=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(void 0!==C){let e;switch(C.length){case 0:e="";break;case 1:e=s(C[0],O,0);break;default:e=s(Buffer.concat(C,M),O,0)}C=void 0,M=0,this.emit("field",B,e,{nameTruncated:!1,valueTruncated:R,encoding:P,mimeType:N})}++S===j&&this.emit("partsLimit")}};this._bparser=new r(`\r\n--${t}`,F),this._writecb=null,this._finalcb=null,this.write(d)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,a){this._writecb=a,this._bparser.push(e,0),this._writecb&&function(e){const t=e._writecb;e._writecb=null,t&&t()}(this)}_destroy(e,t){this._hparser=null,this._bparser=g,e||(e=_(this));const a=this._fileStream;a&&(this._fileStream=null,a.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(new Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=y.bind(null,this,e):y(this,e)}}},4018(e,t,a){const{Writable:i}=a(2203),{getDecoder:n}=a(12);function r(e,t,a,i){if(a>=i)return i;if(-1===e._byte){const n=c[t[a++]];if(-1===n)return-1;if(n>=8&&(e._encode=2),a<i){const i=c[t[a++]];if(-1===i)return-1;e._inKey?e._key+=String.fromCharCode((n<<4)+i):e._val+=String.fromCharCode((n<<4)+i),e._byte=-2,e._lastPos=a}else e._byte=n}else{const i=c[t[a++]];if(-1===i)return-1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+i):e._val+=String.fromCharCode((e._byte<<4)+i),e._byte=-2,e._lastPos=a}return a}function o(e,t,a,i){if(e._bytesKey>e.fieldNameSizeLimit){for(e._keyTrunc||e._lastPos<a&&(e._key+=t.latin1Slice(e._lastPos,a-1)),e._keyTrunc=!0;a<i;++a){const i=t[a];if(61===i||38===i)break;++e._bytesKey}e._lastPos=a}return a}function s(e,t,a,i){if(e._bytesVal>e.fieldSizeLimit){for(e._valTrunc||e._lastPos<a&&(e._val+=t.latin1Slice(e._lastPos,a-1)),e._valTrunc=!0;a<i&&38!==t[a];++a)++e._bytesVal;e._lastPos=a}return a}const c=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports=class extends i{constructor(e){super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0});let t=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(t=e.conType.params.charset),this.charset=t;const a=e.limits;this.fieldSizeLimit=a&&"number"==typeof a.fieldSize?a.fieldSize:1048576,this.fieldsLimit=a&&"number"==typeof a.fields?a.fields:1/0,this.fieldNameSizeLimit=a&&"number"==typeof a.fieldNameSize?a.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=n(t)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,a){if(this._fields>=this.fieldsLimit)return a();let i=0;const n=e.length;if(this._lastPos=0,-2!==this._byte){if(i=r(this,e,i,n),-1===i)return a(new Error("Malformed urlencoded form"));if(i>=n)return a();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;i<n;)if(this._inKey){for(i=o(this,e,i,n);i<n;){switch(e[i]){case 61:this._lastPos<i&&(this._key+=e.latin1Slice(this._lastPos,i)),this._lastPos=++i,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<i&&(this._key+=e.latin1Slice(this._lastPos,i)),this._lastPos=++i,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),a();continue;case 43:this._lastPos<i&&(this._key+=e.latin1Slice(this._lastPos,i)),this._key+=" ",this._lastPos=i+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<i&&(this._key+=e.latin1Slice(this._lastPos,i)),this._lastPos=i+1,this._byte=-1,i=r(this,e,i+1,n),-1===i)return a(new Error("Malformed urlencoded form"));if(i>=n)return a();++this._bytesKey,i=o(this,e,i,n);continue}++i,++this._bytesKey,i=o(this,e,i,n)}this._lastPos<i&&(this._key+=e.latin1Slice(this._lastPos,i))}else{for(i=s(this,e,i,n);i<n;){switch(e[i]){case 38:if(this._lastPos<i&&(this._val+=e.latin1Slice(this._lastPos,i)),this._lastPos=++i,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),a();continue e;case 43:this._lastPos<i&&(this._val+=e.latin1Slice(this._lastPos,i)),this._val+=" ",this._lastPos=i+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<i&&(this._val+=e.latin1Slice(this._lastPos,i)),this._lastPos=i+1,this._byte=-1,i=r(this,e,i+1,n),-1===i)return a(new Error("Malformed urlencoded form"));if(i>=n)return a();++this._bytesVal,i=s(this,e,i,n);continue}++i,++this._bytesVal,i=s(this,e,i,n)}this._lastPos<i&&(this._val+=e.latin1Slice(this._lastPos,i))}a()}_final(e){if(-2!==this._byte)return e(new Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),e()}}},12(e){function t(e,t,a){for(;t<e.length;){for(;t<e.length;++t){const a=e.charCodeAt(t);if(32!==a&&9!==a)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){const a=e.charCodeAt(t);if(32!==a&&9!==a)break}if(t===e.length)return;let i;const n=t;for(;t<e.length;++t){const a=e.charCodeAt(t);if(1!==o[a]){if(61!==a)return;break}}if(t===e.length)return;if(i=e.slice(n,t),++t===e.length)return;let r,c="";if(34===e.charCodeAt(t)){r=++t;let a=!1;for(;t<e.length;++t){const i=e.charCodeAt(t);if(92!==i){if(34===i){if(a){r=t,a=!1;continue}c+=e.slice(r,t);break}if(a&&(r=t-1,a=!1),1!==s[i])return}else a?(r=t,a=!1):(c+=e.slice(r,t),a=!0)}if(t===e.length)return;++t}else{for(r=t;t<e.length;++t){const a=e.charCodeAt(t);if(1!==o[a]){if(t===r)return;break}}c=e.slice(r,t)}i=i.toLowerCase(),void 0===a[i]&&(a[i]=c)}return a}function a(e,t,a,i){for(;t<e.length;){for(;t<e.length;++t){const a=e.charCodeAt(t);if(32!==a&&9!==a)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){const a=e.charCodeAt(t);if(32!==a&&9!==a)break}if(t===e.length)return;let n;const d=t;for(;t<e.length;++t){const a=e.charCodeAt(t);if(1!==o[a]){if(61===a)break;return}}if(t===e.length)return;let u,m,h="";if(n=e.slice(d,t),42===n.charCodeAt(n.length-1)){const a=++t;for(;t<e.length;++t){const a=e.charCodeAt(t);if(1!==c[a]){if(39!==a)return;break}}if(t===e.length)return;for(m=e.slice(a,t),++t;t<e.length&&39!==e.charCodeAt(t);++t);if(t===e.length)return;if(++t===e.length)return;u=t;let i=0;for(;t<e.length;++t){const a=e.charCodeAt(t);if(1!==p[a]){if(37===a){let a,n;if(t+2<e.length&&-1!==(a=l[e.charCodeAt(t+1)])&&-1!==(n=l[e.charCodeAt(t+2)])){const r=(a<<4)+n;h+=e.slice(u,t),h+=String.fromCharCode(r),u=(t+=2)+1,r>=128?i=2:0===i&&(i=1);continue}return}break}}if(h+=e.slice(u,t),h=r(h,m,i),void 0===h)return}else{if(++t===e.length)return;if(34===e.charCodeAt(t)){u=++t;let a=!1;for(;t<e.length;++t){const i=e.charCodeAt(t);if(92!==i){if(34===i){if(a){u=t,a=!1;continue}h+=e.slice(u,t);break}if(a&&(u=t-1,a=!1),1!==s[i])return}else a?(u=t,a=!1):(h+=e.slice(u,t),a=!0)}if(t===e.length)return;++t}else{for(u=t;t<e.length;++t){const a=e.charCodeAt(t);if(1!==o[a]){if(t===u)return;break}}h=e.slice(u,t)}if(h=i(h,2),void 0===h)return}n=n.toLowerCase(),void 0===a[n]&&(a[n]=h)}return a}function i(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return n.other.bind(e)}}const n={utf8:(e,t)=>{if(0===e.length)return"";if("string"==typeof e){if(t<2)return e;e=Buffer.from(e,"latin1")}return e.utf8Slice(0,e.length)},latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.base64Slice(0,e.length)),other:(e,t)=>{if(0===e.length)return"";"string"==typeof e&&(e=Buffer.from(e,"latin1"));try{return new TextDecoder(this).decode(e)}catch{}}};function r(e,t,a){const n=i(t);if(n)return n(e,a)}const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e}return".."===e||"."===e?"":e},convertToUTF8:r,getDecoder:i,parseContentType:function(e){if(0===e.length)return;const a=Object.create(null);let i=0;for(;i<e.length;++i){const t=e.charCodeAt(i);if(1!==o[t]){if(47!==t||0===i)return;break}}if(i===e.length)return;const n=e.slice(0,i).toLowerCase(),r=++i;for(;i<e.length;++i){const n=e.charCodeAt(i);if(1!==o[n]){if(i===r)return;if(void 0===t(e,i,a))return;break}}return i!==r?{type:n,subtype:e.slice(r,i).toLowerCase(),params:a}:void 0},parseDisposition:function(e,t){if(0===e.length)return;const i=Object.create(null);let n=0;for(;n<e.length;++n){const r=e.charCodeAt(n);if(1!==o[r]){if(void 0===a(e,n,i,t))return;break}}return{type:e.slice(0,n).toLowerCase(),params:i}}}},3144(e,t,a){var i=a(6743),n=a(1002),r=a(76),o=a(7119);e.exports=o||i.call(r,n)},1002(e){e.exports=Function.prototype.apply},76(e){e.exports=Function.prototype.call},3126(e,t,a){var i=a(6743),n=a(9675),r=a(76),o=a(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return o(i,r,e)}},7119(e){e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},6556(e,t,a){var i=a(453),n=a(3126),r=n([i("%String.prototype.indexOf%")]);e.exports=function(e,t){var a=i(e,!!t);return"function"==typeof a&&r(e,".prototype.")>-1?n([a]):a}},7520(e,t,a){var i=a(4198).Writable,n=a(2017),r=a(2746);if("undefined"==typeof Uint8Array)var o=a(9656).SE;else o=Uint8Array;function s(e,t){if(!(this instanceof s))return new s(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var a=e.encoding,n=!1;a?"u8"!==(a=String(a).toLowerCase())&&"uint8"!==a||(a="uint8array"):n=!0,i.call(this,{objectMode:!0}),this.encoding=a,this.shouldInferEncoding=n,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}function c(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=s,n(s,i),s.prototype._write=function(e,t,a){this.body.push(e),a()},s.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return Buffer.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},s.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],a=0;a<e.length;a++)t.push.apply(t,e[a]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],a=0;a<e.length;a++){var i=e[a];"string"==typeof i||Buffer.isBuffer(i)?t.push(i):c(i)?t.push(r(i)):t.push(r(String(i)))}return t=Buffer.isBuffer(e[0])?(t=Buffer.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],a=0;a<e.length;a++){var i=e[a];Buffer.isBuffer(i)?t.push(i):c(i)?t.push(r(i)):t.push(r(String(i)))}return Buffer.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,a=0;a<e.length;a++)"string"==typeof e[a]&&(e[a]=r(e[a])),t+=e[a].length;for(var i=new o(t),n=(a=0,0);a<e.length;a++)for(var s=e[a],c=0;c<s.length;c++)i[n++]=s[c];return i}(this.body):this.body):[]},Array.isArray},5622(e,t,a){function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=a(181).Buffer.isBuffer},6330(e,t,a){var i=a(6928).relative;e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");var t=c(m()[1])[0];function a(e){s.call(a,e)}return a._file=t,a._ignored=function(e){return!!process.noDeprecation||r(process.env.NO_DEPRECATION||"",e)}(e),a._namespace=e,a._traced=function(e){return!!process.traceDeprecation||r(process.env.TRACE_DEPRECATION||"",e)}(e),a._warned=Object.create(null),a.function=f,a.property=v,a};var n=process.cwd();function r(e,t){for(var a=e.split(/[ ,]+/),i=String(t).toLowerCase(),n=0;n<a.length;n++){var r=a[n];if(r&&("*"===r||r.toLowerCase()===i))return!0}return!1}function o(e){var t=this.name+": "+this.namespace;this.message&&(t+=" deprecated "+this.message);for(var a=0;a<e.length;a++)t+="\n at "+e[a].toString();return t}function s(e,t){var a,i,n=(i="deprecation",("function"!=typeof(a=process).listenerCount?a.listeners(i).length:a.listenerCount(i))>0);if(n||!this._ignored){var r,o,s,u,h=0,f=!1,v=m(),g=this._file;for(t?(u=t,(s=c(v[1])).name=u.name,g=s[0]):s=u=c(v[h=2]);h<v.length;h++)if((o=(r=c(v[h]))[0])===g)f=!0;else if(o===this._file)g=this._file;else if(f)break;var b=r?u.join(":")+"__"+r.join(":"):void 0;if(void 0===b||!(b in this._warned)){this._warned[b]=!0;var y=e;if(y||(y=s!==u&&s.name?p(s):p(u)),n){var _=x(this._namespace,y,v.slice(h));process.emit("deprecation",_)}else{var w=(process.stderr.isTTY?d:l).call(this,y,r,v.slice(h));process.stderr.write(w+"\n","utf8")}}}}function c(e){var t=e.getFileName()||"<anonymous>",a=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+", "+t);var n=[t,a,i];return n.callSite=e,n.name=e.getFunctionName(),n}function p(e){var t=e.callSite,a=e.name;a||(a="<anonymous@"+u(e)+">");var i=t.getThis(),n=i&&t.getTypeName();return"Object"===n&&(n=void 0),"Function"===n&&(n=i.name||n),n&&t.getMethodName()?n+"."+a:a}function l(e,t,a){var i=(new Date).toUTCString()+" "+this._namespace+" deprecated "+e;if(this._traced){for(var n=0;n<a.length;n++)i+="\n at "+a[n].toString();return i}return t&&(i+=" at "+u(t)),i}function d(e,t,a){var i="[36;1m"+this._namespace+"[22;39m [33;1mdeprecated[22;39m [0m"+e+"[39m";if(this._traced){for(var n=0;n<a.length;n++)i+="\n [36mat "+a[n].toString()+"[39m";return i}return t&&(i+=" [36m"+u(t)+"[39m"),i}function u(e){return i(n,e[0])+":"+e[1]+":"+e[2]}function m(){var e=Error.stackTraceLimit,t={},a=Error.prepareStackTrace;Error.prepareStackTrace=h,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var i=t.stack.slice(1);return Error.prepareStackTrace=a,Error.stackTraceLimit=e,i}function h(e,t){return t}function f(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");var a=function(e){for(var t="",a=0;a<e;a++)t+=", arg"+a;return t.substr(2)}(e.length),i=c(m()[1]);return i.name=e.name,new Function("fn","log","deprecate","message","site",'"use strict"\nreturn function ('+a+") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(e,s,this,t,i)}function v(e,t,a){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var i=Object.getOwnPropertyDescriptor(e,t);if(!i)throw new TypeError("must call property on owner object");if(!i.configurable)throw new TypeError("property must be configurable");var n=this,r=c(m()[1]);r.name=t,"value"in i&&(i=function(e,t){var a=Object.getOwnPropertyDescriptor(e,t),i=a.value;return a.get=function(){return i},a.writable&&(a.set=function(e){return i=e}),delete a.value,delete a.writable,Object.defineProperty(e,t,a),a}(e,t));var o=i.get,p=i.set;"function"==typeof o&&(i.get=function(){return s.call(n,a,r),o.apply(this,arguments)}),"function"==typeof p&&(i.set=function(){return s.call(n,a,r),p.apply(this,arguments)}),Object.defineProperty(e,t,i)}function x(e,t,a){var i,n=new Error;return Object.defineProperty(n,"constructor",{value:x}),Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(n,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(n,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,get:function(){return void 0!==i?i:i=o.call(this,a)},set:function(e){i=e}}),n}},7013(e,t,a){var i=a(4434).EventEmitter,n=a(9896).ReadStream,r=a(2203),o=a(3106);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 n}(e)?function(e){return e instanceof o.Gzip||e instanceof o.Gunzip||e instanceof o.Deflate||e instanceof o.DeflateRaw||e instanceof o.Inflate||e instanceof o.InflateRaw||e instanceof o.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!==r.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 r&&"function"==typeof e.destroy}(e)&&e.destroy():function(e){e.destroy(),"function"==typeof e.close&&e.on("open",p)}(e),e instanceof i&&t&&(e.removeAllListeners("error"),e.addListener("error",s)),e}},7176(e,t,a){var i,n=a(3126),r=a(5795);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!i&&r&&r(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},4276(e){function t(e,t){return function(a){for(var i=new Array(arguments.length),n="error"===e?a:null,r=0;r<i.length;r++)i[r]=arguments[r];t(n,this,e,i)}}e.exports=function(e,a){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var i=[],n=0;n<e.length;n++){var r=e[n];if(!Array.isArray(r)||r.length<2)throw new TypeError("each array member must be [ee, events...]");for(var o=r[0],s=1;s<r.length;s++){var c=r[s],p=t(c,l);o.on(c,p),i.push({ee:o,event:c,fn:p})}}function l(){d(),a.apply(null,arguments)}function d(){for(var e,t=0;t<i.length;t++)(e=i[t]).ee.removeListener(e.event,e.fn)}function u(e){a=e}return u.cancel=d,u}},2224(e){e.exports=function(e){return String(e).replace(a,"$1�$2").replace(t,encodeURI)};var t=/(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,a=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g},655(e){var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},1237(e){e.exports=EvalError},9383(e){e.exports=Error},9290(e){e.exports=RangeError},9538(e){e.exports=ReferenceError},8068(e){e.exports=SyntaxError},9675(e){e.exports=TypeError},5345(e){e.exports=URIError},9612(e){e.exports=Object},580(e){var t=/["'&<>]/;e.exports=function(e){var a,i=""+e,n=t.exec(i);if(!n)return i;var r="",o=0,s=0;for(o=n.index;o<i.length;o++){switch(i.charCodeAt(o)){case 34:a=""";break;case 38:a="&";break;case 39:a="'";break;case 60:a="<";break;case 62:a=">";break;default:continue}s!==o&&(r+=i.substring(s,o)),s=o+1,r+=a}return s!==o?r+i.substring(s,o):r}},7160(e,t,a){e.exports=function(e,t){if(null==e)throw new TypeError("argument entity is required");var a,o=(a=e,"function"==typeof n&&a instanceof n||a&&"object"==typeof a&&"ctime"in a&&"[object Date]"===r.call(a.ctime)&&"mtime"in a&&"[object Date]"===r.call(a.mtime)&&"ino"in a&&"number"==typeof a.ino&&"size"in a&&"number"==typeof a.size),s=t&&"boolean"==typeof t.weak?t.weak:o;if(!o&&"string"!=typeof e&&!Buffer.isBuffer(e))throw new TypeError("argument entity must be string, Buffer, or fs.Stats");var c,p,l=o?(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=i.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 i=a(6982),n=a(9896).Stats,r=Object.prototype.toString},9919(e,t,a){let i=a(9896);var n=a(3189);let r=a(2577),o=a(5718).sanitizeOptions,s=a(3592).findEncoding,c=r.mime;e.exports=function(e,t){let a=o(t),p=r(e,a.serveStatic||null),l=[],d={};return function(){if(a.customCompressions&&a.customCompressions.length>0)for(let e of a.customCompressions)f(e.encodingName,e.fileExtension);a.enableBrotli&&f("br","br"),f("gzip","gz")}(),l.length>0&&u(e),function(e,t,i){!function(e){const t=e.url.split("?");a.index&&t[0].endsWith("/")&&n.original(e).pathname.endsWith("/")&&(t[0]+=a.index,e.url=t.length>1?t.join("?"):t[0])}(e);let r=e.headers["accept-encoding"],o="";try{o=decodeURIComponent(e.path)}catch(e){return void t.status(400).send(e.message)}let l=d[o];if(l){t.setHeader("Vary","Accept-Encoding");let i=s(r,l.compressions,a.orderPreference);i&&function(e,t,a){let i=c.lookup(e.path),n=c.charsets.lookup(i),r=e.url.split("?").splice(1).join("?");""!==r&&(r="?"+r),e.url=e.path+a.fileExtension+r,t.setHeader("Content-Encoding",a.encodingName),t.setHeader("Content-Type",i+(n?"; charset="+n:""))}(e,t,i)}p(e,t,i)};function u(e){if(!i.existsSync(e))return;let t=i.readdirSync(e);for(let a of t){let t=e+"/"+a;i.statSync(t).isDirectory()?u(t):m(a,t)}}function m(e,t){for(let a of l)if(e.endsWith(a.fileExtension))return void h(t,a)}function h(t,a){let i=t.replace(e,"").replace(a.fileExtension,""),n=d[i];n?n.compressions.push(a):d[i]={compressions:[a]}}function f(e,t){(function(e){for(let t of l)if(t.encodingName===e)return t;return null})(e)||l.push(new v(e,t))}function v(e,t){this.encodingName=e,this.fileExtension="."+t}}},3592(e){e.exports={findEncoding:function(e,t,a){if(e){let i=e.split(",").map(e=>function(e){let t=e.split(";");try{if(t.length>1){const e=t[1].trim().match(/q=(.*)/)[1];return{name:t[0].trim(),q:parseFloat(e)}}}catch(e){}return{name:t[0].trim(),q:1}}(e)).sort((e,t)=>t.q-e.q).filter(e=>e.q>0).map(e=>e.name);return i=function(e,t){if(!t||0===t.length)return e;for(let a=t.length-1;a>=0;a--){let i=t[a],n=e.indexOf(i);n>=0&&(e.splice(n,1),e.splice(0,0,i))}return e}(i,a),function(e,t){for(const a of e){if("identity"===a)return null;for(let e of t)if("*"===a||a===e.encodingName)return e}return null}(i,t)}return null}}},5718(e){function t(e,t,a){"object"!=typeof e.serveStatic&&(e.serveStatic={}),e.serveStatic[t]=a}e.exports={sanitizeOptions:function(e){let a={index:(i=e=e||{},void 0===i.indexFromEmptyFile&&void 0!==i.index?i.index:void 0===i.index&&void 0!==i.indexFromEmptyFile?i.indexFromEmptyFile:"index.html")};var i;return void 0!==e.enableBrotli&&(a.enableBrotli=!!e.enableBrotli),"object"==typeof e.customCompressions&&(a.customCompressions=e.customCompressions),"object"==typeof e.orderPreference&&(a.orderPreference=e.orderPreference),function(e,a){void 0!==e.serveStatic&&(a.serveStatic=e.serveStatic),function(e,a){var i=["cacheControl","dotfiles","etag","extensions","index","fallthrough","immutable","lastModified","maxAge","redirect","setHeaders"];for(var n in i){var r=i[n];void 0===e[r]||a.serveStatic&&void 0!==a.serveStatic[r]||t(a,r,e[r])}}(e,a)}(e,a),a}}},1427(e){var t=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;function a(e){var t=e&&Date.parse(e);return"number"==typeof t?t:NaN}e.exports=function(e,i){var n=e["if-modified-since"],r=e["if-none-match"];if(!n&&!r)return!1;var o=e["cache-control"];if(o&&t.test(o))return!1;if(r&&"*"!==r){var s=i.etag;if(!s)return!1;for(var c=!0,p=function(e){for(var t=0,a=[],i=0,n=0,r=e.length;n<r;n++)switch(e.charCodeAt(n)){case 32:i===t&&(i=t=n+1);break;case 44:a.push(e.substring(i,t)),i=t=n+1;break;default:t=n+1}return a.push(e.substring(i,t)),a}(r),l=0;l<p.length;l++){var d=p[l];if(d===s||d==="W/"+s||"W/"+d===s){c=!1;break}}if(c)return!1}if(n){var u=i["last-modified"];if(!(u&&a(u)<=a(n)))return!1}return!0}},9353(e){var t=Object.prototype.toString,a=Math.max,i=function(e,t){for(var a=[],i=0;i<e.length;i+=1)a[i]=e[i];for(var n=0;n<t.length;n+=1)a[n+e.length]=t[n];return a};e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==t.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,o=function(e){for(var t=[],a=1,i=0;a<e.length;a+=1,i+=1)t[i]=e[a];return t}(arguments),s=a(0,n.length-o.length),c=[],p=0;p<s;p++)c[p]="$"+p;if(r=Function("binder","return function ("+function(e){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var t=n.apply(this,i(o,arguments));return Object(t)===t?t:this}return n.apply(e,i(o,arguments))}),n.prototype){var l=function(){};l.prototype=n.prototype,r.prototype=new l,l.prototype=null}return r}},6743(e,t,a){var i=a(9353);e.exports=Function.prototype.bind||i},453(e,t,a){var i,n=a(9612),r=a(9383),o=a(1237),s=a(9290),c=a(9538),p=a(8068),l=a(9675),d=a(5345),u=a(1514),m=a(8968),h=a(6188),f=a(8002),v=a(5880),x=a(414),g=a(3093),b=Function,y=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=a(5795),w=a(655),k=function(){throw new l},E=_?function(){try{return k}catch(e){try{return _(arguments,"callee").get}catch(e){return k}}}():k,j=a(4039)(),S=a(3628),T=a(1064),z=a(8648),A=a(1002),C=a(76),O={},P="undefined"!=typeof Uint8Array&&S?S(Uint8Array):i,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":j&&S?S([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&S?S(S([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&S?S((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&S?S((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&S?S(""[Symbol.iterator]()):i,"%Symbol%":j?Symbol:i,"%SyntaxError%":p,"%ThrowTypeError%":E,"%TypedArray%":P,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":A,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":T,"%Math.abs%":u,"%Math.floor%":m,"%Math.max%":h,"%Math.min%":f,"%Math.pow%":v,"%Math.round%":x,"%Math.sign%":g,"%Reflect.getPrototypeOf%":z};if(S)try{null.error}catch(e){var B=S(S(e));N["%Error.prototype%"]=B}var I=function e(t){var a;if("%AsyncFunction%"===t)a=y("async function () {}");else if("%GeneratorFunction%"===t)a=y("function* () {}");else if("%AsyncGeneratorFunction%"===t)a=y("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(a=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&S&&(a=S(n.prototype))}return N[t]=a,a},M={__proto__:null,"%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"]},R=a(6743),q=a(9957),U=R.call(C,Array.prototype.concat),L=R.call(A,Array.prototype.splice),D=R.call(C,String.prototype.replace),F=R.call(C,String.prototype.slice),H=R.call(C,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,K=function(e,t){var a,i=e;if(q(M,i)&&(i="%"+(a=M[i])[0]+"%"),q(N,i)){var n=N[i];if(n===O&&(n=I(i)),void 0===n&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:n}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=function(e){var t=F(e,0,1),a=F(e,-1);if("%"===t&&"%"!==a)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var i=[];return D(e,Q,function(e,t,a,n){i[i.length]=a?D(n,W,"$1"):t||e}),i}(e),i=a.length>0?a[0]:"",n=K("%"+i+"%",t),r=n.name,o=n.value,s=!1,c=n.alias;c&&(i=c[0],L(a,U([0,1],c)));for(var d=1,u=!0;d<a.length;d+=1){var m=a[d],h=F(m,0,1),f=F(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===f||"'"===f||"`"===f)&&h!==f)throw new p("property names with quotes must have matching quotes");if("constructor"!==m&&u||(s=!0),q(N,r="%"+(i+="."+m)+"%"))o=N[r];else if(null!=o){if(!(m in o)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=a.length){var v=_(o,m);o=(u=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:o[m]}else u=q(o,m),o=o[m];u&&!s&&(N[r]=o)}}return o}},1064(e,t,a){var i=a(9612);e.exports=i.getPrototypeOf||null},8648(e){e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628(e,t,a){var i=a(8648),n=a(1064),r=a(7176);e.exports=i?function(e){return i(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return n(e)}:r?function(e){return r(e)}:null},6549(e){e.exports=Object.getOwnPropertyDescriptor},5795(e,t,a){var i=a(6549);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},4039(e,t,a){var i="undefined"!=typeof Symbol&&Symbol,n=a(1333);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},1333(e){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"),a=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(a))return!1;for(var i 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 r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},9957(e,t,a){var i=Function.prototype.call,n=Object.prototype.hasOwnProperty,r=a(6743);e.exports=r.call(i,n)},2771(e,t,a){var i,n=a(6330)(