module.exports=function(e,i){"use strict";var t={};function __webpack_require__(i){if(t[i]){return t[i].exports}var n=t[i]={i:i,l:false,exports:{}};e[i].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(131)}return startup()}({1:function(e,i,t){"use strict";var n=this&&this.__awaiter||function(e,i,t,n){function adopt(e){return e instanceof t?e:new t(function(i){i(e)})}return new(t||(t=Promise))(function(t,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,i||[])).next())})};Object.defineProperty(i,"__esModule",{value:true});const r=t(129);const a=t(622);const o=t(669);const s=t(672);const c=o.promisify(r.exec);function cp(e,i,t={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:r}=readCopyOptions(t);const o=(yield s.exists(i))?yield s.stat(i):null;if(o&&o.isFile()&&!n){return}const c=o&&o.isDirectory()?a.join(i,a.basename(e)):i;if(!(yield s.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield s.stat(e);if(p.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(a.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}i.cp=cp;function mv(e,i,t={}){return n(this,void 0,void 0,function*(){if(yield s.exists(i)){let n=true;if(yield s.isDirectory(i)){i=a.join(i,a.basename(e));n=yield s.exists(i)}if(n){if(t.force==null||t.force){yield rmRF(i)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(i));yield s.rename(e,i)})}i.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(s.IS_WINDOWS){try{if(yield s.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield s.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let i=false;try{i=yield s.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(i){yield c(`rm -rf "${e}"`)}else{yield s.unlink(e)}}})}i.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield s.mkdirP(e)})}i.mkdirP=mkdirP;function which(e,i){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(i){const i=yield which(e,false);if(!i){if(s.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const i=[];if(s.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(a.delimiter)){if(e){i.push(e)}}}if(s.isRooted(e)){const t=yield s.tryGetExecutablePath(e,i);if(t){return t}return""}if(e.includes("/")||s.IS_WINDOWS&&e.includes("\\")){return""}const t=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){t.push(e)}}}for(const n of t){const t=yield s.tryGetExecutablePath(n+a.sep+e,i);if(t){return t}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}i.which=which;function readCopyOptions(e){const i=e.force==null?true:e.force;const t=Boolean(e.recursive);return{force:i,recursive:t}}function cpDirRecursive(e,i,t,r){return n(this,void 0,void 0,function*(){if(t>=255)return;t++;yield mkdirP(i);const n=yield s.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${i}/${a}`;const c=yield s.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,t,r)}else{yield copyFile(n,o,r)}}yield s.chmod(i,(yield s.stat(e)).mode)})}function copyFile(e,i,t){return n(this,void 0,void 0,function*(){if((yield s.lstat(e)).isSymbolicLink()){try{yield s.lstat(i);yield s.unlink(i)}catch(e){if(e.code==="EPERM"){yield s.chmod(i,"0666");yield s.unlink(i)}}const t=yield s.readlink(e);yield s.symlink(t,i,s.IS_WINDOWS?"junction":null)}else if(!(yield s.exists(i))||t){yield s.copyFile(e,i)}})}},9:function(e,i,t){var n=t(49);var r=function(){};var a=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var s=function(e,i,t){if(typeof i==="function")return s(e,null,i);if(!i)i={};t=n(t||r);var c=e._writableState;var p=e._readableState;var l=i.readable||i.readable!==false&&e.readable;var u=i.writable||i.writable!==false&&e.writable;var f=function(){if(!e.writable)d()};var d=function(){u=false;if(!l)t.call(e)};var m=function(){l=false;if(!u)t.call(e)};var h=function(i){t.call(e,i?new Error("exited with error code: "+i):null)};var x=function(i){t.call(e,i)};var v=function(){if(l&&!(p&&p.ended))return t.call(e,new Error("premature close"));if(u&&!(c&&c.ended))return t.call(e,new Error("premature close"))};var g=function(){e.req.on("finish",d)};if(a(e)){e.on("complete",d);e.on("abort",v);if(e.req)g();else e.on("request",g)}else if(u&&!c){e.on("end",f);e.on("close",f)}if(o(e))e.on("exit",h);e.on("end",m);e.on("finish",d);if(i.error!==false)e.on("error",x);e.on("close",v);return function(){e.removeListener("complete",d);e.removeListener("abort",v);e.removeListener("request",g);if(e.req)e.req.removeListener("finish",d);e.removeListener("end",f);e.removeListener("close",f);e.removeListener("finish",d);e.removeListener("exit",h);e.removeListener("end",m);e.removeListener("error",x);e.removeListener("close",v)}};e.exports=s},11:function(e){e.exports=wrappy;function wrappy(e,i){if(e&&i)return wrappy(e)(i);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(i){wrapper[i]=e[i]});return wrapper;function wrapper(){var i=new Array(arguments.length);for(var t=0;t=n.length)break;o=n[a++]}else{a=n.next();if(a.done)break;o=a.value}var s=o;var c=s.split(/\s*=\s*/,2),p=c[0],l=c[1];i[p]=l===undefined?true:l.replace(/^"|"$/g,"")}return i}function formatCacheControl(e){var i=[];for(var t in e){var n=e[t];i.push(n===true?t:t+"="+n)}if(!i.length){return undefined}return i.join(", ")}e.exports=function(){function CachePolicy(e,i){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},n=t.shared,r=t.cacheHeuristic,a=t.immutableMinTimeToLive,o=t.ignoreCargoCult,s=t._fromObject;_classCallCheck(this,CachePolicy);if(s){this._fromObject(s);return}if(!i||!i.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=n!==false;this._cacheHeuristic=undefined!==r?r:.1;this._immutableMinTtl=undefined!==a?a:24*3600*1e3;this._status="status"in i?i.status:200;this._resHeaders=i.headers;this._rescc=parseCacheControl(i.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=i.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(o&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(!i.headers["cache-control"]&&/no-cache/.test(i.headers.pragma)){this._rescc["no-cache"]=true}}CachePolicy.prototype.now=function now(){return Date.now()};CachePolicy.prototype.storable=function storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&t.indexOf(this._status)!==-1&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||i.indexOf(this._status)!==-1))};CachePolicy.prototype._hasExplicitExpiration=function _hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires};CachePolicy.prototype._assertRequestHasHeaders=function _assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}};CachePolicy.prototype.satisfiesWithoutRevalidation=function satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);var i=parseCacheControl(e.headers["cache-control"]);if(i["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(i["max-age"]&&this.age()>i["max-age"]){return false}if(i["min-fresh"]&&this.timeToLive()<1e3*i["min-fresh"]){return false}if(this.stale()){var t=i["max-stale"]&&!this._rescc["must-revalidate"]&&(true===i["max-stale"]||i["max-stale"]>this.age()-this.maxAge());if(!t){return false}}return this._requestMatches(e,false)};CachePolicy.prototype._requestMatches=function _requestMatches(e,i){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||i&&"HEAD"===e.method)&&this._varyMatches(e)};CachePolicy.prototype._allowsStoringAuthenticated=function _allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]};CachePolicy.prototype._varyMatches=function _varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}var i=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(var t=i,n=Array.isArray(t),r=0,t=n?t:t[Symbol.iterator]();;){var a;if(n){if(r>=t.length)break;a=t[r++]}else{r=t.next();if(r.done)break;a=r.value}var o=a;if(e.headers[o]!==this._reqHeaders[o])return false}return true};CachePolicy.prototype._copyWithoutHopByHopHeaders=function _copyWithoutHopByHopHeaders(e){var i={};for(var t in e){if(n[t])continue;i[t]=e[t]}if(e.connection){var r=e.connection.trim().split(/\s*,\s*/);for(var a=r,o=Array.isArray(a),s=0,a=o?a:a[Symbol.iterator]();;){var c;if(o){if(s>=a.length)break;c=a[s++]}else{s=a.next();if(s.done)break;c=s.value}var p=c;delete i[p]}}if(i.warning){var l=i.warning.split(/,/).filter(function(e){return!/^\s*1[0-9][0-9]/.test(e)});if(!l.length){delete i.warning}else{i.warning=l.join(",").trim()}}return i};CachePolicy.prototype.responseHeaders=function responseHeaders(){var e=this._copyWithoutHopByHopHeaders(this._resHeaders);var i=this.age();if(i>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(i)}`;return e};CachePolicy.prototype.date=function date(){var e=Date.parse(this._resHeaders.date);var i=8*3600*1e3;if(Number.isNaN(e)||ethis._responseTime+i){return this._responseTime}return e};CachePolicy.prototype.age=function age(){var age=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var e=this._ageValue();if(e>age)age=e}var i=(this.now()-this._responseTime)/1e3;return age+i};CachePolicy.prototype._ageValue=function _ageValue(){var e=parseInt(this._resHeaders.age);return isFinite(e)?e:0};CachePolicy.prototype.maxAge=function maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return parseInt(this._rescc["s-maxage"],10)}}if(this._rescc["max-age"]){return parseInt(this._rescc["max-age"],10)}var e=this._rescc.immutable?this._immutableMinTtl:0;var i=this.date();if(this._resHeaders.expires){var t=Date.parse(this._resHeaders.expires);if(Number.isNaN(t)||tn){return Math.max(e,(i-n)/1e3*this._cacheHeuristic)}}return e};CachePolicy.prototype.timeToLive=function timeToLive(){return Math.max(0,this.maxAge()-this.age())*1e3};CachePolicy.prototype.stale=function stale(){return this.maxAge()<=this.age()};CachePolicy.fromObject=function fromObject(e){return new this(undefined,undefined,{_fromObject:e})};CachePolicy.prototype._fromObject=function _fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc};CachePolicy.prototype.toObject=function toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}};CachePolicy.prototype.revalidationHeaders=function revalidationHeaders(e){this._assertRequestHasHeaders(e);var i=this._copyWithoutHopByHopHeaders(e.headers);delete i["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete i["if-none-match"];delete i["if-modified-since"];return i}if(this._resHeaders.etag){i["if-none-match"]=i["if-none-match"]?`${i["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}var t=i["accept-ranges"]||i["if-match"]||i["if-unmodified-since"]||this._method&&this._method!="GET";if(t){delete i["if-modified-since"];if(i["if-none-match"]){var n=i["if-none-match"].split(/,/).filter(function(e){return!/^\s*W\//.test(e)});if(!n.length){delete i["if-none-match"]}else{i["if-none-match"]=n.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!i["if-modified-since"]){i["if-modified-since"]=this._resHeaders["last-modified"]}return i};CachePolicy.prototype.revalidatedPolicy=function revalidatedPolicy(e,i){this._assertRequestHasHeaders(e);if(!i||!i.headers){throw Error("Response headers missing")}var t=false;if(i.status!==undefined&&i.status!=304){t=false}else if(i.headers.etag&&!/^\s*W\//.test(i.headers.etag)){t=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===i.headers.etag}else if(this._resHeaders.etag&&i.headers.etag){t=this._resHeaders.etag.replace(/^\s*W\//,"")===i.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){t=this._resHeaders["last-modified"]===i.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!i.headers.etag&&!i.headers["last-modified"]){t=true}}if(!t){return{policy:new this.constructor(e,i),modified:true}}var n={};for(var a in this._resHeaders){n[a]=a in i.headers&&!r[a]?i.headers[a]:this._resHeaders[a]}var o=Object.assign({},i,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,o),modified:false}};return CachePolicy}()},36:function(e,i,t){"use strict";const n=t(747);const r=t(622);const a=t(802);const o={mode:511&~process.umask(),fs:n};const s=e=>{if(process.platform==="win32"){const i=/[<>:"|?*]/.test(e.replace(r.parse(e).root,""));if(i){const i=new Error(`Path contains invalid characters: ${e}`);i.code="EINVAL";throw i}}};e.exports=((e,i)=>Promise.resolve().then(()=>{s(e);i=Object.assign({},o,i);const t=a(i.fs.mkdir);const n=a(i.fs.stat);const c=e=>{return t(e,i.mode).then(()=>e).catch(i=>{if(i.code==="ENOENT"){if(i.message.includes("null bytes")||r.dirname(e)===e){throw i}return c(r.dirname(e)).then(()=>c(e))}return n(e).then(i=>i.isDirectory()?e:Promise.reject()).catch(()=>{throw i})})};return c(r.resolve(e))}));e.exports.sync=((e,i)=>{s(e);i=Object.assign({},o,i);const t=e=>{try{i.fs.mkdirSync(e,i.mode)}catch(n){if(n.code==="ENOENT"){if(n.message.includes("null bytes")||r.dirname(e)===e){throw n}t(r.dirname(e));return t(e)}try{if(!i.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw n}}return e};return t(r.resolve(e))})},49:function(e,i,t){var n=t(11);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var i=function(){if(i.called)return i.value;i.called=true;return i.value=e.apply(this,arguments)};i.called=false;return i}function onceStrict(e){var i=function(){if(i.called)throw new Error(i.onceError);i.called=true;return i.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";i.onceError=t+" shouldn't be called more than once";i.called=false;return i}},53:function(e,i,t){"use strict";const n=t(835);const r=t(213);const a=t(183);const o=t(128);const s=t(741);const c={"http:":80,"https:":443,"ftp:":21};const p={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function testParameter(e,i){return i.some(i=>i instanceof RegExp?i.test(e):i===e)}e.exports=((e,i)=>{i=Object.assign({normalizeProtocol:true,normalizeHttps:false,stripFragment:true,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true},i);if(typeof e!=="string"){throw new TypeError("Expected a string")}const t=e.startsWith("//");e=o(e.trim()).replace(/^\/\//,"http://");const l=n.parse(e);if(i.normalizeHttps&&l.protocol==="https:"){l.protocol="http:"}if(!l.hostname&&!l.pathname){throw new Error("Invalid URL")}delete l.host;delete l.query;if(i.stripFragment){delete l.hash}const u=c[l.protocol];if(Number(l.port)===u){delete l.port}if(l.pathname){l.pathname=l.pathname.replace(/\/{2,}/g,"/")}if(l.pathname){l.pathname=decodeURI(l.pathname)}if(i.removeDirectoryIndex===true){i.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(i.removeDirectoryIndex)&&i.removeDirectoryIndex.length>0){let e=l.pathname.split("/");const t=e[e.length-1];if(testParameter(t,i.removeDirectoryIndex)){e=e.slice(0,e.length-1);l.pathname=e.slice(1).join("/")+"/"}}if(p[l.protocol]){const e=l.protocol+"//"+l.hostname;const i=n.resolve(e,l.pathname);l.pathname=i.replace(e,"")}if(l.hostname){l.hostname=r.toUnicode(l.hostname).toLowerCase();l.hostname=l.hostname.replace(/\.$/,"");if(i.stripWWW){l.hostname=l.hostname.replace(/^www\./,"")}}if(l.search==="?"){delete l.search}const f=a.parse(l.search);if(Array.isArray(i.removeQueryParameters)){for(const e in f){if(testParameter(e,i.removeQueryParameters)){delete f[e]}}}if(i.sortQueryParameters){l.search=a.stringify(s(f))}if(l.search!==null){l.search=decodeURIComponent(l.search)}e=n.format(l);if(i.removeTrailingSlash||l.pathname==="/"){e=e.replace(/\/$/,"")}if(t&&!i.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}return e})},62:function(e,i){i.parse=i.decode=decode;i.stringify=i.encode=encode;i.safe=safe;i.unsafe=unsafe;var t=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,i){var n=[];var r="";if(typeof i==="string"){i={section:i,whitespace:false}}else{i=i||{};i.whitespace=i.whitespace===true}var a=i.whitespace?" = ":"=";Object.keys(e).forEach(function(i,o,s){var c=e[i];if(c&&Array.isArray(c)){c.forEach(function(e){r+=safe(i+"[]")+a+safe(e)+"\n"})}else if(c&&typeof c==="object"){n.push(i)}else{r+=safe(i)+a+safe(c)+t}});if(i.section&&r.length){r="["+safe(i.section)+"]"+t+r}n.forEach(function(n,a,o){var s=dotSplit(n).join("\\.");var c=(i.section?i.section+".":"")+s;var p=encode(e[n],{section:c,whitespace:i.whitespace});if(r.length&&p.length){r+=t}r+=p});return r}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function decode(e){var i={};var t=i;var n=null;var r=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var a=e.split(/[\r\n]+/g);a.forEach(function(e,a,o){if(!e||e.match(/^\s*[;#]/))return;var s=e.match(r);if(!s)return;if(s[1]!==undefined){n=unsafe(s[1]);t=i[n]=i[n]||{};return}var c=unsafe(s[2]);var p=s[3]?unsafe(s[4]):true;switch(p){case"true":case"false":case"null":p=JSON.parse(p)}if(c.length>2&&c.slice(-2)==="[]"){c=c.substring(0,c.length-2);if(!t[c]){t[c]=[]}else if(!Array.isArray(t[c])){t[c]=[t[c]]}}if(Array.isArray(t[c])){t[c].push(p)}else{t[c]=p}});Object.keys(i).filter(function(e,t,n){if(!i[e]||typeof i[e]!=="object"||Array.isArray(i[e])){return false}var r=dotSplit(e);var a=i;var o=r.pop();var s=o.replace(/\\\./g,".");r.forEach(function(e,i,t){if(!a[e]||typeof a[e]!=="object")a[e]={};a=a[e]});if(a===i&&s===o){return false}a[s]=i[e];return true}).forEach(function(e,t,n){delete i[e]});return i}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,i){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'"){e=e.substr(1,e.length-2)}try{e=JSON.parse(e)}catch(e){}}else{var t=false;var n="";for(var r=0,a=e.length;r{e=Object.assign({},e);const i=e.array;let t=e.encoding;const r=t==="buffer";let a=false;if(i){a=!(t||r)}else{t=t||"utf8"}if(r){t=null}let o=0;const s=[];const c=new n({objectMode:a});if(t){c.setEncoding(t)}c.on("data",e=>{s.push(e);if(a){o=s.length}else{o+=e.length}});c.getBufferedValue=(()=>{if(i){return s}return r?Buffer.concat(s,o):s.join("")});c.getBufferedLength=(()=>o);return c})},73:function(e,i,t){"use strict";var n=t(420);var r=t(999);var a=t(317);function getStream(e,i){if(!e){return n.reject(new Error("Expected a stream"))}i=r({maxBuffer:Infinity},i);var t=i.maxBuffer;var o;var s;var c=new n(function(n,r){o=a(i);e.once("error",error);e.pipe(o);o.on("data",function(){if(o.getBufferedLength()>t){r(new Error("maxBuffer exceeded"))}});o.once("error",error);o.on("end",n);s=function(){if(e.unpipe){e.unpipe(o)}};function error(e){if(e){e.bufferedData=o.getBufferedValue()}r(e)}});c.then(s,s);return c.then(function(){return o.getBufferedValue()})}e.exports=getStream;e.exports.buffer=function(e,i){return getStream(e,r({},i,{encoding:"buffer"}))};e.exports.array=function(e,i){return getStream(e,r({},i,{array:true}))}},79:function(e){var i=function(){};i.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};i.prototype.read=function(e,i,t){var n=0;while(n{if(typeof e!=="string"){throw new TypeError("Expected a string")}i=i||{};const t=i.replacement===undefined?"!":i.replacement;if(a().test(t)&&c.test(t)){throw new Error("Replacement string cannot contain reserved filename characters")}e=e.replace(a(),t);e=e.replace(c,t);e=e.replace(p,t);if(t.length>0){e=r(e,t);e=e.length>1?o(e,t):e}e=a.windowsNames().test(e)?e+t:e;e=e.slice(0,s);return e};l.path=((e,i)=>{e=n.resolve(e);return n.join(n.dirname(e),l(n.basename(e),i))});e.exports=l},87:function(e){e.exports=require("os")},89:function(e){"use strict";const i=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,t)=>{const n=new Set(Object.keys(e).concat(i));for(const i of n){if(i in t){continue}t[i]=typeof e[i]==="function"?e[i].bind(e):e[i]}})},93:function(e,i,t){var n=t(413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(i,t){if(!(this instanceof ReadStream))return new ReadStream(i,t);n.call(this);var r=this;this.path=i;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;t=t||{};var a=Object.keys(t);for(var o=0,s=a.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){r._read()});return}e.open(this.path,this.flags,this.mode,function(e,i){if(e){r.emit("error",e);r.readable=false;return}r.fd=i;r.emit("open",i);r._read()})}function WriteStream(i,t){if(!(this instanceof WriteStream))return new WriteStream(i,t);n.call(this);this.path=i;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;t=t||{};var r=Object.keys(t);for(var a=0,o=r.length;a= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},97:function(e){"use strict";e.exports=function(e){var i={};var t=Object.keys(Object(e));for(var n=0;n{e=Object.assign({},e);const i=e.array;let t=e.encoding;const r=t==="buffer";let a=false;if(i){a=!(t||r)}else{t=t||"utf8"}if(r){t=null}let o=0;const s=[];const c=new n({objectMode:a});if(t){c.setEncoding(t)}c.on("data",e=>{s.push(e);if(a){o=s.length}else{o+=e.length}});c.getBufferedValue=(()=>{if(i){return s}return r?Buffer.concat(s,o):s.join("")});c.getBufferedLength=(()=>o);return c})},128:function(e){"use strict";e.exports=((e,i)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();i=Object.assign({https:false},i);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,i.https?"https://":"http://")})},129:function(e){e.exports=require("child_process")},131:function(e,i,t){"use strict";var n=this&&this.__awaiter||function(e,i,t,n){function adopt(e){return e instanceof t?e:new t(function(i){i(e)})}return new(t||(t=Promise))(function(t,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,i||[])).next())})};var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var t in e)if(Object.hasOwnProperty.call(e,t))i[t]=e[t];i["default"]=e;return i};Object.defineProperty(i,"__esModule",{value:true});const a=t(87);const o=t(747);const s=t(622);const c=t(211);const p=t(927);const l=r(t(470));const u=r(t(986));const f=r(t(1));const d=r(t(958));function downloadRustInit(e,i){const t=s.join(a.tmpdir(),i);return new Promise((i,n)=>{let r=p(e);let a=o.createWriteStream(t,{mode:493});r.pipe(a);r.on("end",()=>{a.close(i)});r.on("error",n);a.on("error",n)}).then(()=>{return t})}function get_rustup(e,i){return n(this,void 0,void 0,function*(){try{const e=yield f.which("rustup",true);l.debug(`Found rustup at ${e}`);return e}catch(e){l.warning("Unable to find rustup, installing it now")}let t=["-y","--default-toolchain",e];if(i){t.push("--default-host");t.push(i)}switch(process.platform){case"darwin":case"linux":const e=yield downloadRustInit("https://sh.rustup.rs","rustup-init.sh");yield do_exec(e,t);break;case"win32":const i=yield downloadRustInit("http://win.rustup.rs","rustup-init.exe");yield do_exec(i,t);break;default:throw new Error(`Unknown platform ${process.platform}, can't install rustup`)}l.addPath(s.join(process.env["HOME"],".cargo","bin"));return"rustup"})}function do_exec(e,i){return n(this,void 0,void 0,function*(){try{return yield u.exec(e,i)}catch(e){l.setFailed(e.message);throw e}})}function run(){return n(this,void 0,void 0,function*(){let e;try{e=d.toolchain_args()}catch(e){l.setFailed(e.message);return}const i=yield get_rustup(e.name,e.target);yield do_exec(i,["toolchain","install",e.name]);if(e.default){yield do_exec(i,["default",e.name])}if(e.override){yield do_exec(i,["override","set",e.name])}if(e.target){yield do_exec(i,["target","add","--toolchain",e.name,e.target])}})}run()},138:function(e){"use strict";var i=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(i,"\\$&")}},141:function(e,i,t){"use strict";const n=t(413).Readable;const r=t(474);class Response extends n{constructor(e,i,t,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof i!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(t instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=r(i);this.body=t;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},145:function(e){"use strict";e.exports=function isObject(e){return typeof e==="object"&&e!==null}},147:function(e,i,t){"use strict";const n=t(835);const r=t(605);const a=t(557);const o=t(564);class GotError extends Error{constructor(e,i,t){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!o.undefined(i.code)){this.code=i.code}Object.assign(this,{host:t.host,hostname:t.hostname,method:t.method,path:t.path,protocol:t.protocol,url:t.href})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,i){super(e.message,e,i);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,i){super(e.message,e,i);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,i){super(e.message,e,i);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,i,t,a){super(`${e.message} in "${n.format(t)}": \n${a.slice(0,77)}...`,e,t);this.name="ParseError";this.statusCode=i;this.statusMessage=r.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,i,t,n){if(i){i=i.replace(/\r?\n/g," ").trim()}else{i=r.STATUS_CODES[e]}super(`Response code ${e} (${i})`,{},n);this.name="HTTPError";this.statusCode=e;this.statusMessage=i;this.headers=t}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,i,t){super("Redirected 10 times. Aborting.",{},t);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=r.STATUS_CODES[this.statusCode];this.redirectUrls=i}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.CancelError=a.CancelError},148:function(e,i,t){"use strict";const n=t(654);const r=Symbol.asyncIterator||"@@asyncIterator";const a=e=>{const i=e.on||e.addListener||e.addEventListener;const t=e.off||e.removeListener||e.removeEventListener;if(!i||!t){throw new TypeError("Emitter is not compatible")}return{addListener:i.bind(e),removeListener:t.bind(e)}};const o=e=>Array.isArray(e)?e:[e];const s=(e,i,t)=>{let r;const s=new Promise((n,s)=>{t=Object.assign({rejectionEvents:["error"],multiArgs:false,resolveImmediately:false},t);if(!(t.count>=0&&(t.count===Infinity||Number.isInteger(t.count)))){throw new TypeError("The `count` option should be at least 0 or more")}const c=o(i);const p=[];const{addListener:l,removeListener:u}=a(e);const f=(...e)=>{const i=t.multiArgs?e:e[0];if(t.filter&&!t.filter(i)){return}p.push(i);if(t.count===p.length){r();n(p)}};const d=e=>{r();s(e)};r=(()=>{for(const e of c){u(e,f)}for(const e of t.rejectionEvents){u(e,d)}});for(const e of c){l(e,f)}for(const e of t.rejectionEvents){l(e,d)}if(t.resolveImmediately){n(p)}});s.cancel=r;if(typeof t.timeout==="number"){const e=n(s,t.timeout);e.cancel=r;return e}return s};e.exports=((e,i,t)=>{if(typeof t==="function"){t={filter:t}}t=Object.assign({},t,{count:1,resolveImmediately:false});const n=s(e,i,t);const r=n.then(e=>e[0]);r.cancel=n.cancel;return r});e.exports.multiple=s;e.exports.iterator=((e,i,t)=>{if(typeof t==="function"){t={filter:t}}const n=o(i);t=Object.assign({rejectionEvents:["error"],resolutionEvents:[],limit:Infinity,multiArgs:false},t);const{limit:s}=t;const c=s>=0&&(s===Infinity||Number.isInteger(s));if(!c){throw new TypeError("The `limit` option should be a non-negative integer or Infinity")}if(s===0){return{[Symbol.asyncIterator](){return this},next(){return Promise.resolve({done:true,value:undefined})}}}let p=false;const{addListener:l,removeListener:u}=a(e);let f=false;let d;let m=false;const h=[];const x=[];let v=0;const g=(...e)=>{v++;p=v===s;const i=t.multiArgs?e:e[0];if(h.length>0){const{resolve:e}=h.shift();e({done:false,value:i});if(p){b()}return}x.push(i);if(p){b()}};const b=()=>{f=true;for(const e of n){u(e,g)}for(const e of t.rejectionEvents){u(e,y)}for(const e of t.resolutionEvents){u(e,w)}while(h.length>0){const{resolve:e}=h.shift();e({done:true,value:undefined})}};const y=(...e)=>{d=t.multiArgs?e:e[0];if(h.length>0){const{reject:e}=h.shift();e(d)}else{m=true}b()};const w=(...e)=>{const i=t.multiArgs?e:e[0];if(t.filter&&!t.filter(i)){return}if(h.length>0){const{resolve:e}=h.shift();e({done:true,value:i})}else{x.push(i)}b()};for(const e of n){l(e,g)}for(const e of t.rejectionEvents){l(e,y)}for(const e of t.resolutionEvents){l(e,w)}return{[r](){return this},next(){if(x.length>0){const e=x.shift();return Promise.resolve({done:f&&x.length===0&&!p,value:e})}if(m){m=false;return Promise.reject(d)}if(f){return Promise.resolve({done:true,value:undefined})}return new Promise((e,i)=>h.push({resolve:e,reject:i}))},return(e){b();return Promise.resolve({done:f,value:e})}}})},149:function(e,i,t){var n=t(293);var r=n.Buffer;function copyProps(e,i){for(var t in e){i[t]=e[t]}}if(r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow){e.exports=n}else{copyProps(n,i);i.Buffer=SafeBuffer}function SafeBuffer(e,i,t){return r(e,i,t)}copyProps(r,SafeBuffer);SafeBuffer.from=function(e,i,t){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return r(e,i,t)};SafeBuffer.alloc=function(e,i,t){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=r(e);if(i!==undefined){if(typeof t==="string"){n.fill(i,t)}else{n.fill(i)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},150:function(e,i,t){"use strict";const n=t(72);function getStream(e,i){if(!e){return Promise.reject(new Error("Expected a stream"))}i=Object.assign({maxBuffer:Infinity},i);const t=i.maxBuffer;let r;let a;const o=new Promise((o,s)=>{const c=e=>{if(e){e.bufferedData=r.getBufferedValue()}s(e)};r=n(i);e.once("error",c);e.pipe(r);r.on("data",()=>{if(r.getBufferedLength()>t){s(new Error("maxBuffer exceeded"))}});r.once("error",c);r.on("end",o);a=(()=>{if(e.unpipe){e.unpipe(r)}})});o.then(a,a);return o.then(()=>r.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,i)=>getStream(e,Object.assign({},i,{encoding:"buffer"})));e.exports.array=((e,i)=>getStream(e,Object.assign({},i,{array:true})))},154:function(e,i,t){var n=t(376);var r=t(345);var a="0000000000000000000";var o="7777777777777777777";var s="0".charCodeAt(0);var c="ustar\x0000";var p=parseInt("7777",8);var l=function(e,i,t){if(typeof e!=="number")return t;e=~~e;if(e>=i)return i;if(e>=0)return e;e+=i;if(e>=0)return e;return 0};var u=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null};var f=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0};var d=function(e,i,t,n){for(;ti)return o.slice(0,i)+" ";else return a.slice(0,i-e.length)+e+" "};function parse256(e){var i;if(e[0]===128)i=true;else if(e[0]===255)i=false;else return null;var t=false;var n=[];for(var r=e.length-1;r>0;r--){var a=e[r];if(i)n.push(a);else if(t&&a===0)n.push(0);else if(t){t=false;n.push(256-a)}else n.push(255-a)}var o=0;var s=n.length;for(r=0;r=Math.pow(10,t))t++;return i+t+e};i.decodeLongPath=function(e,i){return v(e,0,e.length,i)};i.encodePax=function(e){var i="";if(e.name)i+=g(" path="+e.name+"\n");if(e.linkname)i+=g(" linkpath="+e.linkname+"\n");var t=e.pax;if(t){for(var r in t){i+=g(" "+r+"="+t[r]+"\n")}}return n(i)};i.decodePax=function(e){var i={};while(e.length){var t=0;while(t100){var a=t.indexOf("/");if(a===-1)return null;n+=n?"/"+t.slice(0,a):t.slice(0,a);t=t.slice(a+1)}if(Buffer.byteLength(t)>100||Buffer.byteLength(n)>155)return null;if(e.linkname&&Buffer.byteLength(e.linkname)>100)return null;i.write(t);i.write(h(e.mode&p,6),100);i.write(h(e.uid,6),108);i.write(h(e.gid,6),116);i.write(h(e.size,11),124);i.write(h(e.mtime.getTime()/1e3|0,11),136);i[156]=s+f(e.type);if(e.linkname)i.write(e.linkname,157);i.write(c,257);if(e.uname)i.write(e.uname,265);if(e.gname)i.write(e.gname,297);i.write(h(e.devmajor||0,6),329);i.write(h(e.devminor||0,6),337);if(n)i.write(n,345);i.write(h(m(i),6),148);return i};i.decode=function(e,i){var t=e[156]===0?0:e[156]-s;var n=v(e,0,100,i);var r=x(e,100,8);var a=x(e,108,8);var o=x(e,116,8);var c=x(e,124,12);var p=x(e,136,12);var l=u(t);var f=e[157]===0?null:v(e,157,100,i);var d=v(e,265,32);var h=v(e,297,32);var g=x(e,329,8);var b=x(e,337,8);if(e[345])n=v(e,345,155,i)+"/"+n;if(t===0&&n&&n[n.length-1]==="/")t=5;var y=m(e);if(y===8*32)return null;if(y!==x(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:n,mode:r,uid:a,gid:o,size:c,mtime:new Date(1e3*p),type:l,linkname:f,uname:d,gname:h,devmajor:g,devminor:b}}},173:function(e,i,t){"use strict";const n=t(835);const r=t(128);e.exports=((e,i)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const t=r(e,Object.assign({https:true},i));return n.parse(t)})},180:function(e,i,t){"use strict";const n=t(87);const r=t(622);const a=n.tmpdir();const o=process.getuid?process.getuid():process.pid;const s=()=>true;const c=process.platform==="win32";const p={editor:()=>process.env.EDITOR||process.env.VISUAL||(c?"notepad.exe":"vi"),shell:()=>c?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"};const l={fromString:()=>process.umask()};let u=n.homedir();if(u){process.env.HOME=u}else{u=r.resolve(a,"npm-"+o)}const f=process.platform==="win32"?"npm-cache":".npm";const d=process.platform==="win32"?process.env.APPDATA:u;const m=r.resolve(d,f);let h;let x;Object.defineProperty(i,"defaults",{get:function(){if(h)return h;if(process.env.PREFIX){x=process.env.PREFIX}else if(process.platform==="win32"){x=r.dirname(process.execPath)}else{x=r.dirname(r.dirname(process.execPath));if(process.env.DESTDIR){x=r.join(process.env.DESTDIR,x)}}h={access:null,"allow-same-version":false,"always-auth":false,also:null,"auth-type":"legacy","bin-links":true,browser:null,ca:null,cafile:null,cache:m,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":Infinity,"cache-min":10,cert:null,color:true,depth:Infinity,description:true,dev:false,"dry-run":false,editor:p.editor(),"engine-strict":false,force:false,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":true,global:false,globalconfig:r.resolve(x,"etc","npmrc"),"global-style":false,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":false,heading:"npm","if-present":false,"ignore-prepublish":false,"ignore-scripts":false,"init-module":r.resolve(u,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:false,key:null,"legacy-bundling":false,link:false,"local-address":undefined,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:false,maxsockets:50,message:"%s","metrics-registry":null,"node-version":process.version,offline:false,"onload-script":false,only:null,optional:true,"package-lock":true,parseable:false,"prefer-offline":false,"prefer-online":false,prefix:x,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,"proprietary-attribs":true,proxy:null,"https-proxy":null,"user-agent":"npm/{npm-version} "+"node/{node-version} "+"{platform} "+"{arch}","rebuild-bundle":true,registry:"https://registry.npmjs.org/",rollback:true,save:true,"save-bundle":false,"save-dev":false,"save-exact":false,"save-optional":false,"save-prefix":"^","save-prod":false,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":false,shell:p.shell(),shrinkwrap:true,"sign-git-tag":false,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":true,tag:"latest","tag-version-prefix":"v",timing:false,tmp:a,unicode:s(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:false,user:process.platform==="win32"?0:"nobody",userconfig:r.resolve(u,".npmrc"),umask:process.umask?process.umask():l.fromString("022"),version:false,versions:false,viewer:process.platform==="win32"?"browser":"man",_exit:true};return h}})},183:function(e,i,t){"use strict";var n=t(881);var r=t(999);var a=t(65);function encoderForArrayFormat(e){switch(e.arrayFormat){case"index":return function(i,t,n){return t===null?[encode(i,e),"[",n,"]"].join(""):[encode(i,e),"[",encode(n,e),"]=",encode(t,e)].join("")};case"bracket":return function(i,t){return t===null?encode(i,e):[encode(i,e),"[]=",encode(t,e)].join("")};default:return function(i,t){return t===null?encode(i,e):[encode(i,e),"=",encode(t,e)].join("")}}}function parserForArrayFormat(e){var i;switch(e.arrayFormat){case"index":return function(e,t,n){i=/\[(\d*)\]$/.exec(e);e=e.replace(/\[\d*\]$/,"");if(!i){n[e]=t;return}if(n[e]===undefined){n[e]={}}n[e][i[1]]=t};case"bracket":return function(e,t,n){i=/(\[\])$/.exec(e);e=e.replace(/\[\]$/,"");if(!i){n[e]=t;return}else if(n[e]===undefined){n[e]=[t];return}n[e]=[].concat(n[e],t)};default:return function(e,i,t){if(t[e]===undefined){t[e]=i;return}t[e]=[].concat(t[e],i)}}}function encode(e,i){if(i.encode){return i.strict?n(e):encodeURIComponent(e)}return e}function keysSorter(e){if(Array.isArray(e)){return e.sort()}else if(typeof e==="object"){return keysSorter(Object.keys(e)).sort(function(e,i){return Number(e)-Number(i)}).map(function(i){return e[i]})}return e}function extract(e){var i=e.indexOf("?");if(i===-1){return""}return e.slice(i+1)}function parse(e,i){i=r({arrayFormat:"none"},i);var t=parserForArrayFormat(i);var n=Object.create(null);if(typeof e!=="string"){return n}e=e.trim().replace(/^[?#&]/,"");if(!e){return n}e.split("&").forEach(function(e){var i=e.replace(/\+/g," ").split("=");var r=i.shift();var o=i.length>0?i.join("="):undefined;o=o===undefined?null:a(o);t(a(r),o,n)});return Object.keys(n).sort().reduce(function(e,i){var t=n[i];if(Boolean(t)&&typeof t==="object"&&!Array.isArray(t)){e[i]=keysSorter(t)}else{e[i]=t}return e},Object.create(null))}i.extract=extract;i.parse=parse;i.stringify=function(e,i){var t={encode:true,strict:true,arrayFormat:"none"};i=r(t,i);if(i.sort===false){i.sort=function(){}}var n=encoderForArrayFormat(i);return e?Object.keys(e).sort(i.sort).map(function(t){var r=e[t];if(r===undefined){return""}if(r===null){return encode(t,i)}if(Array.isArray(r)){var a=[];r.slice().forEach(function(e){if(e===undefined){return}a.push(n(t,e,a.length))});return a.join("&")}return encode(t,i)+"="+encode(r,i)}).filter(function(e){return e.length>0}).join("&"):""};i.parseUrl=function(e,i){return{url:e.split("?")[0]||"",query:parse(extract(e),i)}}},191:function(e){e.exports=require("querystring")},197:function(e,i,t){"use strict";const n=t(622);const r=t(413).Stream;const a=t(835);const o=()=>{};const s=()=>[];const c=()=>{};i.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:n,cache:n,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,global:Boolean,globalconfig:n,"global-style":Boolean,group:[Number,String],"https-proxy":[null,a],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":n,"init-author-name":String,"init-author-email":String,"init-author-url":["",a],"init-license":String,"init-version":c,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":s(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:r,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-version":[null,c],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:n,production:Boolean,progress:Boolean,"proprietary-attribs":Boolean,proxy:[null,false,a],"rebuild-bundle":Boolean,registry:[null,a],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[false,true,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:n,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:n,umask:o,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}},203:function(e){"use strict";e.exports=function isNaturalNumber(e,i){if(i){if(typeof i!=="object"){throw new TypeError(String(i)+" is not an object. Expected an object that has boolean `includeZero` property.")}if("includeZero"in i){if(typeof i.includeZero!=="boolean"){throw new TypeError(String(i.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.")}if(i.includeZero&&e===0){return true}}}return Number.isSafeInteger(e)&&e>=1}},205:function(e,i){i.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var i="";var t=Array.isArray(e);i=t?"[":"{";var n=true;for(var r in e){var a="function"==typeof e[r]||!t&&"undefined"===typeof e[r];if(Object.hasOwnProperty.call(e,r)&&!a){if(!n)i+=",";n=false;if(t){if(e[r]==undefined)i+="null";else i+=stringify(e[r])}else if(e[r]!==void 0){i+=stringify(r)+":"+stringify(e[r])}}}i+=t?"]":"}";return i}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};i.parse=function(e){return JSON.parse(e,function(e,i){if("string"===typeof i){if(/^:base64:/.test(i))return new Buffer(i.substring(8),"base64");else return/^:/.test(i)?i.substring(1):i}return i})}},210:function(e,i,t){"use strict";var n=t(338);e.exports.desc=function(e){return n(e,function(e,i){return i.length-e.length})};e.exports.asc=function(e){return n(e,function(e,i){return e.length-i.length})}},211:function(e){e.exports=require("https")},212:function(e,i,t){"use strict";const n=t(747);const r=t(622);const a=t(197);const o=e=>{if(typeof e!=="string"||!e){return e}const i=/(\\*)\$\{([^}]+)\}/g;return e.replace(i,(e,i,t)=>{i=i.length>0&&i.length%2;if(i){return e}if(process.env[t]===undefined){throw new Error(`Failed to replace env in config: ${e}`)}return process.env[t]})};const s=(e,i)=>{if(typeof e!=="string"){return e}const t=[].concat(a[i]);const n=t.indexOf(r)!==-1;const s=t.indexOf(Boolean)!==-1;const c=t.indexOf(String)!==-1;const p=t.indexOf(Number)!==-1;e=`${e}`.trim();if(/^".*"$/.test(e)){try{e=JSON.parse(e)}catch(t){throw new Error(`Failed parsing JSON config key ${i}: ${e}`)}}if(s&&!c&&e===""){return true}switch(e){case"true":{return true}case"false":{return false}case"null":{return null}case"undefined":{return undefined}}e=o(e);if(n){const i=process.platform==="win32"?/^~(\/|\\)/:/^~\//;if(i.test(e)&&process.env.HOME){e=r.resolve(process.env.HOME,e.substr(2))}e=r.resolve(e)}if(p&&!e.isNan()){e=Number(e)}return e};const c=e=>{e=r.resolve(e);let i=false;while(r.basename(e)==="node_modules"){e=r.dirname(e);i=true}if(i){return e}const t=(e,i)=>{const a=/^[a-zA-Z]:(\\|\/)?$/;if(e==="/"||process.platform==="win32"&&a.test(e)){return i}try{const a=n.readdirSync(e);if(a.indexOf("node_modules")!==-1||a.indexOf("package.json")!==-1){return e}const o=r.dirname(e);if(o===e){return i}return t(o,i)}catch(t){if(e===i){if(t.code==="ENOENT"){return i}throw t}return i}};return t(e,e)};i.envReplace=o;i.findPrefix=c;i.parseField=s},213:function(e){e.exports=require("punycode")},223:function(e){var i=[0,1,3,7,15,31,63,127,255];var t=function(e){this.stream=e;this.bitOffset=0;this.curByte=0;this.hasByte=false};t.prototype._ensureByte=function(){if(!this.hasByte){this.curByte=this.stream.readByte();this.hasByte=true}};t.prototype.read=function(e){var t=0;while(e>0){this._ensureByte();var n=8-this.bitOffset;if(e>=n){t<<=n;t|=i[n]&this.curByte;this.hasByte=false;this.bitOffset=0;e-=n}else{t<<=e;var r=n-e;t|=(this.curByte&i[e]<>r;this.bitOffset+=e;e=0}}return t};t.prototype.seek=function(e){var i=e%8;var t=(e-i)/8;this.bitOffset=i;this.stream.seek(t);this.hasByte=false};t.prototype.pi=function(){var e=new Buffer(6),i;for(i=0;i0){if(typeof i!=="string"&&!a.objectMode&&Object.getPrototypeOf(i)!==p.prototype){i=_uint8ArrayToBuffer(i)}if(n){if(a.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,a,i,true)}else if(a.ended){e.emit("error",new Error("stream.push() after EOF"))}else{a.reading=false;if(a.decoder&&!t){i=a.decoder.write(i);if(a.objectMode||i.length!==0)addChunk(e,a,i,false);else maybeReadMore(e,a)}else{addChunk(e,a,i,false)}}}else if(!n){a.reading=false}}return needMoreData(a)}function addChunk(e,i,t,n){if(i.flowing&&i.length===0&&!i.sync){e.emit("data",t);e.read(0)}else{i.length+=i.objectMode?1:t.length;if(n)i.buffer.unshift(t);else i.buffer.push(t);if(i.needReadable)emitReadable(e)}maybeReadMore(e,i)}function chunkInvalid(e,i){var t;if(!_isUint8Array(i)&&typeof i!=="string"&&i!==undefined&&!e.objectMode){t=new TypeError("Invalid non-string/buffer chunk")}return t}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=g){e=g}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,i){if(e<=0||i.length===0&&i.ended)return 0;if(i.objectMode)return 1;if(e!==e){if(i.flowing&&i.length)return i.buffer.head.data.length;else return i.length}if(e>i.highWaterMark)i.highWaterMark=computeNewHighWaterMark(e);if(e<=i.length)return e;if(!i.ended){i.needReadable=true;return 0}return i.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var i=this._readableState;var t=e;if(e!==0)i.emittedReadable=false;if(e===0&&i.needReadable&&(i.length>=i.highWaterMark||i.ended)){d("read: emitReadable",i.length,i.ended);if(i.length===0&&i.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,i);if(e===0&&i.ended){if(i.length===0)endReadable(this);return null}var n=i.needReadable;d("need readable",n);if(i.length===0||i.length-e0)r=fromList(e,i);else r=null;if(r===null){i.needReadable=true;e=0}else{i.length-=e}if(i.length===0){if(!i.ended)i.needReadable=true;if(t!==e&&i.ended)endReadable(this)}if(r!==null)this.emit("data",r);return r};function onEofChunk(e,i){if(i.ended)return;if(i.decoder){var t=i.decoder.end();if(t&&t.length){i.buffer.push(t);i.length+=i.objectMode?1:t.length}}i.ended=true;emitReadable(e)}function emitReadable(e){var i=e._readableState;i.needReadable=false;if(!i.emittedReadable){d("emitReadable",i.flowing);i.emittedReadable=true;if(i.sync)n.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){d("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,i){if(!i.readingMore){i.readingMore=true;n.nextTick(maybeReadMore_,e,i)}}function maybeReadMore_(e,i){var t=i.length;while(!i.reading&&!i.flowing&&!i.ended&&i.length1&&indexOf(r.pipes,e)!==-1)&&!p){d("false write response, pause",t._readableState.awaitDrain);t._readableState.awaitDrain++;l=true}t.pause()}}function onerror(i){d("onerror",i);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)e.emit("error",i)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");t.unpipe(e)}e.emit("pipe",t);if(!r.flowing){d("pipe resume");t.resume()}return e};function pipeOnDrain(e){return function(){var i=e._readableState;d("pipeOnDrain",i.awaitDrain);if(i.awaitDrain)i.awaitDrain--;if(i.awaitDrain===0&&s(e,"data")){i.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var i=this._readableState;var t={hasUnpiped:false};if(i.pipesCount===0)return this;if(i.pipesCount===1){if(e&&e!==i.pipes)return this;if(!e)e=i.pipes;i.pipes=null;i.pipesCount=0;i.flowing=false;if(e)e.emit("unpipe",this,t);return this}if(!e){var n=i.pipes;var r=i.pipesCount;i.pipes=null;i.pipesCount=0;i.flowing=false;for(var a=0;a=i.length){if(i.decoder)t=i.buffer.join("");else if(i.buffer.length===1)t=i.buffer.head.data;else t=i.buffer.concat(i.length);i.buffer.clear()}else{t=fromListPartial(e,i.buffer,i.decoder)}return t}function fromListPartial(e,i,t){var n;if(ea.length?a.length:e;if(o===a.length)r+=a;else r+=a.slice(0,e);e-=o;if(e===0){if(o===a.length){++n;if(t.next)i.head=t.next;else i.head=i.tail=null}else{i.head=t;t.data=a.slice(o)}break}++n}i.length-=n;return r}function copyFromBuffer(e,i){var t=p.allocUnsafe(e);var n=i.head;var r=1;n.data.copy(t);e-=n.data.length;while(n=n.next){var a=n.data;var o=e>a.length?a.length:e;a.copy(t,t.length-e,0,o);e-=o;if(e===0){if(o===a.length){++r;if(n.next)i.head=n.next;else i.head=i.tail=null}else{i.head=n;n.data=a.slice(o)}break}++r}i.length-=r;return t}function endReadable(e){var i=e._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!i.endEmitted){i.ended=true;n.nextTick(endReadableNT,i,e)}}function endReadableNT(e,i){if(!e.endEmitted&&e.length===0){e.endEmitted=true;i.readable=false;i.emit("end")}}function indexOf(e,i){for(var t=0,n=e.length;t1&&o[0]==="."){o.shift()}if(i>o.length-1){if(t.disallowOverflow){throw new RangeError("Cannot strip more directories than there are.")}i=o.length-1}return n.join.apply(null,o.slice(i))}},232:function(e,i,t){"use strict";var n=t(822);function destroy(e,i){var t=this;var r=this._readableState&&this._readableState.destroyed;var a=this._writableState&&this._writableState.destroyed;if(r||a){if(i){i(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!i&&e){n.nextTick(emitErrorNT,t,e);if(t._writableState){t._writableState.errorEmitted=true}}else if(i){i(e)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,i){e.emit("error",i)}e.exports={destroy:destroy,undestroy:undestroy}},241:function(e,i,t){"use strict";var n=t(822);e.exports=Writable;function WriteReq(e,i,t){this.chunk=e;this.encoding=i;this.callback=t;this.next=null}function CorkedRequest(e){var i=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(i,e)}}var r=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;var a;Writable.WritableState=WritableState;var o=t(286);o.inherits=t(422);var s={deprecate:t(917)};var c=t(427);var p=t(149).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return p.from(e)}function _isUint8Array(e){return p.isBuffer(e)||e instanceof l}var u=t(232);o.inherits(Writable,c);function nop(){}function WritableState(e,i){a=a||t(831);e=e||{};var n=i instanceof a;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var r=e.highWaterMark;var o=e.writableHighWaterMark;var s=this.objectMode?16:16*1024;if(r||r===0)this.highWaterMark=r;else if(n&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var c=e.decodeStrings===false;this.decodeStrings=!c;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(i,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var i=[];while(e){i.push(e);e=e.next}return i};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var f;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){f=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(f.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{f=function(e){return e instanceof this}}function Writable(e){a=a||t(831);if(!f.call(Writable,this)&&!(this instanceof a)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}c.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,i){var t=new Error("write after end");e.emit("error",t);n.nextTick(i,t)}function validChunk(e,i,t,r){var a=true;var o=false;if(t===null){o=new TypeError("May not write null values to stream")}else if(typeof t!=="string"&&t!==undefined&&!i.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);n.nextTick(r,o);a=false}return a}Writable.prototype.write=function(e,i,t){var n=this._writableState;var r=false;var a=!n.objectMode&&_isUint8Array(e);if(a&&!p.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof i==="function"){t=i;i=null}if(a)i="buffer";else if(!i)i=n.defaultEncoding;if(typeof t!=="function")t=nop;if(n.ended)writeAfterEnd(this,t);else if(a||validChunk(this,n,e,t)){n.pendingcb++;r=writeOrBuffer(this,n,a,e,i,t)}return r};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,i,t){if(!e.objectMode&&e.decodeStrings!==false&&typeof i==="string"){i=p.from(i,t)}return i}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,i,t,n,r,a){if(!t){var o=decodeChunk(i,n,r);if(n!==o){t=true;r="buffer";n=o}}var s=i.objectMode?1:n.length;i.length+=s;var c=i.length=this.maxSockets){t.requests.push({host:i.host,port:i.port,request:e});return}t.createConnection({host:i.host,port:i.port,request:e})};TunnelingAgent.prototype.createConnection=function createConnection(e){var i=this;i.createSocket(e,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.request.onSocket(t);function onFree(){i.emit("free",t,e.host,e.port)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,i){var t=this;var n={};t.sockets.push(n);var r=mergeOptions({},t.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(r.proxyAuth){r.headers=r.headers||{};r.headers["Proxy-Authorization"]="Basic "+l.from(r.proxyAuth).toString("base64")}u("making CONNECT request");var a=t.request(r);a.useChunkedEncodingByDefault=false;a.once("response",onResponse);a.once("upgrade",onUpgrade);a.once("connect",onConnect);a.once("error",onError);a.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,i,t){process.nextTick(function(){onConnect(e,i,t)})}function onConnect(r,o,s){a.removeAllListeners();o.removeAllListeners();if(r.statusCode===200){c.equal(s.length,0);u("tunneling connection has established");t.sockets[t.sockets.indexOf(n)]=o;i(o)}else{u("tunneling socket could not be established, statusCode=%d",r.statusCode);var p=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);p.code="ECONNRESET";e.request.emit("error",p);t.removeSocket(n)}}function onError(i){a.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",i.message,i.stack);var r=new Error("tunneling socket could not be established, "+"cause="+i.message);r.code="ECONNRESET";e.request.emit("error",r);t.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var i=this.sockets.indexOf(e);if(i===-1)return;this.sockets.splice(i,1);var t=this.requests.shift();if(t){this.createConnection(t)}};function createSecureSocket(e,i){var t=this;TunnelingAgent.prototype.createSocket.call(t,e,function(n){var a=r.connect(0,mergeOptions({},t.options,{servername:e.host,socket:n}));t.sockets[t.sockets.indexOf(n)]=a;i(a)})}function mergeOptions(e){for(var i=1,t=arguments.length;i{const i=new Uint8Array(e);if(!(i&&i.length>1)){return null}const t=(e,t)=>{t=Object.assign({offset:0},t);for(let n=0;nt[i]===66&&t[i+1]===130);if(t>=0){const i=t+3;const n=t=>Array.from(t).every((t,n)=>e[i+n]===t.charCodeAt(0));if(n("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(n("webm")){return{ext:"webm",mime:"video/webm"}}}}if(t([0,0,0,20,102,116,121,112,113,116,32,32])||t([102,114,101,101],{offset:4})||t([102,116,121,112,113,116,32,32],{offset:4})||t([109,100,97,116],{offset:4})||t([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(t([82,73,70,70])&&t([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(t([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(t([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(t([73,68,51])||t([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(t([102,116,121,112,77,52,65],{offset:4})||t([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(t([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(t([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(t([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(t([82,73,70,70])&&t([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(t([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(t([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(t([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((i[0]===67||i[0]===70)&&t([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(t([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(t([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(t([119,79,70,70])&&(t([0,1,0,0],{offset:4})||t([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(t([119,79,70,50])&&(t([0,1,0,0],{offset:4})||t([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(t([76,80],{offset:34})&&(t([0,0,1],{offset:8})||t([1,0,2],{offset:8})||t([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(t([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(t([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(t([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(t([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(t([37,33])){return{ext:"ps",mime:"application/postscript"}}if(t([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(t([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(t([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(t([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(t([77,83,67,70])||t([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(t([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(t([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(t([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(t([31,160])||t([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(t([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(t([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(t([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(t([71],{offset:4})&&(t([71],{offset:192})||t([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(t([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(t([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null})},286:function(e,i){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}i.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}i.isBoolean=isBoolean;function isNull(e){return e===null}i.isNull=isNull;function isNullOrUndefined(e){return e==null}i.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}i.isNumber=isNumber;function isString(e){return typeof e==="string"}i.isString=isString;function isSymbol(e){return typeof e==="symbol"}i.isSymbol=isSymbol;function isUndefined(e){return e===void 0}i.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}i.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}i.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}i.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}i.isError=isError;function isFunction(e){return typeof e==="function"}i.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}i.isPrimitive=isPrimitive;i.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},293:function(e){e.exports=require("buffer")},303:function(e,i,t){"use strict";const n=t(614);const r=t(205);const a=e=>{const i={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const t=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(i[t]))(e)}return new Map};class Keyv extends n{constructor(e,i){super();this.opts=Object.assign({namespace:"keyv"},typeof e==="string"?{uri:e}:e,i);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=a(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const i=this.opts.store;return Promise.resolve().then(()=>i.get(e)).then(i=>{i=typeof i==="string"?r.parse(i):i;if(i===undefined){return undefined}if(typeof i.expires==="number"&&Date.now()>i.expires){this.delete(e);return undefined}return i.value})}set(e,i,t){e=this._getKeyPrefix(e);if(typeof t==="undefined"){t=this.opts.ttl}if(t===0){t=undefined}const n=this.opts.store;return Promise.resolve().then(()=>{const a=typeof t==="number"?Date.now()+t:null;i={value:i,expires:a};return n.set(e,r.stringify(i),t)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const i=this.opts.store;return Promise.resolve().then(()=>i.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},304:function(e){e.exports=require("string_decoder")},308:function(e){"use strict";var i=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"];var t=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];e.exports=function(e){if(!e||!e.code){return true}if(i.indexOf(e.code)!==-1){return true}if(t.indexOf(e.code)!==-1){return false}return true}},315:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,i){if(i){e.super_=i;e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,i){if(i){e.super_=i;var t=function(){};t.prototype=i.prototype;e.prototype=new t;e.prototype.constructor=e}}}},317:function(e,i,t){var n=t(413).PassThrough;var r=t(999);e.exports=function(e){e=r({},e);var i=e.array;var t=e.encoding;var a=t==="buffer";var o=false;if(i){o=!(t||a)}else{t=t||"utf8"}if(a){t=null}var s=0;var c=[];var p=new n({objectMode:o});if(t){p.setEncoding(t)}p.on("data",function(e){c.push(e);if(o){s=c.length}else{s+=e.length}});p.getBufferedValue=function(){if(i){return c}return a?Buffer.concat(c,s):c.join("")};p.getBufferedLength=function(){return s};return p}},323:function(e){"use strict";var i=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};i.writable=function(e){return i(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};i.readable=function(e){return i(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};i.duplex=function(e){return i.writable(e)&&i.readable(e)};i.transform=function(e){return i.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},324:function(e,i,t){var n=t(747);var r=t(669);var a=t(413);var o=a.Readable;var s=a.Writable;var c=a.PassThrough;var p=t(965);var l=t(614).EventEmitter;i.createFromBuffer=createFromBuffer;i.createFromFd=createFromFd;i.BufferSlicer=BufferSlicer;i.FdSlicer=FdSlicer;r.inherits(FdSlicer,l);function FdSlicer(e,i){i=i||{};l.call(this);this.fd=e;this.pend=new p;this.pend.max=1;this.refCount=0;this.autoClose=!!i.autoClose}FdSlicer.prototype.read=function(e,i,t,r,a){var o=this;o.pend.go(function(s){n.read(o.fd,e,i,t,r,function(e,i,t){s();a(e,i,t)})})};FdSlicer.prototype.write=function(e,i,t,r,a){var o=this;o.pend.go(function(s){n.write(o.fd,e,i,t,r,function(e,i,t){s();a(e,i,t)})})};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){n.close(e.fd,onCloseDone)}function onCloseDone(i){if(i){e.emit("error",i)}else{e.emit("close")}}};r.inherits(ReadStream,o);function ReadStream(e,i){i=i||{};o.call(this,i);this.context=e;this.context.ref();this.start=i.start||0;this.endOffset=i.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var i=this;if(i.destroyed)return;var t=Math.min(i._readableState.highWaterMark,e);if(i.endOffset!=null){t=Math.min(t,i.endOffset-i.pos)}if(t<=0){i.destroyed=true;i.push(null);i.context.unref();return}i.context.pend.go(function(e){if(i.destroyed)return e();var r=new Buffer(t);n.read(i.context.fd,r,0,t,i.pos,function(t,n){if(t){i.destroy(t)}else if(n===0){i.destroyed=true;i.push(null);i.context.unref()}else{i.pos+=n;i.push(r.slice(0,n))}e()})})};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};r.inherits(WriteStream,s);function WriteStream(e,i){i=i||{};s.call(this,i);this.context=e;this.context.ref();this.start=i.start||0;this.endOffset=i.end==null?Infinity:+i.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,i,t){var r=this;if(r.destroyed)return;if(r.pos+e.length>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG";r.destroy();t(a);return}r.context.pend.go(function(i){if(r.destroyed)return i();n.write(r.context.fd,e,0,e.length,r.pos,function(e,n){if(e){r.destroy();i();t(e)}else{r.bytesWritten+=n;r.pos+=n;r.emit("progress");i();t()}})})};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};r.inherits(BufferSlicer,l);function BufferSlicer(e,i){l.call(this);i=i||{};this.refCount=0;this.buffer=e;this.maxChunkSize=i.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,i,t,n,r){var a=n+t;var o=a-this.buffer.length;var s=o>0?o:t;this.buffer.copy(e,i,n,a);setImmediate(function(){r(null,s)})};BufferSlicer.prototype.write=function(e,i,t,n,r){e.copy(this.buffer,n,i,i+t);setImmediate(function(){r(null,t,e)})};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var i=new c(e);i.destroyed=false;i.start=e.start||0;i.endOffset=e.end;i.pos=i.endOffset||this.buffer.length;var t=this.buffer.slice(i.start,i.pos);var n=0;while(true){var r=n+this.maxChunkSize;if(r>=t.length){if(nt.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";t.destroyed=true;r(o);return}e.copy(i.buffer,t.pos,0,e.length);t.bytesWritten+=e.length;t.pos=a;t.emit("progress");r()};t.destroy=function(){t.destroyed=true};return t};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,i){return new BufferSlicer(e,i)}function createFromFd(e,i){return new FdSlicer(e,i)}},325:function(e,i,t){"use strict";const n=t(413).PassThrough;const r=t(89);const a=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const i=new n;r(e,i);return e.pipe(i)};e.exports=a},335:function(e){function allocUnsafe(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}if(e<0){throw new RangeError('"size" argument must not be negative')}if(Buffer.allocUnsafe){return Buffer.allocUnsafe(e)}else{return new Buffer(e)}}e.exports=allocUnsafe},338:function(e,i,t){"use strict";var n=t(727);e.exports=function(e,i){if(!n(e)){throw new TypeError("Expected a plain object")}i=i||{};if(typeof i==="function"){i={compare:i}}var t=i.deep;var r=[];var a=[];var o=function(e){var s=r.indexOf(e);if(s!==-1){return a[s]}var c={};var p=Object.keys(e).sort(i.compare);r.push(e);a.push(c);for(var l=0;l{if(Array.isArray(e)){e=e.slice()}let i;let t;prepare(e);function prepare(n){e=n;i=r(e)?e:null;const a=!i&&e[Symbol.iterator]&&typeof e!=="string"&&!Buffer.isBuffer(e);t=a?e[Symbol.iterator]():null}return n(function reader(n,r){if(i){i.then(prepare).then(()=>reader.call(this,n,r),r);return}if(t){const e=t.next();setImmediate(r,null,e.done?null:e.value);return}if(e.length===0){setImmediate(r,null,null);return}const a=e.slice(0,n);e=e.slice(n);setImmediate(r,null,a)})});e.exports.obj=(e=>{if(Array.isArray(e)){e=e.slice()}let i;let t;prepare(e);function prepare(n){e=n;i=r(e)?e:null;t=!i&&e[Symbol.iterator]?e[Symbol.iterator]():null}return n.obj(function reader(n,r){if(i){i.then(prepare).then(()=>reader.call(this,n,r),r);return}if(t){const e=t.next();setImmediate(r,null,e.done?null:e.value);return}this.push(e);setImmediate(r,null,null)})})},357:function(e){e.exports=require("assert")},361:function(e,i,t){"use strict";const n=t(791);const r=t(550);const a=t(323);const o=t(829);const s=t(849);e.exports=(()=>e=>{if(!Buffer.isBuffer(e)&&!a(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!r(e)||r(e).ext!=="bz2")){return Promise.resolve([])}if(Buffer.isBuffer(e)){return n()(o.decode(e))}return n()(e.pipe(s()))})},364:function(e,i,t){var n=t(669);var r=t(954);var a=t(940);var o=t(154);var s=t(574).Writable;var c=t(574).PassThrough;var p=function(){};var l=function(e){e&=511;return e&&512-e};var u=function(e,i){var t=new d(e,i);t.end();return t};var f=function(e,i){if(i.path)e.name=i.path;if(i.linkpath)e.linkname=i.linkpath;if(i.size)e.size=parseInt(i.size,10);e.pax=i;return e};var d=function(e,i){this._parent=e;this.offset=i;c.call(this)};n.inherits(d,c);d.prototype.destroy=function(e){this._parent.destroy(e)};var m=function(e){if(!(this instanceof m))return new m(e);s.call(this,e);e=e||{};this._offset=0;this._buffer=r();this._missing=0;this._partial=false;this._onparse=p;this._header=null;this._stream=null;this._overflow=null;this._cb=null;this._locked=false;this._destroyed=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;var i=this;var t=i._buffer;var n=function(){i._continue()};var c=function(e){i._locked=false;if(e)return i.destroy(e);if(!i._stream)n()};var h=function(){i._stream=null;var e=l(i._header.size);if(e)i._parse(e,x);else i._parse(512,w);if(!i._locked)n()};var x=function(){i._buffer.consume(l(i._header.size));i._parse(512,w);n()};var v=function(){var e=i._header.size;i._paxGlobal=o.decodePax(t.slice(0,e));t.consume(e);h()};var g=function(){var e=i._header.size;i._pax=o.decodePax(t.slice(0,e));if(i._paxGlobal)i._pax=a(i._paxGlobal,i._pax);t.consume(e);h()};var b=function(){var n=i._header.size;this._gnuLongPath=o.decodeLongPath(t.slice(0,n),e.filenameEncoding);t.consume(n);h()};var y=function(){var n=i._header.size;this._gnuLongLinkPath=o.decodeLongPath(t.slice(0,n),e.filenameEncoding);t.consume(n);h()};var w=function(){var r=i._offset;var a;try{a=i._header=o.decode(t.slice(0,512),e.filenameEncoding)}catch(e){i.emit("error",e)}t.consume(512);if(!a){i._parse(512,w);n();return}if(a.type==="gnu-long-path"){i._parse(a.size,b);n();return}if(a.type==="gnu-long-link-path"){i._parse(a.size,y);n();return}if(a.type==="pax-global-header"){i._parse(a.size,v);n();return}if(a.type==="pax-header"){i._parse(a.size,g);n();return}if(i._gnuLongPath){a.name=i._gnuLongPath;i._gnuLongPath=null}if(i._gnuLongLinkPath){a.linkname=i._gnuLongLinkPath;i._gnuLongLinkPath=null}if(i._pax){i._header=a=f(a,i._pax);i._pax=null}i._locked=true;if(!a.size||a.type==="directory"){i._parse(512,w);i.emit("entry",a,u(i,r),c);return}i._stream=new d(i,r);i.emit("entry",a,i._stream,c);i._parse(a.size,h);n()};this._onheader=w;this._parse(512,w)};n.inherits(m,s);m.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream)this._stream.emit("close")};m.prototype._parse=function(e,i){if(this._destroyed)return;this._offset+=e;this._missing=e;if(i===this._onheader)this._partial=false;this._onparse=i};m.prototype._continue=function(){if(this._destroyed)return;var e=this._cb;this._cb=p;if(this._overflow)this._write(this._overflow,undefined,e);else e()};m.prototype._write=function(e,i,t){if(this._destroyed)return;var n=this._stream;var r=this._buffer;var a=this._missing;if(e.length)this._partial=true;if(e.lengtha){o=e.slice(a);e=e.slice(0,a)}if(n)n.end(e);else r.append(e);this._overflow=o;this._onparse()};m.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=m},370:function(e){function Bzip2Error(e){this.name="Bzip2Error";this.message=e;this.stack=(new Error).stack}Bzip2Error.prototype=new Error;var i={Error:function(e){throw new Bzip2Error(e)}};var t={};t.Bzip2Error=Bzip2Error;t.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];t.array=function(e){var i=0,t=0;var n=[0,1,3,7,15,31,63,127,255];return function(r){var a=0;while(r>0){var o=8-i;if(r>=o){a<<=o;a|=n[o]&e[t++];i=0;r-=o}else{a<<=r;a|=(e[t]&n[r]<<8-r-i)>>8-r-i;i+=r;r=0}}return a}};t.simple=function(e,i){var n=t.array(e);var r=t.header(n);var a=false;var o=1e5*r;var s=new Int32Array(o);do{a=t.decompress(n,i,s,o)}while(!a)};t.header=function(e){this.byteCount=new Int32Array(256);this.symToByte=new Uint8Array(256);this.mtfSymbol=new Int32Array(256);this.selectors=new Uint8Array(32768);if(e(8*3)!=4348520)i.Error("No magic number found");var t=e(8)-48;if(t<1||t>9)i.Error("Not a BZIP archive");return t};t.decompress=function(e,t,n,r,a){var o=20;var s=258;var c=0;var p=1;var l=50;var u=0^-1;for(var f="",d=0;d<6;d++)f+=e(8).toString(16);if(f=="177245385090"){var m=e(32)|0;if(m!==a)i.Error("Error in bzip2: crc32 do not match");e(null);return null}if(f!="314159265359")i.Error("eek not valid bzip data");var h=e(32)|0;if(e(1))i.Error("unsupported obsolete version");var x=e(24);if(x>r)i.Error("Initial position larger than buffer size");var v=e(16);var g=0;for(d=0;d<16;d++){if(v&1<<15-d){var b=e(16);for(_=0;_<16;_++){if(b&1<<15-_){this.symToByte[g++]=16*d+_}}}}var y=e(3);if(y<2||y>6)i.Error("another error");var w=e(15);if(w==0)i.Error("meh");for(var d=0;d=y)i.Error("whoops another error");var E=this.mtfSymbol[_];for(var b=_-1;b>=0;b--){this.mtfSymbol[b+1]=this.mtfSymbol[b]}this.mtfSymbol[0]=E;this.selectors[d]=E}var S=g+2;var k=[];var C=new Uint8Array(s),j=new Uint16Array(o+1);var O;for(var _=0;_o)i.Error("I gave up a while ago on writing error messages");if(!e(1))break;if(!e(1))v++;else v--}C[d]=v}var T,R;T=R=C[0];for(var d=1;dR)R=C[d];else if(C[d]=w)i.Error("meow i'm a kitty, that's an error");O=k[this.selectors[I++]];A=O.base.subarray(1);B=O.limit.subarray(1)}d=O.minLen;_=e(d);while(true){if(d>O.maxLen)i.Error("rawr i'm a dinosaur");if(_<=B[d])break;d++;_=_<<1|e(1)}_-=A[d];if(_<0||_>=s)i.Error("moo i'm a cow");var N=O.permute[_];if(N==c||N==p){if(!P){P=1;v=0}if(N==c)v+=P;else v+=2*P;P<<=1;continue}if(P){P=0;if(L+v>r)i.Error("Boom.");E=this.symToByte[this.mtfSymbol[0]];this.byteCount[E]+=v;while(v--)n[L++]=E}if(N>g)break;if(L>=r)i.Error("I can't think of anything. Error");d=N-1;E=this.mtfSymbol[d];for(var b=d-1;b>=0;b--){this.mtfSymbol[b+1]=this.mtfSymbol[b]}this.mtfSymbol[0]=E;E=this.symToByte[E];this.byteCount[E]++;n[L++]=E}if(x<0||x>=L)i.Error("I'm a monkey and I'm throwing something at someone, namely you");var _=0;for(var d=0;d<256;d++){b=_+this.byteCount[d];this.byteCount[d]=_;_=b}for(var d=0;d>=8;D=-1}L=L;var U,M,W;while(L){L--;M=F;q=n[q];F=q&255;q>>=8;if(D++==3){U=F;W=M;F=-1}else{U=1;W=F}while(U--){u=(u<<8^this.crcTable[(u>>24^W)&255])&4294967295;t(W)}if(F!=M)D=0}u=(u^-1)>>>0;if((u|0)!=(h|0))i.Error("Error in bzip2: crc32 do not match");if(a===null)a=0;a=(u^(a<<1|a>>>31))&4294967295;return a};e.exports=t},375:function(e,i,t){"use strict";const n=t(413).PassThrough;e.exports=(e=>{e=Object.assign({},e);const i=e.array;let t=e.encoding;const r=t==="buffer";let a=false;if(i){a=!(t||r)}else{t=t||"utf8"}if(r){t=null}let o=0;const s=[];const c=new n({objectMode:a});if(t){c.setEncoding(t)}c.on("data",e=>{s.push(e);if(a){o=s.length}else{o+=e.length}});c.getBufferedValue=(()=>{if(i){return s}return r?Buffer.concat(s,o):s.join("")});c.getBufferedLength=(()=>o);return c})},376:function(e){e.exports=toBuffer;var i=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:bufferFrom;function bufferFrom(e,i){return new Buffer(e,i)}function toBuffer(e,t){if(Buffer.isBuffer(e))return e;if(typeof e==="string")return i(e,t);if(Array.isArray(e))return i(e);throw new Error("Input should be a buffer or a string")}},383:function(e,i,t){var n=t(534);var r=t(9);var a=t(669);var o=t(345);var s=t(376);var c=t(574).Readable;var p=t(574).Writable;var l=t(304).StringDecoder;var u=t(154);var f=parseInt("755",8);var d=parseInt("644",8);var m=o(1024);var h=function(){};var x=function(e,i){i&=511;if(i)e.push(m.slice(0,512-i))};function modeToType(e){switch(e&n.S_IFMT){case n.S_IFBLK:return"block-device";case n.S_IFCHR:return"character-device";case n.S_IFDIR:return"directory";case n.S_IFIFO:return"fifo";case n.S_IFLNK:return"symlink"}return"file"}var v=function(e){p.call(this);this.written=0;this._to=e;this._destroyed=false};a.inherits(v,p);v.prototype._write=function(e,i,t){this.written+=e.length;if(this._to.push(e))return t();this._to._drain=t};v.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var g=function(){p.call(this);this.linkname="";this._decoder=new l("utf-8");this._destroyed=false};a.inherits(g,p);g.prototype._write=function(e,i,t){this.linkname+=this._decoder.write(e);t()};g.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var b=function(){p.call(this);this._destroyed=false};a.inherits(b,p);b.prototype._write=function(e,i,t){t(new Error("No body allowed for this entry"))};b.prototype.destroy=function(){if(this._destroyed)return;this._destroyed=true;this.emit("close")};var y=function(e){if(!(this instanceof y))return new y(e);c.call(this,e);this._drain=h;this._finalized=false;this._finalizing=false;this._destroyed=false;this._stream=null};a.inherits(y,c);y.prototype.entry=function(e,i,t){if(this._stream)throw new Error("already piping an entry");if(this._finalized||this._destroyed)return;if(typeof i==="function"){t=i;i=null}if(!t)t=h;var n=this;if(!e.size||e.type==="symlink")e.size=0;if(!e.type)e.type=modeToType(e.mode);if(!e.mode)e.mode=e.type==="directory"?f:d;if(!e.uid)e.uid=0;if(!e.gid)e.gid=0;if(!e.mtime)e.mtime=new Date;if(typeof i==="string")i=s(i);if(Buffer.isBuffer(i)){e.size=i.length;this._encode(e);this.push(i);x(n,e.size);process.nextTick(t);return new b}if(e.type==="symlink"&&!e.linkname){var a=new g;r(a,function(i){if(i){n.destroy();return t(i)}e.linkname=a.linkname;n._encode(e);t()});return a}this._encode(e);if(e.type!=="file"&&e.type!=="contiguous-file"){process.nextTick(t);return new b}var o=new v(this);this._stream=o;r(o,function(i){n._stream=null;if(i){n.destroy();return t(i)}if(o.written!==e.size){n.destroy();return t(new Error("size mismatch"))}x(n,e.size);if(n._finalizing)n.finalize();t()});return o};y.prototype.finalize=function(){if(this._stream){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(m);this.push(null)};y.prototype.destroy=function(e){if(this._destroyed)return;this._destroyed=true;if(e)this.emit("error",e);this.emit("close");if(this._stream&&this._stream.destroy)this._stream.destroy()};y.prototype._encode=function(e){if(!e.pax){var i=u.encode(e);if(i){this.push(i);return}}this._encodePax(e)};y.prototype._encodePax=function(e){var i=u.encodePax({name:e.name,linkname:e.linkname,pax:e.pax});var t={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:i.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(u.encode(t));this.push(i);x(this,i.length);t.size=e.size;t.type=e.type;this.push(u.encode(t))};y.prototype._read=function(e){var i=this._drain;this._drain=h;i()};e.exports=y},385:function(e){"use strict";const i=(e,i)=>(function(){const t=i.promiseModule;const n=new Array(arguments.length);for(let e=0;e{if(i.errorFirst){n.push(function(e,n){if(i.multiArgs){const i=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const n=e=>{const i=i=>typeof i==="string"?e===i:i.test(e);return t.include?t.include.some(i):!t.exclude.some(i)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return i(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const a in e){const o=e[a];r[a]=typeof o==="function"&&n(a)?i(o,t):o}return r})},394:function(e,i,t){i.extract=t(364);i.pack=t(383)},400:function(e,i,t){var n=t(413);i=e.exports=through;through.through=through;function through(e,i,t){e=e||function(e){this.queue(e)};i=i||function(){this.queue(null)};var r=false,a=false,o=[],s=false;var c=new n;c.readable=c.writable=true;c.paused=false;c.autoDestroy=!(t&&t.autoDestroy===false);c.write=function(i){e.call(this,i);return!c.paused};function drain(){while(o.length&&!c.paused){var e=o.shift();if(null===e)return c.emit("end");else c.emit("data",e)}}c.queue=c.push=function(e){if(s)return c;if(e===null)s=true;o.push(e);drain();return c};c.on("end",function(){c.readable=false;if(!c.writable&&c.autoDestroy)process.nextTick(function(){c.destroy()})});function _end(){c.writable=false;i.call(c);if(!c.readable&&c.autoDestroy)c.destroy()}c.end=function(e){if(r)return;r=true;if(arguments.length)c.write(e);_end();return c};c.destroy=function(){if(a)return;a=true;r=true;o.length=0;c.writable=c.readable=false;c.emit("close");return c};c.pause=function(){if(c.paused)return;c.paused=true;return c};c.resume=function(){if(c.paused){c.paused=false;c.emit("resume")}drain();if(!c.paused)c.emit("drain");return c};return c}},413:function(e){e.exports=require("stream")},420:function(e,i,t){"use strict";e.exports=typeof Promise==="function"?Promise:t(501)},422:function(e,i,t){try{var n=t(669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(i){e.exports=t(315)}},425:function(e){var i=function(){try{if(!Buffer.isEncoding("latin1")){return false}var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);e.fill("ab","ucs2");return e.toString("hex")==="61006200"}catch(e){return false}}();function isSingleByte(e){return e.length===1&&e.charCodeAt(0)<256}function fillWithNumber(e,i,t,n){if(t<0||n>e.length){throw new RangeError("Out of range index")}t=t>>>0;n=n===undefined?e.length:n>>>0;if(n>t){e.fill(i,t,n)}return e}function fillWithBuffer(e,i,t,n){if(t<0||n>e.length){throw new RangeError("Out of range index")}if(n<=t){return e}t=t>>>0;n=n===undefined?e.length:n>>>0;var r=t;var a=i.length;while(r<=n-a){i.copy(e,r);r+=a}if(r!==n){i.copy(e,r,0,n-r)}return e}function fill(e,t,n,r,a){if(i){return e.fill(t,n,r,a)}if(typeof t==="number"){return fillWithNumber(e,t,n,r)}if(typeof t==="string"){if(typeof n==="string"){a=n;n=0;r=e.length}else if(typeof r==="string"){a=r;r=e.length}if(a!==undefined&&typeof a!=="string"){throw new TypeError("encoding must be a string")}if(a==="latin1"){a="binary"}if(typeof a==="string"&&!Buffer.isEncoding(a)){throw new TypeError("Unknown encoding: "+a)}if(t===""){return fillWithNumber(e,0,n,r)}if(isSingleByte(t)){return fillWithNumber(e,t.charCodeAt(0),n,r)}t=new Buffer(t,a)}if(Buffer.isBuffer(t)){return fillWithBuffer(e,t,n,r)}return fillWithNumber(e,0,n,r)}e.exports=fill},427:function(e,i,t){e.exports=t(413)},431:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:true});const n=t(87);function issueCommand(e,i,t){const r=new Command(e,i,t);process.stdout.write(r.toString()+n.EOL)}i.issueCommand=issueCommand;function issue(e,i){issueCommand(e,{},i)}i.issue=issue;const r="##[";class Command{constructor(e,i,t){if(!e){e="missing.command"}this.command=e;this.properties=i;this.message=t}toString(){let e=r+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const t=this.properties[i];if(t){e+=`${i}=${escape(`${t||""}`)};`}}}}e+="]";const i=`${this.message||""}`;e+=escapeData(i);return e}}function escapeData(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escape(e){return e.replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/]/g,"%5D").replace(/;/g,"%3B")}},446:function(e,i,t){"use strict";const n=t(794);const r=new Set(["7z","bz2","gz","rar","tar","zip","xz","gz"]);e.exports=(e=>{const i=n(e);return r.has(i&&i.ext)?i:null})},448:function(e,i,t){"use strict";var n=t(138);e.exports=function(e,i){if(typeof e!=="string"||typeof i!=="string"){throw new TypeError}i=n(i);return e.replace(new RegExp("^"+i+"|"+i+"$","g"),"")}},458:function(e,i,t){"use strict";e.exports=t(565)&&typeof Symbol.toStringTag==="symbol"},461:function(e,i,t){"use strict";const n=t(622);const r=t(663);const a=t(180);e.exports=(e=>{const i=new r(Object.assign({},a.defaults));i.add(Object.assign({},e),"cli");i.addEnv();i.loadPrefix();const t=n.resolve(i.localPrefix,".npmrc");const o=i.get("userconfig");if(!i.get("global")&&t!==o){i.addFile(t,"project")}else{i.add({},"project")}i.addFile(i.get("userconfig"),"user");if(i.get("prefix")){const e=n.resolve(i.get("prefix"),"etc");i.root.globalconfig=n.resolve(e,"npmrc");i.root.globalignorefile=n.resolve(e,"npmignore")}i.addFile(i.get("globalconfig"),"global");i.loadUser();const s=i.get("cafile");if(s){i.loadCAFile(s)}return i});e.exports.defaults=Object.assign({},a.defaults)},464:function(e){"use strict";var i=function(e,i,t){return function(){var n=this;var r=new Array(arguments.length);for(var a=0;a=1){setProto(this.list[this.list.length-1],e)}setProto(e,this.root);return this.list.push(e)},pop:function(){if(this.list.length>=2){setProto(this.list[this.list.length-2],this.root)}return this.list.pop()},unshift:function(e){setProto(e,this.list[0]||this.root);return this.list.unshift(e)},shift:function(){if(this.list.length===1){setProto(this.list[0],this.root)}return this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,i,t){if(!this.length)this.push({});if(t&&this.list[0].hasOwnProperty(e))this.push({});return this.list[0][e]=i},forEach:function(e,i){for(var t in this.list[0])e.call(i,t,this.list[0][t])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){var e=this.list.splice.apply(this.list,arguments);for(var i=0,t=this.list.length;i=4"},files:["index.js","errors.js"],homepage:"https://github.com/sindresorhus/got#readme",keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],license:"MIT",maintainers:[{name:"Sindre Sorhus",email:"sindresorhus@gmail.com",url:"sindresorhus.com"},{name:"Vsevolod Strukchinsky",email:"floatdrop@gmail.com",url:"github.com/floatdrop"},{name:"Alexander Tesfamichael",email:"alex.tesfamichael@gmail.com",url:"alextes.me"}],name:"got",repository:{type:"git",url:"git+https://github.com/sindresorhus/got.git"},scripts:{coveralls:"nyc report --reporter=text-lcov | coveralls",test:"xo && nyc ava"},version:"8.3.2"}},489:function(e,i,t){"use strict";const n=t(747);const r=t(622);const a=t(385);const o={mode:511&~process.umask(),fs:n};const s=e=>{if(process.platform==="win32"){const i=/[<>:"|?*]/.test(e.replace(r.parse(e).root,""));if(i){const i=new Error(`Path contains invalid characters: ${e}`);i.code="EINVAL";throw i}}};e.exports=((e,i)=>Promise.resolve().then(()=>{s(e);i=Object.assign({},o,i);const t=a(i.fs.mkdir);const n=a(i.fs.stat);const c=e=>{return t(e,i.mode).then(()=>e).catch(i=>{if(i.code==="ENOENT"){if(i.message.includes("null bytes")||r.dirname(e)===e){throw i}return c(r.dirname(e)).then(()=>c(e))}return n(e).then(i=>i.isDirectory()?e:Promise.reject()).catch(()=>{throw i})})};return c(r.resolve(e))}));e.exports.sync=((e,i)=>{s(e);i=Object.assign({},o,i);const t=e=>{try{i.fs.mkdirSync(e,i.mode)}catch(n){if(n.code==="ENOENT"){if(n.message.includes("null bytes")||r.dirname(e)===e){throw n}t(r.dirname(e));return t(e)}try{if(!i.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw n}}return e};return t(r.resolve(e))})},492:function(e,i,t){"use strict";e.exports=contentDisposition;e.exports.parse=parse;var n=t(622).basename;var r=t(149).Buffer;var a=/[\x00-\x20"'()*,\/:;<=>?@[\\\]{}\x7f]/g;var o=/%[0-9A-Fa-f]{2}/;var s=/%([0-9A-Fa-f]{2})/g;var c=/[^\x20-\x7e\xa0-\xff]/g;var p=/\\([\u0000-\u007f])/g;var l=/([\\"])/g;var 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;var f=/^[\x20-\x7e\x80-\xff]+$/;var d=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;var 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!#$&+.^_`|~-])+)$/;var h=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function contentDisposition(e,i){var t=i||{};var n=t.type||"attachment";var r=createparams(e,t.fallback);return format(new ContentDisposition(n,r))}function createparams(e,i){if(e===undefined){return}var t={};if(typeof e!=="string"){throw new TypeError("filename must be a string")}if(i===undefined){i=true}if(typeof i!=="string"&&typeof i!=="boolean"){throw new TypeError("fallback must be a string or boolean")}if(typeof i==="string"&&c.test(i)){throw new TypeError("fallback must be ISO-8859-1 string")}var r=n(e);var a=f.test(r);var s=typeof i!=="string"?i&&getlatin1(r):n(i);var p=typeof s==="string"&&s!==r;if(p||!a||o.test(r)){t["filename*"]=r}if(a||p){t.filename=p?s:r}return t}function format(e){var i=e.parameters;var t=e.type;if(!t||typeof t!=="string"||!d.test(t)){throw new TypeError("invalid type")}var n=String(t).toLowerCase();if(i&&typeof i==="object"){var r;var a=Object.keys(i).sort();for(var o=0;o>>0};this.updateCRC=function(t){i=i<<8^e[(i>>>24^t)&255]};this.updateCRCRun=function(t,n){while(n-- >0){i=i<<8^e[(i>>>24^t)&255]}}};return i}()},501:function(e){"use strict";var i="pending";var t="settled";var n="fulfilled";var r="rejected";var a=function(){};var o=typeof global!=="undefined"&&typeof global.process!=="undefined"&&typeof global.process.emit==="function";var s=typeof setImmediate==="undefined"?setTimeout:setImmediate;var c=[];var p;function asyncFlush(){for(var e=0;e1)){return null}if(e[0]===255&&e[1]===216&&e[2]===255){return{ext:"jpg",mime:"image/jpeg"}}if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71){return{ext:"png",mime:"image/png"}}if(e[0]===71&&e[1]===73&&e[2]===70){return{ext:"gif",mime:"image/gif"}}if(e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80){return{ext:"webp",mime:"image/webp"}}if(e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70){return{ext:"flif",mime:"image/flif"}}if((e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42){return{ext:"tif",mime:"image/tiff"}}if(e[0]===66&&e[1]===77){return{ext:"bmp",mime:"image/bmp"}}if(e[0]===73&&e[1]===73&&e[2]===188){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112){return{ext:"epub",mime:"application/epub+zip"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97){return{ext:"xpi",mime:"application/x-xpinstall"}}if(e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)){return{ext:"zip",mime:"application/zip"}}if(e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114){return{ext:"tar",mime:"application/x-tar"}}if(e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(e[0]===31&&e[1]===139&&e[2]===8){return{ext:"gz",mime:"application/gzip"}}if(e[0]===66&&e[1]===90&&e[2]===104){return{ext:"bz2",mime:"application/x-bzip2"}}if(e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28){return{ext:"7z",mime:"application/x-7z-compressed"}}if(e[0]===120&&e[1]===1){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0){return{ext:"mp4",mime:"video/mp4"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86){return{ext:"m4v",mime:"video/x-m4v"}}if(e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100){return{ext:"mid",mime:"audio/midi"}}if(e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97){return{ext:"mkv",mime:"video/x-matroska"}}if(e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163){return{ext:"webm",mime:"video/webm"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){return{ext:"mov",mime:"video/quicktime"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73){return{ext:"avi",mime:"video/x-msvideo"}}if(e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"){return{ext:"mpg",mime:"video/mpeg"}}if(e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251){return{ext:"mp3",mime:"audio/mpeg"}}if(e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32){return{ext:"m4a",mime:"audio/m4a"}}if(e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100){return{ext:"opus",mime:"audio/opus"}}if(e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83){return{ext:"ogg",mime:"audio/ogg"}}if(e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67){return{ext:"flac",mime:"audio/x-flac"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69){return{ext:"wav",mime:"audio/x-wav"}}if(e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10){return{ext:"amr",mime:"audio/amr"}}if(e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70){return{ext:"pdf",mime:"application/pdf"}}if(e[0]===77&&e[1]===90){return{ext:"exe",mime:"application/x-msdownload"}}if((e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102){return{ext:"rtf",mime:"application/rtf"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff",mime:"application/font-woff"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff2",mime:"application/font-woff"}}if(e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)){return{ext:"eot",mime:"application/octet-stream"}}if(e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0){return{ext:"ttf",mime:"application/font-sfnt"}}if(e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0){return{ext:"otf",mime:"application/font-sfnt"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0){return{ext:"ico",mime:"image/x-icon"}}if(e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1){return{ext:"flv",mime:"video/x-flv"}}if(e[0]===37&&e[1]===33){return{ext:"ps",mime:"application/postscript"}}if(e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0){return{ext:"xz",mime:"application/x-xz"}}if(e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121){return{ext:"deb",mime:"application/x-deb"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62){return{ext:"ar",mime:"application/x-unix-archive"}}if(e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219){return{ext:"rpm",mime:"application/x-rpm"}}if(e[0]===31&&e[1]===160||e[0]===31&&e[1]===157){return{ext:"Z",mime:"application/x-compress"}}if(e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80){return{ext:"lz",mime:"application/x-lzip"}}if(e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225){return{ext:"msi",mime:"application/x-msi"}}return null}},519:function(e,i,t){e.exports=t(574).Duplex},520:function(e){"use strict";e.exports=(e=>e instanceof Promise||e!==null&&typeof e==="object"&&typeof e.then==="function"&&typeof e.catch==="function")},521:function(e,i,t){"use strict";const n=t(461)();e.exports=(()=>{return process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||n.get("https-proxy")||n.get("http-proxy")||n.get("proxy")||null})},534:function(e,i,t){e.exports=t(747).constants||t(619)},538:function(e,i,t){var n=t(293).Buffer;var r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){r=new Int32Array(r)}function ensureBuffer(e){if(n.isBuffer(e)){return e}var i=typeof n.alloc==="function"&&typeof n.from==="function";if(typeof e==="number"){return i?n.alloc(e):new n(e)}else if(typeof e==="string"){return i?n.from(e):new n(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var i=ensureBuffer(4);i.writeInt32BE(e,0);return i}function _crc32(e,i){e=ensureBuffer(e);if(n.isBuffer(i)){i=i.readUInt32BE(0)}var t=~~i^-1;for(var a=0;a>>8}return t^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},547:function(e,i,t){"use strict";const n=t(944);const r=t(210);e.exports=(e=>{const i=r.desc(n());const t=Object.keys(i).filter(i=>e.endsWith(i));if(t.length===0){return[]}return t.map(e=>({ext:e,mime:i[e]}))});e.exports.mime=(e=>{const i=r.desc(n());const t=Object.keys(i).filter(t=>i[t]===e);if(t.length===0){return[]}return t.map(e=>({ext:e,mime:i[e]}))})},550:function(e){"use strict";const i=e=>Array.from(e).map(e=>e.charCodeAt(0));const t=i("META-INF/mozilla.rsa");const n=i("[Content_Types].xml");const r=i("_rels/.rels");e.exports=(e=>{const a=new Uint8Array(e);if(!(a&&a.length>1)){return null}const o=(e,i)=>{i=Object.assign({offset:0},i);for(let t=0;te.findIndex((e,i,t)=>t[i]===80&&t[i+1]===75&&t[i+2]===3&&t[i+3]===4);const n=t(e);if(n!==-1){const e=a.subarray(n+8,n+8+1e3);const r=t(e);if(r!==-1){const e=8+n+r+30;if(o(i("word/"),{offset:e})){return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}}if(o(i("ppt/"),{offset:e})){return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}}if(o(i("xl/"),{offset:e})){return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}}if(o([80,75])&&(a[2]===3||a[2]===5||a[2]===7)&&(a[3]===4||a[3]===6||a[3]===8)){return{ext:"zip",mime:"application/zip"}}if(o([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(o([82,97,114,33,26,7])&&(a[6]===0||a[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(o([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(o([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(o([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(o([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(o([51,103,112,53])||o([0,0,0])&&o([102,116,121,112],{offset:4})&&(o([109,112,52,49],{offset:8})||o([109,112,52,50],{offset:8})||o([105,115,111,109],{offset:8})||o([105,115,111,50],{offset:8})||o([109,109,112,52],{offset:8})||o([77,52,86],{offset:8})||o([100,97,115,104],{offset:8}))){return{ext:"mp4",mime:"video/mp4"}}if(o([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(o([26,69,223,163])){const e=a.subarray(4,4+4096);const i=e.findIndex((e,i,t)=>t[i]===66&&t[i+1]===130);if(i!==-1){const t=i+3;const n=i=>Array.from(i).every((i,n)=>e[t+n]===i.charCodeAt(0));if(n("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(n("webm")){return{ext:"webm",mime:"video/webm"}}}}if(o([0,0,0,20,102,116,121,112,113,116,32,32])||o([102,114,101,101],{offset:4})||o([102,116,121,112,113,116,32,32],{offset:4})||o([109,100,97,116],{offset:4})||o([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(o([82,73,70,70])&&o([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(o([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(o([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}for(let e=0;e<2&&e{i.push(r);e.apply(null,i).then(t,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._promise=new Promise((i,t)=>{this._reject=t;return e(e=>{this._isPending=false;i(e)},e=>{this._isPending=false;t(e)},e=>{this._cancelHandlers.push(e)})})}then(e,i){return this._promise.then(e,i)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;this._reject(new CancelError)}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},564:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:true});const n=t(669);const r=Object.prototype.toString;const a=e=>i=>typeof i===e;const o=e=>{const i=r.call(e).slice(8,-1);if(i){return i}return null};const s=e=>i=>{return o(i)===e};function is(e){if(e===null){return"null"}if(e===true||e===false){return"boolean"}const i=typeof e;if(i==="undefined"){return"undefined"}if(i==="string"){return"string"}if(i==="number"){return"number"}if(i==="symbol"){return"symbol"}if(is.function_(e)){return"Function"}if(Array.isArray(e)){return"Array"}if(Buffer.isBuffer(e)){return"Buffer"}const t=o(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const i=e=>typeof e==="object";e.undefined=a("undefined");e.string=a("string");e.number=a("number");e.function_=a("function");e.null_=(e=>e===null);e.class_=(i=>e.function_(i)&&i.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=a("symbol");e.array=Array.isArray;e.buffer=Buffer.isBuffer;e.nullOrUndefined=(i=>e.null_(i)||e.undefined(i));e.object=(t=>!e.nullOrUndefined(t)&&(e.function_(t)||i(t)));e.iterable=(i=>!e.nullOrUndefined(i)&&e.function_(i[Symbol.iterator]));e.generator=(i=>e.iterable(i)&&e.function_(i.next)&&e.function_(i.throw));e.nativePromise=s("Promise");const t=t=>!e.null_(t)&&i(t)&&e.function_(t.then)&&e.function_(t.catch);e.promise=(i=>e.nativePromise(i)||t(i));const r=i=>t=>e.function_(t)&&e.function_(t.constructor)&&t.constructor.name===i;e.generatorFunction=r("GeneratorFunction");e.asyncFunction=r("AsyncFunction");e.boundFunction=(i=>e.function_(i)&&!i.hasOwnProperty("prototype"));e.regExp=s("RegExp");e.date=s("Date");e.error=s("Error");e.map=s("Map");e.set=s("Set");e.weakMap=s("WeakMap");e.weakSet=s("WeakSet");e.int8Array=s("Int8Array");e.uint8Array=s("Uint8Array");e.uint8ClampedArray=s("Uint8ClampedArray");e.int16Array=s("Int16Array");e.uint16Array=s("Uint16Array");e.int32Array=s("Int32Array");e.uint32Array=s("Uint32Array");e.float32Array=s("Float32Array");e.float64Array=s("Float64Array");e.arrayBuffer=s("ArrayBuffer");e.sharedArrayBuffer=s("SharedArrayBuffer");e.dataView=s("DataView");e.directInstanceOf=((i,t)=>e.object(i)&&e.object(t)&&Object.getPrototypeOf(i)===t.prototype);e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const c=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(i=>e.null_(i)||c.has(typeof i));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let i;return o(e)==="Object"&&(i=Object.getPrototypeOf(e),i===null||i===Object.getPrototypeOf({}))});const p=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const i=o(e);if(i===null){return false}return p.has(i)});const l=i=>e.safeInteger(i)&&i>-1;e.arrayLike=(i=>!e.nullOrUndefined(i)&&!e.function_(i)&&l(i.length));e.inRange=((i,t)=>{if(e.number(t)){return i>=Math.min(0,t)&&i<=Math.max(t,0)}if(e.array(t)&&t.length===2){return i>=Math.min.apply(null,t)&&i<=Math.max.apply(null,t)}throw new TypeError(`Invalid range: ${n.inspect(t)}`)});const u=1;const f=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(i=>e.object(i)&&i.nodeType===u&&e.string(i.nodeName)&&!e.plainObject(i)&&f.every(e=>e in i));e.nodeStream=(t=>!e.nullOrUndefined(t)&&i(t)&&e.function_(t.pipe));e.infinite=(e=>e===Infinity||e===-Infinity);const d=i=>t=>e.integer(t)&&Math.abs(t%2)===i;e.even=d(0);e.odd=d(1);const m=i=>e.string(i)&&/\S/.test(i)===false;const h=i=>(e.string(i)||e.array(i))&&i.length===0;const x=i=>!e.map(i)&&!e.set(i)&&e.object(i)&&Object.keys(i).length===0;const v=i=>(e.map(i)||e.set(i))&&i.size===0;e.empty=(i=>e.falsy(i)||h(i)||x(i)||v(i));e.emptyOrWhitespace=(i=>e.empty(i)||m(i));const g=(i,t,r)=>{const a=Array.prototype.slice.call(r,1);if(e.function_(t)===false){throw new TypeError(`Invalid predicate: ${n.inspect(t)}`)}if(a.length===0){throw new TypeError("Invalid number of values")}return i.call(a,t)};function any(e){return g(Array.prototype.some,e,arguments)}e.any=any;function all(e){return g(Array.prototype.every,e,arguments)}e.all=all})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});i.default=is;e.exports=is;e.exports.default=is},565:function(e){"use strict";e.exports=typeof Symbol==="function"&&typeof Symbol("")==="symbol"},567:function(e,i,t){"use strict";var n=t(138);e.exports=function(e,i){if(typeof e!=="string"||typeof i!=="string"){throw new TypeError("Expected a string")}return e.replace(new RegExp("(?:"+n(i)+"){2,}","g"),i)}},574:function(e,i,t){var n=t(413);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n;i=e.exports=n.Readable;i.Readable=n.Readable;i.Writable=n.Writable;i.Duplex=n.Duplex;i.Transform=n.Transform;i.PassThrough=n.PassThrough;i.Stream=n}else{i=e.exports=t(226);i.Stream=n||i;i.Readable=i;i.Writable=t(241);i.Duplex=t(831);i.Transform=t(925);i.PassThrough=t(882)}},578:function(e){e.exports={_from:"seek-bzip@^1.0.5",_id:"seek-bzip@1.0.5",_inBundle:false,_integrity:"sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=",_location:"/seek-bzip",_phantomChildren:{"graceful-readlink":"1.0.1"},_requested:{type:"range",registry:true,raw:"seek-bzip@^1.0.5",name:"seek-bzip",escapedName:"seek-bzip",rawSpec:"^1.0.5",saveSpec:null,fetchSpec:"^1.0.5"},_requiredBy:["/decompress-tarbz2"],_resolved:"https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz",_shasum:"cfe917cb3d274bcffac792758af53173eb1fabdc",_spec:"seek-bzip@^1.0.5",_where:"/home/svartalf/projects/actions-rs/toolchain/node_modules/decompress-tarbz2",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},bugs:{url:"https://github.com/cscott/seek-bzip/issues"},bundleDependencies:false,contributors:[{name:"C. Scott Ananian",url:"http://cscott.net"},{name:"Eli Skeggs"},{name:"Kevin Kwok"},{name:"Rob Landley",url:"http://landley.net"}],dependencies:{commander:"~2.8.1"},deprecated:false,description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},directories:{test:"test"},homepage:"https://github.com/cscott/seek-bzip#readme",license:"MIT",main:"./lib/index.js",name:"seek-bzip",repository:{type:"git",url:"git+https://github.com/cscott/seek-bzip.git"},scripts:{test:"mocha"},version:"1.0.5"}},582:function(e){"use strict";const i=e=>[...e].map(e=>e.charCodeAt(0));const t=i("META-INF/mozilla.rsa");const n=i("[Content_Types].xml");const r=i("_rels/.rels");e.exports=(e=>{const a=e instanceof Uint8Array?e:new Uint8Array(e);if(!(a&&a.length>1)){return null}const o=(e,i)=>{i=Object.assign({offset:0},i);for(let t=0;to(i(e),t);if(o([255,216,255])){return{ext:"jpg",mime:"image/jpeg"}}if(o([137,80,78,71,13,10,26,10])){return{ext:"png",mime:"image/png"}}if(o([71,73,70])){return{ext:"gif",mime:"image/gif"}}if(o([87,69,66,80],{offset:8})){return{ext:"webp",mime:"image/webp"}}if(o([70,76,73,70])){return{ext:"flif",mime:"image/flif"}}if((o([73,73,42,0])||o([77,77,0,42]))&&o([67,82],{offset:8})){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(o([73,73,42,0])||o([77,77,0,42])){return{ext:"tif",mime:"image/tiff"}}if(o([66,77])){return{ext:"bmp",mime:"image/bmp"}}if(o([73,73,188])){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(o([56,66,80,83])){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(o([80,75,3,4])){if(o([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30})){return{ext:"epub",mime:"application/epub+zip"}}if(o(t,{offset:30})){return{ext:"xpi",mime:"application/x-xpinstall"}}if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30})){return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"}}if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30})){return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"}}if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30})){return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}if(o(n,{offset:30})||o(r,{offset:30})){const e=a.subarray(4,4+2e3);const i=e=>e.findIndex((e,i,t)=>t[i]===80&&t[i+1]===75&&t[i+2]===3&&t[i+3]===4);const t=i(e);if(t!==-1){const e=a.subarray(t+8,t+8+1e3);const n=i(e);if(n!==-1){const e=8+t+n+30;if(s("word/",{offset:e})){return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}}if(s("ppt/",{offset:e})){return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}}if(s("xl/",{offset:e})){return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}}if(o([80,75])&&(a[2]===3||a[2]===5||a[2]===7)&&(a[3]===4||a[3]===6||a[3]===8)){return{ext:"zip",mime:"application/zip"}}if(o([117,115,116,97,114],{offset:257})){return{ext:"tar",mime:"application/x-tar"}}if(o([82,97,114,33,26,7])&&(a[6]===0||a[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(o([31,139,8])){return{ext:"gz",mime:"application/gzip"}}if(o([66,90,104])){return{ext:"bz2",mime:"application/x-bzip2"}}if(o([55,122,188,175,39,28])){return{ext:"7z",mime:"application/x-7z-compressed"}}if(o([120,1])){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(o([51,103,112,53])||o([0,0,0])&&o([102,116,121,112],{offset:4})&&(o([109,112,52,49],{offset:8})||o([109,112,52,50],{offset:8})||o([105,115,111,109],{offset:8})||o([105,115,111,50],{offset:8})||o([109,109,112,52],{offset:8})||o([77,52,86],{offset:8})||o([100,97,115,104],{offset:8}))){return{ext:"mp4",mime:"video/mp4"}}if(o([77,84,104,100])){return{ext:"mid",mime:"audio/midi"}}if(o([26,69,223,163])){const e=a.subarray(4,4+4096);const i=e.findIndex((e,i,t)=>t[i]===66&&t[i+1]===130);if(i!==-1){const t=i+3;const n=i=>[...i].every((i,n)=>e[t+n]===i.charCodeAt(0));if(n("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(n("webm")){return{ext:"webm",mime:"video/webm"}}}}if(o([0,0,0,20,102,116,121,112,113,116,32,32])||o([102,114,101,101],{offset:4})||o([102,116,121,112,113,116,32,32],{offset:4})||o([109,100,97,116],{offset:4})||o([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(o([82,73,70,70])){if(o([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(o([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(o([81,76,67,77],{offset:8})){return{ext:"qcp",mime:"audio/qcelp"}}}if(o([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(o([0,0,1,186])||o([0,0,1,179])){return{ext:"mpg",mime:"video/mpeg"}}if(o([102,116,121,112,51,103],{offset:4})){return{ext:"3gp",mime:"video/3gpp"}}for(let e=0;e<2&&e{const c=e=>{if(e){e.bufferedData=r.getBufferedValue()}s(e)};r=n(i);e.once("error",c);e.pipe(r);r.on("data",()=>{if(r.getBufferedLength()>t){s(new Error("maxBuffer exceeded"))}});r.once("error",c);r.on("end",o);a=(()=>{if(e.unpipe){e.unpipe(r)}})});o.then(a,a);return o.then(()=>r.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,i)=>getStream(e,Object.assign({},i,{encoding:"buffer"})));e.exports.array=((e,i)=>getStream(e,Object.assign({},i,{array:true})))},631:function(e){e.exports=require("net")},634:function(e){"use strict";e.exports=(()=>/[<>:"\/\\|?*\x00-\x1F]/g);e.exports.windowsNames=(()=>/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i)},654:function(e,i,t){"use strict";const n=t(697);class TimeoutError extends Error{constructor(e){super(e);this.name="TimeoutError"}}e.exports=((e,i,t)=>new Promise((r,a)=>{if(typeof i!=="number"||i<0){throw new TypeError("Expected `ms` to be a positive number")}const o=setTimeout(()=>{if(typeof t==="function"){try{r(t())}catch(o){a(o)}return}const n=typeof t==="string"?t:`Promise timed out after ${i} milliseconds`;const o=t instanceof Error?t:new TimeoutError(n);if(typeof e.cancel==="function"){e.cancel()}a(o)},i);n(e.then(r,a),()=>{clearTimeout(o)})}));e.exports.TimeoutError=TimeoutError},663:function(e,i,t){"use strict";const n=t(747);const r=t(622);const a=t(105).ConfigChain;const o=t(212);class Conf extends a{constructor(e){super(e);this.root=e}add(e,i){try{for(const i of Object.keys(e)){e[i]=o.parseField(e[i],i)}}catch(e){throw e}return super.add(e,i)}addFile(e,i){i=i||e;const t={__source__:i};this.sources[i]={path:e,type:"ini"};this.push(t);this._await();try{const i=n.readFileSync(e,"utf8");this.addString(i,e,"ini",t)}catch(e){this.add({},t)}return this}addEnv(e){e=e||process.env;const i={};Object.keys(e).filter(e=>/^npm_config_/i.test(e)).forEach(t=>{if(!e[t]){return}const n=t.toLowerCase().replace(/^npm_config_/,"").replace(/(?!^)_/g,"-");i[n]=e[t]});return super.addEnv("",i,"env")}loadPrefix(){const e=this.list[0];Object.defineProperty(this,"prefix",{enumerable:true,set:e=>{const i=this.get("global");this[i?"globalPrefix":"localPrefix"]=e},get:()=>{const e=this.get("global");return e?this.globalPrefix:this.localPrefix}});Object.defineProperty(this,"globalPrefix",{enumerable:true,set:e=>{this.set("prefix",e)},get:()=>{return r.resolve(this.get("prefix"))}});let i;Object.defineProperty(this,"localPrefix",{enumerable:true,set:e=>{i=e},get:()=>{return i}});if(Object.prototype.hasOwnProperty.call(e,"prefix")){i=r.resolve(e.prefix)}else{try{const e=o.findPrefix(process.cwd());i=e}catch(e){throw e}}return i}loadCAFile(e){if(!e){return}try{const i=n.readFileSync(e,"utf8");const t="-----END CERTIFICATE-----";const r=i.split(t).filter(e=>Boolean(e.trim())).map(e=>e.trimLeft()+t);this.set("ca",r)}catch(e){if(e.code==="ENOENT"){return}throw e}}loadUser(){const e=this.root;if(this.get("global")){return}if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}const i=r.resolve(this.get("prefix"));try{const t=n.statSync(i);e.user=t.uid}catch(e){if(e.code==="ENOENT"){return}throw e}}}e.exports=Conf},669:function(e){e.exports=require("util")},672:function(e,i,t){"use strict";var n=this&&this.__awaiter||function(e,i,t,n){function adopt(e){return e instanceof t?e:new t(function(i){i(e)})}return new(t||(t=Promise))(function(t,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,i||[])).next())})};var r;Object.defineProperty(i,"__esModule",{value:true});const a=t(357);const o=t(747);const s=t(622);r=o.promises,i.chmod=r.chmod,i.copyFile=r.copyFile,i.lstat=r.lstat,i.mkdir=r.mkdir,i.readdir=r.readdir,i.readlink=r.readlink,i.rename=r.rename,i.rmdir=r.rmdir,i.stat=r.stat,i.symlink=r.symlink,i.unlink=r.unlink;i.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield i.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}i.exists=exists;function isDirectory(e,t=false){return n(this,void 0,void 0,function*(){const n=t?yield i.stat(e):yield i.lstat(e);return n.isDirectory()})}i.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(i.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}i.isRooted=isRooted;function mkdirP(e,t=1e3,r=1){return n(this,void 0,void 0,function*(){a.ok(e,"a path argument must be provided");e=s.resolve(e);if(r>=t)return i.mkdir(e);try{yield i.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(s.dirname(e),t,r+1);yield i.mkdir(e);return}default:{let t;try{t=yield i.stat(e)}catch(e){throw n}if(!t.isDirectory())throw n}}}})}i.mkdirP=mkdirP;function tryGetExecutablePath(e,t){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield i.stat(e)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${i}`)}}if(n&&n.isFile()){if(i.IS_WINDOWS){const i=s.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===i)){return e}}else{if(isUnixExecutable(n)){return e}}}const r=e;for(const a of t){e=r+a;n=undefined;try{n=yield i.stat(e)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${i}`)}}if(n&&n.isFile()){if(i.IS_WINDOWS){try{const t=s.dirname(e);const n=s.basename(e).toUpperCase();for(const r of yield i.readdir(t)){if(n===r.toUpperCase()){e=s.join(t,r);break}}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${i}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}i.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(i.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},674:function(e,i,t){"use strict";var n=t(149).Buffer;var r=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var i;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(i)return;e=(""+e).toLowerCase();i=true}}}function normalizeEncoding(e){var i=_normalizeEncoding(e);if(typeof i!=="string"&&(n.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return i||e}i.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var i;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;i=4;break;case"utf8":this.fillLast=utf8FillLast;i=4;break;case"base64":this.text=base64Text;this.end=base64End;i=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(i)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var i;var t;if(this.lastNeed){i=this.fillLast(e);if(i===undefined)return"";t=this.lastNeed;this.lastNeed=0}else{t=0}if(t>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,i,t){var n=i.length-1;if(n=0){if(r>0)e.lastNeed=r-1;return r}if(--n=0){if(r>0)e.lastNeed=r-2;return r}if(--n=0){if(r>0){if(r===2)r=0;else e.lastNeed=r-3}return r}return 0}function utf8CheckExtraBytes(e,i,t){if((i[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&i.length>1){if((i[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&i.length>2){if((i[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var i=this.lastTotal-this.lastNeed;var t=utf8CheckExtraBytes(this,e,i);if(t!==undefined)return t;if(this.lastNeed<=e.length){e.copy(this.lastChar,i,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,i,0,e.length);this.lastNeed-=e.length}function utf8Text(e,i){var t=utf8CheckIncomplete(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var n=e.length-(t-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",i,n)}function utf8End(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed)return i+"�";return i}function utf16Text(e,i){if((e.length-i)%2===0){var t=e.toString("utf16le",i);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return t.slice(0,-1)}}return t}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",i,e.length-1)}function utf16End(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,t)}return i}function base64Text(e,i){var t=(e.length-i)%3;if(t===0)return e.toString("base64",i);this.lastNeed=3-t;this.lastTotal=3;if(t===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",i,e.length-t)}function base64End(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed)return i+this.lastChar.toString("base64",0,3-this.lastNeed);return i}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},686:function(e,i,t){"use strict";var n=this&&this.__awaiter||function(e,i,t,n){function adopt(e){return e instanceof t?e:new t(function(i){i(e)})}return new(t||(t=Promise))(function(t,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,i||[])).next())})};Object.defineProperty(i,"__esModule",{value:true});const r=t(87);const a=t(614);const o=t(129);const s=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,i,t){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=i||[];this.options=t||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,i){const t=this._getSpawnFileName();const n=this._getSpawnArgs(e);let r=i?"":"[command]";if(s){if(this._isCmdFile()){r+=t;for(const e of n){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${t}"`;for(const e of n){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(t);for(const e of n){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=t;for(const e of n){r+=` ${e}`}}return r}_processLineBuffer(e,i,t){try{let n=i+e.toString();let a=n.indexOf(r.EOL);while(a>-1){const e=n.substring(0,a);t(e);n=n.substring(a+r.EOL.length);a=n.indexOf(r.EOL)}i=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(s){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(s){if(this._isCmdFile()){let i=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const t of this.args){i+=" ";i+=e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t)}i+='"';return[i]}}return this.args}_endsWith(e,i){return e.endsWith(i)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const i=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let t=false;for(const n of e){if(i.some(e=>e===n)){t=true;break}}if(!t){return e}let n='"';let r=true;for(let i=e.length;i>0;i--){n+=e[i-1];if(r&&e[i-1]==="\\"){n+="\\"}else if(e[i-1]==='"'){r=true;n+='"'}else{r=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let i='"';let t=true;for(let n=e.length;n>0;n--){i+=e[n-1];if(t&&e[n-1]==="\\"){i+="\\"}else if(e[n-1]==='"'){t=true;i+="\\"}else{t=false}}i+='"';return i.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const i={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};i.outStream=e.outStream||process.stdout;i.errStream=e.errStream||process.stderr;return i}_getSpawnOptions(e,i){e=e||{};const t={};t.cwd=e.cwd;t.env=e.env;t["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){t.argv0=`"${i}"`}return t}exec(){return n(this,void 0,void 0,function*(){return new Promise((e,i)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const t=this._cloneExecOptions(this.options);if(!t.silent&&t.outStream){t.outStream.write(this._getCommandString(t)+r.EOL)}const n=new ExecState(t,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const s=o.spawn(a,this._getSpawnArgs(t),this._getSpawnOptions(this.options,a));const c="";if(s.stdout){s.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!t.silent&&t.outStream){t.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const p="";if(s.stderr){s.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!t.silent&&t.errStream&&t.outStream){const i=t.failOnStdErr?t.errStream:t.outStream;i.write(e)}this._processLineBuffer(e,p,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}s.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});s.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});s.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(t,n)=>{if(c.length>0){this.emit("stdline",c)}if(p.length>0){this.emit("errline",p)}s.removeAllListeners();if(t){i(t)}else{e(n)}})})})}}i.ToolRunner=ToolRunner;function argStringToArray(e){const i=[];let t=false;let n=false;let r="";function append(e){if(n&&e!=='"'){r+="\\"}r+=e;n=false}for(let a=0;a0){i.push(r);r=""}continue}append(o)}if(r.length>0){i.push(r.trim())}return i}i.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,i){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!i){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=i;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const i=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(i)}e._setResult()}}},689:function(e,i,t){"use strict";const n=t(458);const r=t(145);const a=Object.prototype.toString;const o="[object URL]";const s="hash";const c="host";const p="hostname";const l="href";const u="password";const f="pathname";const d="port";const m="protocol";const h="search";const x="username";const v=(e,i)=>{if(!r(e))return false;if(!n&&a.call(e)===o)return true;if(!(l in e))return false;if(!(m in e))return false;if(!(x in e))return false;if(!(u in e))return false;if(!(p in e))return false;if(!(d in e))return false;if(!(c in e))return false;if(!(f in e))return false;if(!(h in e))return false;if(!(s in e))return false;if(i!==true){if(!r(e.searchParams))return false}return true};v.lenient=(e=>{return v(e,true)});e.exports=v},690:function(e){var i=[0,1,3,7,15,31,63,127,255];e.exports=function bitIterator(e){var t=0,n=0;var r=e();var a=function(o){if(o===null&&t!=0){t=0;n++;return}var s=0;while(o>0){if(n>=r.length){n=0;r=e()}var c=8-t;if(t===0&&o>0)a.bytesRead++;if(o>=c){s<<=c;s|=i[c]&r[n++];t=0;o-=c}else{s<<=o;s|=(r[n]&i[o]<<8-o-t)>>8-o-t;t+=o;o=0}}return s};a.bytesRead=0;return a}},697:function(e){"use strict";e.exports=((e,i)=>{i=i||(()=>{});return e.then(e=>new Promise(e=>{e(i())}).then(()=>e),e=>new Promise(e=>{e(i())}).then(()=>{throw e}))})},705:function(e){"use strict";function urlToOptions(e){var i={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};if(e.port!==""){i.port=Number(e.port)}if(e.username||e.password){i.auth=`${e.username}:${e.password}`}return i}e.exports=urlToOptions},718:function(e,i,t){"use strict";var n=t(413);function DuplexWrapper(e,i,t){if(typeof t==="undefined"){t=i;i=e;e=null}n.Duplex.call(this,e);if(typeof t.read!=="function"){t=new n.Readable(e).wrap(t)}this._writable=i;this._readable=t;this._waiting=false;var r=this;i.once("finish",function(){r.end()});this.once("finish",function(){i.end()});t.on("readable",function(){if(r._waiting){r._waiting=false;r._read()}});t.once("end",function(){r.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){i.on("error",function(e){r.emit("error",e)});t.on("error",function(e){r.emit("error",e)})}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,i,t){this._writable.write(e,i,t)};DuplexWrapper.prototype._read=function _read(){var e;var i=0;while((e=this._readable.read())!==null){this.push(e);i++}if(i===0){this._waiting=true}};e.exports=function duplex2(e,i,t){return new DuplexWrapper(e,i,t)};e.exports.DuplexWrapper=DuplexWrapper},727:function(e){"use strict";var i=Object.prototype.toString;e.exports=function(e){var t;return i.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}},741:function(e,i,t){"use strict";const n=t(727);e.exports=((e,i)=>{if(!n(e)){throw new TypeError("Expected a plain object")}i=i||{};if(typeof i==="function"){throw new TypeError("Specify the compare function as an option instead")}const t=i.deep;const r=[];const a=[];const o=e=>{const s=r.indexOf(e);if(s!==-1){return a[s]}const c={};const p=Object.keys(e).sort(i.compare);r.push(e);a.push(c);for(let i=0;iNumber.MAX_SAFE_INTEGER){throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.")}e.ref();var a=22;var o=65535;var s=Math.min(a+o,i);var c=d(s);var p=i-c.length;readAndAssertNoEof(e,c,0,s,p,function(o){if(o)return n(o);for(var l=s-a;l>=0;l-=1){if(c.readUInt32LE(l)!==101010256)continue;var u=c.slice(l);var f=u.readUInt16LE(4);if(f!==0){return n(new Error("multi-disk zip files are not supported: found disk number: "+f))}var m=u.readUInt16LE(10);var h=u.readUInt32LE(16);var x=u.readUInt16LE(20);var v=u.length-a;if(x!==v){return n(new Error("invalid comment length. expected: "+v+". found: "+x))}var g=r?decodeBuffer(u,22,u.length,false):u.slice(22);if(!(m===65535||h===4294967295)){return n(null,new ZipFile(e,h,i,m,g,t.autoClose,t.lazyEntries,r,t.validateEntrySizes,t.strictFileNames))}var b=d(20);var y=p+l-b.length;readAndAssertNoEof(e,b,0,b.length,y,function(a){if(a)return n(a);if(b.readUInt32LE(0)!==117853008){return n(new Error("invalid zip64 end of central directory locator signature"))}var o=readUInt64LE(b,8);var s=d(56);readAndAssertNoEof(e,s,0,s.length,o,function(a){if(a)return n(a);if(s.readUInt32LE(0)!==101075792){return n(new Error("invalid zip64 end of central directory record signature"))}m=readUInt64LE(s,32);h=readUInt64LE(s,48);return n(null,new ZipFile(e,h,i,m,g,t.autoClose,t.lazyEntries,r,t.validateEntrySizes,t.strictFileNames))})});return}n(new Error("end of central directory record signature not found"))})}s.inherits(ZipFile,c);function ZipFile(e,i,t,n,r,a,o,s,p,l){var u=this;c.call(u);u.reader=e;u.reader.on("error",function(e){emitError(u,e)});u.reader.once("close",function(){u.emit("close")});u.readEntryCursor=i;u.fileSize=t;u.entryCount=n;u.comment=r;u.entriesRead=0;u.autoClose=!!a;u.lazyEntries=!!o;u.decodeStrings=!!s;u.validateEntrySizes=!!p;u.strictFileNames=!!l;u.isOpen=true;u.emittedError=false;if(!u.lazyEntries)u._readEntry()}ZipFile.prototype.close=function(){if(!this.isOpen)return;this.isOpen=false;this.reader.unref()};function emitErrorAndAutoClose(e,i){if(e.autoClose)e.close();emitError(e,i)}function emitError(e,i){if(e.emittedError)return;e.emittedError=true;e.emit("error",i)}ZipFile.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ZipFile.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate(function(){if(e.autoClose)e.close();if(e.emittedError)return;e.emit("end")});return}if(e.emittedError)return;var i=d(46);readAndAssertNoEof(e.reader,i,0,i.length,e.readEntryCursor,function(t){if(t)return emitErrorAndAutoClose(e,t);if(e.emittedError)return;var n=new Entry;var r=i.readUInt32LE(0);if(r!==33639248)return emitErrorAndAutoClose(e,new Error("invalid central directory file header signature: 0x"+r.toString(16)));n.versionMadeBy=i.readUInt16LE(4);n.versionNeededToExtract=i.readUInt16LE(6);n.generalPurposeBitFlag=i.readUInt16LE(8);n.compressionMethod=i.readUInt16LE(10);n.lastModFileTime=i.readUInt16LE(12);n.lastModFileDate=i.readUInt16LE(14);n.crc32=i.readUInt32LE(16);n.compressedSize=i.readUInt32LE(20);n.uncompressedSize=i.readUInt32LE(24);n.fileNameLength=i.readUInt16LE(28);n.extraFieldLength=i.readUInt16LE(30);n.fileCommentLength=i.readUInt16LE(32);n.internalFileAttributes=i.readUInt16LE(36);n.externalFileAttributes=i.readUInt32LE(38);n.relativeOffsetOfLocalHeader=i.readUInt32LE(42);if(n.generalPurposeBitFlag&64)return emitErrorAndAutoClose(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46;i=d(n.fileNameLength+n.extraFieldLength+n.fileCommentLength);readAndAssertNoEof(e.reader,i,0,i.length,e.readEntryCursor,function(t){if(t)return emitErrorAndAutoClose(e,t);if(e.emittedError)return;var r=(n.generalPurposeBitFlag&2048)!==0;n.fileName=e.decodeStrings?decodeBuffer(i,0,n.fileNameLength,r):i.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength;var s=i.slice(n.fileNameLength,a);n.extraFields=[];var c=0;while(cs.length)return emitErrorAndAutoClose(e,new Error("extra field length exceeds extra field buffer size"));var m=d(l);s.copy(m,0,u,f);n.extraFields.push({id:p,data:m});c=f}n.fileComment=e.decodeStrings?decodeBuffer(i,a,a+n.fileCommentLength,r):i.slice(a,a+n.fileCommentLength);n.comment=n.fileComment;e.readEntryCursor+=i.length;e.entriesRead+=1;if(n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){var h=null;for(var c=0;ch.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include uncompressed size"))}n.uncompressedSize=readUInt64LE(h,v);v+=8}if(n.compressedSize===4294967295){if(v+8>h.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include compressed size"))}n.compressedSize=readUInt64LE(h,v);v+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(v+8>h.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include relative header offset"))}n.relativeOffsetOfLocalHeader=readUInt64LE(h,v);v+=8}}if(e.decodeStrings){for(var c=0;ce.compressedSize)throw new Error("options.start > entry.compressedSize")}if(i.end!=null){o=i.end;if(o<0)throw new Error("options.end < 0");if(o>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(on.fileSize){return t(new Error("file data overflows file bounds: "+m+" + "+e.compressedSize+" > "+n.fileSize))}}var x=n.reader.createReadStream({start:m+a,end:m+o});var v=x;if(d){var g=false;var b=r.createInflateRaw();x.on("error",function(e){setImmediate(function(){if(!g)b.emit("error",e)})});x.pipe(b);if(n.validateEntrySizes){v=new AssertByteCountStream(e.uncompressedSize);b.on("error",function(e){setImmediate(function(){if(!g)v.emit("error",e)})});b.pipe(v)}else{v=b}v.destroy=function(){g=true;if(b!==v)b.unpipe(v);x.unpipe(b);x.destroy()}}t(null,v)}finally{n.reader.unref()}})};function Entry(){}Entry.prototype.getLastModDate=function(){return dosDateTimeToDate(this.lastModFileDate,this.lastModFileTime)};Entry.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Entry.prototype.isCompressed=function(){return this.compressionMethod===8};function dosDateTimeToDate(e,i){var t=e&31;var n=(e>>5&15)-1;var r=(e>>9&127)+1980;var a=0;var o=(i&31)*2;var s=i>>5&63;var c=i>>11&31;return new Date(r,n,t,c,s,o,a)}function validateFileName(e){if(e.indexOf("\\")!==-1){return"invalid characters in fileName: "+e}if(/^[a-zA-Z]:/.test(e)||/^\//.test(e)){return"absolute path: "+e}if(e.split("/").indexOf("..")!==-1){return"invalid relative path: "+e}return null}function readAndAssertNoEof(e,i,t,n,r,a){if(n===0){return setImmediate(function(){a(null,d(0))})}e.read(i,t,n,r,function(e,i){if(e)return a(e);if(ithis.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return t(new Error(n))}t(null,e)};AssertByteCountStream.prototype._flush=function(e){if(this.actualByteCount0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(onCloseDone);function onCloseDone(i){if(i)return e.emit("error",i);e.emit("close")}};RandomAccessReader.prototype.createReadStream=function(e){var i=e.start;var t=e.end;if(i===t){var n=new l;setImmediate(function(){n.end()});return n}var r=this._readStreamForRange(i,t);var a=false;var o=new RefUnrefFilter(this);r.on("error",function(e){setImmediate(function(){if(!a)o.emit("error",e)})});o.destroy=function(){r.unpipe(o);o.unref();r.destroy()};var s=new AssertByteCountStream(t-i);o.on("error",function(e){setImmediate(function(){if(!a)s.emit("error",e)})});s.destroy=function(){a=true;o.unpipe(s);o.destroy()};return r.pipe(o).pipe(s)};RandomAccessReader.prototype._readStreamForRange=function(e,i){throw new Error("not implemented")};RandomAccessReader.prototype.read=function(e,i,t,n,r){var a=this.createReadStream({start:n,end:n+t});var o=new u;var s=0;o._write=function(t,n,r){t.copy(e,i+s,0,t.length);s+=t.length;r()};o.on("finish",r);a.on("error",function(e){r(e)});a.pipe(o)};RandomAccessReader.prototype.close=function(e){setImmediate(e)};s.inherits(RefUnrefFilter,l);function RefUnrefFilter(e){l.call(this);this.context=e;this.context.ref();this.unreffedYet=false}RefUnrefFilter.prototype._flush=function(e){this.unref();e()};RefUnrefFilter.prototype.unref=function(e){if(this.unreffedYet)return;this.unreffedYet=true;this.context.unref()};var f="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function decodeBuffer(e,i,t,n){if(n){return e.toString("utf8",i,t)}else{var r="";for(var a=i;ae=>{if(!Buffer.isBuffer(e)&&!r(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!n(e)||n(e).ext!=="tar")){return Promise.resolve([])}const i=a.extract();const t=[];i.on("entry",(e,i,n)=>{const r=[];i.on("data",e=>r.push(e));i.on("end",()=>{const i={data:Buffer.concat(r),mode:e.mode,mtime:e.mtime,path:e.name,type:e.type};if(e.type==="symlink"||e.type==="link"){i.linkname=e.linkname}t.push(i);n()})});const o=new Promise((n,r)=>{if(!Buffer.isBuffer(e)){e.on("error",r)}i.on("finish",()=>n(t));i.on("error",r)});i.then=o.then.bind(o);i.catch=o.catch.bind(o);if(Buffer.isBuffer(e)){i.end(e)}else{e.pipe(i)}return i})},794:function(e){"use strict";e.exports=(e=>{const i=new Uint8Array(e);if(!(i&&i.length>1)){return null}const t=(e,t)=>{t=Object.assign({offset:0},t);for(let n=0;nt[i]===66&&t[i+1]===130);if(t>=0){const i=t+3;const n=t=>Array.from(t).every((t,n)=>e[i+n]===t.charCodeAt(0));if(n("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(n("webm")){return{ext:"webm",mime:"video/webm"}}}}if(t([0,0,0,20,102,116,121,112,113,116,32,32])||t([102,114,101,101],{offset:4})||t([102,116,121,112,113,116,32,32],{offset:4})||t([109,100,97,116],{offset:4})||t([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(t([82,73,70,70])&&t([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(t([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(t([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(t([73,68,51])||t([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(t([102,116,121,112,77,52,65],{offset:4})||t([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(t([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(t([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(t([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(t([82,73,70,70])&&t([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(t([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(t([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(t([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((i[0]===67||i[0]===70)&&t([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(t([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(t([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(t([119,79,70,70])&&(t([0,1,0,0],{offset:4})||t([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"application/font-woff"}}if(t([119,79,70,50])&&(t([0,1,0,0],{offset:4})||t([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"application/font-woff"}}if(t([76,80],{offset:34})&&(t([0,0,1],{offset:8})||t([1,0,2],{offset:8})||t([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(t([0,1,0,0,0])){return{ext:"ttf",mime:"application/font-sfnt"}}if(t([79,84,84,79,0])){return{ext:"otf",mime:"application/font-sfnt"}}if(t([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(t([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(t([37,33])){return{ext:"ps",mime:"application/postscript"}}if(t([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(t([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(t([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(t([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(t([77,83,67,70])||t([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(t([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(t([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(t([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(t([31,160])||t([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(t([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(t([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(t([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(t([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}return null})},802:function(e){"use strict";const i=(e,i)=>(function(){const t=i.promiseModule;const n=new Array(arguments.length);for(let e=0;e{if(i.errorFirst){n.push(function(e,n){if(i.multiArgs){const i=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const n=e=>{const i=i=>typeof i==="string"?e===i:i.test(e);return t.include?t.include.some(i):!t.exclude.some(i)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return i(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const a in e){const o=e[a];r[a]=typeof o==="function"&&n(a)?i(o,t):o}return r})},809:function(e){"use strict";var i=function(e,i,t){return function(){var n=this;var r=new Array(arguments.length);for(var a=0;a{if(i.plugins.length===0){return Promise.resolve([])}return Promise.all(i.plugins.map(t=>t(e,i))).then(e=>e.reduce((e,i)=>e.concat(i)))};const m=(e,i,t)=>d(e,t).then(e=>{if(t.strip>0){e=e.map(e=>{e.path=u(e.path,t.strip);return e}).filter(e=>e.path!==".")}if(typeof t.filter==="function"){e=e.filter(t.filter)}if(typeof t.map==="function"){e=e.map(t.map)}if(!i){return e}return Promise.all(e.map(e=>{const t=n.join(i,e.path);const r=e.mode&~process.umask();const a=new Date;if(e.type==="directory"){return p(t).then(()=>f.utimes(t,a,e.mtime)).then(()=>e)}return p(n.dirname(t)).then(()=>{if(e.type==="link"){return f.link(e.linkname,t)}if(e.type==="symlink"&&process.platform==="win32"){return f.link(e.linkname,t)}if(e.type==="symlink"){return f.symlink(e.linkname,t)}return f.writeFile(t,e.data,{mode:r})}).then(()=>e.type==="file"&&f.utimes(t,a,e.mtime)).then(()=>e)}))});e.exports=((e,i,t)=>{if(typeof e!=="string"&&!Buffer.isBuffer(e)){return Promise.reject(new TypeError("Input file required"))}if(typeof i==="object"){t=i;i=null}t=Object.assign({plugins:[a(),o(),s(),c()]},t);const n=typeof e==="string"?f.readFile(e):Promise.resolve(e);return n.then(e=>m(e,i,t))})},822:function(e){"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,i,t,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var r=arguments.length;var a,o;switch(r){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function afterTickOne(){e.call(null,i)});case 3:return process.nextTick(function afterTickTwo(){e.call(null,i,t)});case 4:return process.nextTick(function afterTickThree(){e.call(null,i,t,n)});default:a=new Array(r-1);o=0;while(o0;n--){e[n]=e[n-1]}e[0]=t;return t};var v={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8};var g={};g[v.LAST_BLOCK]="Bad file checksum";g[v.NOT_BZIP_DATA]="Not bzip data";g[v.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";g[v.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";g[v.DATA_ERROR]="Data error";g[v.OUT_OF_MEMORY]="Out of memory";g[v.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var b=function(e,i){var t=g[e]||"unknown error";if(i){t+=": "+i}var n=new TypeError(t);n.errorCode=e;throw n};var y=function(e,i){this.writePos=this.writeCurrent=this.writeCount=0;this._start_bunzip(e,i)};y.prototype._init_block=function(){var e=this._get_next_block();if(!e){this.writeCount=-1;return false}this.blockCRC=new a;return true};y.prototype._start_bunzip=function(e,i){var t=new Buffer(4);if(e.read(t,0,4)!==4||String.fromCharCode(t[0],t[1],t[2])!=="BZh")b(v.NOT_BZIP_DATA,"bad magic");var r=t[3]-48;if(r<1||r>9)b(v.NOT_BZIP_DATA,"level out of range");this.reader=new n(e);this.dbufSize=1e5*r;this.nextoutput=0;this.outputStream=i;this.streamCRC=0};y.prototype._get_next_block=function(){var e,i,t;var n=this.reader;var r=n.pi();if(r===h){return false}if(r!==m)b(v.NOT_BZIP_DATA);this.targetBlockCRC=n.read(32)>>>0;this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0;if(n.read(1))b(v.OBSOLETE_INPUT);var a=n.read(24);if(a>this.dbufSize)b(v.DATA_ERROR,"initial position out of bounds");var o=n.read(16);var g=new Buffer(256),y=0;for(e=0;e<16;e++){if(o&1<<15-e){var w=e*16;t=n.read(16);for(i=0;i<16;i++)if(t&1<<15-i)g[y++]=w+i}}var _=n.read(3);if(_f)b(v.DATA_ERROR);var E=n.read(15);if(E===0)b(v.DATA_ERROR);var S=new Buffer(256);for(e=0;e<_;e++)S[e]=e;var k=new Buffer(E);for(e=0;e=_)b(v.DATA_ERROR);k[e]=x(S,i)}var C=y+2;var j=[],O;for(i=0;i<_;i++){var T=new Buffer(C),R=new Uint16Array(s+1);o=n.read(5);for(e=0;es)b(v.DATA_ERROR);if(!n.read(1))break;if(!n.read(1))o++;else o--}T[e]=o}var A,B;A=B=T[0];for(e=1;eB)B=T[e];else if(T[e]=E){b(v.DATA_ERROR)}O=j[k[N++]]}e=O.minLen;i=n.read(e);for(;;e++){if(e>O.maxLen){b(v.DATA_ERROR)}if(i<=O.limit[e])break;i=i<<1|n.read(1)}i-=O.base[e];if(i<0||i>=c){b(v.DATA_ERROR)}var D=O.permute[i];if(D===p||D===l){if(!L){L=1;o=0}if(D===p)o+=L;else o+=2*L;L<<=1;continue}if(L){L=0;if(I+o>this.dbufSize){b(v.DATA_ERROR)}q=g[S[0]];P[q]+=o;while(o--)F[I++]=q}if(D>y)break;if(I>=this.dbufSize){b(v.DATA_ERROR)}e=D-1;q=x(S,e);q=g[q];P[q]++;F[I++]=q}if(a<0||a>=I){b(v.DATA_ERROR)}i=0;for(e=0;e<256;e++){t=i+P[e];P[e]=i;i=t}for(e=0;e>=8;W=-1}this.writePos=U;this.writeCurrent=M;this.writeCount=I;this.writeRun=W;return true};y.prototype._read_bunzip=function(e,i){var t,n,r;if(this.writeCount<0){return 0}var a=0;var o=this.dbuf,s=this.writePos,c=this.writeCurrent;var p=this.writeCount,l=this.outputsize;var u=this.writeRun;while(p){p--;n=c;s=o[s];c=s&255;s>>=8;if(u++===3){t=c;r=n;c=-1}else{t=1;r=c}this.blockCRC.updateCRCRun(r,t);while(t--){this.outputStream.writeByte(r);this.nextoutput++}if(c!=n)u=0}this.writeCount=p;if(this.blockCRC.getCRC()!==this.targetBlockCRC){b(v.DATA_ERROR,"Bad block CRC "+"(got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")")}return this.nextoutput};var w=function(e){if("readByte"in e){return e}var i=new r;i.pos=0;i.readByte=function(){return e[this.pos++]};i.seek=function(e){this.pos=e};i.eof=function(){return this.pos>=e.length};return i};var _=function(e){var i=new r;var t=true;if(e){if(typeof e==="number"){i.buffer=new Buffer(e);t=false}else if("writeByte"in e){return e}else{i.buffer=e;t=false}}else{i.buffer=new Buffer(16384)}i.pos=0;i.writeByte=function(e){if(t&&this.pos>=this.buffer.length){var i=new Buffer(this.buffer.length*2);this.buffer.copy(i);this.buffer=i}this.buffer[this.pos++]=e};i.getBuffer=function(){if(this.pos!==this.buffer.length){if(!t)throw new TypeError("outputsize does not match decoded input");var e=new Buffer(this.pos);this.buffer.copy(e,0,0,this.pos);this.buffer=e}return this.buffer};i._coerced=true;return i};y.Err=v;y.decode=function(e,i,t){var n=w(e);var r=_(i);var a=new y(n,r);while(true){if("eof"in n&&n.eof())break;if(a._init_block()){a._read_bunzip()}else{var o=a.reader.read(32)>>>0;if(o!==a.streamCRC){b(v.DATA_ERROR,"Bad stream CRC "+"(got "+a.streamCRC.toString(16)+" expected "+o.toString(16)+")")}if(t&&"eof"in n&&!n.eof()){a._start_bunzip(n,r)}else break}}if("getBuffer"in r)return r.getBuffer()};y.decodeBlock=function(e,i,t){var n=w(e);var r=_(t);var o=new y(n,r);o.reader.seek(i);var s=o._get_next_block();if(s){o.blockCRC=new a;o.writeCopies=0;o._read_bunzip()}if("getBuffer"in r)return r.getBuffer()};y.table=function(e,i,t){var n=new r;n.delegate=w(e);n.pos=0;n.readByte=function(){this.pos++;return this.delegate.readByte()};if(n.delegate.eof){n.eof=n.delegate.eof.bind(n.delegate)}var a=new r;a.pos=0;a.writeByte=function(){this.pos++};var o=new y(n,a);var s=o.dbufSize;while(true){if("eof"in n&&n.eof())break;var c=n.pos*8+o.reader.bitOffset;if(o.reader.hasByte){c-=8}if(o._init_block()){var p=a.pos;o._read_bunzip();i(c,a.pos-p)}else{var l=o.reader.read(32);if(t&&"eof"in n&&!n.eof()){o._start_bunzip(n,a);console.assert(o.dbufSize===s,"shouldn't change block size within multistream file")}else break}}};y.Stream=r;y.version=o.version;y.license=o.license;e.exports=y},831:function(e,i,t){"use strict";var n=t(822);var r=Object.keys||function(e){var i=[];for(var t in e){i.push(t)}return i};e.exports=Duplex;var a=t(286);a.inherits=t(422);var o=t(226);var s=t(241);a.inherits(Duplex,o);{var c=r(s.prototype);for(var p=0;p=(25e3+1e5*t||4)){decompressAndQueue(this)}},function end(e){while(!o&&i>c.bytesRead){decompressAndQueue(this)}if(!o){if(p!==null)stream.emit("error",new Error("input stream ended prematurely"));this.queue(null)}})}},850:function(e,i,t){"use strict";const n=t(761);const r=t(791);const a=t(285);const o=t(323);e.exports=(()=>e=>{if(!Buffer.isBuffer(e)&&!o(e)){return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`))}if(Buffer.isBuffer(e)&&(!a(e)||a(e).ext!=="gz")){return Promise.resolve([])}const i=n.createGunzip();const t=r()(i);if(Buffer.isBuffer(e)){i.end(e)}else{e.pipe(i)}return t})},852:function(e,i,t){e.exports=t(512)},861:function(e,i,t){"use strict";const n=t(413).PassThrough;const r=t(761);const a=t(89);e.exports=(e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const i=r.createUnzip();const t=new n;a(e,t);i.on("error",e=>{if(e.code==="Z_BUF_ERROR"){t.end();return}t.emit("error",e)});e.pipe(i).pipe(t);return t})},868:function(e,i,t){var n=t(574).Readable;var r=t(422);e.exports=from2;from2.ctor=ctor;from2.obj=obj;var a=ctor();function toFunction(e){e=e.slice();return function(i,t){var n=null;var r=e.length?e.shift():null;if(r instanceof Error){n=r;r=null}t(n,r)}}function from2(e,i){if(typeof e!=="object"||Array.isArray(e)){i=e;e={}}var t=new a(e);t._from=Array.isArray(i)?toFunction(i):i||noop;return t}function ctor(e,i){if(typeof e==="function"){i=e;e={}}e=defaults(e);r(Class,n);function Class(i){if(!(this instanceof Class))return new Class(i);this._reading=false;this._callback=check;this.destroyed=false;n.call(this,i||e);var t=this;var r=this._readableState.highWaterMark;function check(e,i){if(t.destroyed)return;if(e)return t.destroy(e);if(i===null)return t.push(null);t._reading=false;if(t.push(i))t._read(r)}}Class.prototype._from=i||noop;Class.prototype._read=function(e){if(this._reading||this.destroyed)return;this._reading=true;this._from(e,this._callback)};Class.prototype.destroy=function(e){if(this.destroyed)return;this.destroyed=true;var i=this;process.nextTick(function(){if(e)i.emit("error",e);i.emit("close")})};return Class}function obj(e,i){if(typeof e==="function"||Array.isArray(e)){i=e;e={}}e=defaults(e);e.objectMode=true;e.highWaterMark=16;return from2(e,i)}function noop(){}function defaults(e){e=e||{};return e}},881:function(e){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},882:function(e,i,t){"use strict";e.exports=PassThrough;var n=t(925);var r=t(286);r.inherits=t(422);r.inherits(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,i,t){t(null,e)}},883:function(){eval("require")("electron")},898:function(e,i,t){"use strict";const n=t(517);const r=t(73);const a=t(464);const o=t(766);const s=(e,i)=>{const t=61440;const n=16384;const r=40960;const a=e.versionMadeBy>>8;if((i&t)===r){return"symlink"}if((i&t)===n||a===0&&e.externalFileAttributes===16){return"directory"}return"file"};const c=(e,i)=>{const t={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};t.type=s(e,t.mode);if(t.mode===0&&t.type==="directory"){t.mode=493}if(t.mode===0){t.mode=420}return a(i.openReadStream.bind(i))(e).then(r.buffer).then(e=>{t.data=e;if(t.type==="symlink"){t.linkname=e.toString()}return t}).catch(e=>{i.close();throw e})};const p=e=>new Promise((i,t)=>{const n=[];e.readEntry();e.on("entry",i=>{c(i,e).catch(t).then(i=>{n.push(i);e.readEntry()})});e.on("error",t);e.on("end",()=>i(n))});e.exports=(()=>e=>{if(!Buffer.isBuffer(e)){return Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))}if(!n(e)||n(e).ext!=="zip"){return Promise.resolve([])}return a(o.fromBuffer)(e,{lazyEntries:true}).then(p)})},902:function(e){"use strict";e.exports=(e=>{const i=new Uint8Array(e);if(!(i&&i.length>1)){return null}const t=(e,t)=>{t=Object.assign({offset:0},t);for(let n=0;nt[i]===66&&t[i+1]===130);if(t>=0){const i=t+3;const n=t=>Array.from(t).every((t,n)=>e[i+n]===t.charCodeAt(0));if(n("matroska")){return{ext:"mkv",mime:"video/x-matroska"}}if(n("webm")){return{ext:"webm",mime:"video/webm"}}}}if(t([0,0,0,20,102,116,121,112,113,116,32,32])||t([102,114,101,101],{offset:4})||t([102,116,121,112,113,116,32,32],{offset:4})||t([109,100,97,116],{offset:4})||t([119,105,100,101],{offset:4})){return{ext:"mov",mime:"video/quicktime"}}if(t([82,73,70,70])&&t([65,86,73],{offset:8})){return{ext:"avi",mime:"video/x-msvideo"}}if(t([48,38,178,117,142,102,207,17,166,217])){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(t([0,0,1,186])){return{ext:"mpg",mime:"video/mpeg"}}if(t([73,68,51])||t([255,251])){return{ext:"mp3",mime:"audio/mpeg"}}if(t([102,116,121,112,77,52,65],{offset:4})||t([77,52,65,32])){return{ext:"m4a",mime:"audio/m4a"}}if(t([79,112,117,115,72,101,97,100],{offset:28})){return{ext:"opus",mime:"audio/opus"}}if(t([79,103,103,83])){return{ext:"ogg",mime:"audio/ogg"}}if(t([102,76,97,67])){return{ext:"flac",mime:"audio/x-flac"}}if(t([82,73,70,70])&&t([87,65,86,69],{offset:8})){return{ext:"wav",mime:"audio/x-wav"}}if(t([35,33,65,77,82,10])){return{ext:"amr",mime:"audio/amr"}}if(t([37,80,68,70])){return{ext:"pdf",mime:"application/pdf"}}if(t([77,90])){return{ext:"exe",mime:"application/x-msdownload"}}if((i[0]===67||i[0]===70)&&t([87,83],{offset:1})){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(t([123,92,114,116,102])){return{ext:"rtf",mime:"application/rtf"}}if(t([0,97,115,109])){return{ext:"wasm",mime:"application/wasm"}}if(t([119,79,70,70])&&(t([0,1,0,0],{offset:4})||t([79,84,84,79],{offset:4}))){return{ext:"woff",mime:"font/woff"}}if(t([119,79,70,50])&&(t([0,1,0,0],{offset:4})||t([79,84,84,79],{offset:4}))){return{ext:"woff2",mime:"font/woff2"}}if(t([76,80],{offset:34})&&(t([0,0,1],{offset:8})||t([1,0,2],{offset:8})||t([2,0,2],{offset:8}))){return{ext:"eot",mime:"application/octet-stream"}}if(t([0,1,0,0,0])){return{ext:"ttf",mime:"font/ttf"}}if(t([79,84,84,79,0])){return{ext:"otf",mime:"font/otf"}}if(t([0,0,1,0])){return{ext:"ico",mime:"image/x-icon"}}if(t([70,76,86,1])){return{ext:"flv",mime:"video/x-flv"}}if(t([37,33])){return{ext:"ps",mime:"application/postscript"}}if(t([253,55,122,88,90,0])){return{ext:"xz",mime:"application/x-xz"}}if(t([83,81,76,105])){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(t([78,69,83,26])){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(t([67,114,50,52])){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(t([77,83,67,70])||t([73,83,99,40])){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(t([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])){return{ext:"deb",mime:"application/x-deb"}}if(t([33,60,97,114,99,104,62])){return{ext:"ar",mime:"application/x-unix-archive"}}if(t([237,171,238,219])){return{ext:"rpm",mime:"application/x-rpm"}}if(t([31,160])||t([31,157])){return{ext:"Z",mime:"application/x-compress"}}if(t([76,90,73,80])){return{ext:"lz",mime:"application/x-lzip"}}if(t([208,207,17,224,161,177,26,225])){return{ext:"msi",mime:"application/x-msi"}}if(t([6,14,43,52,2,5,1,1,13,1,2,1,1,2])){return{ext:"mxf",mime:"application/mxf"}}if(t([71],{offset:4})&&(t([71],{offset:192})||t([71],{offset:196}))){return{ext:"mts",mime:"video/mp2t"}}if(t([66,76,69,78,68,69,82])){return{ext:"blend",mime:"application/x-blender"}}if(t([66,80,71,251])){return{ext:"bpg",mime:"image/bpg"}}return null})},917:function(e,i,t){e.exports=t(669).deprecate},918:function(e,i,t){"use strict";const n=t(835);const r=t(521);const a=t(689);const o=t(243);const s=t(705);e.exports=((e,i)=>{e=e||r();i=Object.assign({},i);if(typeof e==="object"){i=e;e=r()}if(!e){return null}e=a.lenient(e)?s(e):n.parse(e);const t=i.protocol==="https"?"https":"http";const c=e.protocol==="https:"?"Https":"Http";const p=e.port||(c==="Https"?443:80);const l=`${t}Over${c}`;delete i.protocol;return o[l](Object.assign({proxy:{port:p,host:e.hostname,proxyAuth:e.auth}},i))})},925:function(e,i,t){"use strict";e.exports=Transform;var n=t(831);var r=t(286);r.inherits=t(422);r.inherits(Transform,n);function afterTransform(e,i){var t=this._transformState;t.transforming=false;var n=t.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}t.writechunk=null;t.writecb=null;if(i!=null)this.push(i);n(e);var r=this._readableState;r.reading=false;if(r.needReadable||r.lengthr.basename(a.parse(e.requestUrl).pathname);const y=e=>{const i=e.headers["content-type"];if(!i){return null}const t=v.mime(i);if(t.length!==1){return null}return t[0].ext};const w=(e,i)=>{const t=e.headers["content-disposition"];if(t){const e=s.parse(t);if(e.parameters&&e.parameters.filename){return e.parameters.filename}}let n=b(e);if(!r.extname(n)){const t=(x(i)||{}).ext||y(e);if(t){n=`${n}.${t}`}}return n};const _=e=>{let{protocol:i}=a.parse(e);if(i){i=i.slice(0,-1)}return i};e.exports=((e,i,t)=>{if(typeof i==="object"){t=i;i=null}const n=_(e);t=Object.assign({encoding:null,rejectUnauthorized:process.env.npm_config_strict_ssl!=="false"},t);const a=o(t.proxy,{protocol:n});const s=f.stream(e,Object.assign({agent:a},t)).on("redirect",(e,i)=>{const r=_(i.href);if(r&&r!==n){i.agent=o(t.proxy,{protocol:r})}});const m=h(s,"response").then(e=>{const i=t.encoding===null?"buffer":t.encoding;return Promise.all([u(s,{encoding:i}),e])}).then(e=>{const[n,a]=e;if(!i){return t.extract&&c(n)?p(n,t):n}const o=t.filename||l(w(a,n));const s=r.join(i,o);if(t.extract&&c(n)){return p(n,r.dirname(s),t)}return d(r.dirname(s)).then(()=>g.writeFile(s,n)).then(()=>n)});s.then=m.then.bind(m);s.catch=m.catch.bind(m);return s})},931:function(e,i,t){"use strict";function _classCallCheck(e,i){if(!(e instanceof i)){throw new TypeError("Cannot call a class as a function")}}var n=t(149).Buffer;var r=t(669);function copyBuffer(e,i,t){e.copy(i,t)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var i={data:e,next:null};if(this.length>0)this.tail.next=i;else this.head=i;this.tail=i;++this.length};BufferList.prototype.unshift=function unshift(e){var i={data:e,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var i=this.head;var t=""+i.data;while(i=i.next){t+=e+i.data}return t};BufferList.prototype.concat=function concat(e){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;var i=n.allocUnsafe(e>>>0);var t=this.head;var r=0;while(t){copyBuffer(t.data,i,r);r+=t.data.length;t=t.next}return i};return BufferList}();if(r&&r.inspect&&r.inspect.custom){e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e}}},940:function(e){e.exports=extend;var i=Object.prototype.hasOwnProperty;function extend(){var e={};for(var t=0;t0){t.extensions.forEach(function(t){e[t]=i})}});return e}},946:function(e,i,t){"use strict";const n=t(614);const r=t(835);const a=t(53);const o=t(997);const s=t(27);const c=t(141);const p=t(97);const l=t(325);const u=t(303);class CacheableRequest{constructor(e,i){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new u({uri:typeof i==="string"&&i,store:typeof i!=="string"&&i,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(i,t)=>{if(typeof i==="string"){i=r.parse(i)}i=Object.assign({headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false},i);i.headers=p(i.headers);const u=new n;const f=a(r.format(i));const d=`${i.method}:${f}`;let m=false;let h=false;const x=i=>{h=true;const n=e=>{if(m){const t=s.fromObject(m.cachePolicy).revalidatedPolicy(i,e);if(!t.modified){const i=t.policy.responseHeaders();e=new c(e.statusCode,i,m.body,m.url);e.cachePolicy=t.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new s(i,e);e.fromCache=false}let n;if(i.cache&&e.cachePolicy.storable()){n=l(e);o.buffer(e).then(t=>{const n={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:t};const r=i.strictTtl?e.cachePolicy.timeToLive():undefined;return this.cache.set(d,n,r)}).catch(e=>u.emit("error",new CacheableRequest.CacheError(e)))}else if(i.cache&&m){this.cache.delete(d).catch(e=>u.emit("error",new CacheableRequest.CacheError(e)))}u.emit("response",n||e);if(typeof t==="function"){t(n||e)}};try{const t=e(i,n);u.emit("request",t)}catch(e){u.emit("error",new CacheableRequest.RequestError(e))}};const v=e=>Promise.resolve().then(()=>e.cache?this.cache.get(d):undefined).then(i=>{if(typeof i==="undefined"){return x(e)}const n=s.fromObject(i.cachePolicy);if(n.satisfiesWithoutRevalidation(e)){const e=n.responseHeaders();const r=new c(i.statusCode,e,i.body,i.url);r.cachePolicy=n;r.fromCache=true;u.emit("response",r);if(typeof t==="function"){t(r)}}else{m=i;e.headers=n.revalidationHeaders(e);x(e)}});this.cache.on("error",e=>u.emit("error",new CacheableRequest.CacheError(e)));v(i).catch(e=>{if(i.automaticFailover&&!h){x(i)}u.emit("error",new CacheableRequest.CacheError(e))});return u}}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},954:function(e,i,t){var n=t(519),r=t(669),a=t(149).Buffer;function BufferList(e){if(!(this instanceof BufferList))return new BufferList(e);this._bufs=[];this.length=0;if(typeof e=="function"){this._callback=e;var i=function piper(e){if(this._callback){this._callback(e);this._callback=null}}.bind(this);this.on("pipe",function onPipe(e){e.on("error",i)});this.on("unpipe",function onUnpipe(e){e.removeListener("error",i)})}else{this.append(e)}n.call(this)}r.inherits(BufferList,n);BufferList.prototype._offset=function _offset(e){var i=0,t=0,n;if(e===0)return[0,0];for(;tthis.length)n=this.length;if(t>=this.length)return e||a.alloc(0);if(n<=0)return e||a.alloc(0);var copy=!!e,r=this._offset(t),o=n-t,s=o,c=copy&&i||0,p=r[1],l,u;if(t===0&&n==this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:a.concat(this._bufs,this.length)}for(u=0;ul){this._bufs[u].copy(e,c,p)}else{this._bufs[u].copy(e,c,p,p+s);break}c+=l;s-=l;if(p)p=0}return e};BufferList.prototype.shallowSlice=function shallowSlice(e,i){e=e||0;i=i||this.length;if(e<0)e+=this.length;if(i<0)i+=this.length;var t=this._offset(e),n=this._offset(i),r=this._bufs.slice(t[0],n[0]+1);if(n[1]==0)r.pop();else r[r.length-1]=r[r.length-1].slice(0,n[1]);if(t[1]!=0)r[0]=r[0].slice(t[1]);return new BufferList(r)};BufferList.prototype.toString=function toString(e,i,t){return this.slice(i,t).toString(e)};BufferList.prototype.consume=function consume(e){while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){var e=0,i=new BufferList;for(;e0){return n}return r.getInput(e)}function inputBoolean(e){const i=getInput(e);if(i=="true"||i=="1"){return true}else{return false}}function toolchain_args(){return{name:getInput("toolchain",{required:true}),target:getInput("target")||undefined,default:inputBoolean("default"),override:inputBoolean("override")}}i.toolchain_args=toolchain_args},965:function(e){e.exports=Pend;function Pend(){this.pending=0;this.max=Infinity;this.listeners=[];this.waiting=[];this.error=null}Pend.prototype.go=function(e){if(this.pending0&&e.pendingm.nodeStream(e)&&m.function(e.getBoundary);const z=e=>{const i=e.body;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!i&&!e.stream){return 0}if(m.string(i)){return j.byteLength(i)}if(B(i)){return C(i.getLength.bind(i))()}if(i instanceof p.ReadStream){return C(p.stat)(i.path).then(e=>e.size)}if(m.nodeStream(i)&&m.buffer(i._buffer)){return i._buffer.length}return null};function requestAsEventEmitter(e){e=e||{};const i=new n;const o=e.href||c.resolve(c.format(e),e.path);const s=[];const p=m.object(e.agent)?e.agent:null;let l=0;let f;let d;let h=0;const v=e=>{if(e.protocol!=="http:"&&e.protocol!=="https:"){i.emit("error",new got.UnsupportedProtocolError(e));return}let n=e.protocol==="https:"?a:r;if(p){const i=e.protocol==="https:"?"https":"http";e.agent=p[i]||e.agent}if(e.useElectronNet&&process.versions.electron){const e=t(883);n=e.net||e.remote.net}let m;const g=new u(n.request,e.cache);const b=g(e,t=>{clearInterval(m);i.emit("uploadProgress",{percent:1,transferred:h,total:d});const n=t.statusCode;t.url=f||o;t.requestUrl=o;const r=e.followRedirect&&"location"in t.headers;const a=r&&R.has(n);const p=r&&A.has(n);if(p||a&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(n===303){e.method="GET"}if(s.length>=10){i.emit("error",new got.MaxRedirectsError(n,s,e),null,t);return}const r=j.from(t.headers.location,"binary").toString();f=c.resolve(c.format(e),r);s.push(f);const a=Object.assign({},e,c.parse(f));i.emit("redirect",t,a);v(a);return}setImmediate(()=>{try{getResponse(t,e,i,s)}catch(e){i.emit("error",e)}})});b.on("error",t=>{if(t instanceof u.RequestError){i.emit("error",new got.RequestError(t,e))}else{i.emit("error",new got.CacheError(t,e))}});b.once("request",t=>{let n=false;t.once("abort",e=>{n=true});t.once("error",t=>{clearInterval(m);if(n){return}const r=e.retries(++l,t);if(r){setTimeout(v,r,e);return}i.emit("error",new got.RequestError(t,e))});i.once("request",e=>{i.emit("uploadProgress",{percent:0,transferred:0,total:d});const t=e.connection;if(t){const n=t.connecting===undefined?t._connecting:t.connecting;const r=()=>{const n=150;m=setInterval(()=>{if(t.destroyed){clearInterval(m);return}const n=h;const r=e._header?j.byteLength(e._header):0;h=t.bytesWritten-r;if(d&&h>d){h=d}if(h===n||h===d){return}i.emit("uploadProgress",{percent:d?h/d:0,transferred:h,total:d})},n)};if(n){t.once("connect",r)}else{r()}}});if(e.gotTimeout){clearInterval(m);x(t,e.gotTimeout)}setImmediate(()=>{i.emit("request",t)})})};setImmediate(()=>{Promise.resolve(z(e)).then(i=>{d=i;if(m.undefined(e.headers["content-length"])&&m.undefined(e.headers["transfer-encoding"])&&B(e.body)){e.headers["content-length"]=i}v(e)}).catch(e=>{i.emit("error",e)})});return i}function getResponse(e,i,t,n){const r=Number(e.headers["content-length"])||null;let a=0;const o=new s({transform(e,i,n){a+=e.length;const o=r?a/r:0;if(o<1){t.emit("downloadProgress",{percent:o,transferred:a,total:r})}n(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:a,total:r});e()}});w(e,o);o.redirectUrls=n;const c=i.decompress===true&&m.function(y)&&i.method!=="HEAD"?y(o):o;if(!i.decompress&&["gzip","deflate"].indexOf(e.headers["content-encoding"])!==-1){i.encoding=null}t.emit("response",c);t.emit("downloadProgress",{percent:0,transferred:0,total:r});e.pipe(o)}function asPromise(e){const i=i=>e.gotTimeout&&e.gotTimeout.request?k(i,e.gotTimeout.request,new got.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e)):i;const t=new n;const r=new S((i,n,r)=>{const a=requestAsEventEmitter(e);let o=false;r(()=>{o=true});a.on("request",i=>{if(o){i.abort()}r(()=>{i.abort()});if(m.nodeStream(e.body)){e.body.pipe(i);e.body=undefined;return}i.end(e.body)});a.on("response",t=>{const r=m.null(e.encoding)?h.buffer(t):h(t,e);r.catch(i=>n(new got.ReadError(i,e))).then(n=>{const r=t.statusCode;const a=e.followRedirect?299:399;t.body=n;if(e.json&&t.body){try{t.body=JSON.parse(t.body)}catch(i){if(r>=200&&r<300){throw new got.ParseError(i,r,e,n)}}}if(e.throwHttpErrors&&r!==304&&(r<200||r>a)){throw new got.HTTPError(r,t.statusMessage,t.headers,e)}i(t)}).catch(e=>{Object.defineProperty(e,"response",{value:t});n(e)})});a.once("error",n);a.on("redirect",t.emit.bind(t,"redirect"));a.on("uploadProgress",t.emit.bind(t,"uploadProgress"));a.on("downloadProgress",t.emit.bind(t,"downloadProgress"))});Object.defineProperty(r,"canceled",{get(){return r.isCanceled}});const a=i(r);a.cancel=r.cancel.bind(r);a.on=((e,i)=>{t.on(e,i);return a});return a}function asStream(e){e.stream=true;const i=new o;const t=new o;const n=f(i,t);let r;if(e.gotTimeout&&e.gotTimeout.request){r=setTimeout(()=>{n.emit("error",new got.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e))},e.gotTimeout.request)}if(e.json){throw new Error("Got can not be used as a stream when the `json` option is used")}if(e.body){n.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const a=requestAsEventEmitter(e);a.on("request",t=>{n.emit("request",t);if(m.nodeStream(e.body)){e.body.pipe(t);return}if(e.body){t.end(e.body);return}if(e.method==="POST"||e.method==="PUT"||e.method==="PATCH"){i.pipe(t);return}t.end()});a.on("response",i=>{clearTimeout(r);const a=i.statusCode;i.on("error",i=>{n.emit("error",new got.ReadError(i,e))});i.pipe(t);if(e.throwHttpErrors&&a!==304&&(a<200||a>299)){n.emit("error",new got.HTTPError(a,i.statusMessage,i.headers,e),null,i);return}n.emit("response",i)});a.on("error",n.emit.bind(n,"error"));a.on("redirect",n.emit.bind(n,"redirect"));a.on("uploadProgress",n.emit.bind(n,"uploadProgress"));a.on("downloadProgress",n.emit.bind(n,"downloadProgress"));return n}function normalizeArguments(e,i){if(!m.string(e)&&!m.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${m(e)}`)}else if(m.string(e)){e=e.replace(/^unix:/,"http://$&");try{decodeURI(e)}catch(e){throw new Error("Parameter `url` must contain valid UTF-8 character sequences")}e=v(e);if(e.auth){throw new Error("Basic authentication must be done with the `auth` option")}}else if(E.lenient(e)){e=g(e)}i=Object.assign({path:"",retries:2,cache:false,decompress:true,useElectronNet:false,throwHttpErrors:true},e,{protocol:e.protocol||"http:"},i);const t=b(i.headers);for(const e of Object.keys(t)){if(m.nullOrUndefined(t[e])){delete t[e]}}i.headers=Object.assign({"user-agent":`${O.name}/${O.version} (https://github.com/sindresorhus/got)`},t);if(i.decompress&&m.undefined(i.headers["accept-encoding"])){i.headers["accept-encoding"]="gzip, deflate"}const n=i.query;if(n){if(!m.string(n)){i.query=l.stringify(n)}i.path=`${i.path.split("?")[0]}?${i.query}`;delete i.query}if(i.json&&m.undefined(i.headers.accept)){i.headers.accept="application/json"}const r=i.body;if(m.nullOrUndefined(r)){i.method=(i.method||"GET").toUpperCase()}else{const e=i.headers;if(!m.nodeStream(r)&&!m.string(r)&&!m.buffer(r)&&!(i.form||i.json)){throw new TypeError("The `body` option must be a stream.Readable, string, Buffer or plain Object")}const t=m.plainObject(r)||m.array(r);if((i.form||i.json)&&!t){throw new TypeError("The `body` option must be a plain Object or Array when the `form` or `json` option is used")}if(B(r)){e["content-type"]=e["content-type"]||`multipart/form-data; boundary=${r.getBoundary()}`}else if(i.form&&t){e["content-type"]=e["content-type"]||"application/x-www-form-urlencoded";i.body=l.stringify(r)}else if(i.json&&t){e["content-type"]=e["content-type"]||"application/json";i.body=JSON.stringify(r)}if(m.undefined(e["content-length"])&&m.undefined(e["transfer-encoding"])&&!m.nodeStream(r)){const t=m.string(i.body)?j.byteLength(i.body):i.body.length;e["content-length"]=t}if(m.buffer(r)){i.body=d(r);i.body._buffer=r}i.method=(i.method||"POST").toUpperCase()}if(i.hostname==="unix"){const e=/(.+?):(.+)/.exec(i.path);if(e){i.socketPath=e[1];i.path=e[2];i.host=null}}if(!m.function(i.retries)){const e=i.retries;i.retries=((i,t)=>{if(i>e||!_(t)){return 0}const n=Math.random()*100;return(1<asStream(normalizeArguments(e,i)));const P=["get","post","put","patch","head","delete"];for(const e of P){got[e]=((i,t)=>got(i,Object.assign({},t,{method:e})));got.stream[e]=((i,t)=>got.stream(i,Object.assign({},t,{method:e})))}Object.assign(got,T);e.exports=got},986:function(e,i,t){"use strict";var n=this&&this.__awaiter||function(e,i,t,n){function adopt(e){return e instanceof t?e:new t(function(i){i(e)})}return new(t||(t=Promise))(function(t,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,i||[])).next())})};Object.defineProperty(i,"__esModule",{value:true});const r=t(686);function exec(e,i,t){return n(this,void 0,void 0,function*(){const n=r.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];i=n.slice(1).concat(i||[]);const o=new r.ToolRunner(a,i,t);return o.exec()})}i.exec=exec},997:function(e,i,t){"use strict";const n=t(375);function getStream(e,i){if(!e){return Promise.reject(new Error("Expected a stream"))}i=Object.assign({maxBuffer:Infinity},i);const t=i.maxBuffer;let r;let a;const o=new Promise((o,s)=>{const c=e=>{if(e){e.bufferedData=r.getBufferedValue()}s(e)};r=n(i);e.once("error",c);e.pipe(r);r.on("data",()=>{if(r.getBufferedLength()>t){s(new Error("maxBuffer exceeded"))}});r.once("error",c);r.on("end",o);a=(()=>{if(e.unpipe){e.unpipe(r)}})});o.then(a,a);return o.then(()=>r.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,i)=>getStream(e,Object.assign({},i,{encoding:"buffer"})));e.exports.array=((e,i)=>getStream(e,Object.assign({},i,{array:true})))},999:function(e){"use strict";var i=Object.getOwnPropertySymbols;var t=Object.prototype.hasOwnProperty;var n=Object.prototype.propertyIsEnumerable;function toObject(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function shouldUseNative(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var i={};for(var t=0;t<10;t++){i["_"+String.fromCharCode(t)]=t}var n=Object.getOwnPropertyNames(i).map(function(e){return i[e]});if(n.join("")!=="0123456789"){return false}var r={};"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e});if(Object.keys(Object.assign({},r)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=shouldUseNative()?Object.assign:function(e,r){var a;var o=toObject(e);var s;for(var c=1;c