isomorphic-git 1.33.2 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.umd.min.js CHANGED
@@ -1,13 +1,13 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(self,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=227)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(31);function i(t,e){if(void 0===e)throw new n.a(t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const e=new n(t.message);return e.code=t.code,e.data=t.data,e.caller=t.caller,e.stack=t.stack,e}get isIsomorphicGitError(){return!0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=i.code,this.data={message:t}}}i.code="InternalError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(70),i=r.n(n),o=r(29),a=r(23),s=r(100),c=r(138);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function l(t){return Object(c.a)((t=>{try{return t.readFile().catch(t=>t)}catch(t){return t}})(t))}const d=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function h(t,e){if(l(e))for(const r of d)t[`_${r}`]=e[r].bind(e);else for(const r of d)t[`_${r}`]=i()(e[r].bind(e));l(e)?e.rm?t._rm=e.rm.bind(e):e.rmdir.length>1?t._rm=e.rmdir.bind(e):t._rm=s.a.bind(null,t):e.rm?t._rm=i()(e.rm.bind(e)):e.rmdir.length>2?t._rm=i()(e.rmdir.bind(e)):t._rm=s.a.bind(null,t)}class p{constructor(t){if(void 0!==t._original_unwrapped_fs)return t;const e=Object.getOwnPropertyDescriptor(t,"promises");e&&e.enumerable?h(this,t.promises):h(this,t),this._original_unwrapped_fs=t}exists(t,e={}){var r=this;return f((function*(){try{return yield r._stat(t),!0}catch(t){if("ENOENT"===t.code||"ENOTDIR"===t.code||(t.code||"").includes("ENS"))return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',t),t}}))()}read(e,r={}){var n=this;return f((function*(){try{let i=yield n._readFile(e,r);if("true"===r.autocrlf)try{i=new TextDecoder("utf8",{fatal:!0}).decode(i),i=i.replace(/\r\n/g,"\n"),i=(new TextEncoder).encode(i)}catch(t){}return"string"!=typeof i&&(i=t.from(i)),i}catch(t){return null}}))()}write(t,e,r={}){var n=this;return f((function*(){try{return void(yield n._writeFile(t,e,r))}catch(i){yield n.mkdir(Object(a.a)(t)),yield n._writeFile(t,e,r)}}))()}mkdir(t,e=!1){var r=this;return f((function*(){try{return void(yield r._mkdir(t))}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if(e)throw n;if("ENOENT"===n.code){const e=Object(a.a)(t);if("."===e||"/"===e||e===t)throw n;yield r.mkdir(e),yield r.mkdir(t,!0)}}}))()}rm(t){var e=this;return f((function*(){try{yield e._unlink(t)}catch(t){if("ENOENT"!==t.code)throw t}}))()}rmdir(t,e){var r=this;return f((function*(){try{e&&e.recursive?yield r._rm(t,e):yield r._rmdir(t)}catch(t){if("ENOENT"!==t.code)throw t}}))()}readdir(t){var e=this;return f((function*(){try{const r=yield e._readdir(t);return r.sort(o.a),r}catch(t){return"ENOTDIR"===t.code?null:[]}}))()}readdirDeep(t){var e=this;return f((function*(){const r=yield e._readdir(t);return(yield Promise.all(r.map(function(){var r=f((function*(r){const n=t+"/"+r;return(yield e._stat(n)).isDirectory()?e.readdirDeep(n):n}));return function(t){return r.apply(this,arguments)}}()))).reduce((t,e)=>t.concat(e),[])}))()}lstat(t){var e=this;return f((function*(){try{return yield e._lstat(t)}catch(t){if("ENOENT"===t.code||(t.code||"").includes("ENS"))return null;throw t}}))()}readlink(e,r={encoding:"buffer"}){var n=this;return f((function*(){try{const i=yield n._readlink(e,r);return t.isBuffer(i)?i:t.from(i)}catch(t){if("ENOENT"===t.code||(t.code||"").includes("ENS"))return null;throw t}}))()}writelink(t,e){var r=this;return f((function*(){return r._symlink(e.toString("utf8"),t)}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(26),i=r.n(n),o=r(35),a=r(79),s=r(8);class c{constructor(t){if(this.refs=new Map,this.parsedConfig=[],t){let e=null;this.parsedConfig=t.trim().split("\n").map(t=>{if(/^\s*#/.test(t))return{line:t,comment:!0};const r=t.indexOf(" ");if(t.startsWith("^")){const r=t.slice(1);return this.refs.set(e+"^{}",r),{line:t,ref:e,peeled:r}}{const n=t.slice(0,r);return e=t.slice(r+1),this.refs.set(e,n),{line:t,ref:e,oid:n}}})}return this}static from(t){return new c(t)}delete(t){this.parsedConfig=this.parsedConfig.filter(e=>e.ref!==t),this.refs.delete(t)}toString(){return this.parsedConfig.map(({line:t})=>t).join("\n")+"\n"}}var u=r(107);function f(t,e){const r=t.replace(/\^\{\}$/,""),n=e.replace(/\^\{\}$/,""),i=-(r<n)||+(r>n);return 0===i?t.endsWith("^{}")?1:-1:i}var l=r(12),d=r(11);function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return w}));const y=t=>[`${t}`,`refs/${t}`,`refs/tags/${t}`,`refs/heads/${t}`,`refs/remotes/${t}`,`refs/remotes/${t}/HEAD`],g=["config","description","index","shallow","commondir"];let v;function m(t,e){return b.apply(this,arguments)}function b(){return(b=p((function*(t,e){return void 0===v&&(v=new i.a),v.acquire(t,e)}))).apply(this,arguments)}class w{static updateRemoteRefs({fs:t,gitdir:e,remote:r,refs:n,symrefs:i,tags:s,refspecs:c,prune:f=!1,pruneTags:h=!1}){return p((function*(){for(const t of n.values())if(!t.match(/[0-9a-f]{40}/))throw new o.a(t);const y=yield d.a.get({fs:t,gitdir:e});if(!c){if(0===(c=yield y.getall(`remote.${r}.fetch`)).length)throw new a.a(r);c.unshift(`+HEAD:refs/remotes/${r}/HEAD`)}const g=u.a.from(c),v=new Map;if(h){const r=yield w.listRefs({fs:t,gitdir:e,filepath:"refs/tags"});yield w.deleteRefs({fs:t,gitdir:e,refs:r.map(t=>`refs/tags/${t}`)})}if(s)for(const r of n.keys())if(r.startsWith("refs/tags")&&!r.endsWith("^{}")&&!(yield w.exists({fs:t,gitdir:e,ref:r}))){const t=n.get(r);v.set(r,t)}const b=g.translate([...n.keys()]);for(const[t,e]of b){const r=n.get(t);v.set(e,r)}const _=g.translate([...i.keys()]);for(const[t,e]of _){const r=i.get(t),n=g.translateOne(r);n&&v.set(e,`ref: ${n}`)}const j=[];if(f){for(const r of g.localNamespaces()){const n=(yield w.listRefs({fs:t,gitdir:e,filepath:r})).map(t=>`${r}/${t}`);for(const t of n)v.has(t)||j.push(t)}j.length>0&&(yield w.deleteRefs({fs:t,gitdir:e,refs:j}))}for(const[r,n]of v)yield m(r,p((function*(){return t.write(Object(l.join)(e,r),`${n.trim()}\n`,"utf8")})));return{pruned:j}}))()}static writeRef({fs:t,gitdir:e,ref:r,value:n}){return p((function*(){if(!n.match(/[0-9a-f]{40}/))throw new o.a(n);yield m(r,p((function*(){return t.write(Object(l.join)(e,r),`${n.trim()}\n`,"utf8")})))}))()}static writeSymbolicRef({fs:t,gitdir:e,ref:r,value:n}){return p((function*(){yield m(r,p((function*(){return t.write(Object(l.join)(e,r),"ref: "+`${n.trim()}\n`,"utf8")})))}))()}static deleteRef({fs:t,gitdir:e,ref:r}){return p((function*(){return w.deleteRefs({fs:t,gitdir:e,refs:[r]})}))()}static deleteRefs({fs:t,gitdir:e,refs:r}){return p((function*(){yield Promise.all(r.map(r=>t.rm(Object(l.join)(e,r))));let n=yield m("packed-refs",p((function*(){return t.read(`${e}/packed-refs`,{encoding:"utf8"})})));const i=c.from(n),o=i.refs.size;for(const t of r)i.refs.has(t)&&i.delete(t);i.refs.size<o&&(n=i.toString(),yield m("packed-refs",p((function*(){return t.write(`${e}/packed-refs`,n,{encoding:"utf8"})}))))}))()}static resolve({fs:t,gitdir:e,ref:r,depth:n}){return p((function*(){if(void 0!==n&&-1===--n)return r;if(r.startsWith("ref: "))return r=r.slice("ref: ".length),w.resolve({fs:t,gitdir:e,ref:r,depth:n});if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const i=yield w.packedRefs({fs:t,gitdir:e}),o=y(r).filter(t=>!g.includes(t));for(const r of o){const o=yield m(r,p((function*(){return(yield t.read(`${e}/${r}`,{encoding:"utf8"}))||i.get(r)})));if(o)return w.resolve({fs:t,gitdir:e,ref:o.trim(),depth:n})}throw new s.a(r)}))()}static exists({fs:t,gitdir:e,ref:r}){return p((function*(){try{return yield w.expand({fs:t,gitdir:e,ref:r}),!0}catch(t){return!1}}))()}static expand({fs:t,gitdir:e,ref:r}){return p((function*(){if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const n=yield w.packedRefs({fs:t,gitdir:e}),i=y(r);for(const r of i){if(yield m(r,p((function*(){return t.exists(`${e}/${r}`)}))))return r;if(n.has(r))return r}throw new s.a(r)}))()}static expandAgainstMap({ref:t,map:e}){return p((function*(){const r=y(t);for(const t of r)if(yield e.has(t))return t;throw new s.a(t)}))()}static resolveAgainstMap({ref:t,fullref:e=t,depth:r,map:n}){if(void 0!==r&&-1===--r)return{fullref:e,oid:t};if(t.startsWith("ref: "))return t=t.slice("ref: ".length),w.resolveAgainstMap({ref:t,fullref:e,depth:r,map:n});if(40===t.length&&/[0-9a-f]{40}/.test(t))return{fullref:e,oid:t};const i=y(t);for(const t of i){const e=n.get(t);if(e)return w.resolveAgainstMap({ref:e.trim(),fullref:t,depth:r,map:n})}throw new s.a(t)}static packedRefs({fs:t,gitdir:e}){return p((function*(){const r=yield m("packed-refs",p((function*(){return t.read(`${e}/packed-refs`,{encoding:"utf8"})})));return c.from(r).refs}))()}static listRefs({fs:t,gitdir:e,filepath:r}){return p((function*(){const n=w.packedRefs({fs:t,gitdir:e});let i=null;try{i=yield t.readdirDeep(`${e}/${r}`),i=i.map(t=>t.replace(`${e}/${r}/`,""))}catch(t){i=[]}for(let t of(yield n).keys())t.startsWith(r)&&(t=t.replace(r+"/",""),i.includes(t)||i.push(t));return i.sort(f),i}))()}static listBranches({fs:t,gitdir:e,remote:r}){return p((function*(){return r?w.listRefs({fs:t,gitdir:e,filepath:`refs/remotes/${r}`}):w.listRefs({fs:t,gitdir:e,filepath:"refs/heads"})}))()}static listTags({fs:t,gitdir:e}){return p((function*(){return(yield w.listRefs({fs:t,gitdir:e,filepath:"refs/tags"})).filter(t=>!t.endsWith("^{}"))}))()}}},,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(2),i=r(8),o=r(22),a=r(85),s=r(108),c=r(65),u=r(15);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,gitdir:f,oid:l,format:h="content"}){const p=t=>d({fs:e,cache:r,gitdir:f,oid:t});let y;if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===l&&(y={format:"wrapped",object:t.from("tree 0\0")}),y||(y=yield Object(a.a)({fs:e,gitdir:f,oid:l})),!y){if(y=yield Object(s.a)({fs:e,cache:r,gitdir:f,oid:l,getExternalRefDelta:p}),!y)throw new i.a(l);return y}if("deflated"===h)return y;if("deflated"===y.format&&(y.object=t.from(yield Object(c.a)(y.object)),y.format="wrapped"),"wrapped"===h)return y;const g=yield Object(u.a)(y.object);if(g!==l)throw new n.a(`SHA check failed! Expected ${l}, computed ${g}`);const{object:v,type:m}=o.a.unwrap(y.object);if(y.type=m,y.object=v,y.format="content","content"===h)return y;throw new n.a(`invalid requested format "${h}"`)}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not find ${t}.`),this.code=this.name=i.code,this.data={what:t}}}i.code="NotFoundError"},function(t,e,r){"use strict";(function(t){
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.git=e():t.git=e()}(self,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=227)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(31);function i(t,e){if(void 0===e)throw new n.a(t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const e=new n(t.message);return e.code=t.code,e.data=t.data,e.caller=t.caller,e.stack=t.stack,e}get isIsomorphicGitError(){return!0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=i.code,this.data={message:t}}}i.code="InternalError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(70),i=r.n(n),o=r(29),a=r(23),s=r(100),c=r(138);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function l(t){return Object(c.a)((t=>{try{return t.readFile().catch(t=>t)}catch(t){return t}})(t))}const d=["readFile","writeFile","mkdir","rmdir","unlink","stat","lstat","readdir","readlink","symlink"];function h(t,e){if(l(e))for(const r of d)t[`_${r}`]=e[r].bind(e);else for(const r of d)t[`_${r}`]=i()(e[r].bind(e));l(e)?e.rm?t._rm=e.rm.bind(e):e.rmdir.length>1?t._rm=e.rmdir.bind(e):t._rm=s.a.bind(null,t):e.rm?t._rm=i()(e.rm.bind(e)):e.rmdir.length>2?t._rm=i()(e.rmdir.bind(e)):t._rm=s.a.bind(null,t)}class p{constructor(t){if(void 0!==t._original_unwrapped_fs)return t;const e=Object.getOwnPropertyDescriptor(t,"promises");e&&e.enumerable?h(this,t.promises):h(this,t),this._original_unwrapped_fs=t}exists(t,e={}){var r=this;return f((function*(){try{return yield r._stat(t),!0}catch(t){if("ENOENT"===t.code||"ENOTDIR"===t.code||(t.code||"").includes("ENS"))return!1;throw console.log('Unhandled error in "FileSystem.exists()" function',t),t}}))()}read(e,r={}){var n=this;return f((function*(){try{let i=yield n._readFile(e,r);if("true"===r.autocrlf)try{i=new TextDecoder("utf8",{fatal:!0}).decode(i),i=i.replace(/\r\n/g,"\n"),i=(new TextEncoder).encode(i)}catch(t){}return"string"!=typeof i&&(i=t.from(i)),i}catch(t){return null}}))()}write(t,e,r={}){var n=this;return f((function*(){try{return void(yield n._writeFile(t,e,r))}catch(i){yield n.mkdir(Object(a.a)(t)),yield n._writeFile(t,e,r)}}))()}mkdir(t,e=!1){var r=this;return f((function*(){try{return void(yield r._mkdir(t))}catch(n){if(null===n)return;if("EEXIST"===n.code)return;if(e)throw n;if("ENOENT"===n.code){const e=Object(a.a)(t);if("."===e||"/"===e||e===t)throw n;yield r.mkdir(e),yield r.mkdir(t,!0)}}}))()}rm(t){var e=this;return f((function*(){try{yield e._unlink(t)}catch(t){if("ENOENT"!==t.code)throw t}}))()}rmdir(t,e){var r=this;return f((function*(){try{e&&e.recursive?yield r._rm(t,e):yield r._rmdir(t)}catch(t){if("ENOENT"!==t.code)throw t}}))()}readdir(t){var e=this;return f((function*(){try{const r=yield e._readdir(t);return r.sort(o.a),r}catch(t){return"ENOTDIR"===t.code?null:[]}}))()}readdirDeep(t){var e=this;return f((function*(){const r=yield e._readdir(t);return(yield Promise.all(r.map(function(){var r=f((function*(r){const n=t+"/"+r;return(yield e._stat(n)).isDirectory()?e.readdirDeep(n):n}));return function(t){return r.apply(this,arguments)}}()))).reduce((t,e)=>t.concat(e),[])}))()}lstat(t){var e=this;return f((function*(){try{return yield e._lstat(t)}catch(t){if("ENOENT"===t.code||(t.code||"").includes("ENS"))return null;throw t}}))()}readlink(e,r={encoding:"buffer"}){var n=this;return f((function*(){try{const i=yield n._readlink(e,r);return t.isBuffer(i)?i:t.from(i)}catch(t){if("ENOENT"===t.code||(t.code||"").includes("ENS"))return null;throw t}}))()}writelink(t,e){var r=this;return f((function*(){return r._symlink(e.toString("utf8"),t)}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(26),i=r.n(n),o=r(35),a=r(79),s=r(8);class c{constructor(t){if(this.refs=new Map,this.parsedConfig=[],t){let e=null;this.parsedConfig=t.trim().split("\n").map(t=>{if(/^\s*#/.test(t))return{line:t,comment:!0};const r=t.indexOf(" ");if(t.startsWith("^")){const r=t.slice(1);return this.refs.set(e+"^{}",r),{line:t,ref:e,peeled:r}}{const n=t.slice(0,r);return e=t.slice(r+1),this.refs.set(e,n),{line:t,ref:e,oid:n}}})}return this}static from(t){return new c(t)}delete(t){this.parsedConfig=this.parsedConfig.filter(e=>e.ref!==t),this.refs.delete(t)}toString(){return this.parsedConfig.map(({line:t})=>t).join("\n")+"\n"}}var u=r(107);function f(t,e){const r=t.replace(/\^\{\}$/,""),n=e.replace(/\^\{\}$/,""),i=-(r<n)||+(r>n);return 0===i?t.endsWith("^{}")?1:-1:i}var l=r(12),d=r(11);function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return w}));const y=t=>[`${t}`,`refs/${t}`,`refs/tags/${t}`,`refs/heads/${t}`,`refs/remotes/${t}`,`refs/remotes/${t}/HEAD`],g=["config","description","index","shallow","commondir"];let m;function v(t,e){return b.apply(this,arguments)}function b(){return(b=p((function*(t,e){return void 0===m&&(m=new i.a),m.acquire(t,e)}))).apply(this,arguments)}class w{static updateRemoteRefs({fs:t,gitdir:e,remote:r,refs:n,symrefs:i,tags:s,refspecs:c,prune:f=!1,pruneTags:h=!1}){return p((function*(){for(const t of n.values())if(!t.match(/[0-9a-f]{40}/))throw new o.a(t);const y=yield d.a.get({fs:t,gitdir:e});if(!c){if(0===(c=yield y.getall(`remote.${r}.fetch`)).length)throw new a.a(r);c.unshift(`+HEAD:refs/remotes/${r}/HEAD`)}const g=u.a.from(c),m=new Map;if(h){const r=yield w.listRefs({fs:t,gitdir:e,filepath:"refs/tags"});yield w.deleteRefs({fs:t,gitdir:e,refs:r.map(t=>`refs/tags/${t}`)})}if(s)for(const r of n.keys())if(r.startsWith("refs/tags")&&!r.endsWith("^{}")&&!(yield w.exists({fs:t,gitdir:e,ref:r}))){const t=n.get(r);m.set(r,t)}const b=g.translate([...n.keys()]);for(const[t,e]of b){const r=n.get(t);m.set(e,r)}const _=g.translate([...i.keys()]);for(const[t,e]of _){const r=i.get(t),n=g.translateOne(r);n&&m.set(e,`ref: ${n}`)}const j=[];if(f){for(const r of g.localNamespaces()){const n=(yield w.listRefs({fs:t,gitdir:e,filepath:r})).map(t=>`${r}/${t}`);for(const t of n)m.has(t)||j.push(t)}j.length>0&&(yield w.deleteRefs({fs:t,gitdir:e,refs:j}))}for(const[r,n]of m)yield v(r,p((function*(){return t.write(Object(l.join)(e,r),`${n.trim()}\n`,"utf8")})));return{pruned:j}}))()}static writeRef({fs:t,gitdir:e,ref:r,value:n}){return p((function*(){if(!n.match(/[0-9a-f]{40}/))throw new o.a(n);yield v(r,p((function*(){return t.write(Object(l.join)(e,r),`${n.trim()}\n`,"utf8")})))}))()}static writeSymbolicRef({fs:t,gitdir:e,ref:r,value:n}){return p((function*(){yield v(r,p((function*(){return t.write(Object(l.join)(e,r),"ref: "+`${n.trim()}\n`,"utf8")})))}))()}static deleteRef({fs:t,gitdir:e,ref:r}){return p((function*(){return w.deleteRefs({fs:t,gitdir:e,refs:[r]})}))()}static deleteRefs({fs:t,gitdir:e,refs:r}){return p((function*(){yield Promise.all(r.map(r=>t.rm(Object(l.join)(e,r))));let n=yield v("packed-refs",p((function*(){return t.read(`${e}/packed-refs`,{encoding:"utf8"})})));const i=c.from(n),o=i.refs.size;for(const t of r)i.refs.has(t)&&i.delete(t);i.refs.size<o&&(n=i.toString(),yield v("packed-refs",p((function*(){return t.write(`${e}/packed-refs`,n,{encoding:"utf8"})}))))}))()}static resolve({fs:t,gitdir:e,ref:r,depth:n}){return p((function*(){if(void 0!==n&&-1===--n)return r;if(r.startsWith("ref: "))return r=r.slice("ref: ".length),w.resolve({fs:t,gitdir:e,ref:r,depth:n});if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const i=yield w.packedRefs({fs:t,gitdir:e}),o=y(r).filter(t=>!g.includes(t));for(const r of o){const o=yield v(r,p((function*(){return(yield t.read(`${e}/${r}`,{encoding:"utf8"}))||i.get(r)})));if(o)return w.resolve({fs:t,gitdir:e,ref:o.trim(),depth:n})}throw new s.a(r)}))()}static exists({fs:t,gitdir:e,ref:r}){return p((function*(){try{return yield w.expand({fs:t,gitdir:e,ref:r}),!0}catch(t){return!1}}))()}static expand({fs:t,gitdir:e,ref:r}){return p((function*(){if(40===r.length&&/[0-9a-f]{40}/.test(r))return r;const n=yield w.packedRefs({fs:t,gitdir:e}),i=y(r);for(const r of i){if(yield v(r,p((function*(){return t.exists(`${e}/${r}`)}))))return r;if(n.has(r))return r}throw new s.a(r)}))()}static expandAgainstMap({ref:t,map:e}){return p((function*(){const r=y(t);for(const t of r)if(yield e.has(t))return t;throw new s.a(t)}))()}static resolveAgainstMap({ref:t,fullref:e=t,depth:r,map:n}){if(void 0!==r&&-1===--r)return{fullref:e,oid:t};if(t.startsWith("ref: "))return t=t.slice("ref: ".length),w.resolveAgainstMap({ref:t,fullref:e,depth:r,map:n});if(40===t.length&&/[0-9a-f]{40}/.test(t))return{fullref:e,oid:t};const i=y(t);for(const t of i){const e=n.get(t);if(e)return w.resolveAgainstMap({ref:e.trim(),fullref:t,depth:r,map:n})}throw new s.a(t)}static packedRefs({fs:t,gitdir:e}){return p((function*(){const r=yield v("packed-refs",p((function*(){return t.read(`${e}/packed-refs`,{encoding:"utf8"})})));return c.from(r).refs}))()}static listRefs({fs:t,gitdir:e,filepath:r}){return p((function*(){const n=w.packedRefs({fs:t,gitdir:e});let i=null;try{i=yield t.readdirDeep(`${e}/${r}`),i=i.map(t=>t.replace(`${e}/${r}/`,""))}catch(t){i=[]}for(let t of(yield n).keys())t.startsWith(r)&&(t=t.replace(r+"/",""),i.includes(t)||i.push(t));return i.sort(f),i}))()}static listBranches({fs:t,gitdir:e,remote:r}){return p((function*(){return r?w.listRefs({fs:t,gitdir:e,filepath:`refs/remotes/${r}`}):w.listRefs({fs:t,gitdir:e,filepath:"refs/heads"})}))()}static listTags({fs:t,gitdir:e}){return p((function*(){return(yield w.listRefs({fs:t,gitdir:e,filepath:"refs/tags"})).filter(t=>!t.endsWith("^{}"))}))()}}},,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(2),i=r(8),o=r(22),a=r(85),s=r(108),c=r(65),u=r(15);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,gitdir:f,oid:l,format:h="content"}){const p=t=>d({fs:e,cache:r,gitdir:f,oid:t});let y;if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===l&&(y={format:"wrapped",object:t.from("tree 0\0")}),y||(y=yield Object(a.a)({fs:e,gitdir:f,oid:l})),!y){if(y=yield Object(s.a)({fs:e,cache:r,gitdir:f,oid:l,getExternalRefDelta:p}),!y)throw new i.a(l);return y}if("deflated"===h)return y;if("deflated"===y.format&&(y.object=t.from(yield Object(c.a)(y.object)),y.format="wrapped"),"wrapped"===h)return y;const g=yield Object(u.a)(y.object);if(g!==l)throw new n.a(`SHA check failed! Expected ${l}, computed ${g}`);const{object:m,type:v}=o.a.unwrap(y.object);if(y.type=v,y.object=m,y.format="content","content"===h)return y;throw new n.a(`invalid requested format "${h}"`)}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not find ${t}.`),this.code=this.name=i.code,this.data={what:t}}}i.code="NotFoundError"},function(t,e,r){"use strict";(function(t){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var n=r(142),i=r(143),o=r(144);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=s(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(c.isBuffer(e)){var r=0|h(e.length);return 0===(t=s(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(f(e),t=s(t,e<0?0:0|h(e)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e){var r=e.length<0?0:0|h(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return N(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var l=!0,d=0;d<c;d++)if(u(t,o+d)!==u(e,d)){l=!1;break}if(l)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return H(N(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function j(t,e,r,n){return _(t,e,r,n)}function O(t,e,r,n){return H(F(e),t,r,n)}function x(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function k(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,c,u=t[i],f=null,l=u>239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(f=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(f=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return u(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},c.allocUnsafe=function(t){return l(null,t)},c.allocUnsafeSlow=function(t){return l(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=c.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):y.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,r,n,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),l=0;l<s;++l)if(u[l]!==f[l]){o=u[l],a=f[l];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return j(this,t,e,r);case"base64":return O(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function A(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=z(t[o]);return i}function R(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function $(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function T(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,o){return o||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUInt8=function(t,e){return e||$(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||$(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||$(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||$(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||$(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||$(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||$(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||$(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||$(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):T(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):T(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=c.isBuffer(t)?t:N(new c(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(71))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(64),i=r(53);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class a{static flush(){return t.from("0000","utf8")}static delim(){return t.from("0001","utf8")}static encode(e){"string"==typeof e&&(e=t.from(e));const r=e.length+4,n=Object(i.a)(4,r);return t.concat([t.from(n,"utf8"),e])}static streamReader(t){const e=new n.a(t);return(function(){var r,n=(r=function*(){try{let t=yield e.read(4);if(null==t)return!0;if(t=parseInt(t.toString("utf8"),16),0===t)return null;if(1===t)return null;const r=yield e.read(t-4);return null==r||r}catch(e){return t.error=e,!0}},function(){var t=this,e=arguments;return new Promise((function(n,i){var a=r.apply(t,e);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))});return function(){return n.apply(this,arguments)}}())}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(106);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}class a{static get({fs:t,gitdir:e}){return o((function*(){const r=yield t.read(`${e}/config`,{encoding:"utf8"});return n.a.from(r)}))()}static save({fs:t,gitdir:e,config:r}){return o((function*(){yield t.write(`${e}/config`,r.toString(),{encoding:"utf8"})}))()}}},function(t,e,r){"use strict";(function(e){function r(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var r,n="",i=0,o=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,s):n=t.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===t&&(t=e.cwd()),s=t),r(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];r(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return"";if((t=i.resolve(t))===(e=i.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,s=1;s<e.length&&47===e.charCodeAt(s);++s);for(var c=e.length-s,u=a<c?a:c,f=-1,l=0;l<=u;++l){if(l===u){if(c>u){if(47===e.charCodeAt(s+l))return e.slice(s+l+1);if(0===l)return e.slice(s+l)}else a>u&&(47===t.charCodeAt(n+l)?f=l:0===l&&(f=0));break}var d=t.charCodeAt(n+l);if(d!==e.charCodeAt(s+l))break;47===d&&(f=l)}var h="";for(l=n+f+1;l<=o;++l)l!==o&&47!==t.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+e.slice(s+f):(s+=f,47===e.charCodeAt(s)&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');r(t);var n,i=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var u=t.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===e.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=t.length),t.slice(i,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(i,o)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=s+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){r(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),o=47===i;o?(e.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,f=t.length-1,l=0;f>=n;--f)if(47!==(i=t.charCodeAt(f)))-1===c&&(u=!1,c=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!u){s=f+1;break}return-1===a||-1===c||0===l||1===l&&a===c-1&&a===s+1?-1!==c&&(e.base=e.name=0===s&&o?t.slice(1,c):t.slice(s,c)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,c)):(e.name=t.slice(s,a),e.base=t.slice(s,c)),e.ext=t.slice(a,c)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this,r(56))},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));var n=r(26),i=r.n(n),o=r(83),a=r(104),s=r(54);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}let f=null;const l=Symbol("IndexCache");function d(){return(d=u((function*(t,e,r){const[n,i]=yield Promise.all([t.lstat(e),t.read(e)]),o=yield a.a.from(i);r.map.set(e,o),r.stats.set(e,n)}))).apply(this,arguments)}function h(){return(h=u((function*(t,e,r){const n=r.stats.get(e);if(void 0===n)return!0;if(null===n)return!1;const i=yield t.lstat(e);return null!==i&&Object(s.a)(n,i)}))).apply(this,arguments)}class p{static acquire({fs:t,gitdir:e,cache:r,allowUnmerged:n=!0},a){return u((function*(){r[l]||(r[l]={map:new Map,stats:new Map});const s=`${e}/index`;let c;null===f&&(f=new i.a({maxPending:1/0}));let p=[];return yield f.acquire(s,u((function*(){const e=r[l];(yield function(t,e,r){return h.apply(this,arguments)}(t,s,e))&&(yield function(t,e,r){return d.apply(this,arguments)}(t,s,e));const i=e.map.get(s);if(p=i.unmergedPaths,p.length&&!n)throw new o.a(p);if(c=yield a(i),i._dirty){const r=yield i.toObject();yield t.write(s,r),e.stats.set(s,yield t.lstat(s)),i._dirty=!1}}))),c}))()}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(2),i=r(43),o=r(51),a=r(133);function s(t){switch(t){case"040000":return"tree";case"100644":case"100755":case"120000":return"blob";case"160000":return"commit"}throw new n.a(`Unexpected GitTree entry mode: ${t}`)}function c(t){return!t.oid&&t.sha&&(t.oid=t.sha),t.mode=function(t){if("number"==typeof t&&(t=t.toString(8)),t.match(/^0?4.*/))return"040000";if(t.match(/^1006.*/))return"100644";if(t.match(/^1007.*/))return"100755";if(t.match(/^120.*/))return"120000";if(t.match(/^160.*/))return"160000";throw new n.a(`Could not understand file mode: ${t}`)}(t.mode),t.type||(t.type=s(t.mode)),t}class u{constructor(e){if(t.isBuffer(e))this._entries=function(t){const e=[];let r=0;for(;r<t.length;){const o=t.indexOf(32,r);if(-1===o)throw new n.a(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=t.indexOf(0,r);if(-1===a)throw new n.a(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let c=t.slice(r,o).toString("utf8");"40000"===c&&(c="040000");const u=s(c),f=t.slice(o+1,a).toString("utf8");if(f.includes("\\")||f.includes("/"))throw new i.a(f);const l=t.slice(a+1,a+21).toString("hex");r=a+21,e.push({mode:c,path:f,oid:l,type:u})}return e}(e);else{if(!Array.isArray(e))throw new n.a("invalid type passed to GitTree constructor");this._entries=e.map(c)}this._entries.sort(o.a)}static from(t){return new u(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join("\n")}toObject(){const e=[...this._entries];return e.sort(a.a),t.concat(e.map(e=>{const r=t.from(e.mode.replace(/^0/,"")),n=t.from(" "),i=t.from(e.path,"utf8"),o=t.from([0]),a=t.from(e.oid,"hex");return t.concat([r,n,i,o,a])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(84),i=r.n(n);function o(t){let e="";for(const r of new Uint8Array(t))r<16&&(e+="0"),e+=r.toString(16);return e}function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return u}));let c=null;function u(t){return f.apply(this,arguments)}function f(){return(f=s((function*(t){return null===c&&(c=yield p()),c?d(t):l(t)}))).apply(this,arguments)}function l(t){return(new i.a).update(t).digest("hex")}function d(t){return h.apply(this,arguments)}function h(){return(h=s((function*(t){return o(yield crypto.subtle.digest("SHA-1",t))}))).apply(this,arguments)}function p(){return y.apply(this,arguments)}function y(){return(y=s((function*(){try{return"da39a3ee5e6b4b0d3255bfef95601890afd80709"===(yield d(new Uint8Array([])))}catch(t){}return!1}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const e=this.buffer.slice(this._start,this._start+t);return this._start+=t,e}toString(t,e){const r=this.buffer.toString(t,this._start,this._start+e);return this._start+=e,r}write(t,e,r){const n=this.buffer.write(t,this._start,e,r);return this._start+=e,n}copy(t,e,r){const n=t.copy(this.buffer,this._start,e,r);return this._start+=n,n}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const e=this.buffer.writeUInt8(t,this._start);return this._start+=1,e}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const e=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,e}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const e=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,e}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(2),i=r(50),o=r(69),a=r(21),s=r(137),c=r(39);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class f{constructor(e){if("string"==typeof e)this._commit=e;else if(t.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitCommit constructor");this._commit=f.render(e)}}static fromPayloadSignature({payload:t,signature:e}){const r=f.justHeaders(t),n=f.justMessage(t),i=Object(a.a)(r+"\ngpgsig"+Object(o.a)(e)+"\n"+n);return new f(i)}static from(t){return new f(t)}toObject(){return t.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return f.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Object(a.a)(t.slice(t.indexOf("\n\n")+2))}static justHeaders(t){return t.slice(0,t.indexOf("\n\n"))}parseHeaders(){const t=f.justHeaders(this._commit).split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={parent:[]};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.author&&(r.author=Object(c.a)(r.author)),r.committer&&(r.committer=Object(c.a)(r.committer)),r}static renderHeaders(t){let e="";if(t.tree?e+=`tree ${t.tree}\n`:e+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",t.parent){if(void 0===t.parent.length)throw new n.a("commit 'parent' property should be an array");for(const r of t.parent)e+=`parent ${r}\n`}const r=t.author;e+=`author ${Object(i.a)(r)}\n`;const a=t.committer||t.author;return e+=`committer ${Object(i.a)(a)}\n`,t.gpgsig&&(e+="gpgsig"+Object(o.a)(t.gpgsig)),e}static render(t){return f.renderHeaders(t)+"\n"+Object(a.a)(t.message)}render(){return this._commit}withoutSignature(){const t=Object(a.a)(this._commit);if(-1===t.indexOf("\ngpgsig"))return t;const e=t.slice(0,t.indexOf("\ngpgsig")),r=t.slice(t.indexOf("-----END PGP SIGNATURE-----\n")+"-----END PGP SIGNATURE-----\n".length);return Object(a.a)(e+"\n"+r)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(s.a)(t)}static sign(t,e,r){return(n=function*(){const n=t.withoutSignature(),i=f.justMessage(t._commit);let{signature:s}=yield e({payload:n,secretKey:r});s=Object(a.a)(s);const c=f.justHeaders(t._commit)+"\ngpgsig"+Object(o.a)(s)+"\n"+i;return f.from(c)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){u(o,r,i,a,s,"next",t)}function s(t){u(o,r,i,a,s,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(22),i=r(140),o=r(87),a=r(15);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t){return f.apply(this,arguments)}function f(){return(f=c((function*({fs:e,gitdir:r,type:s,object:c,format:u="content",oid:f,dryRun:l=!1}){return"deflated"!==u&&("wrapped"!==u&&(c=n.a.wrap({type:s,object:c})),f=yield Object(a.a)(c),c=t.from(yield Object(o.a)(c))),l||(yield Object(i.a)({fs:e,gitdir:r,object:c,format:"deflated",oid:f})),f}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r,n){super(`Object ${t} ${n?`at ${n}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=i.code,this.data={oid:t,actual:e,expected:r,filepath:n}}}i.code="ObjectTypeError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(2),i=r(50),o=r(21),a=r(39);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class c{constructor(e){if("string"==typeof e)this._tag=e;else if(t.isBuffer(e))this._tag=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitAnnotatedTag constructor");this._tag=c.render(e)}}static from(t){return new c(t)}static render(t){return`object ${t.object}\ntype ${t.type}\ntag ${t.tag}\ntagger ${Object(i.a)(t.tagger)}\n\n${t.message}\n${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const t=this.withoutSignature();return t.slice(t.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.tagger&&(r.tagger=Object(a.a)(r.tagger)),r.committer&&(r.committer=Object(a.a)(r.committer)),r}withoutSignature(){const t=Object(o.a)(this._tag);return-1===t.indexOf("\n-----BEGIN PGP SIGNATURE-----")?t:t.slice(0,t.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1===this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(o.a)(t)}payload(){return this.withoutSignature()+"\n"}toObject(){return t.from(this._tag,"utf8")}static sign(t,e,r){return(n=function*(){const n=t.payload();let{signature:i}=yield e({payload:n,secretKey:r});i=Object(o.a)(i);const a=n+i;return c.from(a)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){s(o,r,i,a,c,"next",t)}function c(t){s(o,r,i,a,c,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return t=(t=(t=t.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i}));var n=r(2);class i{static wrap({type:t,object:e}){const r=`${t} ${e.length}\0`,n=r.length,i=n+e.length,o=new Uint8Array(i);for(let t=0;t<n;t++)o[t]=r.charCodeAt(t);return o.set(e,n),o}static unwrap(e){const r=e.indexOf(32),i=e.indexOf(0),o=e.slice(0,r).toString("utf8"),a=e.slice(r+1,i).toString("utf8"),s=e.length-(i+1);if(parseInt(a)!==s)throw new n.a(`Length mismatch: expected ${a} bytes but got ${s} instead.`);return{type:o,object:t.from(e.slice(i+1))}}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(63);function i(t,e,r,n){if(void 0!==t&&void 0!==e)return[t,e];void 0===r&&(r=n.valueOf());const i=Math.floor(r/1e3);return[i,1e6*(r-1e3*i)]}function o(t){const[e,r]=i(t.ctimeSeconds,t.ctimeNanoseconds,t.ctimeMs,t.ctime),[o,a]=i(t.mtimeSeconds,t.mtimeNanoseconds,t.mtimeMs,t.mtime);return{ctimeSeconds:e%2**32,ctimeNanoseconds:r%2**32,mtimeSeconds:o%2**32,mtimeNanoseconds:a%2**32,dev:t.dev%2**32,ino:t.ino%2**32,mode:Object(n.a)(t.mode%2**32),uid:t.uid%2**32,gid:t.gid%2**32,size:t.size>-1?t.size%2**32:0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`No name was provided for ${t} in the argument or in the .git/config file.`),this.code=this.name=i.code,this.data={role:t}}}i.code="MissingNameError"},function(t,e,r){"use strict";t.exports=r(160)},function(t,e,r){"use strict";var n=r(8),i=r(19),o=r(4),a=r(14),s=r(7),c=r(12),u=r(63),f=r(52);function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}class h{constructor({fs:t,gitdir:e,ref:r,cache:i}){var a=this;this.fs=t,this.cache=i,this.gitdir=e,this.mapPromise=d((function*(){const i=new Map;let s;try{s=yield o.a.resolve({fs:t,gitdir:e,ref:r})}catch(t){t instanceof n.a&&(s="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const c=yield Object(f.a)({fs:t,cache:a.cache,gitdir:e,oid:s});return c.type="tree",c.mode="40000",i.set(".",c),i}))();const s=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return d((function*(){return s.type(t)}))()}mode(){var t=this;return d((function*(){return s.mode(t)}))()}stat(){var t=this;return d((function*(){return s.stat(t)}))()}content(){var t=this;return d((function*(){return s.content(t)}))()}oid(){var t=this;return d((function*(){return s.oid(t)}))()}}}readdir(t){var e=this;return d((function*(){const r=t._fullpath,{fs:n,cache:o,gitdir:u}=e,f=yield e.mapPromise,l=f.get(r);if(!l)throw new Error(`No obj for ${r}`);const d=l.oid;if(!d)throw new Error(`No oid for obj ${JSON.stringify(l)}`);if("tree"!==l.type)return null;const{type:h,object:p}=yield Object(s.a)({fs:n,cache:o,gitdir:u,oid:d});if(h!==l.type)throw new i.a(d,h,l.type);const y=a.a.from(p);for(const t of y)f.set(Object(c.join)(r,t.path),t);return y.entries().map(t=>Object(c.join)(r,t.path))}))()}type(t){var e=this;return d((function*(){if(!1===t._type){const r=yield e.mapPromise,{type:n}=r.get(t._fullpath);t._type=n}return t._type}))()}mode(t){var e=this;return d((function*(){if(!1===t._mode){const r=yield e.mapPromise,{mode:n}=r.get(t._fullpath);t._mode=Object(u.a)(parseInt(n,8))}return t._mode}))()}stat(t){return d((function*(){}))()}content(t){var e=this;return d((function*(){if(!1===t._content){const r=yield e.mapPromise,{fs:n,cache:i,gitdir:o}=e,a=r.get(t._fullpath).oid,{type:c,object:u}=yield Object(s.a)({fs:n,cache:i,gitdir:o,oid:a});t._content="blob"!==c?void 0:new Uint8Array(u)}return t._content}))()}oid(t){var e=this;return d((function*(){if(!1===t._oid){const r=(yield e.mapPromise).get(t._fullpath);t._oid=r.oid}return t._oid}))()}}var p=r(30);function y({ref:t="HEAD"}={}){const e=Object.create(null);return Object.defineProperty(e,p.a,{value:function({fs:e,gitdir:r,cache:n}){return new h({fs:e,gitdir:r,ref:t,cache:n})}}),Object.freeze(e),e}r.d(e,"a",(function(){return y}))},function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(t[n]=r[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)},function(t,e,r){"use strict";function n(t,e){return-(t<e)||+(t>e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=Symbol("GitWalkSymbol")},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`The function requires a "${t}" parameter but none was provided.`),this.code=this.name=i.code,this.data={parameter:t}}}i.code="MissingParameterError"},function(t,e,r){"use strict";function n(t,e){const r=e-t;return Array.from({length:r},(e,r)=>t+r)}var i=r(110),o=r(30);class a{constructor(){this.value=null}consider(t){null!=t&&(null===this.value?this.value=t:t<this.value&&(this.value=t))}reset(){this.value=null}}function*s(t){const e=new a;let r;const n=[],i=t.length;for(let r=0;r<i;r++)n[r]=t[r].next().value,void 0!==n[r]&&e.consider(n[r]);if(null!==e.value)for(;;){const o=[];r=e.value,e.reset();for(let a=0;a<i;a++)void 0!==n[a]&&n[a]===r?(o[a]=n[a],n[a]=t[a].next().value):o[a]=null,void 0!==n[a]&&e.consider(n[a]);if(yield o,null===e.value)return}}function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,cache:e,dir:r,gitdir:a,trees:c,map:f=function(){var t=u((function*(t,e){return e}));return function(e,r){return t.apply(this,arguments)}}(),reduce:l=function(){var t=u((function*(t,e){const r=Object(i.a)(e);return void 0!==t&&r.unshift(t),r}));return function(e,r){return t.apply(this,arguments)}}(),iterate:d=((t,e)=>Promise.all([...e].map(t)))}){const h=c.map(n=>n[o.a]({fs:t,dir:r,gitdir:a,cache:e})),p=new Array(h.length).fill("."),y=n(0,h.length),g=function(){var t=u((function*(t){y.map(e=>{const r=t[e];t[e]=r&&new h[e].ConstructEntry(r)});const e=(yield Promise.all(y.map(e=>{const r=t[e];return r?h[e].readdir(r):[]}))).map(t=>(null===t?[]:t)[Symbol.iterator]());return{entries:t,children:s(e)}}));return function(e){return t.apply(this,arguments)}}(),v=function(){var t=u((function*(t){const{entries:e,children:r}=yield g(t),n=e.find(t=>t&&t._fullpath)._fullpath,i=yield f(n,e);if(null!==i){let t=yield d(v,r);return t=t.filter(t=>void 0!==t),l(i,t)}}));return function(e){return t.apply(this,arguments)}}();return v(p)}))).apply(this,arguments)}r.d(e,"a",(function(){return f}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`"${t}" would be an invalid git reference. (Hint: a valid alternative would be "${e}".)`),this.code=this.name=i.code,this.data={ref:t,suggestion:e}}}i.code="InvalidRefNameError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(42),i=r(88);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,author:r,commit:o}){const a=Math.floor(Date.now()/1e3),s={name:yield Object(n.a)({fs:t,gitdir:e,path:"user.name"}),email:(yield Object(n.a)({fs:t,gitdir:e,path:"user.email"}))||"",timestamp:a,timezoneOffset:new Date(1e3*a).getTimezoneOffset()},c=Object(i.a)({},s,o?o.author:void 0,r);if(void 0!==c.name)return c}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=i.code,this.data={value:t}}}i.code="InvalidOidError"},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return e>-1&&(t=t.slice(e+1)),t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(139),i=r.n(n),o=r(36),a=r(23),s=r(12);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class u{static isIgnored({fs:t,dir:e,gitdir:r=Object(s.join)(e,".git"),filepath:n}){return(u=function*(){if(".git"===Object(o.a)(n))return!0;if("."===n)return!1;let c="";const u=Object(s.join)(r,"info","exclude");(yield t.exists(u))&&(c=yield t.read(u,"utf8"));const f=[{gitignore:Object(s.join)(e,".gitignore"),filepath:n}],l=n.split("/").filter(Boolean);for(let t=1;t<l.length;t++){const r=l.slice(0,t).join("/"),n=l.slice(t).join("/");f.push({gitignore:Object(s.join)(e,r,".gitignore"),filepath:n})}let d=!1;for(const e of f){let r;try{r=yield t.read(e.gitignore,"utf8")}catch(t){if("NOENT"===t.code)continue}const n=i()().add(c);n.add(r);const o=Object(a.a)(e.filepath);if("."!==o&&n.ignores(o))return!0;d=d?!n.test(e.filepath).unignored:n.test(e.filepath).ignored}return d},function(){var t=this,e=arguments;return new Promise((function(r,n){var i=u.apply(t,e);function o(t){c(i,r,n,o,a,"next",t)}function a(t){c(i,r,n,o,a,"throw",t)}o(void 0)}))})();var u}}},function(t,e,r){"use strict";var n={};(0,r(28).assign)(n,r(198),r(201),r(131)),t.exports=n},function(t,e,r){"use strict";function n(t){const[,e,r,n,o]=t.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:e,email:r,timestamp:Number(n),timezoneOffset:i(o)}}function i(t){let[,e,r,n]=t.match(/(\+|-)(\d\d)(\d\d)/);return n=("+"===e?1:-1)*(60*Number(r)+Number(n)),0===(i=n)?i:-i;var i}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r=!0){super(`Failed to create ${t} at ${e} because it already exists.${r?` (Hint: use 'force: true' parameter to overwrite existing ${t}.)`:""}`),this.code=this.name=i.code,this.data={noun:t,where:e,canForce:r}}}i.code="AlreadyExistsError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Expected "${t}" but received "${e}".`),this.code=this.name=i.code,this.data={expected:t,actual:e}}}i.code="ParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(11);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,path:r}){return(yield n.a.get({fs:t,gitdir:e})).get(r)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=i.code,this.data={filepath:t}}}i.code="UnsafeFilepathError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return m}));var n=r(57),i=r(80),o=r(60),a=r(74),s=r(58),c=r(101),u=r(76);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}const y=(t,e)=>t.endsWith("?")?`${t}${e}`:`${t}/${e.replace(/^https?:\/\//,"")}`,g=(t,e)=>{(e.username||e.password)&&(t.Authorization=Object(a.a)(e)),e.headers&&Object.assign(t,e.headers)},v=function(){var e=p((function*(e){try{const r=t.from(yield Object(s.a)(e.body)),n=r.toString("utf8");return{preview:n.length<256?n:n.slice(0,256)+"...",response:n,data:r}}catch(t){return{}}}));return function(t){return e.apply(this,arguments)}}();class m{static capabilities(){return p((function*(){return["discover","connect"]}))()}static discover({http:t,onProgress:e,onAuth:r,onAuthSuccess:s,onAuthFailure:f,corsProxy:d,service:h,url:m,headers:b,protocolVersion:w}){return p((function*(){let{url:p,auth:_}=Object(c.a)(m);const j=d?y(d,p):p;let O,x;(_.username||_.password)&&(b.Authorization=Object(a.a)(_)),2===w&&(b["Git-Protocol"]="version=2");let P=!1;do{if(O=yield t.request({onProgress:e,method:"GET",url:`${j}/info/refs?service=${h}`,headers:b}),x=!1,401===O.statusCode||203===O.statusCode){const t=P?f:r;if(t){if(_=yield t(p,l({},_,{headers:l({},b)})),_&&_.cancel)throw new o.a;_&&(g(b,_),P=!0,x=!0)}}else 200===O.statusCode&&P&&s&&(yield s(p,_))}while(x);if(200!==O.statusCode){const{response:t}=yield v(O);throw new n.a(O.statusCode,O.statusMessage,t)}if(O.headers["content-type"]===`application/x-${h}-advertisement`){const t=yield Object(u.a)(O.body,{service:h});return t.auth=_,t}{const{preview:t,response:e,data:r}=yield v(O);try{const t=yield Object(u.a)([r],{service:h});return t.auth=_,t}catch(r){throw new i.a(t,e)}}}))()}static connect({http:t,onProgress:e,corsProxy:r,service:i,url:o,auth:a,body:s,headers:u}){return p((function*(){const f=Object(c.a)(o);f&&(o=f.url),r&&(o=y(r,o)),u["content-type"]=`application/x-${i}-request`,u.accept=`application/x-${i}-result`,g(u,a);const l=yield t.request({onProgress:e,method:"POST",url:`${o}/${i}`,body:s,headers:u});if(200!==l.statusCode){const{response:t}=v(l);throw new n.a(l.statusCode,l.statusMessage,t)}return l}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(67);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t,e){return s.apply(this,arguments)}function s(){return(s=o((function*(t,e){const r=Object(n.a)(t);for(;;){const{value:t,done:n}=yield r.next();if(t&&(yield e(t)),n)break}r.return&&r.return()}))).apply(this,arguments)}},function(t,e,r){"use strict";t.exports=TypeError},function(t,e,r){"use strict";var n=r(180);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},function(t,e,r){"use strict";var n=r(183);t.exports=Function.prototype.bind||n},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(26),i=r.n(n),o=r(12);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}let c=null;class u{static read({fs:t,gitdir:e}){return s((function*(){null===c&&(c=new i.a);const r=Object(o.join)(e,"shallow"),n=new Set;return yield c.acquire(r,s((function*(){const e=yield t.read(r,{encoding:"utf8"});return null===e?n:""===e.trim()?n:void e.trim().split("\n").map(t=>n.add(t))}))),n}))()}static write({fs:t,gitdir:e,oids:r}){return s((function*(){null===c&&(c=new i.a);const n=Object(o.join)(e,"shallow");if(r.size>0){const e=[...r].join("\n")+"\n";yield c.acquire(n,s((function*(){yield t.write(n,e,{encoding:"utf8"})})))}else yield c.acquire(n,s((function*(){yield t.rm(n)})))}))()}}},function(t,e,r){"use strict";function n({name:t,email:e,timestamp:r,timezoneOffset:n}){return`${t} <${e}> ${r} ${n=function(t){const e=function(t){return Math.sign(t)||(Object.is(t,-0)?-1:1)}((r=t,0===r?r:-r));var r;t=Math.abs(t);const n=Math.floor(t/60);t-=60*n;let i=String(n),o=String(t);i.length<2&&(i="0"+i);o.length<2&&(o="0"+o);return(-1===e?"-":"+")+i+o}(n)}`}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){return Object(n.a)(t.path,e.path)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(19),i=r(20),o=r(17),a=r(14),s=r(7);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,cache:e,gitdir:r,oid:c}){if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===c)return{tree:a.a.from([]),oid:c};const{type:u,object:l}=yield Object(s.a)({fs:t,cache:e,gitdir:r,oid:c});if("tag"===u)return f({fs:t,cache:e,gitdir:r,oid:c=i.a.from(l).parse().object});if("commit"===u)return f({fs:t,cache:e,gitdir:r,oid:c=o.a.from(l).parse().tree});if("tree"!==u)throw new n.a(c,u,"tree");return{tree:a.a.from(l),oid:c}}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t,e){const r=e.toString(16);return"0".repeat(t-r.length)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(24);function i(t,e,r=!0,i=!0){const o=Object(n.a)(t),a=Object(n.a)(e);return r&&o.mode!==a.mode||o.mtimeSeconds!==a.mtimeSeconds||o.ctimeSeconds!==a.ctimeSeconds||o.uid!==a.uid||o.gid!==a.gid||i&&o.ino!==a.ino||o.size!==a.size}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(4),i=r(102);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,fullname:r=!1,test:o=!1}){const a=yield n.a.resolve({fs:t,gitdir:e,ref:"HEAD",depth:2});if(o)try{yield n.a.resolve({fs:t,gitdir:e,ref:a})}catch(t){return}if(a.startsWith("refs/"))return r?a:Object(i.a)(a)}))).apply(this,arguments)}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&h())}function h(){if(!f){var t=s(d);f=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||f||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`HTTP Error: ${t} ${e}`),this.code=this.name=i.code,this.data={statusCode:t,statusMessage:e,response:r}}}i.code="HttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(45);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*(t){let e=0;const r=[];yield Object(n.a)(t,t=>{r.push(t),e+=t.byteLength});const i=new Uint8Array(e);let o=0;for(const t of r)i.set(t,o),o+=t.byteLength;return i}))).apply(this,arguments)}},function(t,e,r){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("The operation was canceled."),this.code=this.name=i.code,this.data={}}}i.code="UserCanceledError"},function(t,e,r){"use strict";var n=r(81),i=r(82);var o=r(44);r.d(e,"a",(function(){return a}));class a{static getRemoteHelperFor({url:t}){const e=new Map;e.set("http",o.a),e.set("https",o.a);const r=function({url:t}){if(t.startsWith("git@"))return{transport:"ssh",address:t};const e=t.match(/(\w+)(:\/\/|::)(.*)/);if(null===e)return;if("://"===e[2])return{transport:e[1],address:e[0]};if("::"===e[2])return{transport:e[1],address:e[3]}}({url:t});if(!r)throw new i.a(t);if(e.has(r.transport))return e.get(r.transport);throw new n.a(t,r.transport,"ssh"===r.transport?function(t){return t=(t=t.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(t):void 0)}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(134),i=r.n(n),o=r(2),a=r(22),s=r(16),c=r(136),u=r(135),f=r(65),l=r(15);function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}class p{constructor(t){Object.assign(this,t),this.offsetCache={}}static fromIdx({idx:t,getExternalRefDelta:e}){return h((function*(){const r=new s.a(t);if("ff744f63"!==r.slice(4).toString("hex"))return;const n=r.readUInt32BE();if(2!==n)throw new o.a(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2147483648)throw new o.a("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+1020);const i=r.readUInt32BE(),a=[];for(let t=0;t<i;t++){const e=r.slice(20).toString("hex");a[t]=e}r.seek(r.tell()+4*i);const c=new Map;for(let t=0;t<i;t++)c.set(a[t],r.readUInt32BE());const u=r.slice(20).toString("hex");return new p({hashes:a,crcs:{},offsets:c,packfileSha:u,getExternalRefDelta:e})}))()}static fromPack({pack:t,getExternalRefDelta:e,onProgress:r}){return h((function*(){const n={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},o={},s=t.slice(-20).toString("hex"),c=[],f={},d=new Map;let y=null,g=null;yield Object(u.a)([t],function(){var t=h((function*({data:t,type:e,reference:i,offset:a,num:s}){null===y&&(y=s);const c=Math.floor(100*(y-s)/y);c!==g&&r&&(yield r({phase:"Receiving objects",loaded:y-s,total:y})),g=c,["commit","tree","blob","tag"].includes(e=n[e])?o[a]={type:e,offset:a}:"ofs-delta"===e?o[a]={type:e,offset:a}:"ref-delta"===e&&(o[a]={type:e,offset:a})}));return function(e){return t.apply(this,arguments)}}());const v=Object.keys(o).map(Number);for(const[e,r]of v.entries()){const n=e+1===v.length?t.byteLength-20:v[e+1],a=o[r],s=i.a.buf(t.slice(r,n))>>>0;a.end=n,a.crc=s}const m=new p({pack:Promise.resolve(t),packfileSha:s,crcs:f,hashes:c,offsets:d,getExternalRefDelta:e});g=null;let b=0;const w=[0,0,0,0,0,0,0,0,0,0,0,0];for(let t in o){t=Number(t);const e=Math.floor(100*b/y);e!==g&&r&&(yield r({phase:"Resolving deltas",loaded:b,total:y})),b++,g=e;const n=o[t];if(!n.oid)try{m.readDepth=0,m.externalReadDepth=0;const{type:e,object:r}=yield m.readSlice({start:t});w[m.readDepth]+=1;const i=yield Object(l.a)(a.a.wrap({type:e,object:r}));n.oid=i,c.push(i),d.set(i,t),f[i]=n.crc}catch(t){continue}}return c.sort(),m}))()}toBuffer(){var e=this;return h((function*(){const r=[],n=(e,n)=>{r.push(t.from(e,n))};n("ff744f63","hex"),n("00000002","hex");const i=new s.a(t.alloc(1024));for(let t=0;t<256;t++){let r=0;for(const n of e.hashes)parseInt(n.slice(0,2),16)<=t&&r++;i.writeUInt32BE(r)}r.push(i.buffer);for(const t of e.hashes)n(t,"hex");const o=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)o.writeUInt32BE(e.crcs[t]);r.push(o.buffer);const a=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)a.writeUInt32BE(e.offsets.get(t));r.push(a.buffer),n(e.packfileSha,"hex");const c=t.concat(r),u=yield Object(l.a)(c),f=t.alloc(20);return f.write(u,"hex"),t.concat([c,f])}))()}load({pack:t}){var e=this;return h((function*(){e.pack=t}))()}unload(){var t=this;return h((function*(){t.pack=null}))()}read({oid:t}){var e=this;return h((function*(){if(!e.offsets.get(t)){if(e.getExternalRefDelta)return e.externalReadDepth++,e.getExternalRefDelta(t);throw new o.a(`Could not read object ${t} from packfile`)}const r=e.offsets.get(t);return e.readSlice({start:r})}))()}readSlice({start:e}){var r=this;return h((function*(){if(r.offsetCache[e])return Object.assign({},r.offsetCache[e]);r.readDepth++;if(!r.pack)throw new o.a("Tried to read from a GitPackIndex with no packfile loaded into memory");const n=(yield r.pack).slice(e),i=new s.a(n),a=i.readUInt8(),u=112&a;let l={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[u];if(void 0===l)throw new o.a("Unrecognized type: 0b"+u.toString(2));const d=15&a;let h=d;128&a&&(h=function(t,e){let r=e,n=4,i=null;do{i=t.readUInt8(),r|=(127&i)<<n,n+=7}while(128&i);return r}(i,d));let p=null,y=null;if("ofs_delta"===l){const t=function(t){const e=[];let r=0,n=0;do{r=t.readUInt8();const i=127&r;e.push(i),n=128&r}while(n);return e.reduce((t,e)=>t+1<<7|e,-1)}(i),n=e-t;({object:p,type:l}=yield r.readSlice({start:n}))}if("ref_delta"===l){const t=i.slice(20).toString("hex");({object:p,type:l}=yield r.read({oid:t}))}const g=n.slice(i.tell());if(y=t.from(yield Object(f.a)(g)),y.byteLength!==h)throw new o.a(`Packfile told us object would have length ${h} but it had length ${y.byteLength}`);return p&&(y=t.from(Object(c.a)(y,p))),r.readDepth>3&&(r.offsetCache[e]={type:l,object:y}),{type:l,format:"content",object:y}}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){let e=t>0?t>>12:0;4!==e&&8!==e&&10!==e&&14!==e&&(e=8);let r=511&t;return r=73&r?493:420,8!==e&&(r=0),(e<<12)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(67);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}class a{constructor(e){if(void 0===t)throw new Error("Missing Buffer dependency");this.stream=Object(n.a)(e),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}byte(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(1),t.buffer[t.undoCursor]}))()}chunk(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(t.buffer.length),t.buffer.slice(t.undoCursor,t.cursor)}))()}read(t){var e=this;return o((function*(){if(!e.eof())return e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t),e.buffer.slice(e.undoCursor,e.cursor)}))()}skip(t){var e=this;return o((function*(){e.eof()||(e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t))}))()}undo(){var t=this;return o((function*(){t.cursor=t.undoCursor}))()}_next(){var e=this;return o((function*(){e.started=!0;let{done:r,value:n}=yield e.stream.next();return r&&(e._ended=!0,!n)?t.alloc(0):(n&&(n=t.from(n)),n)}))()}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}_accumulate(e){var r=this;return o((function*(){if(r._ended)return;const n=[r.buffer];for(;r.cursor+e>s(n);){const t=yield r._next();if(r._ended)break;n.push(t)}r.buffer=t.concat(n)}))()}_loadnext(){var t=this;return o((function*(){t._discardedBytes+=t.buffer.length,t.undoCursor=0,t.cursor=0,t.buffer=yield t._next()}))()}_init(){var t=this;return o((function*(){t.buffer=yield t._next()}))()}}function s(t){return t.reduce((t,e)=>t+e.length,0)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(38),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}let s=!1;function c(t){return u.apply(this,arguments)}function u(){return(u=a((function*(t){return null===s&&(s=d()),s?f(t):i.a.inflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new DecompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function d(){try{if(new DecompressionStream("deflate"))return!0}catch(t){}return!1}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(42),i=r(88);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,author:r,committer:o,commit:a}){const s=Math.floor(Date.now()/1e3),c={name:yield Object(n.a)({fs:t,gitdir:e,path:"user.name"}),email:(yield Object(n.a)({fs:t,gitdir:e,path:"user.email"}))||"",timestamp:s,timezoneOffset:new Date(1e3*s).getTimezoneOffset()},u=Object(i.a)({},c,a?a.committer:void 0,r,o);if(void 0!==u.name)return u}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t){return t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():t[Symbol.iterator]?t[Symbol.iterator]():t.next?t:function(t){let e=[t];return{next:()=>Promise.resolve({done:0===e.length,value:e.pop()}),return:()=>(e=[],{}),[Symbol.asyncIterator](){return this}}}(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(19),i=r(20),o=r(17),a=r(7);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t){return f.apply(this,arguments)}function f(){return(f=c((function*({fs:t,cache:e,gitdir:r,oid:s}){const{type:c,object:f}=yield Object(a.a)({fs:t,cache:e,gitdir:r,oid:s});if("tag"===c)return u({fs:t,cache:e,gitdir:r,oid:s=i.a.from(f).parse().object});if("commit"!==c)throw new n.a(s,c,"commit");return{commit:o.a.from(f),oid:s}}))).apply(this,arguments)}function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}function h(t){return p.apply(this,arguments)}function p(){return(p=d((function*({fs:t,cache:e,gitdir:r,oid:n}){const{commit:i,oid:o}=yield u({fs:t,cache:e,gitdir:r,oid:n});return{oid:o,commit:i.parse(),payload:i.withoutSignature()}}))).apply(this,arguments)}r.d(e,"a",(function(){return h}))},function(t,e,r){"use strict";function n(t){return t.trim().split("\n").map(t=>" "+t).join("\n")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";const n=(t,e)=>function(...r){return new(0,e.promiseModule)((n,i)=>{e.multiArgs?r.push((...t)=>{e.errorFirst?t[0]?i(t):(t.shift(),n(t)):n(t)}):e.errorFirst?r.push((t,e)=>{t?i(t):n(e)}):r.push(n),t.apply(this,r)})};t.exports=(t,e)=>{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const r=typeof t;if(null===t||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":r}\``);const i=t=>{const r=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(r):!e.exclude.some(r)};let o;o="function"===r?function(...r){return e.excludeMain?t(...r):n(t,e).apply(this,r)}:Object.create(Object.getPrototypeOf(t));for(const r in t){const a=t[r];o[r]="function"==typeof a&&i(r)?n(a,e):a}return o}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n={name:"isomorphic-git",version:"1.33.2",agent:"git/isomorphic-git@1.33.2"}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(2);class i{constructor({remotePath:t,localPath:e,force:r,matchPrefix:n}){Object.assign(this,{remotePath:t,localPath:e,force:r,matchPrefix:n})}static from(t){const[e,r,o,a,s]=t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),c="+"===e,u="*"===o;if(u!==("*"===s))throw new n.a("Invalid refspec");return new i({remotePath:r,localPath:a,force:c,matchPrefix:u})}translate(t){if(this.matchPrefix){if(t.startsWith(this.remotePath))return this.localPath+t.replace(this.remotePath,"")}else if(t===this.remotePath)return this.localPath;return null}reverseTranslate(t){if(this.matchPrefix){if(t.startsWith(this.localPath))return this.remotePath+t.replace(this.localPath,"")}else if(t===this.localPath)return this.remotePath;return null}}},function(t,e,r){"use strict";(function(t){function n({username:e="",password:r=""}){return`Basic ${t.from(`${e}:${r}`).toString("base64")}`}r.d(e,"a",(function(){return n}))}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(13),i=r(29),o=r(105),a=r(2);var s=r(24);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}class f{constructor({fs:t,gitdir:e,cache:r}){this.treePromise=n.a.acquire({fs:t,gitdir:e,cache:r},function(){var t=u((function*(t){return Object(o.a)(t.entries)}));return function(e){return t.apply(this,arguments)}}());const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}type(){var t=this;return u((function*(){return i.type(t)}))()}mode(){var t=this;return u((function*(){return i.mode(t)}))()}stat(){var t=this;return u((function*(){return i.stat(t)}))()}content(){var t=this;return u((function*(){return i.content(t)}))()}oid(){var t=this;return u((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return u((function*(){const r=t._fullpath,n=(yield e.treePromise).get(r);if(!n)return null;if("blob"===n.type)return null;if("tree"!==n.type)throw new Error(`ENOTDIR: not a directory, scandir '${r}'`);const o=n.children.map(t=>t.fullpath);return o.sort(i.a),o}))()}type(t){return u((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return u((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return u((function*(){if(!1===t._stat){const r=(yield e.treePromise).get(t._fullpath);if(!r)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);const n="tree"===r.type?{}:Object(s.a)(r.metadata);t._type="tree"===r.type?"tree":function(t){switch(t){case 16384:return"tree";case 33188:case 33261:case 40960:return"blob";case 57344:return"commit"}throw new a.a(`Unexpected GitTree entry mode: ${t.toString(8)}`)}(n.mode),t._mode=n.mode,"tree"===r.type?t._stat=void 0:t._stat=n}return t._stat}))()}content(t){return u((function*(){}))()}oid(t){var e=this;return u((function*(){if(!1===t._oid){const r=(yield e.treePromise).get(t._fullpath);t._oid=r.metadata.oid}return t._oid}))()}}var l=r(30);function d(){const t=Object.create(null);return Object.defineProperty(t,l.a,{value:function({fs:t,gitdir:e,cache:r}){return new f({fs:t,gitdir:e,cache:r})}}),Object.freeze(t),t}r.d(e,"a",(function(){return d}))},function(t,e,r){"use strict";var n=r(78),i=r(41),o=r(10);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*(t){const e={};let r;for(;r=yield t(),!0!==r;){if(null===r)continue;r=r.toString("utf8").replace(/\n$/,"");const t=r.indexOf("=");if(t>-1){const n=r.slice(0,t),i=r.slice(t+1);e[n]=i}else e[r]=!0}return{protocolVersion:2,capabilities2:e}}))).apply(this,arguments)}function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t,e){return h.apply(this,arguments)}function h(){return(h=l((function*(t,{service:e}){const r=new Set,a=new Map,s=new Map,u=o.a.streamReader(t);let f=yield u();for(;null===f;)f=yield u();if(!0===f)throw new n.a;if(f.includes("version 2"))return c(u);if(f.toString("utf8").replace(/\n$/,"")!==`# service=${e}`)throw new i.a(`# service=${e}\\n`,f.toString("utf8"));let l=yield u();for(;null===l;)l=yield u();if(!0===l)return{capabilities:r,refs:a,symrefs:s};if(l=l.toString("utf8"),l.includes("version 2"))return c(u);const[d,h]=p(l,"\0","\\x00");if(h.split(" ").map(t=>r.add(t)),"0000000000000000000000000000000000000000 capabilities^{}"!==d){const[t,e]=p(d," "," ");for(a.set(e,t);;){const t=yield u();if(!0===t)break;if(null!==t){const[e,r]=p(t.toString("utf8")," "," ");a.set(r,e)}}}for(const t of r)if(t.startsWith("symref=")){const e=t.match(/symref=([^:]+):(.*)/);3===e.length&&s.set(e[1],e[2])}return{protocolVersion:1,capabilities:r,refs:a,symrefs:s}}))).apply(this,arguments)}function p(t,e,r){const n=t.trim().split(e);if(2!==n.length)throw new i.a(`Two strings separated by '${r}'`,t.toString("utf8"));return n}r.d(e,"a",(function(){return d}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(14),i=r(18);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,tree:r}){const o=n.a.from(r).toObject();return yield Object(i.a)({fs:t,gitdir:e,type:"tree",object:o,format:"content"})}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("Empty response from git server."),this.code=this.name=i.code,this.data={}}}i.code="EmptyServerResponseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not find a fetch refspec for remote "${t}". Make sure the config file has an entry like the following:\n[remote "${t}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=i.code,this.data={remote:t}}}i.code="NoRefspecError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${t}`),this.code=this.name=i.code,this.data={preview:t,response:e}}}i.code="SmartHttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`Git remote "${t}" uses an unrecognized transport protocol: "${e}"`),this.code=this.name=i.code,this.data={url:t,transport:e,suggestion:r}}}i.code="UnknownTransportError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Cannot parse remote URL: "${t}"`),this.code=this.name=i.code,this.data={url:t}}}i.code="UrlParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Modifying the index is not possible because you have unmerged files: ${t.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=i.code,this.data={filepaths:t}}}i.code="UnmergedPathsError"},function(t,e,r){"use strict";var n=r(161),i=r(162),o=r(117).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=(e=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|e>>>31;for(var h=0;h<80;++h){var p=~~(h/20),y=u(n)+l(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t){return a.apply(this,arguments)}function a(){return(a=i((function*({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`,i=yield t.read(`${e}/${n}`);return i?{object:i,format:"deflated",source:n}:null}))).apply(this,arguments)}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(62);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}const a=Symbol("PackfileCache");function s(){return(s=o((function*({fs:t,filename:e,getExternalRefDelta:r,emitter:i,emitterPrefix:o}){const a=yield t.read(e);return n.a.fromIdx({idx:a,getExternalRefDelta:r})}))).apply(this,arguments)}function c({fs:t,cache:e,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}){e[a]||(e[a]=new Map);let c=e[a].get(r);return c||(c=function(t){return s.apply(this,arguments)}({fs:t,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}),e[a].set(r,c)),c}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(38),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}let s=null;function c(t){return u.apply(this,arguments)}function u(){return(u=a((function*(t){return null===s&&(s=d()),s?f(t):i.a.deflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new CompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function d(){try{return new CompressionStream("deflate").writable.close(),new Blob([]).stream().cancel(),!0}catch(t){return!1}}},function(t,e,r){"use strict";function n(t,...e){for(const r of e)if(r)for(const e of Object.keys(r)){const n=r[e];void 0!==n&&(t[e]=n)}return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t,e){return a.apply(this,arguments)}function a(){return(a=i((function*(t,e){return!(!t&&!e)&&(!(!t||e)||(!(t||!e)||("tree"!==(yield t.type())||"tree"!==(yield e.type()))&&((yield t.type())!==(yield e.type())||(yield t.mode())!==(yield e.mode())||(yield t.oid())!==(yield e.oid()))))}))).apply(this,arguments)}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(111),i=r(52);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,cache:e,gitdir:r,oid:o,filepath:a}){void 0!==a&&(o=yield Object(n.a)({fs:t,cache:e,gitdir:r,oid:o,filepath:a}));const{tree:s,oid:c}=yield Object(i.a)({fs:t,cache:e,gitdir:r,oid:o});return{oid:c,tree:s.entries()}}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return O})),r.d(e,"c",(function(){return S})),r.d(e,"b",(function(){return $}));var n=r(26),i=r.n(n),o=r(75),a=r(27),s=r(99),c=r(32),u=r(77),f=r(2),l=r(8),d=r(37),h=r(13),p=r(7),y=r(85),g=r(18),v=r(12),m=r(156);function b(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function w(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){b(o,n,i,a,s,"next",t)}function s(t){b(o,n,i,a,s,"throw",t)}a(void 0)}))}}const _={stage:o.a,workdir:s.a};let j;function O(t,e){return x.apply(this,arguments)}function x(){return(x=w((function*(t,e){return void 0===j&&(j=new i.a),j.acquire(t,e)}))).apply(this,arguments)}function P(t,e,r,n){return k.apply(this,arguments)}function k(){return(k=w((function*(t,e,r,n,i=null){const o=Object(v.join)(r,n),a=yield t.lstat(o);if(!a)throw new l.a(o);if(a.isDirectory())throw new f.a(`${o}: file expected, but found directory`);const s=i?yield Object(y.a)({fs:t,gitdir:e,oid:i}):void 0;let c=s?i:void 0;return s||(yield O({fs:t,gitdir:e,currentFilepath:o},w((function*(){const r=a.isSymbolicLink()?yield t.readlink(o).then(m.a):yield t.read(o);if(null===r)throw new l.a(o);c=yield Object(g.a)({fs:t,gitdir:e,type:"blob",object:r})})))),c}))).apply(this,arguments)}function E(t){return A.apply(this,arguments)}function A(){return(A=w((function*({fs:t,dir:e,gitdir:r,entries:n}){function i(t){return o.apply(this,arguments)}function o(){return(o=w((function*(n){if("tree"===n.type){if(!n.oid){const e=yield Promise.all(n.children.map(i));n.oid=yield Object(u.a)({fs:t,gitdir:r,tree:e}),n.mode=16384}}else"blob"===n.type&&(n.oid=yield P(t,r,e,n.path,n.oid),n.mode=33188);return n.path=n.path.split("/").pop(),n}))).apply(this,arguments)}return Promise.all(n.map(i))}))).apply(this,arguments)}function S(t){return R.apply(this,arguments)}function R(){return(R=w((function*({fs:t,dir:e,gitdir:r,treePair:n}){const i="stage"===n[1],o=n.map(t=>"string"==typeof t?_[t]():t),a=[],s=function(){var n=w((function*(n,[i,o]){if("."!==n&&!(yield d.a.isIgnored({fs:t,dir:e,gitdir:r,filepath:n})))return o?((!i||(yield i.oid())!==(yield o.oid())&&void 0!==(yield o.oid()))&&a.push([i,o]),{mode:yield o.mode(),path:n,oid:yield o.oid(),type:yield o.type()}):void 0}));return function(t,e){return n.apply(this,arguments)}}(),f=function(){var t=w((function*(t,e){return e=e.filter(Boolean),t?(t.children=e,t):e.length>0?e:void 0}));return function(e,r){return t.apply(this,arguments)}}(),l=function(){var r=w((function*(r,n){const o=[];for(const r of n){const[n,s]=r;i?s&&((yield t.exists(`${e}/${s.toString()}`))?o.push(r):a.push([null,s])):n&&(s?o.push(r):a.push([n,null]))}return o.length?Promise.all(o.map(r)):[]}));return function(t,e){return r.apply(this,arguments)}}(),h=yield Object(c.a)({fs:t,cache:{},dir:e,gitdir:r,trees:o,map:s,reduce:f,iterate:l});if(0===a.length||0===h.length)return null;const p=(yield E({fs:t,dir:e,gitdir:r,entries:h})).filter(Boolean).map(t=>({mode:t.mode,path:t.path,oid:t.oid,type:t.type}));return Object(u.a)({fs:t,gitdir:r,tree:p})}))).apply(this,arguments)}function $(t){return B.apply(this,arguments)}function B(){return(B=w((function*({fs:t,dir:e,gitdir:r,stashCommit:n,parentCommit:i,wasStaged:o}){const s=[],u=[],f=yield Object(c.a)({fs:t,cache:{},dir:e,gitdir:r,trees:[Object(a.a)({ref:i}),Object(a.a)({ref:n})],map:(l=w((function*(n,[i,a]){if("."===n||(yield d.a.isIgnored({fs:t,dir:e,gitdir:r,filepath:n})))return;const c=a?yield a.type():yield i.type();if("tree"!==c&&"blob"!==c)return;if(!a&&i){const t="tree"===c?"rmdir":"rm";return"tree"===c&&s.push(n),"blob"===c&&o&&u.push({filepath:n,oid:yield i.oid()}),{method:t,filepath:n}}const f=yield a.oid();return i&&(yield i.oid())===f?void 0:"tree"===c?{method:"mkdir",filepath:n}:(o&&u.push({filepath:n,oid:f,stats:yield t.lstat(Object(v.join)(e,n))}),{method:"write",filepath:n,oid:f})})),function(t,e){return l.apply(this,arguments)})});var l;yield O({fs:t,gitdir:r,dirRemoved:s,ops:f},w((function*(){for(const n of f){const i=Object(v.join)(e,n.filepath);switch(n.method){case"rmdir":yield t.rmdir(i);break;case"mkdir":yield t.mkdir(i);break;case"rm":yield t.rm(i);break;case"write":if(!s.some(t=>i.startsWith(t))){const{object:e}=yield Object(p.a)({fs:t,cache:{},gitdir:r,oid:n.oid});(yield t.exists(i))&&(yield t.rm(i)),yield t.write(i,e)}}}}))),yield h.a.acquire({fs:t,gitdir:r,cache:{}},function(){var t=w((function*(t){u.forEach(({filepath:e,stats:r,oid:n})=>{t.insert({filepath:e,stats:r,oid:n})})}));return function(e){return t.apply(this,arguments)}}())}))).apply(this,arguments)}},function(t,e,r){"use strict";var n=r(48),i=r(46),o=r(93),a=r(126);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(n,o,t)}},function(t,e,r){"use strict";t.exports=Function.prototype.call},function(t,e,r){"use strict";t.exports=Function.prototype.apply},function(t,e,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=i.code,this.data={}}}i.code="MergeNotSupportedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r,n){super(`Automatic merge failed with one or more merge conflicts in the following files: ${t.toString()}. Fix conflicts then commit the result.`),this.code=this.name=i.code,this.data={filepaths:t,bothModified:e,deleteByUs:r,deleteByTheirs:n}}}i.code="MergeConflictError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){let e="invalid filepath";"leading-slash"===t||"trailing-slash"===t?e='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.':"directory"===t&&(e='"filepath" should not be a directory.'),super(e),this.code=this.name=i.code,this.data={reason:t}}}i.code="InvalidFilepathError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(212),i=r(30);function o(){const t=Object.create(null);return Object.defineProperty(t,i.a,{value:function({fs:t,dir:e,gitdir:r,cache:i}){return new n.a({fs:t,dir:e,gitdir:r,cache:i})}}),Object.freeze(t),t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(12);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t,e){return s.apply(this,arguments)}function s(){return(s=o((function*(t,e){const r=yield t.readdir(e);null==r?yield t.rm(e):r.length?yield Promise.all(r.map(r=>{const i=Object(n.join)(e,r);return t.lstat(i).then(e=>{if(e)return e.isDirectory()?a(t,i):t.rm(i)})})).then(()=>t.rmdir(e)):yield t.rmdir(e)}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t){let e=t.match(/^https?:\/\/([^/]+)@/);if(null==e)return{url:t,auth:{}};e=e[1];const[r,n]=e.split(":");return{url:t=t.replace(`${e}@`,""),auth:{username:r,password:n}}}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));const n=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function i(t){const e=n.exec(t);return e?"remotes/"===e[1]&&t.endsWith("/HEAD")?e[2].slice(0,-5):e[2]:t}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}r.d(e,"a",(function(){return i}));class i{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const e=this._waiting;this._waiting=null,e({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}next(){var t,e=this;return(t=function*(){if(e._queue.length>0)return{value:e._queue.shift()};if(e._ended)return{done:!0};if(e._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{e._waiting=t})},function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))})()}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n=r(2),i=r(43),o=r(16),a=r(51),s=r(24),c=r(15);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}class l{constructor(t,e){this._dirty=!1,this._unmergedPaths=e||new Set,this._entries=t||new Map}_addEntry(t){if(0===t.flags.stage)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let e=this._entries.get(t.path);e||(this._entries.set(t.path,t),e=t),e.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static from(e){return f((function*(){if(t.isBuffer(e))return l.fromBuffer(e);if(null===e)return new l(null);throw new n.a("invalid type passed to GitIndex.from")}))()}static fromBuffer(t){return f((function*(){if(0===t.length)throw new n.a("Index file is empty (.git/index)");const e=new l,r=new o.a(t),a=r.toString("utf8",4);if("DIRC"!==a)throw new n.a(`Invalid dircache magic file number: ${a}`);const s=yield Object(c.a)(t.slice(0,-20)),u=t.slice(-20).toString("hex");if(u!==s)throw new n.a(`Invalid checksum in GitIndex buffer: expected ${u} but saw ${s}`);const f=r.readUInt32BE();if(2!==f)throw new n.a(`Unsupported dircache version: ${f}`);const d=r.readUInt32BE();let h=0;for(;!r.eof()&&h<d;){const o={};o.ctimeSeconds=r.readUInt32BE(),o.ctimeNanoseconds=r.readUInt32BE(),o.mtimeSeconds=r.readUInt32BE(),o.mtimeNanoseconds=r.readUInt32BE(),o.dev=r.readUInt32BE(),o.ino=r.readUInt32BE(),o.mode=r.readUInt32BE(),o.uid=r.readUInt32BE(),o.gid=r.readUInt32BE(),o.size=r.readUInt32BE(),o.oid=r.slice(20).toString("hex");const a=r.readUInt16BE();o.flags=(p=a,{assumeValid:Boolean(32768&p),extended:Boolean(16384&p),stage:(12288&p)>>12,nameLength:4095&p});const s=t.indexOf(0,r.tell()+1)-r.tell();if(s<1)throw new n.a(`Got a path length of: ${s}`);if(o.path=r.toString("utf8",s),o.path.includes("..\\")||o.path.includes("../"))throw new i.a(o.path);let c=8-(r.tell()-12)%8;for(0===c&&(c=8);c--;){const t=r.readUInt8();if(0!==t)throw new n.a(`Expected 1-8 null characters but got '${t}' after ${o.path}`);if(r.eof())throw new n.a("Unexpected end of file")}o.stages=[],e._addEntry(o),h++}var p;return e}))()}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(a.a)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(t=>t):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:e,stats:r,oid:n,stage:i=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=Object(s.a)(r);const o=t.from(e),a={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:e,oid:n,flags:{assumeValid:!1,extended:!1,stage:i,nameLength:o.length<4095?o.length:4095},stages:[]};this._addEntry(a),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const e of this._entries.keys())e.startsWith(t+"/")&&this._entries.delete(e);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join("\n")}static _entryToBuffer(e){return f((function*(){const r=t.from(e.path),n=8*Math.ceil((62+r.length+1)/8),i=t.alloc(n),a=new o.a(i),c=Object(s.a)(e);return a.writeUInt32BE(c.ctimeSeconds),a.writeUInt32BE(c.ctimeNanoseconds),a.writeUInt32BE(c.mtimeSeconds),a.writeUInt32BE(c.mtimeNanoseconds),a.writeUInt32BE(c.dev),a.writeUInt32BE(c.ino),a.writeUInt32BE(c.mode),a.writeUInt32BE(c.uid),a.writeUInt32BE(c.gid),a.writeUInt32BE(c.size),a.write(e.oid,20,"hex"),a.writeUInt16BE(function(e){const r=e.flags;return r.extended=!1,r.nameLength=Math.min(t.from(e.path).length,4095),(r.assumeValid?32768:0)+(r.extended?16384:0)+((3&r.stage)<<12)+(4095&r.nameLength)}(e)),a.write(e.path,r.length,"utf8"),i}))()}toObject(){var e=this;return f((function*(){const r=t.alloc(12),n=new o.a(r);n.write("DIRC",4,"utf8"),n.writeUInt32BE(2),n.writeUInt32BE(e.entriesFlat.length);let i=[];for(const t of e.entries)if(i.push(l._entryToBuffer(t)),t.stages.length>1)for(const e of t.stages)e&&e!==t&&i.push(l._entryToBuffer(e));i=yield Promise.all(i);const a=t.concat(i),s=t.concat([r,a]),u=yield Object(c.a)(s);return t.concat([s,t.from(u,"hex")])}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(36),i=r(23);function o(t){const e=new Map,r=function(t){if(!e.has(t)){const o={type:"tree",fullpath:t,basename:Object(n.a)(t),metadata:{},children:[]};e.set(t,o),o.parent=r(Object(i.a)(t)),o.parent&&o.parent!==o&&o.parent.children.push(o)}return e.get(t)},o=function(t,o){if(!e.has(t)){const a={type:"blob",fullpath:t,basename:Object(n.a)(t),metadata:o,parent:r(Object(i.a)(t)),children:[]};a.parent&&a.parent.children.push(a),e.set(t,a)}return e.get(t)};r(".");for(const e of t)o(e.path,e);return e}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return m}));const o=t=>{if("boolean"==typeof t)return t;if("true"===(t=t.trim().toLowerCase())||"yes"===t||"on"===t)return!0;if("false"===t||"no"===t||"off"===t)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${t}`)},a={core:{filemode:o,bare:o,logallrefupdates:o,symlinks:o,ignorecase:o,bigFileThreshold:t=>{if("number"==typeof t)return t;t=t.toLowerCase();let e=parseInt(t);return t.endsWith("k")&&(e*=1024),t.endsWith("m")&&(e*=1048576),t.endsWith("g")&&(e*=1073741824),e}}},s=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,c=/^[A-Za-z0-9-.]+$/,u=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,f=/^[A-Za-z][A-Za-z-]*$/,l=/^(.*?)( *[#;].*)$/,d=t=>{const e=l.exec(t);if(null==e)return t;const[r,n]=e.slice(1);return h(r)&&h(n)?`${r}${n}`:r},h=t=>(t.match(/(?:^|[^\\])"/g)||[]).length%2!=0,p=t=>t.split("").reduce((t,e,r,n)=>{const i='"'===e&&"\\"!==n[r-1],o="\\"===e&&'"'===n[r+1];return i||o?t:t+e},""),y=t=>null!=t?t.toLowerCase():null,g=(t,e,r)=>[y(t),e,y(r)].filter(t=>null!=t).join("."),v=t=>{const e=t.split("."),r=e.shift(),n=e.pop(),i=e.length?e.join("."):void 0;return{section:r,subsection:i,name:n,path:g(r,i,n),sectionPath:g(r,i,null),isSection:!!r}};class m{constructor(t){let e=null,r=null;this.parsedConfig=t?t.split("\n").map(t=>{let n=null,i=null;const o=t.trim(),a=(t=>{const e=s.exec(t);if(null!=e){const[t,r]=e.slice(1);return[t,r]}return null})(o),c=null!=a;if(c)[e,r]=a;else{const t=(t=>{const e=u.exec(t);if(null!=e){const[t,r="true"]=e.slice(1),n=d(r);return[t,p(n)]}return null})(o);null!=t&&([n,i]=t)}const f=g(e,r,n);return{line:t,isSection:c,section:e,subsection:r,name:n,value:i,path:f}}):[]}static from(t){return new m(t)}get(t,e=!1){var r=this;return i((function*(){const n=v(t).path,i=r.parsedConfig.filter(t=>t.path===n).map(({section:t,name:e,value:r})=>{const n=a[t]&&a[t][e];return n?n(r):r});return e?i:i.pop()}))()}getall(t){var e=this;return i((function*(){return e.get(t,!0)}))()}getSubsections(t){var e=this;return i((function*(){return e.parsedConfig.filter(e=>e.isSection&&e.section===t).map(t=>t.subsection)}))()}deleteSection(t,e){var r=this;return i((function*(){r.parsedConfig=r.parsedConfig.filter(r=>!(r.section===t&&r.subsection===e))}))()}append(t,e){var r=this;return i((function*(){return r.set(t,e,!0)}))()}set(t,e,r=!1){var n=this;return i((function*(){const{section:i,subsection:o,name:a,path:s,sectionPath:u,isSection:l}=v(t),d=(h=n.parsedConfig,p=t=>t.path===s,h.reduce((t,e,r)=>p(e)?r:t,-1));var h,p;if(null==e)-1!==d&&n.parsedConfig.splice(d,1);else if(-1!==d){const t=n.parsedConfig[d],i=Object.assign({},t,{name:a,value:e,modified:!0});r?n.parsedConfig.splice(d+1,0,i):n.parsedConfig[d]=i}else{const t=n.parsedConfig.findIndex(t=>t.path===u),r={section:i,subsection:o,name:a,value:e,modified:!0,path:s};if(c.test(i)&&f.test(a))if(t>=0)n.parsedConfig.splice(t+1,0,r);else{const t={isSection:l,section:i,subsection:o,modified:!0,path:u};n.parsedConfig.push(t,r)}}}))()}toString(){return this.parsedConfig.map(({line:t,section:e,subsection:r,name:n,value:i,modified:o=!1})=>o?null!=n&&null!=i?"string"==typeof i&&/[#;]/.test(i)?`\t${n} = "${i}"`:`\t${n} = ${i}`:null!=r?`[${e} "${r}"]`:`[${e}]`:t).join("\n")}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(73);class i{constructor(t=[]){this.rules=t}static from(t){const e=[];for(const r of t)e.push(n.a.from(r));return new i(e)}add(t){const e=n.a.from(t);this.rules.push(e)}translate(t){const e=[];for(const r of this.rules)for(const n of t){const t=r.translate(n);t&&e.push([n,t])}return e}translateOne(t){let e=null;for(const r of this.rules){const n=r.translate(t);n&&(e=n)}return e}localNamespaces(){return this.rules.filter(t=>t.matchPrefix).map(t=>t.localPath.replace(/\/$/,""))}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(2),i=r(86),o=r(12);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*({fs:t,cache:e,gitdir:r,oid:a,format:s="content",getExternalRefDelta:c}){let u=yield t.readdir(Object(o.join)(r,"objects/pack"));u=u.filter(t=>t.endsWith(".idx"));for(const o of u){const s=`${r}/objects/pack/${o}`,u=yield Object(i.a)({fs:t,cache:e,filename:s,getExternalRefDelta:c});if(u.error)throw new n.a(u.error);if(u.offsets.has(a)){if(!u.pack){const e=s.replace(/idx$/,"pack");u.pack=t.read(e)}const e=yield u.read({oid:a,getExternalRefDelta:c});return e.format="content",e.source=`objects/pack/${o.replace(/idx$/,"pack")}`,e}}return null}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Remote does not support the "${t}" so the "${e}" parameter cannot be used.`),this.code=this.name=i.code,this.data={capability:t,parameter:e}}}i.code="RemoteCapabilityError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=void 0===Array.prototype.flat?t=>t.reduce((t,e)=>t.concat(e),[]):t=>t.flat()},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(98),i=r(8),o=r(19),a=r(14),s=r(7),c=r(52);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function l(t){return d.apply(this,arguments)}function d(){return(d=f((function*({fs:t,cache:e,gitdir:r,oid:i,filepath:o}){if(o.startsWith("/"))throw new n.a("leading-slash");if(o.endsWith("/"))throw new n.a("trailing-slash");const a=i,s=yield Object(c.a)({fs:t,cache:e,gitdir:r,oid:i}),u=s.tree;if(""===o)i=s.oid;else{const n=o.split("/");i=yield h({fs:t,cache:e,gitdir:r,tree:u,pathArray:n,oid:a,filepath:o})}return i}))).apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return(p=f((function*({fs:t,cache:e,gitdir:r,tree:n,pathArray:c,oid:u,filepath:f}){const l=c.shift();for(const i of n)if(i.path===l){if(0===c.length)return i.oid;{const{type:l,object:d}=yield Object(s.a)({fs:t,cache:e,gitdir:r,oid:i.oid});if("tree"!==l)throw new o.a(u,l,"tree",f);return h({fs:t,cache:e,gitdir:r,tree:n=a.a.from(d),pathArray:c,oid:u,filepath:f})}}throw new i.a(`file or directory found at "${u}:${f}"`)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.r(e);var n=r(40);r.d(e,"AlreadyExistsError",(function(){return n.a}));var i=r(145);r.d(e,"AmbiguousError",(function(){return i.a}));var o=r(146);r.d(e,"CheckoutConflictError",(function(){return o.a}));var a=r(147);r.d(e,"CommitNotFetchedError",(function(){return a.a}));var s=r(78);r.d(e,"EmptyServerResponseError",(function(){return s.a}));var c=r(148);r.d(e,"FastForwardError",(function(){return c.a}));var u=r(149);r.d(e,"GitPushError",(function(){return u.a}));var f=r(57);r.d(e,"HttpError",(function(){return f.a}));var l=r(2);r.d(e,"InternalError",(function(){return l.a}));var d=r(98);r.d(e,"InvalidFilepathError",(function(){return d.a}));var h=r(35);r.d(e,"InvalidOidError",(function(){return h.a}));var p=r(33);r.d(e,"InvalidRefNameError",(function(){return p.a}));var y=r(150);r.d(e,"MaxDepthError",(function(){return y.a}));var g=r(96);r.d(e,"MergeNotSupportedError",(function(){return g.a}));var v=r(97);r.d(e,"MergeConflictError",(function(){return v.a}));var m=r(25);r.d(e,"MissingNameError",(function(){return m.a}));var b=r(31);r.d(e,"MissingParameterError",(function(){return b.a}));var w=r(151);r.d(e,"MultipleGitError",(function(){return w.a}));var _=r(79);r.d(e,"NoRefspecError",(function(){return _.a}));var j=r(8);r.d(e,"NotFoundError",(function(){return j.a}));var O=r(19);r.d(e,"ObjectTypeError",(function(){return O.a}));var x=r(41);r.d(e,"ParseError",(function(){return x.a}));var P=r(132);r.d(e,"PushRejectedError",(function(){return P.a}));var k=r(109);r.d(e,"RemoteCapabilityError",(function(){return k.a}));var E=r(80);r.d(e,"SmartHttpError",(function(){return E.a}));var A=r(81);r.d(e,"UnknownTransportError",(function(){return A.a}));var S=r(43);r.d(e,"UnsafeFilepathError",(function(){return S.a}));var R=r(82);r.d(e,"UrlParseError",(function(){return R.a}));var $=r(60);r.d(e,"UserCanceledError",(function(){return $.a}));var B=r(83);r.d(e,"UnmergedPathsError",(function(){return B.a}));var I=r(152);r.d(e,"IndexResetError",(function(){return I.a}));var T=r(153);r.d(e,"NoCommitError",(function(){return T.a}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(103),i=r(10);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class a{static demux(t){const e=i.a.streamReader(t),r=new n.a,a=new n.a,s=new n.a,c=function(){var n,i=(n=function*(){const n=yield e();if(null===n)return c();if(!0===n)return r.end(),s.end(),void(t.error?a.destroy(t.error):a.end());switch(n[0]){case 1:a.write(n.slice(1));break;case 2:s.write(n.slice(1));break;case 3:{const t=n.slice(1);return s.write(t),r.end(),s.end(),void a.destroy(new Error(t.toString("utf8")))}default:r.write(n)}c()},function(){var t=this,e=arguments;return new Promise((function(r,i){var a=n.apply(t,e);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)}))});return function(){return i.apply(this,arguments)}}();return c(),{packetlines:r,packfile:a,progress:s}}}},function(t,e,r){"use strict";function n(t,e,r){return e=e instanceof RegExp?e:new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),t.replace(e,r)}var i={clean:function(t){if("string"!=typeof t)throw new Error("Expected a string, received: "+t);return t=n(t,"./","/"),t=n(t,"..","."),t=n(t," ","-"),t=n(t,/^[~^:?*\\\-]/g,""),t=n(t,/[~^:?*\\]/g,"-"),t=n(t,/[~^:?*\\\-]$/g,""),t=n(t,"@{","-"),t=n(t,/\.$/g,""),t=n(t,/\/$/g,""),t=n(t,/\.lock$/g,"")}};t.exports=i},function(t,e,r){"use strict";const n=/(^|[/.])([/.]|$)|^@$|@{|[\x00-\x20\x7f~^:?*[\\]|\.lock(\/|$)/;t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("Reference name must be a string");return!n.test(t)&&(!!e||t.includes("/"))}},function(t,e,r){"use strict";var n=r(68),i=r(158),o=r(33),a=r(25);class s{static get timezoneOffsetForRefLogEntry(){const t=(new Date).getTimezoneOffset(),e=Math.abs(Math.floor(t/60)),r=Math.abs(t%60).toString().padStart(2,"0");return`${t>0?"-":"+"}${e.toString().padStart(2,"0")}${r}`}static createStashReflogEntry(t,e,r){const n=t.name.replace(/\s/g,""),i=Math.floor(Date.now()/1e3),o=s.timezoneOffsetForRefLogEntry;return`0000000000000000000000000000000000000000 ${e} ${n} ${t.email} ${i} ${o}\t${r}\n`}static getStashReflogEntry(t,e=!1){return t.split("\n").filter(t=>t).reverse().map((t,r)=>e?`stash@{${r}}: ${t.split("\t")[1]}`:t)}}var c=r(12),u=r(34),f=r(91),l=r(4);function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return p}));class p{constructor({fs:t,dir:e,gitdir:r=Object(c.join)(e,".git")}){Object.assign(this,{fs:t,dir:e,gitdir:r,_author:null})}static get refStash(){return"refs/stash"}static get refLogsStash(){return"logs/refs/stash"}get refStashPath(){return Object(c.join)(this.gitdir,p.refStash)}get refLogsStashPath(){return Object(c.join)(this.gitdir,p.refLogsStash)}getAuthor(){var t=this;return h((function*(){if(!t._author&&(t._author=yield Object(u.a)({fs:t.fs,gitdir:t.gitdir,author:{}}),!t._author))throw new a.a("author");return t._author}))()}getStashSHA(t,e){var r=this;return h((function*(){if(!(yield r.fs.exists(r.refStashPath)))return null;return(e||(yield r.readStashReflogs({parsed:!1})))[t].split(" ")[1]}))()}writeStashCommit({message:t,tree:e,parent:r}){var n=this;return h((function*(){return Object(i.a)({fs:n.fs,gitdir:n.gitdir,commit:{message:t,tree:e,parent:r,author:yield n.getAuthor(),committer:yield n.getAuthor()}})}))()}readStashCommit(t){var e=this;return h((function*(){const r=yield e.readStashReflogs({parsed:!1});if(0!==t&&(t<0||t>r.length-1))throw new o.a(`stash@${t}`,"number that is in range of [0, num of stash pushed]");const i=yield e.getStashSHA(t,r);return i?Object(n.a)({fs:e.fs,cache:{},gitdir:e.gitdir,oid:i}):{}}))()}writeStashRef(t){var e=this;return h((function*(){return l.a.writeRef({fs:e.fs,gitdir:e.gitdir,ref:p.refStash,value:t})}))()}writeStashReflogEntry({stashCommit:t,message:e}){var r=this;return h((function*(){const n=yield r.getAuthor(),i=s.createStashReflogEntry(n,t,e),o=r.refLogsStashPath;yield Object(f.a)({filepath:o,entry:i},h((function*(){const t=(yield r.fs.exists(o))?yield r.fs.read(o,"utf8"):"";yield r.fs.write(o,t+i,"utf8")})))}))()}readStashReflogs({parsed:t=!1}){var e=this;return h((function*(){if(!(yield e.fs.exists(e.refLogsStashPath)))return[];const r=(yield e.fs.read(e.refLogsStashPath)).toString();return s.getStashReflogEntry(r,t)}))()}}},function(t,e,r){
8
+ var n=r(142),i=r(143),o=r(144);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=s(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(c.isBuffer(e)){var r=0|h(e.length);return 0===(t=s(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e){if(f(e),t=s(t,e<0?0:0|h(e)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e){var r=e.length<0?0:0|h(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(n)return N(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var l=!0,d=0;d<c;d++)if(u(t,o+d)!==u(e,d)){l=!1;break}if(l)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return H(N(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function j(t,e,r,n){return _(t,e,r,n)}function O(t,e,r,n){return H(F(e),t,r,n)}function x(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function k(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,c,u=t[i],f=null,l=u>239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(f=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(f=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,r){return u(null,t,e,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,r){return function(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},c.allocUnsafe=function(t){return l(null,t)},c.allocUnsafeSlow=function(t){return l(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=c.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):y.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,r,n,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),l=0;l<s;++l)if(u[l]!==f[l]){o=u[l],a=f[l];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return j(this,t,e,r);case"base64":return O(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function A(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=z(t[o]);return i}function R(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function $(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function T(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(t,e,r,n,o){return o||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function D(t,e,r,n,o){return o||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},c.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},c.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUInt8=function(t,e){return e||$(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||$(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||$(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||$(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){e||$(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return e||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||$(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||$(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||$(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||$(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||B(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):T(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):T(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return D(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return D(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=c.isBuffer(t)?t:N(new c(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(71))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(64),i=r(53);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class a{static flush(){return t.from("0000","utf8")}static delim(){return t.from("0001","utf8")}static encode(e){"string"==typeof e&&(e=t.from(e));const r=e.length+4,n=Object(i.a)(4,r);return t.concat([t.from(n,"utf8"),e])}static streamReader(t){const e=new n.a(t);return(function(){var r,n=(r=function*(){try{let t=yield e.read(4);if(null==t)return!0;if(t=parseInt(t.toString("utf8"),16),0===t)return null;if(1===t)return null;const r=yield e.read(t-4);return null==r||r}catch(e){return t.error=e,!0}},function(){var t=this,e=arguments;return new Promise((function(n,i){var a=r.apply(t,e);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))});return function(){return n.apply(this,arguments)}}())}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(106);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}class a{static get({fs:t,gitdir:e}){return o((function*(){const r=yield t.read(`${e}/config`,{encoding:"utf8"});return n.a.from(r)}))()}static save({fs:t,gitdir:e,config:r}){return o((function*(){yield t.write(`${e}/config`,r.toString(),{encoding:"utf8"})}))()}}},function(t,e,r){"use strict";(function(e){function r(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var r,n="",i=0,o=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,s):n=t.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===t&&(t=e.cwd()),s=t),r(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];r(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return"";if((t=i.resolve(t))===(e=i.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,s=1;s<e.length&&47===e.charCodeAt(s);++s);for(var c=e.length-s,u=a<c?a:c,f=-1,l=0;l<=u;++l){if(l===u){if(c>u){if(47===e.charCodeAt(s+l))return e.slice(s+l+1);if(0===l)return e.slice(s+l)}else a>u&&(47===t.charCodeAt(n+l)?f=l:0===l&&(f=0));break}var d=t.charCodeAt(n+l);if(d!==e.charCodeAt(s+l))break;47===d&&(f=l)}var h="";for(l=n+f+1;l<=o;++l)l!==o&&47!==t.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+e.slice(s+f):(s+=f,47===e.charCodeAt(s)&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');r(t);var n,i=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var u=t.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===e.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=t.length),t.slice(i,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(i,o)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=s+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){r(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),o=47===i;o?(e.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,f=t.length-1,l=0;f>=n;--f)if(47!==(i=t.charCodeAt(f)))-1===c&&(u=!1,c=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!u){s=f+1;break}return-1===a||-1===c||0===l||1===l&&a===c-1&&a===s+1?-1!==c&&(e.base=e.name=0===s&&o?t.slice(1,c):t.slice(s,c)):(0===s&&o?(e.name=t.slice(1,a),e.base=t.slice(1,c)):(e.name=t.slice(s,a),e.base=t.slice(s,c)),e.ext=t.slice(a,c)),s>0?e.dir=t.slice(0,s-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this,r(56))},function(t,e,r){"use strict";r.d(e,"a",(function(){return p}));var n=r(26),i=r.n(n),o=r(83),a=r(104),s=r(54);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}let f=null;const l=Symbol("IndexCache");function d(){return(d=u((function*(t,e,r){const[n,i]=yield Promise.all([t.lstat(e),t.read(e)]),o=yield a.a.from(i);r.map.set(e,o),r.stats.set(e,n)}))).apply(this,arguments)}function h(){return(h=u((function*(t,e,r){const n=r.stats.get(e);if(void 0===n)return!0;if(null===n)return!1;const i=yield t.lstat(e);return null!==i&&Object(s.a)(n,i)}))).apply(this,arguments)}class p{static acquire({fs:t,gitdir:e,cache:r,allowUnmerged:n=!0},a){return u((function*(){r[l]||(r[l]={map:new Map,stats:new Map});const s=`${e}/index`;let c;null===f&&(f=new i.a({maxPending:1/0}));let p=[];return yield f.acquire(s,u((function*(){const e=r[l];(yield function(t,e,r){return h.apply(this,arguments)}(t,s,e))&&(yield function(t,e,r){return d.apply(this,arguments)}(t,s,e));const i=e.map.get(s);if(p=i.unmergedPaths,p.length&&!n)throw new o.a(p);if(c=yield a(i),i._dirty){const r=yield i.toObject();yield t.write(s,r),e.stats.set(s,yield t.lstat(s)),i._dirty=!1}}))),c}))()}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(2),i=r(43),o=r(51),a=r(133);function s(t){switch(t){case"040000":return"tree";case"100644":case"100755":case"120000":return"blob";case"160000":return"commit"}throw new n.a(`Unexpected GitTree entry mode: ${t}`)}function c(t){return!t.oid&&t.sha&&(t.oid=t.sha),t.mode=function(t){if("number"==typeof t&&(t=t.toString(8)),t.match(/^0?4.*/))return"040000";if(t.match(/^1006.*/))return"100644";if(t.match(/^1007.*/))return"100755";if(t.match(/^120.*/))return"120000";if(t.match(/^160.*/))return"160000";throw new n.a(`Could not understand file mode: ${t}`)}(t.mode),t.type||(t.type=s(t.mode)),t}class u{constructor(e){if(t.isBuffer(e))this._entries=function(t){const e=[];let r=0;for(;r<t.length;){const o=t.indexOf(32,r);if(-1===o)throw new n.a(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=t.indexOf(0,r);if(-1===a)throw new n.a(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let c=t.slice(r,o).toString("utf8");"40000"===c&&(c="040000");const u=s(c),f=t.slice(o+1,a).toString("utf8");if(f.includes("\\")||f.includes("/"))throw new i.a(f);const l=t.slice(a+1,a+21).toString("hex");r=a+21,e.push({mode:c,path:f,oid:l,type:u})}return e}(e);else{if(!Array.isArray(e))throw new n.a("invalid type passed to GitTree constructor");this._entries=e.map(c)}this._entries.sort(o.a)}static from(t){return new u(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join("\n")}toObject(){const e=[...this._entries];return e.sort(a.a),t.concat(e.map(e=>{const r=t.from(e.mode.replace(/^0/,"")),n=t.from(" "),i=t.from(e.path,"utf8"),o=t.from([0]),a=t.from(e.oid,"hex");return t.concat([r,n,i,o,a])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(84),i=r.n(n);function o(t){let e="";for(const r of new Uint8Array(t))r<16&&(e+="0"),e+=r.toString(16);return e}function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return u}));let c=null;function u(t){return f.apply(this,arguments)}function f(){return(f=s((function*(t){return null===c&&(c=yield p()),c?d(t):l(t)}))).apply(this,arguments)}function l(t){return(new i.a).update(t).digest("hex")}function d(t){return h.apply(this,arguments)}function h(){return(h=s((function*(t){return o(yield crypto.subtle.digest("SHA-1",t))}))).apply(this,arguments)}function p(){return y.apply(this,arguments)}function y(){return(y=s((function*(){try{return"da39a3ee5e6b4b0d3255bfef95601890afd80709"===(yield d(new Uint8Array([])))}catch(t){}return!1}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const e=this.buffer.slice(this._start,this._start+t);return this._start+=t,e}toString(t,e){const r=this.buffer.toString(t,this._start,this._start+e);return this._start+=e,r}write(t,e,r){const n=this.buffer.write(t,this._start,e,r);return this._start+=e,n}copy(t,e,r){const n=t.copy(this.buffer,this._start,e,r);return this._start+=n,n}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const e=this.buffer.writeUInt8(t,this._start);return this._start+=1,e}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const e=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,e}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const e=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,e}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(2),i=r(50),o=r(69),a=r(21),s=r(137),c=r(39);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class f{constructor(e){if("string"==typeof e)this._commit=e;else if(t.isBuffer(e))this._commit=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitCommit constructor");this._commit=f.render(e)}}static fromPayloadSignature({payload:t,signature:e}){const r=f.justHeaders(t),n=f.justMessage(t),i=Object(a.a)(r+"\ngpgsig"+Object(o.a)(e)+"\n"+n);return new f(i)}static from(t){return new f(t)}toObject(){return t.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return f.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Object(a.a)(t.slice(t.indexOf("\n\n")+2))}static justHeaders(t){return t.slice(0,t.indexOf("\n\n"))}parseHeaders(){const t=f.justHeaders(this._commit).split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={parent:[]};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.author&&(r.author=Object(c.a)(r.author)),r.committer&&(r.committer=Object(c.a)(r.committer)),r}static renderHeaders(t){let e="";if(t.tree?e+=`tree ${t.tree}\n`:e+="tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904\n",t.parent){if(void 0===t.parent.length)throw new n.a("commit 'parent' property should be an array");for(const r of t.parent)e+=`parent ${r}\n`}const r=t.author;e+=`author ${Object(i.a)(r)}\n`;const a=t.committer||t.author;return e+=`committer ${Object(i.a)(a)}\n`,t.gpgsig&&(e+="gpgsig"+Object(o.a)(t.gpgsig)),e}static render(t){return f.renderHeaders(t)+"\n"+Object(a.a)(t.message)}render(){return this._commit}withoutSignature(){const t=Object(a.a)(this._commit);if(-1===t.indexOf("\ngpgsig"))return t;const e=t.slice(0,t.indexOf("\ngpgsig")),r=t.slice(t.indexOf("-----END PGP SIGNATURE-----\n")+"-----END PGP SIGNATURE-----\n".length);return Object(a.a)(e+"\n"+r)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(s.a)(t)}static sign(t,e,r){return(n=function*(){const n=t.withoutSignature(),i=f.justMessage(t._commit);let{signature:s}=yield e({payload:n,secretKey:r});s=Object(a.a)(s);const c=f.justHeaders(t._commit)+"\ngpgsig"+Object(o.a)(s)+"\n"+i;return f.from(c)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){u(o,r,i,a,s,"next",t)}function s(t){u(o,r,i,a,s,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(22),i=r(140),o=r(87),a=r(15);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t){return f.apply(this,arguments)}function f(){return(f=c((function*({fs:e,gitdir:r,type:s,object:c,format:u="content",oid:f,dryRun:l=!1}){return"deflated"!==u&&("wrapped"!==u&&(c=n.a.wrap({type:s,object:c})),f=yield Object(a.a)(c),c=t.from(yield Object(o.a)(c))),l||(yield Object(i.a)({fs:e,gitdir:r,object:c,format:"deflated",oid:f})),f}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r,n){super(`Object ${t} ${n?`at ${n}`:""}was anticipated to be a ${r} but it is a ${e}.`),this.code=this.name=i.code,this.data={oid:t,actual:e,expected:r,filepath:n}}}i.code="ObjectTypeError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(2),i=r(50),o=r(21),a=r(39);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class c{constructor(e){if("string"==typeof e)this._tag=e;else if(t.isBuffer(e))this._tag=e.toString("utf8");else{if("object"!=typeof e)throw new n.a("invalid type passed to GitAnnotatedTag constructor");this._tag=c.render(e)}}static from(t){return new c(t)}static render(t){return`object ${t.object}\ntype ${t.type}\ntag ${t.tag}\ntagger ${Object(i.a)(t.tagger)}\n\n${t.message}\n${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf("\n\n"))}message(){const t=this.withoutSignature();return t.slice(t.indexOf("\n\n")+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split("\n"),e=[];for(const r of t)" "===r[0]?e[e.length-1]+="\n"+r.slice(1):e.push(r);const r={};for(const t of e){const e=t.slice(0,t.indexOf(" ")),n=t.slice(t.indexOf(" ")+1);Array.isArray(r[e])?r[e].push(n):r[e]=n}return r.tagger&&(r.tagger=Object(a.a)(r.tagger)),r.committer&&(r.committer=Object(a.a)(r.committer)),r}withoutSignature(){const t=Object(o.a)(this._tag);return-1===t.indexOf("\n-----BEGIN PGP SIGNATURE-----")?t:t.slice(0,t.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----"))}gpgsig(){if(-1===this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----"))return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+"-----END PGP SIGNATURE-----".length);return Object(o.a)(t)}payload(){return this.withoutSignature()+"\n"}toObject(){return t.from(this._tag,"utf8")}static sign(t,e,r){return(n=function*(){const n=t.payload();let{signature:i}=yield e({payload:n,secretKey:r});i=Object(o.a)(i);const a=n+i;return c.from(a)},function(){var t=this,e=arguments;return new Promise((function(r,i){var o=n.apply(t,e);function a(t){s(o,r,i,a,c,"next",t)}function c(t){s(o,r,i,a,c,"throw",t)}a(void 0)}))})();var n}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return t=(t=(t=t.replace(/\r/g,"")).replace(/^\n+/,"")).replace(/\n+$/,"")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return i}));var n=r(2);class i{static wrap({type:t,object:e}){const r=`${t} ${e.length}\0`,n=r.length,i=n+e.length,o=new Uint8Array(i);for(let t=0;t<n;t++)o[t]=r.charCodeAt(t);return o.set(e,n),o}static unwrap(e){const r=e.indexOf(32),i=e.indexOf(0),o=e.slice(0,r).toString("utf8"),a=e.slice(r+1,i).toString("utf8"),s=e.length-(i+1);if(parseInt(a)!==s)throw new n.a(`Length mismatch: expected ${a} bytes but got ${s} instead.`);return{type:o,object:t.from(e.slice(i+1))}}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return-1===e?".":0===e?"/":t.slice(0,e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(63);function i(t,e,r,n){if(void 0!==t&&void 0!==e)return[t,e];void 0===r&&(r=n.valueOf());const i=Math.floor(r/1e3);return[i,1e6*(r-1e3*i)]}function o(t){const[e,r]=i(t.ctimeSeconds,t.ctimeNanoseconds,t.ctimeMs,t.ctime),[o,a]=i(t.mtimeSeconds,t.mtimeNanoseconds,t.mtimeMs,t.mtime);return{ctimeSeconds:e%2**32,ctimeNanoseconds:r%2**32,mtimeSeconds:o%2**32,mtimeNanoseconds:a%2**32,dev:t.dev%2**32,ino:t.ino%2**32,mode:Object(n.a)(t.mode%2**32),uid:t.uid%2**32,gid:t.gid%2**32,size:t.size>-1?t.size%2**32:0}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`No name was provided for ${t} in the argument or in the .git/config file.`),this.code=this.name=i.code,this.data={role:t}}}i.code="MissingNameError"},function(t,e,r){"use strict";t.exports=r(160)},function(t,e,r){"use strict";var n=r(8),i=r(19),o=r(4),a=r(14),s=r(7),c=r(12),u=r(63),f=r(52);function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}class h{constructor({fs:t,gitdir:e,ref:r,cache:i}){var a=this;this.fs=t,this.cache=i,this.gitdir=e,this.mapPromise=d((function*(){const i=new Map;let s;try{s=yield o.a.resolve({fs:t,gitdir:e,ref:r})}catch(t){t instanceof n.a&&(s="4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const c=yield Object(f.a)({fs:t,cache:a.cache,gitdir:e,oid:s});return c.type="tree",c.mode="40000",i.set(".",c),i}))();const s=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return d((function*(){return s.type(t)}))()}mode(){var t=this;return d((function*(){return s.mode(t)}))()}stat(){var t=this;return d((function*(){return s.stat(t)}))()}content(){var t=this;return d((function*(){return s.content(t)}))()}oid(){var t=this;return d((function*(){return s.oid(t)}))()}}}readdir(t){var e=this;return d((function*(){const r=t._fullpath,{fs:n,cache:o,gitdir:u}=e,f=yield e.mapPromise,l=f.get(r);if(!l)throw new Error(`No obj for ${r}`);const d=l.oid;if(!d)throw new Error(`No oid for obj ${JSON.stringify(l)}`);if("tree"!==l.type)return null;const{type:h,object:p}=yield Object(s.a)({fs:n,cache:o,gitdir:u,oid:d});if(h!==l.type)throw new i.a(d,h,l.type);const y=a.a.from(p);for(const t of y)f.set(Object(c.join)(r,t.path),t);return y.entries().map(t=>Object(c.join)(r,t.path))}))()}type(t){var e=this;return d((function*(){if(!1===t._type){const r=yield e.mapPromise,{type:n}=r.get(t._fullpath);t._type=n}return t._type}))()}mode(t){var e=this;return d((function*(){if(!1===t._mode){const r=yield e.mapPromise,{mode:n}=r.get(t._fullpath);t._mode=Object(u.a)(parseInt(n,8))}return t._mode}))()}stat(t){return d((function*(){}))()}content(t){var e=this;return d((function*(){if(!1===t._content){const r=yield e.mapPromise,{fs:n,cache:i,gitdir:o}=e,a=r.get(t._fullpath).oid,{type:c,object:u}=yield Object(s.a)({fs:n,cache:i,gitdir:o,oid:a});t._content="blob"!==c?void 0:new Uint8Array(u)}return t._content}))()}oid(t){var e=this;return d((function*(){if(!1===t._oid){const r=(yield e.mapPromise).get(t._fullpath);t._oid=r.oid}return t._oid}))()}}var p=r(30);function y({ref:t="HEAD"}={}){const e=Object.create(null);return Object.defineProperty(e,p.a,{value:function({fs:e,gitdir:r,cache:n}){return new h({fs:e,gitdir:r,ref:t,cache:n})}}),Object.freeze(e),e}r.d(e,"a",(function(){return y}))},function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(t[n]=r[n])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},a={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)},function(t,e,r){"use strict";function n(t,e){return-(t<e)||+(t>e)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=Symbol("GitWalkSymbol")},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`The function requires a "${t}" parameter but none was provided.`),this.code=this.name=i.code,this.data={parameter:t}}}i.code="MissingParameterError"},function(t,e,r){"use strict";function n(t,e){const r=e-t;return Array.from({length:r},(e,r)=>t+r)}var i=r(110),o=r(30);class a{constructor(){this.value=null}consider(t){null!=t&&(null===this.value?this.value=t:t<this.value&&(this.value=t))}reset(){this.value=null}}function*s(t){const e=new a;let r;const n=[],i=t.length;for(let r=0;r<i;r++)n[r]=t[r].next().value,void 0!==n[r]&&e.consider(n[r]);if(null!==e.value)for(;;){const o=[];r=e.value,e.reset();for(let a=0;a<i;a++)void 0!==n[a]&&n[a]===r?(o[a]=n[a],n[a]=t[a].next().value):o[a]=null,void 0!==n[a]&&e.consider(n[a]);if(yield o,null===e.value)return}}function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,cache:e,dir:r,gitdir:a,trees:c,map:f=function(){var t=u((function*(t,e){return e}));return function(e,r){return t.apply(this,arguments)}}(),reduce:l=function(){var t=u((function*(t,e){const r=Object(i.a)(e);return void 0!==t&&r.unshift(t),r}));return function(e,r){return t.apply(this,arguments)}}(),iterate:d=((t,e)=>Promise.all([...e].map(t)))}){const h=c.map(n=>n[o.a]({fs:t,dir:r,gitdir:a,cache:e})),p=new Array(h.length).fill("."),y=n(0,h.length),g=function(){var t=u((function*(t){y.map(e=>{const r=t[e];t[e]=r&&new h[e].ConstructEntry(r)});const e=(yield Promise.all(y.map(e=>{const r=t[e];return r?h[e].readdir(r):[]}))).map(t=>(null===t?[]:t)[Symbol.iterator]());return{entries:t,children:s(e)}}));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=u((function*(t){const{entries:e,children:r}=yield g(t),n=e.find(t=>t&&t._fullpath)._fullpath,i=yield f(n,e);if(null!==i){let t=yield d(m,r);return t=t.filter(t=>void 0!==t),l(i,t)}}));return function(e){return t.apply(this,arguments)}}();return m(p)}))).apply(this,arguments)}r.d(e,"a",(function(){return f}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`"${t}" would be an invalid git reference. (Hint: a valid alternative would be "${e}".)`),this.code=this.name=i.code,this.data={ref:t,suggestion:e}}}i.code="InvalidRefNameError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(42),i=r(88);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,author:r,commit:o}){const a=Math.floor(Date.now()/1e3),s={name:yield Object(n.a)({fs:t,gitdir:e,path:"user.name"}),email:(yield Object(n.a)({fs:t,gitdir:e,path:"user.email"}))||"",timestamp:a,timezoneOffset:new Date(1e3*a).getTimezoneOffset()},c=Object(i.a)({},s,o?o.author:void 0,r);if(void 0!==c.name)return c}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=i.code,this.data={value:t}}}i.code="InvalidOidError"},function(t,e,r){"use strict";function n(t){const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return e>-1&&(t=t.slice(e+1)),t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(139),i=r.n(n),o=r(36),a=r(23),s=r(12);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class u{static isIgnored({fs:t,dir:e,gitdir:r=Object(s.join)(e,".git"),filepath:n}){return(u=function*(){if(".git"===Object(o.a)(n))return!0;if("."===n)return!1;let c="";const u=Object(s.join)(r,"info","exclude");(yield t.exists(u))&&(c=yield t.read(u,"utf8"));const f=[{gitignore:Object(s.join)(e,".gitignore"),filepath:n}],l=n.split("/").filter(Boolean);for(let t=1;t<l.length;t++){const r=l.slice(0,t).join("/"),n=l.slice(t).join("/");f.push({gitignore:Object(s.join)(e,r,".gitignore"),filepath:n})}let d=!1;for(const e of f){let r;try{r=yield t.read(e.gitignore,"utf8")}catch(t){if("NOENT"===t.code)continue}const n=i()().add(c);n.add(r);const o=Object(a.a)(e.filepath);if("."!==o&&n.ignores(o))return!0;d=d?!n.test(e.filepath).unignored:n.test(e.filepath).ignored}return d},function(){var t=this,e=arguments;return new Promise((function(r,n){var i=u.apply(t,e);function o(t){c(i,r,n,o,a,"next",t)}function a(t){c(i,r,n,o,a,"throw",t)}o(void 0)}))})();var u}}},function(t,e,r){"use strict";var n={};(0,r(28).assign)(n,r(198),r(201),r(131)),t.exports=n},function(t,e,r){"use strict";function n(t){const[,e,r,n,o]=t.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:e,email:r,timestamp:Number(n),timezoneOffset:i(o)}}function i(t){let[,e,r,n]=t.match(/(\+|-)(\d\d)(\d\d)/);return n=("+"===e?1:-1)*(60*Number(r)+Number(n)),0===(i=n)?i:-i;var i}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r=!0){super(`Failed to create ${t} at ${e} because it already exists.${r?` (Hint: use 'force: true' parameter to overwrite existing ${t}.)`:""}`),this.code=this.name=i.code,this.data={noun:t,where:e,canForce:r}}}i.code="AlreadyExistsError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Expected "${t}" but received "${e}".`),this.code=this.name=i.code,this.data={expected:t,actual:e}}}i.code="ParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(11);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,path:r}){return(yield n.a.get({fs:t,gitdir:e})).get(r)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=i.code,this.data={filepath:t}}}i.code="UnsafeFilepathError"},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return v}));var n=r(57),i=r(80),o=r(60),a=r(74),s=r(58),c=r(101),u=r(76);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}const y=(t,e)=>t.endsWith("?")?`${t}${e}`:`${t}/${e.replace(/^https?:\/\//,"")}`,g=(t,e)=>{(e.username||e.password)&&(t.Authorization=Object(a.a)(e)),e.headers&&Object.assign(t,e.headers)},m=function(){var e=p((function*(e){try{const r=t.from(yield Object(s.a)(e.body)),n=r.toString("utf8");return{preview:n.length<256?n:n.slice(0,256)+"...",response:n,data:r}}catch(t){return{}}}));return function(t){return e.apply(this,arguments)}}();class v{static capabilities(){return p((function*(){return["discover","connect"]}))()}static discover({http:t,onProgress:e,onAuth:r,onAuthSuccess:s,onAuthFailure:f,corsProxy:d,service:h,url:v,headers:b,protocolVersion:w}){return p((function*(){let{url:p,auth:_}=Object(c.a)(v);const j=d?y(d,p):p;let O,x;(_.username||_.password)&&(b.Authorization=Object(a.a)(_)),2===w&&(b["Git-Protocol"]="version=2");let P=!1;do{if(O=yield t.request({onProgress:e,method:"GET",url:`${j}/info/refs?service=${h}`,headers:b}),x=!1,401===O.statusCode||203===O.statusCode){const t=P?f:r;if(t){if(_=yield t(p,l({},_,{headers:l({},b)})),_&&_.cancel)throw new o.a;_&&(g(b,_),P=!0,x=!0)}}else 200===O.statusCode&&P&&s&&(yield s(p,_))}while(x);if(200!==O.statusCode){const{response:t}=yield m(O);throw new n.a(O.statusCode,O.statusMessage,t)}if(O.headers["content-type"]===`application/x-${h}-advertisement`){const t=yield Object(u.a)(O.body,{service:h});return t.auth=_,t}{const{preview:t,response:e,data:r}=yield m(O);try{const t=yield Object(u.a)([r],{service:h});return t.auth=_,t}catch(r){throw new i.a(t,e)}}}))()}static connect({http:t,onProgress:e,corsProxy:r,service:i,url:o,auth:a,body:s,headers:u}){return p((function*(){const f=Object(c.a)(o);f&&(o=f.url),r&&(o=y(r,o)),u["content-type"]=`application/x-${i}-request`,u.accept=`application/x-${i}-result`,g(u,a);const l=yield t.request({onProgress:e,method:"POST",url:`${o}/${i}`,body:s,headers:u});if(200!==l.statusCode){const{response:t}=m(l);throw new n.a(l.statusCode,l.statusMessage,t)}return l}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(67);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t,e){return s.apply(this,arguments)}function s(){return(s=o((function*(t,e){const r=Object(n.a)(t);for(;;){const{value:t,done:n}=yield r.next();if(t&&(yield e(t)),n)break}r.return&&r.return()}))).apply(this,arguments)}},function(t,e,r){"use strict";t.exports=TypeError},function(t,e,r){"use strict";var n=r(180);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},function(t,e,r){"use strict";var n=r(183);t.exports=Function.prototype.bind||n},function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r(26),i=r.n(n),o=r(12);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}let c=null;class u{static read({fs:t,gitdir:e}){return s((function*(){null===c&&(c=new i.a);const r=Object(o.join)(e,"shallow"),n=new Set;return yield c.acquire(r,s((function*(){const e=yield t.read(r,{encoding:"utf8"});return null===e?n:""===e.trim()?n:void e.trim().split("\n").map(t=>n.add(t))}))),n}))()}static write({fs:t,gitdir:e,oids:r}){return s((function*(){null===c&&(c=new i.a);const n=Object(o.join)(e,"shallow");if(r.size>0){const e=[...r].join("\n")+"\n";yield c.acquire(n,s((function*(){yield t.write(n,e,{encoding:"utf8"})})))}else yield c.acquire(n,s((function*(){yield t.rm(n)})))}))()}}},function(t,e,r){"use strict";function n({name:t,email:e,timestamp:r,timezoneOffset:n}){return`${t} <${e}> ${r} ${n=function(t){const e=function(t){return Math.sign(t)||(Object.is(t,-0)?-1:1)}((r=t,0===r?r:-r));var r;t=Math.abs(t);const n=Math.floor(t/60);t-=60*n;let i=String(n),o=String(t);i.length<2&&(i="0"+i);o.length<2&&(o="0"+o);return(-1===e?"-":"+")+i+o}(n)}`}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){return Object(n.a)(t.path,e.path)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(19),i=r(20),o=r(17),a=r(14),s=r(7);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,cache:e,gitdir:r,oid:c}){if("4b825dc642cb6eb9a060e54bf8d69288fbee4904"===c)return{tree:a.a.from([]),oid:c};const{type:u,object:l}=yield Object(s.a)({fs:t,cache:e,gitdir:r,oid:c});if("tag"===u)return f({fs:t,cache:e,gitdir:r,oid:c=i.a.from(l).parse().object});if("commit"===u)return f({fs:t,cache:e,gitdir:r,oid:c=o.a.from(l).parse().tree});if("tree"!==u)throw new n.a(c,u,"tree");return{tree:a.a.from(l),oid:c}}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t,e){const r=e.toString(16);return"0".repeat(t-r.length)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(24);function i(t,e,r=!0,i=!0){const o=Object(n.a)(t),a=Object(n.a)(e);return r&&o.mode!==a.mode||o.mtimeSeconds!==a.mtimeSeconds||o.ctimeSeconds!==a.ctimeSeconds||o.uid!==a.uid||o.gid!==a.gid||i&&o.ino!==a.ino||o.size!==a.size}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(4),i=r(102);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,fullname:r=!1,test:o=!1}){const a=yield n.a.resolve({fs:t,gitdir:e,ref:"HEAD",depth:2});if(o)try{yield n.a.resolve({fs:t,gitdir:e,ref:a})}catch(t){return}if(a.startsWith("refs/"))return r?a:Object(i.a)(a)}))).apply(this,arguments)}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,u=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&h())}function h(){if(!f){var t=s(d);f=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||f||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`HTTP Error: ${t} ${e}`),this.code=this.name=i.code,this.data={statusCode:t,statusMessage:e,response:r}}}i.code="HttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(45);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*(t){let e=0;const r=[];yield Object(n.a)(t,t=>{r.push(t),e+=t.byteLength});const i=new Uint8Array(e);let o=0;for(const t of r)i.set(t,o),o+=t.byteLength;return i}))).apply(this,arguments)}},function(t,e,r){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("The operation was canceled."),this.code=this.name=i.code,this.data={}}}i.code="UserCanceledError"},function(t,e,r){"use strict";var n=r(81),i=r(82);var o=r(44);r.d(e,"a",(function(){return a}));class a{static getRemoteHelperFor({url:t}){const e=new Map;e.set("http",o.a),e.set("https",o.a);const r=function({url:t}){if(t.startsWith("git@"))return{transport:"ssh",address:t};const e=t.match(/(\w+)(:\/\/|::)(.*)/);if(null===e)return;if("://"===e[2])return{transport:e[1],address:e[0]};if("::"===e[2])return{transport:e[1],address:e[3]}}({url:t});if(!r)throw new i.a(t);if(e.has(r.transport))return e.get(r.transport);throw new n.a(t,r.transport,"ssh"===r.transport?function(t){return t=(t=t.replace(/^git@([^:]+):/,"https://$1/")).replace(/^ssh:\/\//,"https://")}(t):void 0)}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(134),i=r.n(n),o=r(2),a=r(22),s=r(16),c=r(136),u=r(135),f=r(65),l=r(15);function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}class p{constructor(t){Object.assign(this,t),this.offsetCache={}}static fromIdx({idx:t,getExternalRefDelta:e}){return h((function*(){const r=new s.a(t);if("ff744f63"!==r.slice(4).toString("hex"))return;const n=r.readUInt32BE();if(2!==n)throw new o.a(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2147483648)throw new o.a("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");r.seek(r.tell()+1020);const i=r.readUInt32BE(),a=[];for(let t=0;t<i;t++){const e=r.slice(20).toString("hex");a[t]=e}r.seek(r.tell()+4*i);const c=new Map;for(let t=0;t<i;t++)c.set(a[t],r.readUInt32BE());const u=r.slice(20).toString("hex");return new p({hashes:a,crcs:{},offsets:c,packfileSha:u,getExternalRefDelta:e})}))()}static fromPack({pack:t,getExternalRefDelta:e,onProgress:r}){return h((function*(){const n={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},o={},s=t.slice(-20).toString("hex"),c=[],f={},d=new Map;let y=null,g=null;yield Object(u.a)([t],function(){var t=h((function*({data:t,type:e,reference:i,offset:a,num:s}){null===y&&(y=s);const c=Math.floor(100*(y-s)/y);c!==g&&r&&(yield r({phase:"Receiving objects",loaded:y-s,total:y})),g=c,["commit","tree","blob","tag"].includes(e=n[e])?o[a]={type:e,offset:a}:"ofs-delta"===e?o[a]={type:e,offset:a}:"ref-delta"===e&&(o[a]={type:e,offset:a})}));return function(e){return t.apply(this,arguments)}}());const m=Object.keys(o).map(Number);for(const[e,r]of m.entries()){const n=e+1===m.length?t.byteLength-20:m[e+1],a=o[r],s=i.a.buf(t.slice(r,n))>>>0;a.end=n,a.crc=s}const v=new p({pack:Promise.resolve(t),packfileSha:s,crcs:f,hashes:c,offsets:d,getExternalRefDelta:e});g=null;let b=0;const w=[0,0,0,0,0,0,0,0,0,0,0,0];for(let t in o){t=Number(t);const e=Math.floor(100*b/y);e!==g&&r&&(yield r({phase:"Resolving deltas",loaded:b,total:y})),b++,g=e;const n=o[t];if(!n.oid)try{v.readDepth=0,v.externalReadDepth=0;const{type:e,object:r}=yield v.readSlice({start:t});w[v.readDepth]+=1;const i=yield Object(l.a)(a.a.wrap({type:e,object:r}));n.oid=i,c.push(i),d.set(i,t),f[i]=n.crc}catch(t){continue}}return c.sort(),v}))()}toBuffer(){var e=this;return h((function*(){const r=[],n=(e,n)=>{r.push(t.from(e,n))};n("ff744f63","hex"),n("00000002","hex");const i=new s.a(t.alloc(1024));for(let t=0;t<256;t++){let r=0;for(const n of e.hashes)parseInt(n.slice(0,2),16)<=t&&r++;i.writeUInt32BE(r)}r.push(i.buffer);for(const t of e.hashes)n(t,"hex");const o=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)o.writeUInt32BE(e.crcs[t]);r.push(o.buffer);const a=new s.a(t.alloc(4*e.hashes.length));for(const t of e.hashes)a.writeUInt32BE(e.offsets.get(t));r.push(a.buffer),n(e.packfileSha,"hex");const c=t.concat(r),u=yield Object(l.a)(c),f=t.alloc(20);return f.write(u,"hex"),t.concat([c,f])}))()}load({pack:t}){var e=this;return h((function*(){e.pack=t}))()}unload(){var t=this;return h((function*(){t.pack=null}))()}read({oid:t}){var e=this;return h((function*(){if(!e.offsets.get(t)){if(e.getExternalRefDelta)return e.externalReadDepth++,e.getExternalRefDelta(t);throw new o.a(`Could not read object ${t} from packfile`)}const r=e.offsets.get(t);return e.readSlice({start:r})}))()}readSlice({start:e}){var r=this;return h((function*(){if(r.offsetCache[e])return Object.assign({},r.offsetCache[e]);r.readDepth++;if(!r.pack)throw new o.a("Tried to read from a GitPackIndex with no packfile loaded into memory");const n=(yield r.pack).slice(e),i=new s.a(n),a=i.readUInt8(),u=112&a;let l={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"}[u];if(void 0===l)throw new o.a("Unrecognized type: 0b"+u.toString(2));const d=15&a;let h=d;128&a&&(h=function(t,e){let r=e,n=4,i=null;do{i=t.readUInt8(),r|=(127&i)<<n,n+=7}while(128&i);return r}(i,d));let p=null,y=null;if("ofs_delta"===l){const t=function(t){const e=[];let r=0,n=0;do{r=t.readUInt8();const i=127&r;e.push(i),n=128&r}while(n);return e.reduce((t,e)=>t+1<<7|e,-1)}(i),n=e-t;({object:p,type:l}=yield r.readSlice({start:n}))}if("ref_delta"===l){const t=i.slice(20).toString("hex");({object:p,type:l}=yield r.read({oid:t}))}const g=n.slice(i.tell());if(y=t.from(yield Object(f.a)(g)),y.byteLength!==h)throw new o.a(`Packfile told us object would have length ${h} but it had length ${y.byteLength}`);return p&&(y=t.from(Object(c.a)(y,p))),r.readDepth>3&&(r.offsetCache[e]={type:l,object:y}),{type:l,format:"content",object:y}}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){let e=t>0?t>>12:0;4!==e&&8!==e&&10!==e&&14!==e&&(e=8);let r=511&t;return r=73&r?493:420,8!==e&&(r=0),(e<<12)+r}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a}));var n=r(67);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}class a{constructor(e){if(void 0===t)throw new Error("Missing Buffer dependency");this.stream=Object(n.a)(e),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}byte(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(1),t.buffer[t.undoCursor]}))()}chunk(){var t=this;return o((function*(){if(!t.eof()&&(t.started||(yield t._init()),t.cursor!==t.buffer.length||(yield t._loadnext(),!t._ended)))return t._moveCursor(t.buffer.length),t.buffer.slice(t.undoCursor,t.cursor)}))()}read(t){var e=this;return o((function*(){if(!e.eof())return e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t),e.buffer.slice(e.undoCursor,e.cursor)}))()}skip(t){var e=this;return o((function*(){e.eof()||(e.started||(yield e._init()),e.cursor+t>e.buffer.length&&(e._trim(),yield e._accumulate(t)),e._moveCursor(t))}))()}undo(){var t=this;return o((function*(){t.cursor=t.undoCursor}))()}_next(){var e=this;return o((function*(){e.started=!0;let{done:r,value:n}=yield e.stream.next();return r&&(e._ended=!0,!n)?t.alloc(0):(n&&(n=t.from(n)),n)}))()}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}_accumulate(e){var r=this;return o((function*(){if(r._ended)return;const n=[r.buffer];for(;r.cursor+e>s(n);){const t=yield r._next();if(r._ended)break;n.push(t)}r.buffer=t.concat(n)}))()}_loadnext(){var t=this;return o((function*(){t._discardedBytes+=t.buffer.length,t.undoCursor=0,t.cursor=0,t.buffer=yield t._next()}))()}_init(){var t=this;return o((function*(){t.buffer=yield t._next()}))()}}function s(t){return t.reduce((t,e)=>t+e.length,0)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(38),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}let s=!1;function c(t){return u.apply(this,arguments)}function u(){return(u=a((function*(t){return null===s&&(s=d()),s?f(t):i.a.inflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new DecompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function d(){try{if(new DecompressionStream("deflate"))return!0}catch(t){}return!1}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(42),i=r(88);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,author:r,committer:o,commit:a}){const s=Math.floor(Date.now()/1e3),c={name:yield Object(n.a)({fs:t,gitdir:e,path:"user.name"}),email:(yield Object(n.a)({fs:t,gitdir:e,path:"user.email"}))||"",timestamp:s,timezoneOffset:new Date(1e3*s).getTimezoneOffset()},u=Object(i.a)({},c,a?a.committer:void 0,r,o);if(void 0!==u.name)return u}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t){return t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():t[Symbol.iterator]?t[Symbol.iterator]():t.next?t:function(t){let e=[t];return{next:()=>Promise.resolve({done:0===e.length,value:e.pop()}),return:()=>(e=[],{}),[Symbol.asyncIterator](){return this}}}(t)}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";var n=r(19),i=r(20),o=r(17),a=r(7);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t){return f.apply(this,arguments)}function f(){return(f=c((function*({fs:t,cache:e,gitdir:r,oid:s}){const{type:c,object:f}=yield Object(a.a)({fs:t,cache:e,gitdir:r,oid:s});if("tag"===c)return u({fs:t,cache:e,gitdir:r,oid:s=i.a.from(f).parse().object});if("commit"!==c)throw new n.a(s,c,"commit");return{commit:o.a.from(f),oid:s}}))).apply(this,arguments)}function l(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){l(o,n,i,a,s,"next",t)}function s(t){l(o,n,i,a,s,"throw",t)}a(void 0)}))}}function h(t){return p.apply(this,arguments)}function p(){return(p=d((function*({fs:t,cache:e,gitdir:r,oid:n}){const{commit:i,oid:o}=yield u({fs:t,cache:e,gitdir:r,oid:n});return{oid:o,commit:i.parse(),payload:i.withoutSignature()}}))).apply(this,arguments)}r.d(e,"a",(function(){return h}))},function(t,e,r){"use strict";function n(t){return t.trim().split("\n").map(t=>" "+t).join("\n")+"\n"}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";const n=(t,e)=>function(...r){return new(0,e.promiseModule)((n,i)=>{e.multiArgs?r.push((...t)=>{e.errorFirst?t[0]?i(t):(t.shift(),n(t)):n(t)}):e.errorFirst?r.push((t,e)=>{t?i(t):n(e)}):r.push(n),t.apply(this,r)})};t.exports=(t,e)=>{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const r=typeof t;if(null===t||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":r}\``);const i=t=>{const r=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(r):!e.exclude.some(r)};let o;o="function"===r?function(...r){return e.excludeMain?t(...r):n(t,e).apply(this,r)}:Object.create(Object.getPrototypeOf(t));for(const r in t){const a=t[r];o[r]="function"==typeof a&&i(r)?n(a,e):a}return o}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n={name:"isomorphic-git",version:"1.34.0",agent:"git/isomorphic-git@1.34.0"}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(2);class i{constructor({remotePath:t,localPath:e,force:r,matchPrefix:n}){Object.assign(this,{remotePath:t,localPath:e,force:r,matchPrefix:n})}static from(t){const[e,r,o,a,s]=t.match(/^(\+?)(.*?)(\*?):(.*?)(\*?)$/).slice(1),c="+"===e,u="*"===o;if(u!==("*"===s))throw new n.a("Invalid refspec");return new i({remotePath:r,localPath:a,force:c,matchPrefix:u})}translate(t){if(this.matchPrefix){if(t.startsWith(this.remotePath))return this.localPath+t.replace(this.remotePath,"")}else if(t===this.remotePath)return this.localPath;return null}reverseTranslate(t){if(this.matchPrefix){if(t.startsWith(this.localPath))return this.remotePath+t.replace(this.localPath,"")}else if(t===this.localPath)return this.remotePath;return null}}},function(t,e,r){"use strict";(function(t){function n({username:e="",password:r=""}){return`Basic ${t.from(`${e}:${r}`).toString("base64")}`}r.d(e,"a",(function(){return n}))}).call(this,r(9).Buffer)},function(t,e,r){"use strict";var n=r(13),i=r(29),o=r(105),a=r(2);var s=r(24);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}class f{constructor({fs:t,gitdir:e,cache:r}){this.treePromise=n.a.acquire({fs:t,gitdir:e,cache:r},function(){var t=u((function*(t){return Object(o.a)(t.entries)}));return function(e){return t.apply(this,arguments)}}());const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._oid=!1}type(){var t=this;return u((function*(){return i.type(t)}))()}mode(){var t=this;return u((function*(){return i.mode(t)}))()}stat(){var t=this;return u((function*(){return i.stat(t)}))()}content(){var t=this;return u((function*(){return i.content(t)}))()}oid(){var t=this;return u((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return u((function*(){const r=t._fullpath,n=(yield e.treePromise).get(r);if(!n)return null;if("blob"===n.type)return null;if("tree"!==n.type)throw new Error(`ENOTDIR: not a directory, scandir '${r}'`);const o=n.children.map(t=>t.fullpath);return o.sort(i.a),o}))()}type(t){return u((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return u((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return u((function*(){if(!1===t._stat){const r=(yield e.treePromise).get(t._fullpath);if(!r)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);const n="tree"===r.type?{}:Object(s.a)(r.metadata);t._type="tree"===r.type?"tree":function(t){switch(t){case 16384:return"tree";case 33188:case 33261:case 40960:return"blob";case 57344:return"commit"}throw new a.a(`Unexpected GitTree entry mode: ${t.toString(8)}`)}(n.mode),t._mode=n.mode,"tree"===r.type?t._stat=void 0:t._stat=n}return t._stat}))()}content(t){return u((function*(){}))()}oid(t){var e=this;return u((function*(){if(!1===t._oid){const r=(yield e.treePromise).get(t._fullpath);t._oid=r.metadata.oid}return t._oid}))()}}var l=r(30);function d(){const t=Object.create(null);return Object.defineProperty(t,l.a,{value:function({fs:t,gitdir:e,cache:r}){return new f({fs:t,gitdir:e,cache:r})}}),Object.freeze(t),t}r.d(e,"a",(function(){return d}))},function(t,e,r){"use strict";var n=r(78),i=r(41),o=r(10);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*(t){const e={};let r;for(;r=yield t(),!0!==r;){if(null===r)continue;r=r.toString("utf8").replace(/\n$/,"");const t=r.indexOf("=");if(t>-1){const n=r.slice(0,t),i=r.slice(t+1);e[n]=i}else e[r]=!0}return{protocolVersion:2,capabilities2:e}}))).apply(this,arguments)}function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t,e){return h.apply(this,arguments)}function h(){return(h=l((function*(t,{service:e}){const r=new Set,a=new Map,s=new Map,u=o.a.streamReader(t);let f=yield u();for(;null===f;)f=yield u();if(!0===f)throw new n.a;if(f.includes("version 2"))return c(u);if(f.toString("utf8").replace(/\n$/,"")!==`# service=${e}`)throw new i.a(`# service=${e}\\n`,f.toString("utf8"));let l=yield u();for(;null===l;)l=yield u();if(!0===l)return{capabilities:r,refs:a,symrefs:s};if(l=l.toString("utf8"),l.includes("version 2"))return c(u);const[d,h]=p(l,"\0","\\x00");if(h.split(" ").map(t=>r.add(t)),"0000000000000000000000000000000000000000 capabilities^{}"!==d){const[t,e]=p(d," "," ");for(a.set(e,t);;){const t=yield u();if(!0===t)break;if(null!==t){const[e,r]=p(t.toString("utf8")," "," ");a.set(r,e)}}}for(const t of r)if(t.startsWith("symref=")){const e=t.match(/symref=([^:]+):(.*)/);3===e.length&&s.set(e[1],e[2])}return{protocolVersion:1,capabilities:r,refs:a,symrefs:s}}))).apply(this,arguments)}function p(t,e,r){const n=t.trim().split(e);if(2!==n.length)throw new i.a(`Two strings separated by '${r}'`,t.toString("utf8"));return n}r.d(e,"a",(function(){return d}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(14),i=r(18);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,tree:r}){const o=n.a.from(r).toObject();return yield Object(i.a)({fs:t,gitdir:e,type:"tree",object:o,format:"content"})}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("Empty response from git server."),this.code=this.name=i.code,this.data={}}}i.code="EmptyServerResponseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not find a fetch refspec for remote "${t}". Make sure the config file has an entry like the following:\n[remote "${t}"]\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n`),this.code=this.name=i.code,this.data={remote:t}}}i.code="NoRefspecError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Remote did not reply using the "smart" HTTP protocol. Expected "001e# service=git-upload-pack" but received: ${t}`),this.code=this.name=i.code,this.data={preview:t,response:e}}}i.code="SmartHttpError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`Git remote "${t}" uses an unrecognized transport protocol: "${e}"`),this.code=this.name=i.code,this.data={url:t,transport:e,suggestion:r}}}i.code="UnknownTransportError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Cannot parse remote URL: "${t}"`),this.code=this.name=i.code,this.data={url:t}}}i.code="UrlParseError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Modifying the index is not possible because you have unmerged files: ${t.toString}. Fix them up in the work tree, and then use 'git add/rm as appropriate to mark resolution and make a commit.`),this.code=this.name=i.code,this.data={filepaths:t}}}i.code="UnmergedPathsError"},function(t,e,r){"use strict";var n=r(161),i=r(162),o=r(117).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=(e=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|e>>>31;for(var h=0;h<80;++h){var p=~~(h/20),y=u(n)+l(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t){return a.apply(this,arguments)}function a(){return(a=i((function*({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`,i=yield t.read(`${e}/${n}`);return i?{object:i,format:"deflated",source:n}:null}))).apply(this,arguments)}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(62);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}const a=Symbol("PackfileCache");function s(){return(s=o((function*({fs:t,filename:e,getExternalRefDelta:r,emitter:i,emitterPrefix:o}){const a=yield t.read(e);return n.a.fromIdx({idx:a,getExternalRefDelta:r})}))).apply(this,arguments)}function c({fs:t,cache:e,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}){e[a]||(e[a]=new Map);let c=e[a].get(r);return c||(c=function(t){return s.apply(this,arguments)}({fs:t,filename:r,getExternalRefDelta:n,emitter:i,emitterPrefix:o}),e[a].set(r,c)),c}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(38),i=r.n(n);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}let s=null;function c(t){return u.apply(this,arguments)}function u(){return(u=a((function*(t){return null===s&&(s=d()),s?f(t):i.a.deflate(t)}))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=a((function*(t){const e=new CompressionStream("deflate"),r=new Blob([t]).stream().pipeThrough(e);return new Uint8Array(yield new Response(r).arrayBuffer())}))).apply(this,arguments)}function d(){try{return new CompressionStream("deflate").writable.close(),new Blob([]).stream().cancel(),!0}catch(t){return!1}}},function(t,e,r){"use strict";function n(t,...e){for(const r of e)if(r)for(const e of Object.keys(r)){const n=r[e];void 0!==n&&(t[e]=n)}return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t,e){return a.apply(this,arguments)}function a(){return(a=i((function*(t,e){return!(!t&&!e)&&(!(!t||e)||(!(t||!e)||("tree"!==(yield t.type())||"tree"!==(yield e.type()))&&((yield t.type())!==(yield e.type())||(yield t.mode())!==(yield e.mode())||(yield t.oid())!==(yield e.oid()))))}))).apply(this,arguments)}r.d(e,"a",(function(){return o}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(111),i=r(52);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,cache:e,gitdir:r,oid:o,filepath:a}){void 0!==a&&(o=yield Object(n.a)({fs:t,cache:e,gitdir:r,oid:o,filepath:a}));const{tree:s,oid:c}=yield Object(i.a)({fs:t,cache:e,gitdir:r,oid:o});return{oid:c,tree:s.entries()}}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return O})),r.d(e,"c",(function(){return S})),r.d(e,"b",(function(){return $}));var n=r(26),i=r.n(n),o=r(75),a=r(27),s=r(99),c=r(32),u=r(77),f=r(2),l=r(8),d=r(37),h=r(13),p=r(7),y=r(85),g=r(18),m=r(12),v=r(156);function b(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function w(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){b(o,n,i,a,s,"next",t)}function s(t){b(o,n,i,a,s,"throw",t)}a(void 0)}))}}const _={stage:o.a,workdir:s.a};let j;function O(t,e){return x.apply(this,arguments)}function x(){return(x=w((function*(t,e){return void 0===j&&(j=new i.a),j.acquire(t,e)}))).apply(this,arguments)}function P(t,e,r,n){return k.apply(this,arguments)}function k(){return(k=w((function*(t,e,r,n,i=null){const o=Object(m.join)(r,n),a=yield t.lstat(o);if(!a)throw new l.a(o);if(a.isDirectory())throw new f.a(`${o}: file expected, but found directory`);const s=i?yield Object(y.a)({fs:t,gitdir:e,oid:i}):void 0;let c=s?i:void 0;return s||(yield O({fs:t,gitdir:e,currentFilepath:o},w((function*(){const r=a.isSymbolicLink()?yield t.readlink(o).then(v.a):yield t.read(o);if(null===r)throw new l.a(o);c=yield Object(g.a)({fs:t,gitdir:e,type:"blob",object:r})})))),c}))).apply(this,arguments)}function E(t){return A.apply(this,arguments)}function A(){return(A=w((function*({fs:t,dir:e,gitdir:r,entries:n}){function i(t){return o.apply(this,arguments)}function o(){return(o=w((function*(n){if("tree"===n.type){if(!n.oid){const e=yield Promise.all(n.children.map(i));n.oid=yield Object(u.a)({fs:t,gitdir:r,tree:e}),n.mode=16384}}else"blob"===n.type&&(n.oid=yield P(t,r,e,n.path,n.oid),n.mode=33188);return n.path=n.path.split("/").pop(),n}))).apply(this,arguments)}return Promise.all(n.map(i))}))).apply(this,arguments)}function S(t){return R.apply(this,arguments)}function R(){return(R=w((function*({fs:t,dir:e,gitdir:r,treePair:n}){const i="stage"===n[1],o=n.map(t=>"string"==typeof t?_[t]():t),a=[],s=function(){var n=w((function*(n,[i,o]){if("."!==n&&!(yield d.a.isIgnored({fs:t,dir:e,gitdir:r,filepath:n})))return o?((!i||(yield i.oid())!==(yield o.oid())&&void 0!==(yield o.oid()))&&a.push([i,o]),{mode:yield o.mode(),path:n,oid:yield o.oid(),type:yield o.type()}):void 0}));return function(t,e){return n.apply(this,arguments)}}(),f=function(){var t=w((function*(t,e){return e=e.filter(Boolean),t?(t.children=e,t):e.length>0?e:void 0}));return function(e,r){return t.apply(this,arguments)}}(),l=function(){var r=w((function*(r,n){const o=[];for(const r of n){const[n,s]=r;i?s&&((yield t.exists(`${e}/${s.toString()}`))?o.push(r):a.push([null,s])):n&&(s?o.push(r):a.push([n,null]))}return o.length?Promise.all(o.map(r)):[]}));return function(t,e){return r.apply(this,arguments)}}(),h=yield Object(c.a)({fs:t,cache:{},dir:e,gitdir:r,trees:o,map:s,reduce:f,iterate:l});if(0===a.length||0===h.length)return null;const p=(yield E({fs:t,dir:e,gitdir:r,entries:h})).filter(Boolean).map(t=>({mode:t.mode,path:t.path,oid:t.oid,type:t.type}));return Object(u.a)({fs:t,gitdir:r,tree:p})}))).apply(this,arguments)}function $(t){return B.apply(this,arguments)}function B(){return(B=w((function*({fs:t,dir:e,gitdir:r,stashCommit:n,parentCommit:i,wasStaged:o}){const s=[],u=[],f=yield Object(c.a)({fs:t,cache:{},dir:e,gitdir:r,trees:[Object(a.a)({ref:i}),Object(a.a)({ref:n})],map:(l=w((function*(n,[i,a]){if("."===n||(yield d.a.isIgnored({fs:t,dir:e,gitdir:r,filepath:n})))return;const c=a?yield a.type():yield i.type();if("tree"!==c&&"blob"!==c)return;if(!a&&i){const t="tree"===c?"rmdir":"rm";return"tree"===c&&s.push(n),"blob"===c&&o&&u.push({filepath:n,oid:yield i.oid()}),{method:t,filepath:n}}const f=yield a.oid();return i&&(yield i.oid())===f?void 0:"tree"===c?{method:"mkdir",filepath:n}:(o&&u.push({filepath:n,oid:f,stats:yield t.lstat(Object(m.join)(e,n))}),{method:"write",filepath:n,oid:f})})),function(t,e){return l.apply(this,arguments)})});var l;yield O({fs:t,gitdir:r,dirRemoved:s,ops:f},w((function*(){for(const n of f){const i=Object(m.join)(e,n.filepath);switch(n.method){case"rmdir":yield t.rmdir(i);break;case"mkdir":yield t.mkdir(i);break;case"rm":yield t.rm(i);break;case"write":if(!s.some(t=>i.startsWith(t))){const{object:e}=yield Object(p.a)({fs:t,cache:{},gitdir:r,oid:n.oid});(yield t.exists(i))&&(yield t.rm(i)),yield t.write(i,e)}}}}))),yield h.a.acquire({fs:t,gitdir:r,cache:{}},function(){var t=w((function*(t){u.forEach(({filepath:e,stats:r,oid:n})=>{t.insert({filepath:e,stats:r,oid:n})})}));return function(e){return t.apply(this,arguments)}}())}))).apply(this,arguments)}},function(t,e,r){"use strict";var n=r(48),i=r(46),o=r(93),a=r(126);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(n,o,t)}},function(t,e,r){"use strict";t.exports=Function.prototype.call},function(t,e,r){"use strict";t.exports=Function.prototype.apply},function(t,e,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("Merges with conflicts are not supported yet."),this.code=this.name=i.code,this.data={}}}i.code="MergeNotSupportedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r,n){super(`Automatic merge failed with one or more merge conflicts in the following files: ${t.toString()}. Fix conflicts then commit the result.`),this.code=this.name=i.code,this.data={filepaths:t,bothModified:e,deleteByUs:r,deleteByTheirs:n}}}i.code="MergeConflictError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){let e="invalid filepath";"leading-slash"===t||"trailing-slash"===t?e='"filepath" parameter should not include leading or trailing directory separators because these can cause problems on some platforms.':"directory"===t&&(e='"filepath" should not be a directory.'),super(e),this.code=this.name=i.code,this.data={reason:t}}}i.code="InvalidFilepathError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(212),i=r(30);function o(){const t=Object.create(null);return Object.defineProperty(t,i.a,{value:function({fs:t,dir:e,gitdir:r,cache:i}){return new n.a({fs:t,dir:e,gitdir:r,cache:i})}}),Object.freeze(t),t}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(12);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t,e){return s.apply(this,arguments)}function s(){return(s=o((function*(t,e){const r=yield t.readdir(e);null==r?yield t.rm(e):r.length?yield Promise.all(r.map(r=>{const i=Object(n.join)(e,r);return t.lstat(i).then(e=>{if(e)return e.isDirectory()?a(t,i):t.rm(i)})})).then(()=>t.rmdir(e)):yield t.rmdir(e)}))).apply(this,arguments)}},function(t,e,r){"use strict";function n(t){let e=t.match(/^https?:\/\/([^/]+)@/);if(null==e)return{url:t,auth:{}};e=e[1];const[r,n]=e.split(":");return{url:t=t.replace(`${e}@`,""),auth:{username:r,password:n}}}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));const n=new RegExp("^refs/(heads/|tags/|remotes/)?(.*)");function i(t){const e=n.exec(t);return e?"remotes/"===e[1]&&t.endsWith("/HEAD")?e[2].slice(0,-5):e[2]:t}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}r.d(e,"a",(function(){return i}));class i{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const e=this._waiting;this._waiting=null,e({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}next(){var t,e=this;return(t=function*(){if(e._queue.length>0)return{value:e._queue.shift()};if(e._ended)return{done:!0};if(e._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{e._waiting=t})},function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))})()}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return l}));var n=r(2),i=r(43),o=r(16),a=r(51),s=r(24),c=r(15);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}class l{constructor(t,e){this._dirty=!1,this._unmergedPaths=e||new Set,this._entries=t||new Map}_addEntry(t){if(0===t.flags.stage)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let e=this._entries.get(t.path);e||(this._entries.set(t.path,t),e=t),e.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static from(e){return f((function*(){if(t.isBuffer(e))return l.fromBuffer(e);if(null===e)return new l(null);throw new n.a("invalid type passed to GitIndex.from")}))()}static fromBuffer(t){return f((function*(){if(0===t.length)throw new n.a("Index file is empty (.git/index)");const e=new l,r=new o.a(t),a=r.toString("utf8",4);if("DIRC"!==a)throw new n.a(`Invalid dircache magic file number: ${a}`);const s=yield Object(c.a)(t.slice(0,-20)),u=t.slice(-20).toString("hex");if(u!==s)throw new n.a(`Invalid checksum in GitIndex buffer: expected ${u} but saw ${s}`);const f=r.readUInt32BE();if(2!==f)throw new n.a(`Unsupported dircache version: ${f}`);const d=r.readUInt32BE();let h=0;for(;!r.eof()&&h<d;){const o={};o.ctimeSeconds=r.readUInt32BE(),o.ctimeNanoseconds=r.readUInt32BE(),o.mtimeSeconds=r.readUInt32BE(),o.mtimeNanoseconds=r.readUInt32BE(),o.dev=r.readUInt32BE(),o.ino=r.readUInt32BE(),o.mode=r.readUInt32BE(),o.uid=r.readUInt32BE(),o.gid=r.readUInt32BE(),o.size=r.readUInt32BE(),o.oid=r.slice(20).toString("hex");const a=r.readUInt16BE();o.flags=(p=a,{assumeValid:Boolean(32768&p),extended:Boolean(16384&p),stage:(12288&p)>>12,nameLength:4095&p});const s=t.indexOf(0,r.tell()+1)-r.tell();if(s<1)throw new n.a(`Got a path length of: ${s}`);if(o.path=r.toString("utf8",s),o.path.includes("..\\")||o.path.includes("../"))throw new i.a(o.path);let c=8-(r.tell()-12)%8;for(0===c&&(c=8);c--;){const t=r.readUInt8();if(0!==t)throw new n.a(`Expected 1-8 null characters but got '${t}' after ${o.path}`);if(r.eof())throw new n.a("Unexpected end of file")}o.stages=[],e._addEntry(o),h++}var p;return e}))()}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(a.a)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(t=>t):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:e,stats:r,oid:n,stage:i=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=Object(s.a)(r);const o=t.from(e),a={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:e,oid:n,flags:{assumeValid:!1,extended:!1,stage:i,nameLength:o.length<4095?o.length:4095},stages:[]};this._addEntry(a),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const e of this._entries.keys())e.startsWith(t+"/")&&this._entries.delete(e);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join("\n")}static _entryToBuffer(e){return f((function*(){const r=t.from(e.path),n=8*Math.ceil((62+r.length+1)/8),i=t.alloc(n),a=new o.a(i),c=Object(s.a)(e);return a.writeUInt32BE(c.ctimeSeconds),a.writeUInt32BE(c.ctimeNanoseconds),a.writeUInt32BE(c.mtimeSeconds),a.writeUInt32BE(c.mtimeNanoseconds),a.writeUInt32BE(c.dev),a.writeUInt32BE(c.ino),a.writeUInt32BE(c.mode),a.writeUInt32BE(c.uid),a.writeUInt32BE(c.gid),a.writeUInt32BE(c.size),a.write(e.oid,20,"hex"),a.writeUInt16BE(function(e){const r=e.flags;return r.extended=!1,r.nameLength=Math.min(t.from(e.path).length,4095),(r.assumeValid?32768:0)+(r.extended?16384:0)+((3&r.stage)<<12)+(4095&r.nameLength)}(e)),a.write(e.path,r.length,"utf8"),i}))()}toObject(){var e=this;return f((function*(){const r=t.alloc(12),n=new o.a(r);n.write("DIRC",4,"utf8"),n.writeUInt32BE(2),n.writeUInt32BE(e.entriesFlat.length);let i=[];for(const t of e.entries)if(i.push(l._entryToBuffer(t)),t.stages.length>1)for(const e of t.stages)e&&e!==t&&i.push(l._entryToBuffer(e));i=yield Promise.all(i);const a=t.concat(i),s=t.concat([r,a]),u=yield Object(c.a)(s);return t.concat([s,t.from(u,"hex")])}))()}}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(36),i=r(23);function o(t){const e=new Map,r=function(t){if(!e.has(t)){const o={type:"tree",fullpath:t,basename:Object(n.a)(t),metadata:{},children:[]};e.set(t,o),o.parent=r(Object(i.a)(t)),o.parent&&o.parent!==o&&o.parent.children.push(o)}return e.get(t)},o=function(t,o){if(!e.has(t)){const a={type:"blob",fullpath:t,basename:Object(n.a)(t),metadata:o,parent:r(Object(i.a)(t)),children:[]};a.parent&&a.parent.children.push(a),e.set(t,a)}return e.get(t)};r(".");for(const e of t)o(e.path,e);return e}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return v}));const o=t=>{if("boolean"==typeof t)return t;if("true"===(t=t.trim().toLowerCase())||"yes"===t||"on"===t)return!0;if("false"===t||"no"===t||"off"===t)return!1;throw Error(`Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${t}`)},a={core:{filemode:o,bare:o,logallrefupdates:o,symlinks:o,ignorecase:o,bigFileThreshold:t=>{if("number"==typeof t)return t;t=t.toLowerCase();let e=parseInt(t);return t.endsWith("k")&&(e*=1024),t.endsWith("m")&&(e*=1048576),t.endsWith("g")&&(e*=1073741824),e}}},s=/^\[([A-Za-z0-9-.]+)(?: "(.*)")?\]$/,c=/^[A-Za-z0-9-.]+$/,u=/^([A-Za-z][A-Za-z-]*)(?: *= *(.*))?$/,f=/^[A-Za-z][A-Za-z-]*$/,l=/^(.*?)( *[#;].*)$/,d=t=>{const e=l.exec(t);if(null==e)return t;const[r,n]=e.slice(1);return h(r)&&h(n)?`${r}${n}`:r},h=t=>(t.match(/(?:^|[^\\])"/g)||[]).length%2!=0,p=t=>t.split("").reduce((t,e,r,n)=>{const i='"'===e&&"\\"!==n[r-1],o="\\"===e&&'"'===n[r+1];return i||o?t:t+e},""),y=t=>null!=t?t.toLowerCase():null,g=(t,e,r)=>[y(t),e,y(r)].filter(t=>null!=t).join("."),m=t=>{const e=t.split("."),r=e.shift(),n=e.pop(),i=e.length?e.join("."):void 0;return{section:r,subsection:i,name:n,path:g(r,i,n),sectionPath:g(r,i,null),isSection:!!r}};class v{constructor(t){let e=null,r=null;this.parsedConfig=t?t.split("\n").map(t=>{let n=null,i=null;const o=t.trim(),a=(t=>{const e=s.exec(t);if(null!=e){const[t,r]=e.slice(1);return[t,r]}return null})(o),c=null!=a;if(c)[e,r]=a;else{const t=(t=>{const e=u.exec(t);if(null!=e){const[t,r="true"]=e.slice(1),n=d(r);return[t,p(n)]}return null})(o);null!=t&&([n,i]=t)}const f=g(e,r,n);return{line:t,isSection:c,section:e,subsection:r,name:n,value:i,path:f}}):[]}static from(t){return new v(t)}get(t,e=!1){var r=this;return i((function*(){const n=m(t).path,i=r.parsedConfig.filter(t=>t.path===n).map(({section:t,name:e,value:r})=>{const n=a[t]&&a[t][e];return n?n(r):r});return e?i:i.pop()}))()}getall(t){var e=this;return i((function*(){return e.get(t,!0)}))()}getSubsections(t){var e=this;return i((function*(){return e.parsedConfig.filter(e=>e.isSection&&e.section===t).map(t=>t.subsection)}))()}deleteSection(t,e){var r=this;return i((function*(){r.parsedConfig=r.parsedConfig.filter(r=>!(r.section===t&&r.subsection===e))}))()}append(t,e){var r=this;return i((function*(){return r.set(t,e,!0)}))()}set(t,e,r=!1){var n=this;return i((function*(){const{section:i,subsection:o,name:a,path:s,sectionPath:u,isSection:l}=m(t),d=(h=n.parsedConfig,p=t=>t.path===s,h.reduce((t,e,r)=>p(e)?r:t,-1));var h,p;if(null==e)-1!==d&&n.parsedConfig.splice(d,1);else if(-1!==d){const t=n.parsedConfig[d],i=Object.assign({},t,{name:a,value:e,modified:!0});r?n.parsedConfig.splice(d+1,0,i):n.parsedConfig[d]=i}else{const t=n.parsedConfig.findIndex(t=>t.path===u),r={section:i,subsection:o,name:a,value:e,modified:!0,path:s};if(c.test(i)&&f.test(a))if(t>=0)n.parsedConfig.splice(t+1,0,r);else{const t={isSection:l,section:i,subsection:o,modified:!0,path:u};n.parsedConfig.push(t,r)}}}))()}toString(){return this.parsedConfig.map(({line:t,section:e,subsection:r,name:n,value:i,modified:o=!1})=>o?null!=n&&null!=i?"string"==typeof i&&/[#;]/.test(i)?`\t${n} = "${i}"`:`\t${n} = ${i}`:null!=r?`[${e} "${r}"]`:`[${e}]`:t).join("\n")}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(73);class i{constructor(t=[]){this.rules=t}static from(t){const e=[];for(const r of t)e.push(n.a.from(r));return new i(e)}add(t){const e=n.a.from(t);this.rules.push(e)}translate(t){const e=[];for(const r of this.rules)for(const n of t){const t=r.translate(n);t&&e.push([n,t])}return e}translateOne(t){let e=null;for(const r of this.rules){const n=r.translate(t);n&&(e=n)}return e}localNamespaces(){return this.rules.filter(t=>t.matchPrefix).map(t=>t.localPath.replace(/\/$/,""))}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(2),i=r(86),o=r(12);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*({fs:t,cache:e,gitdir:r,oid:a,format:s="content",getExternalRefDelta:c}){let u=yield t.readdir(Object(o.join)(r,"objects/pack"));u=u.filter(t=>t.endsWith(".idx"));for(const o of u){const s=`${r}/objects/pack/${o}`,u=yield Object(i.a)({fs:t,cache:e,filename:s,getExternalRefDelta:c});if(u.error)throw new n.a(u.error);if(u.offsets.has(a)){if(!u.pack){const e=s.replace(/idx$/,"pack");u.pack=t.read(e)}const e=yield u.read({oid:a,getExternalRefDelta:c});return e.format="content",e.source=`objects/pack/${o.replace(/idx$/,"pack")}`,e}}return null}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Remote does not support the "${t}" so the "${e}" parameter cannot be used.`),this.code=this.name=i.code,this.data={capability:t,parameter:e}}}i.code="RemoteCapabilityError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n=void 0===Array.prototype.flat?t=>t.reduce((t,e)=>t.concat(e),[]):t=>t.flat()},function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var n=r(98),i=r(8),o=r(19),a=r(14),s=r(7),c=r(52);function u(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))}}function l(t){return d.apply(this,arguments)}function d(){return(d=f((function*({fs:t,cache:e,gitdir:r,oid:i,filepath:o}){if(o.startsWith("/"))throw new n.a("leading-slash");if(o.endsWith("/"))throw new n.a("trailing-slash");const a=i,s=yield Object(c.a)({fs:t,cache:e,gitdir:r,oid:i}),u=s.tree;if(""===o)i=s.oid;else{const n=o.split("/");i=yield h({fs:t,cache:e,gitdir:r,tree:u,pathArray:n,oid:a,filepath:o})}return i}))).apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return(p=f((function*({fs:t,cache:e,gitdir:r,tree:n,pathArray:c,oid:u,filepath:f}){const l=c.shift();for(const i of n)if(i.path===l){if(0===c.length)return i.oid;{const{type:l,object:d}=yield Object(s.a)({fs:t,cache:e,gitdir:r,oid:i.oid});if("tree"!==l)throw new o.a(u,l,"tree",f);return h({fs:t,cache:e,gitdir:r,tree:n=a.a.from(d),pathArray:c,oid:u,filepath:f})}}throw new i.a(`file or directory found at "${u}:${f}"`)}))).apply(this,arguments)}},function(t,e,r){"use strict";r.r(e);var n=r(40);r.d(e,"AlreadyExistsError",(function(){return n.a}));var i=r(145);r.d(e,"AmbiguousError",(function(){return i.a}));var o=r(146);r.d(e,"CheckoutConflictError",(function(){return o.a}));var a=r(147);r.d(e,"CommitNotFetchedError",(function(){return a.a}));var s=r(78);r.d(e,"EmptyServerResponseError",(function(){return s.a}));var c=r(148);r.d(e,"FastForwardError",(function(){return c.a}));var u=r(149);r.d(e,"GitPushError",(function(){return u.a}));var f=r(57);r.d(e,"HttpError",(function(){return f.a}));var l=r(2);r.d(e,"InternalError",(function(){return l.a}));var d=r(98);r.d(e,"InvalidFilepathError",(function(){return d.a}));var h=r(35);r.d(e,"InvalidOidError",(function(){return h.a}));var p=r(33);r.d(e,"InvalidRefNameError",(function(){return p.a}));var y=r(150);r.d(e,"MaxDepthError",(function(){return y.a}));var g=r(96);r.d(e,"MergeNotSupportedError",(function(){return g.a}));var m=r(97);r.d(e,"MergeConflictError",(function(){return m.a}));var v=r(25);r.d(e,"MissingNameError",(function(){return v.a}));var b=r(31);r.d(e,"MissingParameterError",(function(){return b.a}));var w=r(151);r.d(e,"MultipleGitError",(function(){return w.a}));var _=r(79);r.d(e,"NoRefspecError",(function(){return _.a}));var j=r(8);r.d(e,"NotFoundError",(function(){return j.a}));var O=r(19);r.d(e,"ObjectTypeError",(function(){return O.a}));var x=r(41);r.d(e,"ParseError",(function(){return x.a}));var P=r(132);r.d(e,"PushRejectedError",(function(){return P.a}));var k=r(109);r.d(e,"RemoteCapabilityError",(function(){return k.a}));var E=r(80);r.d(e,"SmartHttpError",(function(){return E.a}));var A=r(81);r.d(e,"UnknownTransportError",(function(){return A.a}));var S=r(43);r.d(e,"UnsafeFilepathError",(function(){return S.a}));var R=r(82);r.d(e,"UrlParseError",(function(){return R.a}));var $=r(60);r.d(e,"UserCanceledError",(function(){return $.a}));var B=r(83);r.d(e,"UnmergedPathsError",(function(){return B.a}));var I=r(152);r.d(e,"IndexResetError",(function(){return I.a}));var T=r(153);r.d(e,"NoCommitError",(function(){return T.a}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(103),i=r(10);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}class a{static demux(t){const e=i.a.streamReader(t),r=new n.a,a=new n.a,s=new n.a,c=function(){var n,i=(n=function*(){const n=yield e();if(null===n)return c();if(!0===n)return r.end(),s.end(),void(t.error?a.destroy(t.error):a.end());switch(n[0]){case 1:a.write(n.slice(1));break;case 2:s.write(n.slice(1));break;case 3:{const t=n.slice(1);return s.write(t),r.end(),s.end(),void a.destroy(new Error(t.toString("utf8")))}default:r.write(n)}c()},function(){var t=this,e=arguments;return new Promise((function(r,i){var a=n.apply(t,e);function s(t){o(a,r,i,s,c,"next",t)}function c(t){o(a,r,i,s,c,"throw",t)}s(void 0)}))});return function(){return i.apply(this,arguments)}}();return c(),{packetlines:r,packfile:a,progress:s}}}},function(t,e,r){"use strict";function n(t,e,r){return e=e instanceof RegExp?e:new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),t.replace(e,r)}var i={clean:function(t){if("string"!=typeof t)throw new Error("Expected a string, received: "+t);return t=n(t,"./","/"),t=n(t,"..","."),t=n(t," ","-"),t=n(t,/^[~^:?*\\\-]/g,""),t=n(t,/[~^:?*\\]/g,"-"),t=n(t,/[~^:?*\\\-]$/g,""),t=n(t,"@{","-"),t=n(t,/\.$/g,""),t=n(t,/\/$/g,""),t=n(t,/\.lock$/g,"")}};t.exports=i},function(t,e,r){"use strict";const n=/(^|[/.])([/.]|$)|^@$|@{|[\x00-\x20\x7f~^:?*[\\]|\.lock(\/|$)/;t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("Reference name must be a string");return!n.test(t)&&(!!e||t.includes("/"))}},function(t,e,r){"use strict";var n=r(68),i=r(158),o=r(33),a=r(25);class s{static get timezoneOffsetForRefLogEntry(){const t=(new Date).getTimezoneOffset(),e=Math.abs(Math.floor(t/60)),r=Math.abs(t%60).toString().padStart(2,"0");return`${t>0?"-":"+"}${e.toString().padStart(2,"0")}${r}`}static createStashReflogEntry(t,e,r){const n=t.name.replace(/\s/g,""),i=Math.floor(Date.now()/1e3),o=s.timezoneOffsetForRefLogEntry;return`0000000000000000000000000000000000000000 ${e} ${n} ${t.email} ${i} ${o}\t${r}\n`}static getStashReflogEntry(t,e=!1){return t.split("\n").filter(t=>t).reverse().map((t,r)=>e?`stash@{${r}}: ${t.split("\t")[1]}`:t)}}var c=r(12),u=r(34),f=r(91),l=r(4);function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}r.d(e,"a",(function(){return p}));class p{constructor({fs:t,dir:e,gitdir:r=Object(c.join)(e,".git")}){Object.assign(this,{fs:t,dir:e,gitdir:r,_author:null})}static get refStash(){return"refs/stash"}static get refLogsStash(){return"logs/refs/stash"}get refStashPath(){return Object(c.join)(this.gitdir,p.refStash)}get refLogsStashPath(){return Object(c.join)(this.gitdir,p.refLogsStash)}getAuthor(){var t=this;return h((function*(){if(!t._author&&(t._author=yield Object(u.a)({fs:t.fs,gitdir:t.gitdir,author:{}}),!t._author))throw new a.a("author");return t._author}))()}getStashSHA(t,e){var r=this;return h((function*(){if(!(yield r.fs.exists(r.refStashPath)))return null;return(e||(yield r.readStashReflogs({parsed:!1})))[t].split(" ")[1]}))()}writeStashCommit({message:t,tree:e,parent:r}){var n=this;return h((function*(){return Object(i.a)({fs:n.fs,gitdir:n.gitdir,commit:{message:t,tree:e,parent:r,author:yield n.getAuthor(),committer:yield n.getAuthor()}})}))()}readStashCommit(t){var e=this;return h((function*(){const r=yield e.readStashReflogs({parsed:!1});if(0!==t&&(t<0||t>r.length-1))throw new o.a(`stash@${t}`,"number that is in range of [0, num of stash pushed]");const i=yield e.getStashSHA(t,r);return i?Object(n.a)({fs:e.fs,cache:{},gitdir:e.gitdir,oid:i}):{}}))()}writeStashRef(t){var e=this;return h((function*(){return l.a.writeRef({fs:e.fs,gitdir:e.gitdir,ref:p.refStash,value:t})}))()}writeStashReflogEntry({stashCommit:t,message:e}){var r=this;return h((function*(){const n=yield r.getAuthor(),i=s.createStashReflogEntry(n,t,e),o=r.refLogsStashPath;yield Object(f.a)({filepath:o,entry:i},h((function*(){const t=(yield r.fs.exists(o))?yield r.fs.read(o,"utf8"):"";yield r.fs.write(o,t+i,"utf8")})))}))()}readStashReflogs({parsed:t=!1}){var e=this;return h((function*(){if(!(yield e.fs.exists(e.refLogsStashPath)))return[];const r=yield e.fs.read(e.refLogsStashPath,"utf8");return s.getStashReflogEntry(r,t)}))()}}},function(t,e,r){
9
9
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
- var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=r(119),i=r(92),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},function(t,e,r){"use strict";var n=r(120),i=r(167),o=r(168),a=r(169),s=r(170),c=r(121),u=r(46),f=r(171),l=r(172),d=r(173),h=r(174),p=r(175),y=r(176),g=r(177),v=r(178),m=Function,b=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=r(47),_=r(59),j=function(){throw new u},O=w?function(){try{return arguments.callee,j}catch(t){try{return w(arguments,"callee").get}catch(t){return j}}}():j,x=r(181)(),P=r(123),k=r(125),E=r(124),A=r(94),S=r(93),R={},$="undefined"!=typeof Uint8Array&&P?P(Uint8Array):void 0,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":x&&P?P([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?void 0:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&P?P(P([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&P?P((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&P?P((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&P?P(""[Symbol.iterator]()):void 0,"%Symbol%":x?Symbol:void 0,"%SyntaxError%":c,"%ThrowTypeError%":O,"%TypedArray%":$,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":A,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":k,"%Math.abs%":l,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":p,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":E};if(P)try{null.error}catch(t){var I=P(P(t));B["%Error.prototype%"]=I}var T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=r(48),C=r(185),D=U.call(S,Array.prototype.concat),M=U.call(A,Array.prototype.splice),z=U.call(S,String.prototype.replace),N=U.call(S,String.prototype.slice),F=U.call(S,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,G=function(t){var e=N(t,0,1),r=N(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return z(t,H,(function(t,e,r,i){n[n.length]=r?z(i,L,"$1"):e||t})),n},W=function(t,e){var r,n=t;if(C(T,n)&&(n="%"+(r=T[n])[0]+"%"),C(B,n)){var i=B[n];if(i===R&&(i=function t(e){var r;if("%AsyncFunction%"===e)r=b("async function () {}");else if("%GeneratorFunction%"===e)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=b("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&P&&(r=P(i.prototype))}return B[e]=r,r}(n)),void 0===i&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(t),n=r.length>0?r[0]:"",i=W("%"+n+"%",e),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],M(r,D([0,1],f)));for(var l=1,d=!0;l<r.length;l+=1){var h=r[l],p=N(h,0,1),y=N(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),C(B,o="%"+(n+="."+h)+"%"))a=B[o];else if(null!=a){if(!(h in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&l+1>=r.length){var g=w(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=C(a,h),a=a[h];d&&!s&&(B[o]=a)}}return a}},function(t,e,r){"use strict";t.exports=Object},function(t,e,r){"use strict";t.exports=SyntaxError},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n=r(124),i=r(125),o=r(182);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(120);t.exports=n.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(48),i=r(94),o=r(93),a=r(184);t.exports=a||n.call(o,i)},function(t,e,r){"use strict";t.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,r){"use strict";var n=r(28),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(c),a=0,o=0;a<c;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return c(u,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){let e="";"not-fast-forward"===t?e=" because it was not a simple fast-forward":"tag-exists"===t&&(e=" because tag already exists"),super(`Push rejected${e}. Use "force: true" to override.`),this.code=this.name=i.code,this.data={reason:t}}}i.code="PushRejectedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){return Object(n.a)(o(t),o(e))}function o(t){return"040000"===t.mode?t.path+"/":t.path}},function(t,e,r){var n;n=function(t){t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();t.table=e,t.bstr=function(t,r){for(var n=-1^r,i=t.length-1,o=0;o<i;)n=(n=n>>>8^e[255&(n^t.charCodeAt(o++))])>>>8^e[255&(n^t.charCodeAt(o++))];return o===i&&(n=n>>>8^e[255&(n^t.charCodeAt(o))]),-1^n},t.buf=function(t,r){if(t.length>1e4)return function(t,r){for(var n=-1^r,i=t.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o<i+7;)n=n>>>8^e[255&(n^t[o++])];return-1^n}(t,r);for(var n=-1^r,i=t.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o<i+3;)n=n>>>8^e[255&(n^t[o++])];return-1^n},t.str=function(t,r){for(var n,i,o=-1^r,a=0,s=t.length;a<s;)(n=t.charCodeAt(a++))<128?o=o>>>8^e[255&(o^n)]:n<2048?o=(o=o>>>8^e[255&(o^(192|n>>6&31))])>>>8^e[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&t.charCodeAt(a++),o=(o=(o=(o=o>>>8^e[255&(o^(240|n>>8&7))])>>>8^e[255&(o^(128|n>>2&63))])>>>8^e[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^e[255&(o^(128|63&i))]):o=(o=(o=o>>>8^e[255&(o^(224|n>>12&15))])>>>8^e[255&(o^(128|n>>6&63))])>>>8^e[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(e):n({})},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(38),i=r.n(n),o=r(2),a=r(64);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t,e){return f.apply(this,arguments)}function f(){return(f=c((function*(t,e){const r=new a.a(t);let n=yield r.read(4);if(n=n.toString("utf8"),"PACK"!==n)throw new o.a(`Invalid PACK header '${n}'`);let s=yield r.read(4);if(s=s.readUInt32BE(0),2!==s)throw new o.a(`Invalid packfile version: ${s}`);let c=yield r.read(4);if(c=c.readUInt32BE(0),!(c<1))for(;!r.eof()&&c--;){const t=r.tell(),{type:n,length:a,ofs:s,reference:u}=yield l(r),f=new i.a.Inflate;for(;!f.result;){const i=yield r.chunk();if(!i)break;if(f.push(i,!1),f.err)throw new o.a(`Pako error: ${f.msg}`);if(f.result){if(f.result.length!==a)throw new o.a("Inflated object size is different from that stated in packfile.");yield r.undo(),yield r.read(i.length-f.strm.avail_in);const l=r.tell();yield e({data:f.result,type:n,num:c,offset:t,end:l,reference:u,ofs:s})}}}}))).apply(this,arguments)}function l(t){return d.apply(this,arguments)}function d(){return(d=c((function*(e){let r=yield e.byte();const n=r>>4&7;let i,o,a=15&r;if(128&r){let t=4;do{r=yield e.byte(),a|=(127&r)<<t,t+=7}while(128&r)}if(6===n){let n=0;i=0;const a=[];do{r=yield e.byte(),i|=(127&r)<<n,n+=7,a.push(r)}while(128&r);o=t.from(a)}if(7===n){o=yield e.read(20)}return{type:n,length:a,ofs:i,reference:o}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r(2),i=r(16);function o(e,r){const o=new i.a(e),s=a(o);if(s!==r.byteLength)throw new n.a(`applyDelta expected source buffer to be ${s} bytes but the provided buffer was ${r.length} bytes`);const u=a(o);let f;const l=c(o,r);if(l.byteLength===u)f=l;else{f=t.alloc(u);const e=new i.a(f);for(e.copy(l);!o.eof();)e.copy(c(o,r));const a=e.tell();if(u!==a)throw new n.a(`applyDelta expected target buffer to be ${u} bytes but the resulting buffer was ${a} bytes`)}return f}function a(t){let e=0,r=0,n=null;do{n=t.readUInt8(),e|=(127&n)<<r,r+=7}while(128&n);return e}function s(t,e,r){let n=0,i=0;for(;r--;)1&e&&(n|=t.readUInt8()<<i),e>>=1,i+=8;return n}function c(t,e){const r=t.readUInt8();if(128&r){const n=s(t,15&r,4);let i=s(t,(112&r)>>4,3);return 0===i&&(i=65536),e.slice(n,n+i)}return t.slice(r)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return t.split("\n").map(t=>t.replace(/^ /,"")).join("\n")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){return function(t){return t&&"object"==typeof t}(t)&&i(t.then)&&i(t.catch)}function i(t){return"function"==typeof t}r.d(e,"a",(function(){return n}))},function(t,e,r){(function(e){function r(t){return Array.isArray(t)?t:[t]}const n=/^\s+$/,i=/^\\!/,o=/^\\#/,a=/\r?\n/g,s=/^\.*\/|^\.+$/,c="undefined"!=typeof Symbol?Symbol.for("node-ignore"):"node-ignore",u=/([0-z])-([0-z])/g,f=()=>!1,l=[[/\\?\s+$/,t=>0===t.indexOf("\\")?" ":""],[/\\\s/g,()=>" "],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(t,e)=>`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>"\\"===e?`\\[${r}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(n)}${i}`:"]"===i&&n.length%2==0?`[${(t=>t.replace(u,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:""))(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],d=Object.create(null),h=t=>"string"==typeof t;class p{constructor(t,e,r,n){this.origin=t,this.pattern=e,this.negative=r,this.regex=n}}const y=(t,e)=>{const r=t;let n=!1;0===t.indexOf("!")&&(n=!0,t=t.substr(1));const a=((t,e)=>{let r=d[t];return r||(r=l.reduce((e,r)=>e.replace(r[0],r[1].bind(t)),t),d[t]=r),e?new RegExp(r,"i"):new RegExp(r)})(t=t.replace(i,"!").replace(o,"#"),e);return new p(r,t,n,a)},g=(t,e)=>{throw new e(t)},v=(t,e,r)=>{if(!h(t))return r(`path must be a string, but got \`${e}\``,TypeError);if(!t)return r("path must not be empty",TypeError);if(v.isNotRelative(t)){return r(`path should be a ${"`path.relative()`d"} string, but got "${e}"`,RangeError)}return!0},m=t=>s.test(t);v.isNotRelative=m,v.convert=t=>t;class b{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){var n,i,o;n=this,i=c,o=!0,Object.defineProperty(n,i,{value:o}),this._rules=[],this._ignoreCase=e,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[c])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&h(t)&&!n.test(t)&&0!==t.indexOf("#"))(t)){const e=y(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,r(h(t)?(t=>t.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let r=!1,n=!1;return this._rules.forEach(i=>{const{negative:o}=i;n===o&&r!==n||o&&!r&&!n&&!e||i.regex.test(t)&&(r=!o,n=o)}),{ignored:r,unignored:n}}_test(t,e,r,n){const i=t&&v.convert(t);return v(i,t,this._allowRelativePaths?f:g),this._t(i,e,r,n)}_t(t,e,r,n){if(t in e)return e[t];if(n||(n=t.split("/")),n.pop(),!n.length)return e[t]=this._testOne(t,r);const i=this._t(n.join("/")+"/",e,r,n);return e[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return r(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const w=t=>new b(t);if(w.isPathValid=t=>v(t&&v.convert(t),t,f),w.default=w,t.exports=w,void 0!==e&&(e.env&&e.env.IGNORE_TEST_WIN32||"win32"===e.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");v.convert=t;const e=/^[a-z]:\//i;v.isNotRelative=t=>e.test(t)||m(t)}}).call(this,r(56))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,object:r,format:i,oid:o}){if("deflated"!==i)throw new n.a("GitObjectStoreLoose expects objects to write to be in deflated format");const a=`${e}/${`objects/${o.slice(0,2)}/${o.slice(2)}`}`;(yield t.exists(a))||(yield t.write(a,r))}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return v}));var n=r(25),i=r(31),o=r(153),a=r(13),s=r(4),c=r(17),u=r(14),f=r(18),l=r(105),d=r(34),h=r(66),p=r(68);function y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){y(o,n,i,a,s,"next",t)}function s(t){y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function v(t){return m.apply(this,arguments)}function m(){return(m=g((function*({fs:t,cache:e,onSign:r,gitdir:u,message:y,author:v,committer:m,signingKey:w,amend:_=!1,dryRun:j=!1,noUpdateBranch:O=!1,ref:x,parent:P,tree:k}){let E,A,S=!1;x||(x=yield s.a.resolve({fs:t,gitdir:u,ref:"HEAD",depth:2}));try{E=yield s.a.resolve({fs:t,gitdir:u,ref:x}),A=yield Object(p.a)({fs:t,gitdir:u,oid:E,cache:{}})}catch{S=!0}if(_&&S)throw new o.a(x);const R=_?yield Object(d.a)({fs:t,gitdir:u,author:v,commit:A.commit}):yield Object(d.a)({fs:t,gitdir:u,author:v});if(!R)throw new n.a("author");const $=_?yield Object(h.a)({fs:t,gitdir:u,author:R,committer:m,commit:A.commit}):yield Object(h.a)({fs:t,gitdir:u,author:R,committer:m});if(!$)throw new n.a("committer");return a.a.acquire({fs:t,gitdir:u,cache:e,allowUnmerged:!1},function(){var e=g((function*(e){const n=Object(l.a)(e.entries).get(".");if(k||(k=yield b({fs:t,gitdir:u,inode:n,dryRun:j})),P=P?yield Promise.all(P.map(e=>s.a.resolve({fs:t,gitdir:u,ref:e}))):_?A.commit.parent:E?[E]:[],!y){if(!_)throw new i.a("message");y=A.commit.message}let o=c.a.from({tree:k,parent:P,author:R,committer:$,message:y});w&&(o=yield c.a.sign(o,r,w));const a=yield Object(f.a)({fs:t,gitdir:u,type:"commit",object:o.toObject(),dryRun:j});return O||j||(yield s.a.writeRef({fs:t,gitdir:u,ref:x,value:a})),a}));return function(t){return e.apply(this,arguments)}}())}))).apply(this,arguments)}function b(t){return w.apply(this,arguments)}function w(){return(w=g((function*({fs:t,gitdir:e,inode:r,dryRun:n}){const i=r.children;for(const r of i)"tree"===r.type&&(r.metadata.mode="040000",r.metadata.oid=yield b({fs:t,gitdir:e,inode:r,dryRun:n}));const o=i.map(t=>({mode:t.metadata.mode,path:t.basename,oid:t.metadata.oid,type:t.type})),a=u.a.from(o);return yield Object(f.a)({fs:t,gitdir:e,type:"tree",object:a.toObject(),dryRun:n})}))).apply(this,arguments)}},function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(f(t,a,a+16383>s?s:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=t[e+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=d,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<<u)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*c-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+h]=255&a,h+=p,a/=256,u-=8);t[r+h-p]|=128*y}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`Found multiple ${t} matching "${e}" (${r.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=i.code,this.data={nouns:t,short:e,matches:r}}}i.code="AmbiguousError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Your local changes to the following files would be overwritten by checkout: ${t.join(", ")}`),this.code=this.name=i.code,this.data={filepaths:t}}}i.code="CheckoutConflictError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Failed to checkout "${t}" because commit ${e} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=i.code,this.data={ref:t,oid:e}}}i.code="CommitNotFetchedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=i.code,this.data={}}}i.code="FastForwardError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`One or more branches were not updated: ${t}`),this.code=this.name=i.code,this.data={prettyDetails:t,result:e}}}i.code="GitPushError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Maximum search depth of ${t} exceeded.`),this.code=this.name=i.code,this.data={depth:t}}}i.code="MaxDepthError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super('There are multiple errors that were thrown by the method. Please refer to the "errors" property to see more'),this.code=this.name=i.code,this.data={errors:t},this.errors=t}}i.code="MultipleGitError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not merge index: Entry for '${t}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.`),this.code=this.name=i.code,this.data={filepath:t}}}i.code="IndexResetError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`"${t}" does not point to any commit. You're maybe working on a repository with no commits yet. `),this.code=this.name=i.code,this.data={ref:t}}}i.code="NoCommitError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(213),i=r.n(n);const o=/^.*(\r?\n|$)/gm;function a({branches:t,contents:e}){const r=t[1],n=t[2],a=e[0],s=e[1],c=e[2],u=s.match(o),f=a.match(o),l=c.match(o),d=i()(u,f,l);let h="",p=!0;for(const t of d)t.ok&&(h+=t.ok.join("")),t.conflict&&(p=!1,h+=`${"<".repeat(7)} ${r}\n`,h+=t.conflict.a.join(""),h+=`${"=".repeat(7)}\n`,h+=t.conflict.b.join(""),h+=`${">".repeat(7)} ${n}\n`);return{cleanMerge:p,mergedText:h}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(84),i=r.n(n),o=r(214),a=r(7),s=r(87),c=r(12),u=r(53);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,dir:n,gitdir:f=Object(c.join)(n,".git"),oids:d}){const h=new i.a,p=[];function y(e,r){const n=t.from(e,r);p.push(n),h.update(n)}function g(t){return v.apply(this,arguments)}function v(){return(v=l((function*({stype:e,object:r}){const n=o.a[e];let i=r.length,a=i>15?128:0;const c=15&i;i>>>=4;let f=(a|n|c).toString(16);for(y(f,"hex");a;)a=i>127?128:0,f=a|127&i,y(Object(u.a)(2,f),"hex"),i>>>=7;y(t.from(yield Object(s.a)(r)))}))).apply(this,arguments)}y("PACK"),y("00000002","hex"),y(Object(u.a)(8,d.length),"hex");for(const t of d){const{type:n,object:i}=yield Object(a.a)({fs:e,cache:r,gitdir:f,oid:t});yield g({write:y,object:i,stype:n})}const m=h.digest();return p.push(m),p}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){let e;for(;~(e=t.indexOf(92));)t[e]=47;return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(20),i=r(17),o=r(14),a=r(7),s=r(12);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,cache:e,dir:r,gitdir:c=Object(s.join)(r,".git"),oids:f}){const l=new Set;function d(t){return h.apply(this,arguments)}function h(){return(h=u((function*(r){if(l.has(r))return;l.add(r);const{type:s,object:u}=yield Object(a.a)({fs:t,cache:e,gitdir:c,oid:r});if("tag"===s){const t=n.a.from(u).headers().object;yield d(t)}else if("commit"===s){const t=i.a.from(u).headers().tree;yield d(t)}else if("tree"===s){const t=o.a.from(u);for(const e of t)"blob"===e.type&&l.add(e.oid),"tree"===e.type&&(yield d(e.oid))}}))).apply(this,arguments)}for(const t of f)yield d(t);return l}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(17),i=r(18);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,commit:r}){const o=n.a.from(r).toObject();return yield Object(i.a)({fs:t,gitdir:e,type:"commit",object:o,format:"content"})}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return k}));var n=r(55),i=r(31),o=r(109),a=r(11),s=r(4),c=r(61),u=r(49),f=r(17),l=r(62),d=r(220),h=r(7),p=r(102),y=r(58),g=r(222),v=r(215),m=r(45),b=r(12),w=r(72),_=r(216),j=r(207),O=r(206);function x(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function P(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){x(o,n,i,a,s,"next",t)}function s(t){x(o,n,i,a,s,"throw",t)}a(void 0)}))}}function k(t){return E.apply(this,arguments)}function E(){return(E=P((function*({fs:e,cache:r,http:x,onProgress:k,onMessage:E,onAuth:A,onAuthSuccess:S,onAuthFailure:R,gitdir:$,ref:B,remoteRef:I,remote:T,url:U,corsProxy:C,depth:D=null,since:M=null,exclude:z=[],relative:N=!1,tags:F=!1,singleBranch:H=!1,headers:L={},prune:G=!1,pruneTags:W=!1}){const q=B||(yield Object(n.a)({fs:e,gitdir:$,test:!0})),Y=yield a.a.get({fs:e,gitdir:$}),Z=T||q&&(yield Y.get(`branch.${q}.remote`))||"origin",K=U||(yield Y.get(`remote.${Z}.url`));if(void 0===K)throw new i.a("remote OR url");const V=I||q&&(yield Y.get(`branch.${q}.merge`))||B||"HEAD";void 0===C&&(C=yield Y.get("http.corsProxy"));const X=c.a.getRemoteHelperFor({url:K}),J=yield X.discover({http:x,onAuth:A,onAuthSuccess:S,onAuthFailure:R,corsProxy:C,service:"git-upload-pack",url:K,headers:L,protocolVersion:1}),Q=J.auth,tt=J.refs;if(0===tt.size)return{defaultBranch:null,fetchHead:null,fetchHeadDescription:null};if(null!==D&&!J.capabilities.has("shallow"))throw new o.a("shallow","depth");if(null!==M&&!J.capabilities.has("deepen-since"))throw new o.a("deepen-since","since");if(z.length>0&&!J.capabilities.has("deepen-not"))throw new o.a("deepen-not","exclude");if(!0===N&&!J.capabilities.has("deepen-relative"))throw new o.a("deepen-relative","relative");const{oid:et,fullref:rt}=s.a.resolveAgainstMap({ref:V,map:tt});for(const t of tt.keys())t===rt||"HEAD"===t||t.startsWith("refs/heads/")||F&&t.startsWith("refs/tags/")||tt.delete(t);const nt=Object(v.a)([...J.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${w.a.agent}`]);N&&nt.push("deepen-relative");const it=H?[et]:tt.values(),ot=H?[q]:yield s.a.listRefs({fs:e,gitdir:$,filepath:"refs"});let at=[];for(let t of ot)try{t=yield s.a.expand({fs:e,gitdir:$,ref:t});const n=yield s.a.resolve({fs:e,gitdir:$,ref:t});(yield Object(d.a)({fs:e,cache:r,gitdir:$,oid:n}))&&at.push(n)}catch(t){}at=[...new Set(at)];const st=yield u.a.read({fs:e,gitdir:$}),ct=J.capabilities.has("shallow")?[...st]:[],ut=Object(O.a)({capabilities:nt,wants:it,haves:at,shallows:ct,depth:D,since:M,exclude:z}),ft=t.from(yield Object(y.a)(ut)),lt=yield X.connect({http:x,onProgress:k,corsProxy:C,service:"git-upload-pack",url:K,auth:Q,body:[ft],headers:L}),dt=yield Object(j.a)(lt.body);lt.headers&&(dt.headers=lt.headers);for(const t of dt.shallows)if(!st.has(t))try{const{object:n}=yield Object(h.a)({fs:e,cache:r,gitdir:$,oid:t}),i=new f.a(n),o=yield Promise.all(i.headers().parent.map(t=>Object(d.a)({fs:e,cache:r,gitdir:$,oid:t})));0===o.length||o.every(t=>t)||st.add(t)}catch(e){st.add(t)}for(const t of dt.unshallows)st.delete(t);if(yield u.a.write({fs:e,gitdir:$,oids:st}),H){const t=new Map([[rt,et]]),r=new Map;let n=10,i=rt;for(;n--;){const t=J.symrefs.get(i);if(void 0===t)break;r.set(i,t),i=t}const o=tt.get(i);o&&t.set(i,o);const{pruned:a}=yield s.a.updateRemoteRefs({fs:e,gitdir:$,remote:Z,refs:t,symrefs:r,tags:F,prune:G});G&&(dt.pruned=a)}else{const{pruned:t}=yield s.a.updateRemoteRefs({fs:e,gitdir:$,remote:Z,refs:tt,symrefs:J.symrefs,tags:F,prune:G,pruneTags:W});G&&(dt.pruned=t)}if(dt.HEAD=J.symrefs.get("HEAD"),void 0===dt.HEAD){const{oid:t}=s.a.resolveAgainstMap({ref:"HEAD",map:tt});for(const[e,r]of tt.entries())if("HEAD"!==e&&r===t){dt.HEAD=e;break}}const ht=rt.startsWith("refs/tags")?"tag":"branch";if(dt.FETCH_HEAD={oid:et,description:`${ht} '${Object(p.a)(rt)}' of ${K}`},k||E){const t=Object(_.a)(dt.progress);Object(m.a)(t,function(){var t=P((function*(t){if(E&&(yield E(t)),k){const e=t.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);e&&(yield k({phase:e[1].trim(),loaded:parseInt(e[2],10),total:parseInt(e[3],10)}))}}));return function(e){return t.apply(this,arguments)}}())}const pt=t.from(yield Object(y.a)(dt.packfile));if(lt.body.error)throw lt.body.error;const yt=pt.slice(-20).toString("hex"),gt={defaultBranch:dt.HEAD,fetchHead:dt.FETCH_HEAD.oid,fetchHeadDescription:dt.FETCH_HEAD.description};if(dt.headers&&(gt.headers=dt.headers),G&&(gt.pruned=dt.pruned),""!==yt&&!Object(g.a)(pt)){gt.packfile=`objects/pack/pack-${yt}.pack`;const t=Object(b.join)($,gt.packfile);yield e.write(t,pt);const n=t=>Object(h.a)({fs:e,cache:r,gitdir:$,oid:t}),i=yield l.a.fromPack({pack:pt,getExternalRefDelta:n,onProgress:k});yield e.write(t.replace(/\.pack$/,".idx"),yield i.toBuffer())}return gt}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(e){var r=function(t){if(t=t||{},this.Promise=t.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=t.domainReentrant||!1,this.domainReentrant){if(void 0===e||void 0===e.domain)throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=t.timeout||r.DEFAULT_TIMEOUT,this.maxOccupationTime=t.maxOccupationTime||r.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=t.maxExecutionTime||r.DEFAULT_MAX_EXECUTION_TIME,t.maxPending===1/0||Number.isInteger(t.maxPending)&&t.maxPending>=0?this.maxPending=t.maxPending:this.maxPending=r.DEFAULT_MAX_PENDING};r.DEFAULT_TIMEOUT=0,r.DEFAULT_MAX_OCCUPATION_TIME=0,r.DEFAULT_MAX_EXECUTION_TIME=0,r.DEFAULT_MAX_PENDING=1e3,r.prototype.acquire=function(t,r,n,i){if(Array.isArray(t))return this._acquireBatch(t,r,n,i);if("function"!=typeof r)throw new Error("You must pass a function to execute");var o=null,a=null,s=null;"function"!=typeof n&&(i=n,n=null,s=new this.Promise((function(t,e){o=t,a=e}))),i=i||{};var c=!1,u=null,f=null,l=null,d=this,h=function(e,r,i){f&&(clearTimeout(f),f=null),l&&(clearTimeout(l),l=null),e&&(d.queues[t]&&0===d.queues[t].length&&delete d.queues[t],d.domainReentrant&&delete d.domains[t]),c||(s?r?a(r):o(i):"function"==typeof n&&n(r,i),c=!0),e&&d.queues[t]&&d.queues[t].length>0&&d.queues[t].shift()()},p=function(n){if(c)return h(n);u&&(clearTimeout(u),u=null),d.domainReentrant&&n&&(d.domains[t]=e.domain);var o=i.maxExecutionTime||d.maxExecutionTime;if(o&&(l=setTimeout((function(){d.queues[t]&&h(n,new Error("Maximum execution time is exceeded "+t))}),o)),1===r.length){var a=!1;try{r((function(t,e){a||(a=!0,h(n,t,e))}))}catch(t){a||(a=!0,h(n,t))}}else d._promiseTry((function(){return r()})).then((function(t){h(n,void 0,t)}),(function(t){h(n,t)}))};d.domainReentrant&&e.domain&&(p=e.domain.bind(p));var y=i.maxPending||d.maxPending;if(d.queues[t])if(d.domainReentrant&&e.domain&&e.domain===d.domains[t])p(!1);else if(d.queues[t].length>=y)h(!1,new Error("Too many pending tasks in queue "+t));else{var g=function(){p(!0)};i.skipQueue?d.queues[t].unshift(g):d.queues[t].push(g);var v=i.timeout||d.timeout;v&&(u=setTimeout((function(){u=null,h(!1,new Error("async-lock timed out in queue "+t))}),v))}else d.queues[t]=[],p(!0);var m=i.maxOccupationTime||d.maxOccupationTime;return m&&(f=setTimeout((function(){d.queues[t]&&h(!1,new Error("Maximum occupation time is exceeded in queue "+t))}),m)),s||void 0},r.prototype._acquireBatch=function(t,e,r,n){"function"!=typeof r&&(n=r,r=null);var i=this,o=t.reduceRight((function(t,e){return function(t,e){return function(r){i.acquire(t,e,r,n)}}(e,t)}),e);if("function"!=typeof r)return new this.Promise((function(t,e){1===o.length?o((function(r,n){r?e(r):t(n)})):t(o())}));o(r)},r.prototype.isBusy=function(t){return t?!!this.queues[t]:Object.keys(this.queues).length>0},r.prototype._promiseTry=function(t){try{return this.Promise.resolve(t())}catch(t){return this.Promise.reject(t)}},t.exports=r}).call(this,r(56))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";var n=r(117).Buffer,i=r(163);function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var c=a%n,u=Math.min(o-s,n-c),f=0;f<u;f++)r[c+f]=t[s+f];s+=u,(a+=u)%n==0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,r){"use strict";var n=r(164).Buffer,i=r(165),o=r(166),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},s="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=c&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(c&&a(t)){if(0===t.byteLength)return n.alloc(0);if(u){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),f=n.from(o);if(f.length===t.byteLength)return f}if(s&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var d=0;d<t.length;d+=1){var h=t[d];if("number"!=typeof h||h<0||h>255||~~h!==h)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},function(t,e,r){
10
+ var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=r(119),i=r(92),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},function(t,e,r){"use strict";var n=r(120),i=r(167),o=r(168),a=r(169),s=r(170),c=r(121),u=r(46),f=r(171),l=r(172),d=r(173),h=r(174),p=r(175),y=r(176),g=r(177),m=r(178),v=Function,b=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=r(47),_=r(59),j=function(){throw new u},O=w?function(){try{return arguments.callee,j}catch(t){try{return w(arguments,"callee").get}catch(t){return j}}}():j,x=r(181)(),P=r(123),k=r(125),E=r(124),A=r(94),S=r(93),R={},$="undefined"!=typeof Uint8Array&&P?P(Uint8Array):void 0,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":x&&P?P([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?void 0:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&P?P(P([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&P?P((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&P?P((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&P?P(""[Symbol.iterator]()):void 0,"%Symbol%":x?Symbol:void 0,"%SyntaxError%":c,"%ThrowTypeError%":O,"%TypedArray%":$,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":A,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":k,"%Math.abs%":l,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":p,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":m,"%Reflect.getPrototypeOf%":E};if(P)try{null.error}catch(t){var I=P(P(t));B["%Error.prototype%"]=I}var T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=r(48),C=r(185),D=U.call(S,Array.prototype.concat),M=U.call(A,Array.prototype.splice),z=U.call(S,String.prototype.replace),N=U.call(S,String.prototype.slice),F=U.call(S,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,G=function(t){var e=N(t,0,1),r=N(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return z(t,H,(function(t,e,r,i){n[n.length]=r?z(i,L,"$1"):e||t})),n},W=function(t,e){var r,n=t;if(C(T,n)&&(n="%"+(r=T[n])[0]+"%"),C(B,n)){var i=B[n];if(i===R&&(i=function t(e){var r;if("%AsyncFunction%"===e)r=b("async function () {}");else if("%GeneratorFunction%"===e)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=b("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&P&&(r=P(i.prototype))}return B[e]=r,r}(n)),void 0===i&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(t),n=r.length>0?r[0]:"",i=W("%"+n+"%",e),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],M(r,D([0,1],f)));for(var l=1,d=!0;l<r.length;l+=1){var h=r[l],p=N(h,0,1),y=N(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),C(B,o="%"+(n+="."+h)+"%"))a=B[o];else if(null!=a){if(!(h in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&l+1>=r.length){var g=w(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=C(a,h),a=a[h];d&&!s&&(B[o]=a)}}return a}},function(t,e,r){"use strict";t.exports=Object},function(t,e,r){"use strict";t.exports=SyntaxError},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";var n=r(124),i=r(125),o=r(182);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(120);t.exports=n.getPrototypeOf||null},function(t,e,r){"use strict";var n=r(48),i=r(94),o=r(93),a=r(184);t.exports=a||n.call(o,i)},function(t,e,r){"use strict";t.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();t.exports=function(t,e,r,i){var o=n,a=i+r;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},function(t,e,r){"use strict";var n=r(28),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,e.string2buf=function(t){var e,r,i,o,a,s=t.length,c=0;for(o=0;o<s;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),c+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(c),a=0,o=0;a<c;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|63&r):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|63&r):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|63&r);return e},e.buf2binstring=function(t){return c(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},e.buf2string=function(t,e){var r,n,i,o,s=e||t.length,u=new Array(2*s);for(n=0,r=0;r<s;)if((i=t[r++])<128)u[n++]=i;else if((o=a[i])>4)u[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<s;)i=i<<6|63&t[r++],o--;o>1?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return c(u,n)},e.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+a[t[r]]>e?r:e}},function(t,e,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){let e="";"not-fast-forward"===t?e=" because it was not a simple fast-forward":"tag-exists"===t&&(e=" because tag already exists"),super(`Push rejected${e}. Use "force: true" to override.`),this.code=this.name=i.code,this.data={reason:t}}}i.code="PushRejectedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(29);function i(t,e){return Object(n.a)(o(t),o(e))}function o(t){return"040000"===t.mode?t.path+"/":t.path}},function(t,e,r){var n;n=function(t){t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();t.table=e,t.bstr=function(t,r){for(var n=-1^r,i=t.length-1,o=0;o<i;)n=(n=n>>>8^e[255&(n^t.charCodeAt(o++))])>>>8^e[255&(n^t.charCodeAt(o++))];return o===i&&(n=n>>>8^e[255&(n^t.charCodeAt(o))]),-1^n},t.buf=function(t,r){if(t.length>1e4)return function(t,r){for(var n=-1^r,i=t.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o<i+7;)n=n>>>8^e[255&(n^t[o++])];return-1^n}(t,r);for(var n=-1^r,i=t.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o<i+3;)n=n>>>8^e[255&(n^t[o++])];return-1^n},t.str=function(t,r){for(var n,i,o=-1^r,a=0,s=t.length;a<s;)(n=t.charCodeAt(a++))<128?o=o>>>8^e[255&(o^n)]:n<2048?o=(o=o>>>8^e[255&(o^(192|n>>6&31))])>>>8^e[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&t.charCodeAt(a++),o=(o=(o=(o=o>>>8^e[255&(o^(240|n>>8&7))])>>>8^e[255&(o^(128|n>>2&63))])>>>8^e[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^e[255&(o^(128|63&i))]):o=(o=(o=o>>>8^e[255&(o^(224|n>>12&15))])>>>8^e[255&(o^(128|n>>6&63))])>>>8^e[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(e):n({})},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return u}));var n=r(38),i=r.n(n),o=r(2),a=r(64);function s(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,c,"next",t)}function c(t){s(o,n,i,a,c,"throw",t)}a(void 0)}))}}function u(t,e){return f.apply(this,arguments)}function f(){return(f=c((function*(t,e){const r=new a.a(t);let n=yield r.read(4);if(n=n.toString("utf8"),"PACK"!==n)throw new o.a(`Invalid PACK header '${n}'`);let s=yield r.read(4);if(s=s.readUInt32BE(0),2!==s)throw new o.a(`Invalid packfile version: ${s}`);let c=yield r.read(4);if(c=c.readUInt32BE(0),!(c<1))for(;!r.eof()&&c--;){const t=r.tell(),{type:n,length:a,ofs:s,reference:u}=yield l(r),f=new i.a.Inflate;for(;!f.result;){const i=yield r.chunk();if(!i)break;if(f.push(i,!1),f.err)throw new o.a(`Pako error: ${f.msg}`);if(f.result){if(f.result.length!==a)throw new o.a("Inflated object size is different from that stated in packfile.");yield r.undo(),yield r.read(i.length-f.strm.avail_in);const l=r.tell();yield e({data:f.result,type:n,num:c,offset:t,end:l,reference:u,ofs:s})}}}}))).apply(this,arguments)}function l(t){return d.apply(this,arguments)}function d(){return(d=c((function*(e){let r=yield e.byte();const n=r>>4&7;let i,o,a=15&r;if(128&r){let t=4;do{r=yield e.byte(),a|=(127&r)<<t,t+=7}while(128&r)}if(6===n){let n=0;i=0;const a=[];do{r=yield e.byte(),i|=(127&r)<<n,n+=7,a.push(r)}while(128&r);o=t.from(a)}if(7===n){o=yield e.read(20)}return{type:n,length:a,ofs:i,reference:o}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n=r(2),i=r(16);function o(e,r){const o=new i.a(e),s=a(o);if(s!==r.byteLength)throw new n.a(`applyDelta expected source buffer to be ${s} bytes but the provided buffer was ${r.length} bytes`);const u=a(o);let f;const l=c(o,r);if(l.byteLength===u)f=l;else{f=t.alloc(u);const e=new i.a(f);for(e.copy(l);!o.eof();)e.copy(c(o,r));const a=e.tell();if(u!==a)throw new n.a(`applyDelta expected target buffer to be ${u} bytes but the resulting buffer was ${a} bytes`)}return f}function a(t){let e=0,r=0,n=null;do{n=t.readUInt8(),e|=(127&n)<<r,r+=7}while(128&n);return e}function s(t,e,r){let n=0,i=0;for(;r--;)1&e&&(n|=t.readUInt8()<<i),e>>=1,i+=8;return n}function c(t,e){const r=t.readUInt8();if(128&r){const n=s(t,15&r,4);let i=s(t,(112&r)>>4,3);return 0===i&&(i=65536),e.slice(n,n+i)}return t.slice(r)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return t.split("\n").map(t=>t.replace(/^ /,"")).join("\n")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";function n(t){return function(t){return t&&"object"==typeof t}(t)&&i(t.then)&&i(t.catch)}function i(t){return"function"==typeof t}r.d(e,"a",(function(){return n}))},function(t,e,r){(function(e){function r(t){return Array.isArray(t)?t:[t]}const n=/^\s+$/,i=/^\\!/,o=/^\\#/,a=/\r?\n/g,s=/^\.*\/|^\.+$/,c="undefined"!=typeof Symbol?Symbol.for("node-ignore"):"node-ignore",u=/([0-z])-([0-z])/g,f=()=>!1,l=[[/\\?\s+$/,t=>0===t.indexOf("\\")?" ":""],[/\\\s/g,()=>" "],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(t,e)=>`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>"\\"===e?`\\[${r}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(n)}${i}`:"]"===i&&n.length%2==0?`[${(t=>t.replace(u,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:""))(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],d=Object.create(null),h=t=>"string"==typeof t;class p{constructor(t,e,r,n){this.origin=t,this.pattern=e,this.negative=r,this.regex=n}}const y=(t,e)=>{const r=t;let n=!1;0===t.indexOf("!")&&(n=!0,t=t.substr(1));const a=((t,e)=>{let r=d[t];return r||(r=l.reduce((e,r)=>e.replace(r[0],r[1].bind(t)),t),d[t]=r),e?new RegExp(r,"i"):new RegExp(r)})(t=t.replace(i,"!").replace(o,"#"),e);return new p(r,t,n,a)},g=(t,e)=>{throw new e(t)},m=(t,e,r)=>{if(!h(t))return r(`path must be a string, but got \`${e}\``,TypeError);if(!t)return r("path must not be empty",TypeError);if(m.isNotRelative(t)){return r(`path should be a ${"`path.relative()`d"} string, but got "${e}"`,RangeError)}return!0},v=t=>s.test(t);m.isNotRelative=v,m.convert=t=>t;class b{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){var n,i,o;n=this,i=c,o=!0,Object.defineProperty(n,i,{value:o}),this._rules=[],this._ignoreCase=e,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[c])return this._rules=this._rules.concat(t._rules),void(this._added=!0);if((t=>t&&h(t)&&!n.test(t)&&0!==t.indexOf("#"))(t)){const e=y(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,r(h(t)?(t=>t.split(a))(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,e){let r=!1,n=!1;return this._rules.forEach(i=>{const{negative:o}=i;n===o&&r!==n||o&&!r&&!n&&!e||i.regex.test(t)&&(r=!o,n=o)}),{ignored:r,unignored:n}}_test(t,e,r,n){const i=t&&m.convert(t);return m(i,t,this._allowRelativePaths?f:g),this._t(i,e,r,n)}_t(t,e,r,n){if(t in e)return e[t];if(n||(n=t.split("/")),n.pop(),!n.length)return e[t]=this._testOne(t,r);const i=this._t(n.join("/")+"/",e,r,n);return e[t]=i.ignored?i:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return r(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const w=t=>new b(t);if(w.isPathValid=t=>m(t&&m.convert(t),t,f),w.default=w,t.exports=w,void 0!==e&&(e.env&&e.env.IGNORE_TEST_WIN32||"win32"===e.platform)){const t=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");m.convert=t;const e=/^[a-z]:\//i;m.isNotRelative=t=>e.test(t)||v(t)}}).call(this,r(56))},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(2);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({fs:t,gitdir:e,object:r,format:i,oid:o}){if("deflated"!==i)throw new n.a("GitObjectStoreLoose expects objects to write to be in deflated format");const a=`${e}/${`objects/${o.slice(0,2)}/${o.slice(2)}`}`;(yield t.exists(a))||(yield t.write(a,r))}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return m}));var n=r(25),i=r(31),o=r(153),a=r(13),s=r(4),c=r(17),u=r(14),f=r(18),l=r(105),d=r(34),h=r(66),p=r(68);function y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){y(o,n,i,a,s,"next",t)}function s(t){y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function m(t){return v.apply(this,arguments)}function v(){return(v=g((function*({fs:t,cache:e,onSign:r,gitdir:u,message:y,author:m,committer:v,signingKey:w,amend:_=!1,dryRun:j=!1,noUpdateBranch:O=!1,ref:x,parent:P,tree:k}){let E,A,S=!1;x||(x=yield s.a.resolve({fs:t,gitdir:u,ref:"HEAD",depth:2}));try{E=yield s.a.resolve({fs:t,gitdir:u,ref:x}),A=yield Object(p.a)({fs:t,gitdir:u,oid:E,cache:{}})}catch{S=!0}if(_&&S)throw new o.a(x);const R=_?yield Object(d.a)({fs:t,gitdir:u,author:m,commit:A.commit}):yield Object(d.a)({fs:t,gitdir:u,author:m});if(!R)throw new n.a("author");const $=_?yield Object(h.a)({fs:t,gitdir:u,author:R,committer:v,commit:A.commit}):yield Object(h.a)({fs:t,gitdir:u,author:R,committer:v});if(!$)throw new n.a("committer");return a.a.acquire({fs:t,gitdir:u,cache:e,allowUnmerged:!1},function(){var e=g((function*(e){const n=Object(l.a)(e.entries).get(".");if(k||(k=yield b({fs:t,gitdir:u,inode:n,dryRun:j})),P=P?yield Promise.all(P.map(e=>s.a.resolve({fs:t,gitdir:u,ref:e}))):_?A.commit.parent:E?[E]:[],!y){if(!_)throw new i.a("message");y=A.commit.message}let o=c.a.from({tree:k,parent:P,author:R,committer:$,message:y});w&&(o=yield c.a.sign(o,r,w));const a=yield Object(f.a)({fs:t,gitdir:u,type:"commit",object:o.toObject(),dryRun:j});return O||j||(yield s.a.writeRef({fs:t,gitdir:u,ref:x,value:a})),a}));return function(t){return e.apply(this,arguments)}}())}))).apply(this,arguments)}function b(t){return w.apply(this,arguments)}function w(){return(w=g((function*({fs:t,gitdir:e,inode:r,dryRun:n}){const i=r.children;for(const r of i)"tree"===r.type&&(r.metadata.mode="040000",r.metadata.oid=yield b({fs:t,gitdir:e,inode:r,dryRun:n}));const o=i.map(t=>({mode:t.metadata.mode,path:t.basename,oid:t.metadata.oid,type:t.type})),a=u.a.from(o);return yield Object(f.a)({fs:t,gitdir:e,type:"tree",object:a.toObject(),dryRun:n})}))).apply(this,arguments)}},function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(f(t,a,a+16383>s?s:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=t[e+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+t[e+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=d,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<<u)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(e*c-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+h]=255&a,h+=p,a/=256,u-=8);t[r+h-p]|=128*y}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e,r){super(`Found multiple ${t} matching "${e}" (${r.join(", ")}). Use a longer abbreviation length to disambiguate them.`),this.code=this.name=i.code,this.data={nouns:t,short:e,matches:r}}}i.code="AmbiguousError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Your local changes to the following files would be overwritten by checkout: ${t.join(", ")}`),this.code=this.name=i.code,this.data={filepaths:t}}}i.code="CheckoutConflictError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`Failed to checkout "${t}" because commit ${e} is not available locally. Do a git fetch to make the branch available locally.`),this.code=this.name=i.code,this.data={ref:t,oid:e}}}i.code="CommitNotFetchedError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(){super("A simple fast-forward merge was not possible."),this.code=this.name=i.code,this.data={}}}i.code="FastForwardError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t,e){super(`One or more branches were not updated: ${t}`),this.code=this.name=i.code,this.data={prettyDetails:t,result:e}}}i.code="GitPushError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Maximum search depth of ${t} exceeded.`),this.code=this.name=i.code,this.data={depth:t}}}i.code="MaxDepthError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super('There are multiple errors that were thrown by the method. Please refer to the "errors" property to see more'),this.code=this.name=i.code,this.data={errors:t},this.errors=t}}i.code="MultipleGitError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`Could not merge index: Entry for '${t}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.`),this.code=this.name=i.code,this.data={filepath:t}}}i.code="IndexResetError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(1);class i extends n.a{constructor(t){super(`"${t}" does not point to any commit. You're maybe working on a repository with no commits yet. `),this.code=this.name=i.code,this.data={ref:t}}}i.code="NoCommitError"},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(213),i=r.n(n);const o=/^.*(\r?\n|$)/gm;function a({branches:t,contents:e}){const r=t[1],n=t[2],a=e[0],s=e[1],c=e[2],u=s.match(o),f=a.match(o),l=c.match(o),d=i()(u,f,l);let h="",p=!0;for(const t of d)t.ok&&(h+=t.ok.join("")),t.conflict&&(p=!1,h+=`${"<".repeat(7)} ${r}\n`,h+=t.conflict.a.join(""),h+=`${"=".repeat(7)}\n`,h+=t.conflict.b.join(""),h+=`${">".repeat(7)} ${n}\n`);return{cleanMerge:p,mergedText:h}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(84),i=r.n(n),o=r(214),a=r(7),s=r(87),c=r(12),u=r(53);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,dir:n,gitdir:f=Object(c.join)(n,".git"),oids:d}){const h=new i.a,p=[];function y(e,r){const n=t.from(e,r);p.push(n),h.update(n)}function g(t){return m.apply(this,arguments)}function m(){return(m=l((function*({stype:e,object:r}){const n=o.a[e];let i=r.length,a=i>15?128:0;const c=15&i;i>>>=4;let f=(a|n|c).toString(16);for(y(f,"hex");a;)a=i>127?128:0,f=a|127&i,y(Object(u.a)(2,f),"hex"),i>>>=7;y(t.from(yield Object(s.a)(r)))}))).apply(this,arguments)}y("PACK"),y("00000002","hex"),y(Object(u.a)(8,d.length),"hex");for(const t of d){const{type:n,object:i}=yield Object(a.a)({fs:e,cache:r,gitdir:f,oid:t});yield g({write:y,object:i,stype:n})}const v=h.digest();return p.push(v),p}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){let e;for(;~(e=t.indexOf(92));)t[e]=47;return t}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r(20),i=r(17),o=r(14),a=r(7),s=r(12);function c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){c(o,n,i,a,s,"next",t)}function s(t){c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function f(t){return l.apply(this,arguments)}function l(){return(l=u((function*({fs:t,cache:e,dir:r,gitdir:c=Object(s.join)(r,".git"),oids:f}){const l=new Set;function d(t){return h.apply(this,arguments)}function h(){return(h=u((function*(r){if(l.has(r))return;l.add(r);const{type:s,object:u}=yield Object(a.a)({fs:t,cache:e,gitdir:c,oid:r});if("tag"===s){const t=n.a.from(u).headers().object;yield d(t)}else if("commit"===s){const t=i.a.from(u).headers().tree;yield d(t)}else if("tree"===s){const t=o.a.from(u);for(const e of t)"blob"===e.type&&l.add(e.oid),"tree"===e.type&&(yield d(e.oid))}}))).apply(this,arguments)}for(const t of f)yield d(t);return l}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(17),i=r(18);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({fs:t,gitdir:e,commit:r}){const o=n.a.from(r).toObject();return yield Object(i.a)({fs:t,gitdir:e,type:"commit",object:o,format:"content"})}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return k}));var n=r(55),i=r(31),o=r(109),a=r(11),s=r(4),c=r(61),u=r(49),f=r(17),l=r(62),d=r(220),h=r(7),p=r(102),y=r(58),g=r(222),m=r(215),v=r(45),b=r(12),w=r(72),_=r(216),j=r(207),O=r(206);function x(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function P(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){x(o,n,i,a,s,"next",t)}function s(t){x(o,n,i,a,s,"throw",t)}a(void 0)}))}}function k(t){return E.apply(this,arguments)}function E(){return(E=P((function*({fs:e,cache:r,http:x,onProgress:k,onMessage:E,onAuth:A,onAuthSuccess:S,onAuthFailure:R,gitdir:$,ref:B,remoteRef:I,remote:T,url:U,corsProxy:C,depth:D=null,since:M=null,exclude:z=[],relative:N=!1,tags:F=!1,singleBranch:H=!1,headers:L={},prune:G=!1,pruneTags:W=!1}){const q=B||(yield Object(n.a)({fs:e,gitdir:$,test:!0})),Y=yield a.a.get({fs:e,gitdir:$}),Z=T||q&&(yield Y.get(`branch.${q}.remote`))||"origin",K=U||(yield Y.get(`remote.${Z}.url`));if(void 0===K)throw new i.a("remote OR url");const V=I||q&&(yield Y.get(`branch.${q}.merge`))||B||"HEAD";void 0===C&&(C=yield Y.get("http.corsProxy"));const X=c.a.getRemoteHelperFor({url:K}),J=yield X.discover({http:x,onAuth:A,onAuthSuccess:S,onAuthFailure:R,corsProxy:C,service:"git-upload-pack",url:K,headers:L,protocolVersion:1}),Q=J.auth,tt=J.refs;if(0===tt.size)return{defaultBranch:null,fetchHead:null,fetchHeadDescription:null};if(null!==D&&!J.capabilities.has("shallow"))throw new o.a("shallow","depth");if(null!==M&&!J.capabilities.has("deepen-since"))throw new o.a("deepen-since","since");if(z.length>0&&!J.capabilities.has("deepen-not"))throw new o.a("deepen-not","exclude");if(!0===N&&!J.capabilities.has("deepen-relative"))throw new o.a("deepen-relative","relative");const{oid:et,fullref:rt}=s.a.resolveAgainstMap({ref:V,map:tt});for(const t of tt.keys())t===rt||"HEAD"===t||t.startsWith("refs/heads/")||F&&t.startsWith("refs/tags/")||tt.delete(t);const nt=Object(m.a)([...J.capabilities],["multi_ack_detailed","no-done","side-band-64k","ofs-delta",`agent=${w.a.agent}`]);N&&nt.push("deepen-relative");const it=H?[et]:tt.values(),ot=H?[q]:yield s.a.listRefs({fs:e,gitdir:$,filepath:"refs"});let at=[];for(let t of ot)try{t=yield s.a.expand({fs:e,gitdir:$,ref:t});const n=yield s.a.resolve({fs:e,gitdir:$,ref:t});(yield Object(d.a)({fs:e,cache:r,gitdir:$,oid:n}))&&at.push(n)}catch(t){}at=[...new Set(at)];const st=yield u.a.read({fs:e,gitdir:$}),ct=J.capabilities.has("shallow")?[...st]:[],ut=Object(O.a)({capabilities:nt,wants:it,haves:at,shallows:ct,depth:D,since:M,exclude:z}),ft=t.from(yield Object(y.a)(ut)),lt=yield X.connect({http:x,onProgress:k,corsProxy:C,service:"git-upload-pack",url:K,auth:Q,body:[ft],headers:L}),dt=yield Object(j.a)(lt.body);lt.headers&&(dt.headers=lt.headers);for(const t of dt.shallows)if(!st.has(t))try{const{object:n}=yield Object(h.a)({fs:e,cache:r,gitdir:$,oid:t}),i=new f.a(n),o=yield Promise.all(i.headers().parent.map(t=>Object(d.a)({fs:e,cache:r,gitdir:$,oid:t})));0===o.length||o.every(t=>t)||st.add(t)}catch(e){st.add(t)}for(const t of dt.unshallows)st.delete(t);if(yield u.a.write({fs:e,gitdir:$,oids:st}),H){const t=new Map([[rt,et]]),r=new Map;let n=10,i=rt;for(;n--;){const t=J.symrefs.get(i);if(void 0===t)break;r.set(i,t),i=t}const o=tt.get(i);o&&t.set(i,o);const{pruned:a}=yield s.a.updateRemoteRefs({fs:e,gitdir:$,remote:Z,refs:t,symrefs:r,tags:F,prune:G});G&&(dt.pruned=a)}else{const{pruned:t}=yield s.a.updateRemoteRefs({fs:e,gitdir:$,remote:Z,refs:tt,symrefs:J.symrefs,tags:F,prune:G,pruneTags:W});G&&(dt.pruned=t)}if(dt.HEAD=J.symrefs.get("HEAD"),void 0===dt.HEAD){const{oid:t}=s.a.resolveAgainstMap({ref:"HEAD",map:tt});for(const[e,r]of tt.entries())if("HEAD"!==e&&r===t){dt.HEAD=e;break}}const ht=rt.startsWith("refs/tags")?"tag":"branch";if(dt.FETCH_HEAD={oid:et,description:`${ht} '${Object(p.a)(rt)}' of ${K}`},k||E){const t=Object(_.a)(dt.progress);Object(v.a)(t,function(){var t=P((function*(t){if(E&&(yield E(t)),k){const e=t.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);e&&(yield k({phase:e[1].trim(),loaded:parseInt(e[2],10),total:parseInt(e[3],10)}))}}));return function(e){return t.apply(this,arguments)}}())}const pt=t.from(yield Object(y.a)(dt.packfile));if(lt.body.error)throw lt.body.error;const yt=pt.slice(-20).toString("hex"),gt={defaultBranch:dt.HEAD,fetchHead:dt.FETCH_HEAD.oid,fetchHeadDescription:dt.FETCH_HEAD.description};if(dt.headers&&(gt.headers=dt.headers),G&&(gt.pruned=dt.pruned),""!==yt&&!Object(g.a)(pt)){gt.packfile=`objects/pack/pack-${yt}.pack`;const t=Object(b.join)($,gt.packfile);yield e.write(t,pt);const n=t=>Object(h.a)({fs:e,cache:r,gitdir:$,oid:t}),i=yield l.a.fromPack({pack:pt,getExternalRefDelta:n,onProgress:k});yield e.write(t.replace(/\.pack$/,".idx"),yield i.toBuffer())}return gt}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(e){var r=function(t){if(t=t||{},this.Promise=t.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=t.domainReentrant||!1,this.domainReentrant){if(void 0===e||void 0===e.domain)throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=t.timeout||r.DEFAULT_TIMEOUT,this.maxOccupationTime=t.maxOccupationTime||r.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=t.maxExecutionTime||r.DEFAULT_MAX_EXECUTION_TIME,t.maxPending===1/0||Number.isInteger(t.maxPending)&&t.maxPending>=0?this.maxPending=t.maxPending:this.maxPending=r.DEFAULT_MAX_PENDING};r.DEFAULT_TIMEOUT=0,r.DEFAULT_MAX_OCCUPATION_TIME=0,r.DEFAULT_MAX_EXECUTION_TIME=0,r.DEFAULT_MAX_PENDING=1e3,r.prototype.acquire=function(t,r,n,i){if(Array.isArray(t))return this._acquireBatch(t,r,n,i);if("function"!=typeof r)throw new Error("You must pass a function to execute");var o=null,a=null,s=null;"function"!=typeof n&&(i=n,n=null,s=new this.Promise((function(t,e){o=t,a=e}))),i=i||{};var c=!1,u=null,f=null,l=null,d=this,h=function(e,r,i){f&&(clearTimeout(f),f=null),l&&(clearTimeout(l),l=null),e&&(d.queues[t]&&0===d.queues[t].length&&delete d.queues[t],d.domainReentrant&&delete d.domains[t]),c||(s?r?a(r):o(i):"function"==typeof n&&n(r,i),c=!0),e&&d.queues[t]&&d.queues[t].length>0&&d.queues[t].shift()()},p=function(n){if(c)return h(n);u&&(clearTimeout(u),u=null),d.domainReentrant&&n&&(d.domains[t]=e.domain);var o=i.maxExecutionTime||d.maxExecutionTime;if(o&&(l=setTimeout((function(){d.queues[t]&&h(n,new Error("Maximum execution time is exceeded "+t))}),o)),1===r.length){var a=!1;try{r((function(t,e){a||(a=!0,h(n,t,e))}))}catch(t){a||(a=!0,h(n,t))}}else d._promiseTry((function(){return r()})).then((function(t){h(n,void 0,t)}),(function(t){h(n,t)}))};d.domainReentrant&&e.domain&&(p=e.domain.bind(p));var y=i.maxPending||d.maxPending;if(d.queues[t])if(d.domainReentrant&&e.domain&&e.domain===d.domains[t])p(!1);else if(d.queues[t].length>=y)h(!1,new Error("Too many pending tasks in queue "+t));else{var g=function(){p(!0)};i.skipQueue?d.queues[t].unshift(g):d.queues[t].push(g);var m=i.timeout||d.timeout;m&&(u=setTimeout((function(){u=null,h(!1,new Error("async-lock timed out in queue "+t))}),m))}else d.queues[t]=[],p(!0);var v=i.maxOccupationTime||d.maxOccupationTime;return v&&(f=setTimeout((function(){d.queues[t]&&h(!1,new Error("Maximum occupation time is exceeded in queue "+t))}),v)),s||void 0},r.prototype._acquireBatch=function(t,e,r,n){"function"!=typeof r&&(n=r,r=null);var i=this,o=t.reduceRight((function(t,e){return function(t,e){return function(r){i.acquire(t,e,r,n)}}(e,t)}),e);if("function"!=typeof r)return new this.Promise((function(t,e){1===o.length?o((function(r,n){r?e(r):t(n)})):t(o())}));o(r)},r.prototype.isBusy=function(t){return t?!!this.queues[t]:Object.keys(this.queues).length>0},r.prototype._promiseTry=function(t){try{return this.Promise.resolve(t())}catch(t){return this.Promise.reject(t)}},t.exports=r}).call(this,r(56))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";var n=r(117).Buffer,i=r(163);function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var c=a%n,u=Math.min(o-s,n-c),f=0;f<u;f++)r[c+f]=t[s+f];s+=u,(a+=u)%n==0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,r){"use strict";var n=r(164).Buffer,i=r(165),o=r(166),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},s="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=c&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(c&&a(t)){if(0===t.byteLength)return n.alloc(0);if(u){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),f=n.from(o);if(f.length===t.byteLength)return f}if(s&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var d=0;d<t.length;d+=1){var h=t[d];if("number"!=typeof h||h<0||h>255||~~h!==h)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},function(t,e,r){
11
11
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
12
- var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(46),i=r(118)("TypedArray.prototype.buffer",!0),o=r(186);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},function(t,e,r){"use strict";t.exports=Error},function(t,e,r){"use strict";t.exports=EvalError},function(t,e,r){"use strict";t.exports=RangeError},function(t,e,r){"use strict";t.exports=ReferenceError},function(t,e,r){"use strict";t.exports=URIError},function(t,e,r){"use strict";t.exports=Math.abs},function(t,e,r){"use strict";t.exports=Math.floor},function(t,e,r){"use strict";t.exports=Math.max},function(t,e,r){"use strict";t.exports=Math.min},function(t,e,r){"use strict";t.exports=Math.pow},function(t,e,r){"use strict";t.exports=Math.round},function(t,e,r){"use strict";var n=r(179);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},function(t,e,r){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,e,r){"use strict";t.exports=Object.getOwnPropertyDescriptor},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(122);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,r){"use strict";var n,i=r(92),o=r(47);try{n=[].__proto__===Array.prototype}catch(t){if(!(t&&"object"==typeof t&&"code"in t&&"ERR_PROTO_ACCESS"===t.code))throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof c&&function(t){return c(null==t?t:s(t))}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r},s=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},c=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.apply(e))throw new TypeError(n+e);for(var r,u=s(arguments,1),f=function(){if(this instanceof r){var n=e.apply(this,a(u,arguments));return Object(n)===n?n:this}return e.apply(t,a(u,arguments))},l=o(0,e.length-u.length),d=[],h=0;h<l;h++)d[h]="$"+h;if(r=Function("binder","return function ("+c(d,",")+"){ return binder.apply(this,arguments); }")(f),e.prototype){var p=function(){};p.prototype=e.prototype,r.prototype=new p,p.prototype=null}return r}},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},function(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(48);t.exports=o.call(n,i)},function(t,e,r){"use strict";var n=r(187);t.exports=function(t){return!!n(t)}},function(t,e,r){"use strict";(function(e){var n=r(188),i=r(190),o=r(192),a=r(118),s=r(47),c=r(123),u=a("Object.prototype.toString"),f=r(197)(),l="undefined"==typeof globalThis?e:globalThis,d=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};n(d,f&&s&&c?function(t){var e=new l[t];if(Symbol.toStringTag in e&&c){var r=c(e),n=s(r,Symbol.toStringTag);if(!n&&r){var i=c(r);n=s(i,Symbol.toStringTag)}y["$"+t]=o(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(y["$"+t]=o(r))});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=h(u(t),8,-1);return p(d,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(y,(function(r,n){if(!e)try{r(t),e=h(n,1)}catch(t){}})),e}(t)}return s?function(t){var e=!1;return n(y,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=h(n,1))}catch(t){}})),e}(t):null}}).call(this,r(71))},function(t,e,r){"use strict";var n=r(189),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},c=function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};function u(t){return"[object Array]"===i.call(t)}t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),u(t)?a(t,e,i):"string"==typeof t?s(t,e,i):c(t,e,i)}},function(t,e,r){"use strict";var n,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,n)}catch(t){t!==i&&(a=null)}else a=null;var s=/^\s*class\b/,c=function(t){try{var e=o.call(t);return s.test(e)}catch(t){return!1}},u=function(t){try{return!c(t)&&(o.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;f.call(p)===f.call(document.all)&&(h=function(t){if((d||!t)&&(void 0===t||"object"==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=a?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{a(t,null,n)}catch(t){if(t!==i)return!1}return!c(t)&&u(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return u(t);if(c(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}},function(t,e,r){"use strict";(function(e){var n=r(191),i="undefined"==typeof globalThis?e:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}}).call(this,r(71))},function(t,e,r){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},function(t,e,r){"use strict";var n=r(193),i=r(59),o=r(92),a=r(196);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},function(t,e,r){"use strict";var n=r(119),i=r(194),o=r(195)(),a=r(47),s=r(46),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,r){"use strict";var n=r(59),i=r(121),o=r(46),a=r(47);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===u&&l?l.configurable:!u,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===c&&l?l.writable:!c});else{if(!f&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},function(t,e,r){"use strict";var n=r(59),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){"use strict";var n=r(48),i=r(94),o=r(126);t.exports=function(){return o(n,i,arguments)}},function(t,e,r){"use strict";var n=r(122);t.exports=function(){return n()&&!!Symbol.toStringTag}},function(t,e,r){"use strict";var n=r(199),i=r(28),o=r(129),a=r(95),s=r(130),c=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=n.deflateSetDictionary(this.strm,f)))throw new Error(a[r]);this._dict_set=!0}}function f(t,e){var r=new u(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}u.prototype.push=function(t,e){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=u,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,r){"use strict";var n,i=r(28),o=r(200),a=r(127),s=r(128),c=r(95);function u(t,e){return t.msg=c[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function d(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function h(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function g(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,u=t.window,f=t.w_mask,l=t.prev,d=t.strstart+258,h=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<d);if(n=258-(d-o),o=d-258,n>a){if(t.match_start=e,a=n,n>=s)break;h=u[o+a-1],p=u[o+a]}}}while((e=l[e&f])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function v(t){var e,r,n,o,c,u,f,l,d,h,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);o+=p}if(0===t.strm.avail_in)break;if(u=t.strm,f=t.window,l=t.strstart+t.lookahead,d=o,h=void 0,(h=u.avail_in)>d&&(h=d),r=0===h?0:(u.avail_in-=h,i.arraySet(f,u.input,u.next_in,h,l),1===u.state.wrap?u.adler=a(u.adler,f,h,l):2===u.state.wrap&&(u.adler=s(u.adler,f,h,l)),u.next_in+=h,u.total_in+=h,h),t.lookahead+=r,t.lookahead+t.insert>=3)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+3-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function m(t,e){for(var r,n;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=g(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}function b(t,e){for(var r,n,i;;){if(t.lookahead<262){if(v(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=g(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(h(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&h(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}function w(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):u(t,-2)}function O(t){var e,r=j(t);return 0===r&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function x(t,e,r,n,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return u(t,-2);8===n&&(n=9);var c=new _;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=a,c.method=r,O(t)}n=[new w(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(v(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,h(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(h(t,!1),t.strm.avail_out),1)})),new w(4,4,8,4,m),new w(4,5,16,8,m),new w(4,6,32,32,m),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],e.deflateInit=function(t,e){return x(t,e,8,15,8,0)},e.deflateInit2=x,e.deflateReset=O,e.deflateResetKeep=j,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var r,i,a,c;if(!t||!t.state||e>5||e<0)return t?u(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return u(t,0===t.avail_out?-5:-2);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,y(i,g),0!==i.strstart&&(y(i,t.adler>>>16),y(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(r)&&4!==e)return u(t,-5);if(666===i.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var m=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(v(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=258){if(v(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+258;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==m&&4!==m||(i.status=666),1===m||3===m)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===m&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(y(i,t.adler>>>16),y(i,65535&t.adler)),d(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?u(t,-2):(t.state=null,113===e?u(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var r,n,o,s,c,u,f,d,h=e.length;if(!t||!t.state)return-2;if(2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(l(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,e,h-r.w_size,r.w_size,0),e=d,h=r.w_size),c=t.avail_in,u=t.next_in,f=t.input,t.avail_in=h,t.next_in=0,t.input=e,v(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,v(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=f,t.avail_in=c,r.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,r){"use strict";var n=r(28);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var f=new Array(60);i(f);var l=new Array(512);i(l);var d=new Array(256);i(d);var h=new Array(29);i(h);var p,y,g,v=new Array(30);function m(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function w(t){return t<256?l[t]:l[256+(t>>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,_(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function O(t,e,r){j(t,r[2*e],r[2*e+1])}function x(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function P(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=x(o[s]++,s))}}function k(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?_(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function A(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function S(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&A(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!A(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function R(t,e,r){var n,i,s,c,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?O(t,i,e):(O(t,(s=d[i])+256+1,e),0!==(c=o[s])&&j(t,i-=h[s],c),O(t,s=w(--n),r),0!==(c=a[s])&&j(t,n-=v[s],c))}while(u<t.last_lit);O(t,256,e)}function $(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<c;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;r>=1;r--)S(t,o,r);i=c;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,S(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,c=e.dyn_tree,u=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,p=e.stat_desc.max_length,y=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=c[2*c[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,y++),c[2*n+1]=o,n>u||(t.bl_count[o]++,a=0,n>=h&&(a=d[n-h]),s=c[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,y-=2}while(y>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>u||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),n--)}}(t,e),P(o,u,t.bl_count)}function B(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<c&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function I(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)do{O(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(O(t,i,t.bl_tree),s--),O(t,16,t.bl_tree),j(t,s-3,2)):s<=10?(O(t,17,t.bl_tree),j(t,s-3,3)):(O(t,18,t.bl_tree),j(t,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(v);var T=!1;function U(t,e,r,i){j(t,0+(i?1:0),3),function(t,e,r,i){E(t),i&&(_(t,r),_(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){T||(!function(){var t,e,r,n,i,c=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,t=0;t<1<<o[n];t++)d[r++]=n;for(d[r-1]=n,i=0,n=0;n<16;n++)for(v[n]=i,t=0;t<1<<a[n];t++)l[i++]=n;for(i>>=7;n<30;n++)for(v[n]=i<<7,t=0;t<1<<a[n]-7;t++)l[256+i++]=n;for(e=0;e<=15;e++)c[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,c[8]++;for(;t<=255;)u[2*t+1]=9,t++,c[9]++;for(;t<=279;)u[2*t+1]=7,t++,c[7]++;for(;t<=287;)u[2*t+1]=8,t++,c[8]++;for(P(u,287,c),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=x(t,5);p=new m(u,o,257,286,15),y=new m(f,a,0,30,15),g=new m(new Array(0),s,0,19,7)}(),T=!0),t.l_desc=new b(t.dyn_ltree,p),t.d_desc=new b(t.dyn_dtree,y),t.bl_desc=new b(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,k(t)},e._tr_stored_block=U,e._tr_flush_block=function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),$(t,t.l_desc),$(t,t.d_desc),a=function(t){var e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),$(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*c[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?U(t,e,r,n):4===t.strategy||o===i?(j(t,2+(n?1:0),3),R(t,u,f)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*c[i]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&E(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(d[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),O(t,256,u),function(t){16===t.bi_valid?(_(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){"use strict";var n=r(202),i=r(28),o=r(129),a=r(131),s=r(95),c=r(130),u=r(205),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function d(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(t,e){var r,s,c,u,l,d=this.strm,h=this.options.chunkSize,p=this.options.dictionary,y=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(h),d.next_out=0,d.avail_out=h),(r=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(d.output,d.next_out),u=d.next_out-c,l=o.buf2string(d.output,c),d.next_out=u,d.avail_out=h-u,u&&i.arraySet(d.output,d.output,c,u,0),this.onData(l)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},function(t,e,r){"use strict";var n=r(28),i=r(127),o=r(128),a=r(203),s=r(204);function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function d(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,l(t))):-2}function h(t,e){var r,n;return t?(n=new u,t.state=n,n.window=null,0!==(r=d(t,e))&&(t.state=null),r):-2}var p,y,g=!0;function v(t){if(g){var e;for(p=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,y,0,t.work,{bits:5}),g=!1}t.lencode=p,t.lenbits=9,t.distcode=y,t.distbits=5}function m(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=d,e.inflateResetKeep=f,e.inflateInit=function(t){return h(t,15)},e.inflateInit2=h,e.inflate=function(t,e){var r,u,f,l,d,h,p,y,g,b,w,_,j,O,x,P,k,E,A,S,R,$,B,I,T=0,U=new n.Buf8(4),C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,u=t.input,h=t.avail_in,y=r.hold,g=r.bits,b=h,w=p,$=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(2&r.wrap&&35615===y){r.check=0,U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0),y=0,g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",r.mode=30;break}if(g-=4,R=8+(15&(y>>>=4)),0===r.wbits)r.wbits=R;else if(R>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<R,t.adler=r.check=1,r.mode=512&y?10:12,y=0,g=0;break;case 2:for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(r.flags=y,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=y>>8&1),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0,r.mode=3;case 3:for(;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.head&&(r.head.time=y),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,U[2]=y>>>16&255,U[3]=y>>>24&255,r.check=o(r.check,U,4,0)),y=0,g=0,r.mode=4;case 4:for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.head&&(r.head.xflags=255&y,r.head.os=y>>8),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0,r.mode=5;case 5:if(1024&r.flags){for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.length=y,r.head&&(r.head.extra_len=y),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((_=r.length)>h&&(_=h),_&&(r.head&&(R=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,_,R)),512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,r.length-=_),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break t;_=0;do{R=u[l+_++],r.head&&R&&r.length<65536&&(r.head.name+=String.fromCharCode(R))}while(R&&_<h);if(512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,R)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break t;_=0;do{R=u[l+_++],r.head&&R&&r.length<65536&&(r.head.comment+=String.fromCharCode(R))}while(R&&_<h);if(512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,R)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(y!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}y=0,g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}t.adler=r.check=c(y),y=0,g=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){y>>>=7&g,g-=7&g,r.mode=27;break}for(;g<3;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}switch(r.last=1&y,g-=1,3&(y>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6===e){y>>>=2,g-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}y>>>=2,g-=2;break;case 14:for(y>>>=7&g,g-=7&g;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,y=0,g=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(_=r.length){if(_>h&&(_=h),_>p&&(_=p),0===_)break t;n.arraySet(f,u,l,_,d),h-=_,l+=_,p-=_,d+=_,r.length-=_;break}r.mode=12;break;case 17:for(;g<14;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(r.nlen=257+(31&y),y>>>=5,g-=5,r.ndist=1+(31&y),y>>>=5,g-=5,r.ncode=4+(15&y),y>>>=4,g-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;g<3;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.lens[C[r.have++]]=7&y,y>>>=3,g-=3}for(;r.have<19;)r.lens[C[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},$=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,$){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;P=(T=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,k=65535&T,!((x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(k<16)y>>>=x,g-=x,r.lens[r.have++]=k;else{if(16===k){for(I=x+2;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(y>>>=x,g-=x,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}R=r.lens[r.have-1],_=3+(3&y),y>>>=2,g-=2}else if(17===k){for(I=x+3;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}g-=x,R=0,_=3+(7&(y>>>=x)),y>>>=3,g-=3}else{for(I=x+7;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}g-=x,R=0,_=11+(127&(y>>>=x)),y>>>=7,g-=7}if(r.have+_>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;_--;)r.lens[r.have++]=R}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},$=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,$){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},$=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,$){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(h>=6&&p>=258){t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,a(t,w),d=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,u=t.input,h=t.avail_in,y=r.hold,g=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;P=(T=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,k=65535&T,!((x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(P&&0==(240&P)){for(E=x,A=P,S=k;P=(T=r.lencode[S+((y&(1<<E+A)-1)>>E)])>>>16&255,k=65535&T,!(E+(x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}y>>>=E,g-=E,r.back+=E}if(y>>>=x,g-=x,r.back+=x,r.length=k,0===P){r.mode=26;break}if(32&P){r.back=-1,r.mode=12;break}if(64&P){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&P,r.mode=22;case 22:if(r.extra){for(I=r.extra;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.length+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;P=(T=r.distcode[y&(1<<r.distbits)-1])>>>16&255,k=65535&T,!((x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(0==(240&P)){for(E=x,A=P,S=k;P=(T=r.distcode[S+((y&(1<<E+A)-1)>>E)])>>>16&255,k=65535&T,!(E+(x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}y>>>=E,g-=E,r.back+=E}if(y>>>=x,g-=x,r.back+=x,64&P){t.msg="invalid distance code",r.mode=30;break}r.offset=k,r.extra=15&P,r.mode=24;case 24:if(r.extra){for(I=r.extra;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.offset+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===p)break t;if(_=w-p,r.offset>_){if((_=r.offset-_)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}_>r.wnext?(_-=r.wnext,j=r.wsize-_):j=r.wnext-_,_>r.length&&(_=r.length),O=r.window}else O=f,j=d-r.offset,_=r.length;_>p&&(_=p),p-=_,r.length-=_;do{f[d++]=O[j++]}while(--_);0===r.length&&(r.mode=21);break;case 26:if(0===p)break t;f[d++]=r.length,p--,r.mode=21;break;case 27:if(r.wrap){for(;g<32;){if(0===h)break t;h--,y|=u[l++]<<g,g+=8}if(w-=p,t.total_out+=w,r.total+=w,w&&(t.adler=r.check=r.flags?o(r.check,f,w,d-w):i(r.check,f,w,d-w)),w=p,(r.flags?y:c(y))!==r.check){t.msg="incorrect data check",r.mode=30;break}y=0,g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(y!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}y=0,g=0}r.mode=29;case 29:$=1;break t;case 30:$=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,(r.wsize||w!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&m(t,t.output,t.next_out,w-t.avail_out)?(r.mode=31,-4):(b-=t.avail_in,w-=t.avail_out,t.total_in+=b,t.total_out+=w,r.total+=w,r.wrap&&w&&(t.adler=r.check=r.flags?o(r.check,f,w,t.next_out-w):i(r.check,f,w,t.next_out-w)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===b&&0===w||4===e)&&0===$&&($=-5),$)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,e,n,0)!==r.check?-3:m(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,r){"use strict";t.exports=function(t,e){var r,n,i,o,a,s,c,u,f,l,d,h,p,y,g,v,m,b,w,_,j,O,x,P,k;r=t.state,n=t.next_in,P=t.input,i=n+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),c=r.dmax,u=r.wsize,f=r.whave,l=r.wnext,d=r.window,h=r.hold,p=r.bits,y=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do{p<15&&(h+=P[n++]<<p,p+=8,h+=P[n++]<<p,p+=8),b=y[h&v];e:for(;;){if(h>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))k[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=y[(65535&b)+(h&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&b,(w&=15)&&(p<w&&(h+=P[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=P[n++]<<p,p+=8,h+=P[n++]<<p,p+=8),b=g[h&m];r:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(h&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(j=65535&b,p<(w&=15)&&(h+=P[n++]<<p,(p+=8)<w&&(h+=P[n++]<<p,p+=8)),(j+=h&(1<<w)-1)>c){t.msg="invalid distance too far back",r.mode=30;break t}if(h>>>=w,p-=w,j>(w=o-a)){if((w=j-w)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(O=0,x=d,0===l){if(O+=u-w,w<_){_-=w;do{k[o++]=d[O++]}while(--w);O=o-j,x=k}}else if(l<w){if(O+=u+l-w,(w-=l)<_){_-=w;do{k[o++]=d[O++]}while(--w);if(O=0,l<_){_-=w=l;do{k[o++]=d[O++]}while(--w);O=o-j,x=k}}}else if(O+=l-w,w<_){_-=w;do{k[o++]=d[O++]}while(--w);O=o-j,x=k}for(;_>2;)k[o++]=x[O++],k[o++]=x[O++],k[o++]=x[O++],_-=3;_&&(k[o++]=x[O++],_>1&&(k[o++]=x[O++]))}else{O=o-j;do{k[o++]=k[O++],k[o++]=k[O++],k[o++]=k[O++],_-=3}while(_>2);_&&(k[o++]=k[O++],_>1&&(k[o++]=k[O++]))}break}}break}}while(n<i&&o<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=h,r.bits=p}},function(t,e,r){"use strict";var n=r(28),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,u,f,l,d){var h,p,y,g,v,m,b,w,_,j=d.bits,O=0,x=0,P=0,k=0,E=0,A=0,S=0,R=0,$=0,B=0,I=null,T=0,U=new n.Buf16(16),C=new n.Buf16(16),D=null,M=0;for(O=0;O<=15;O++)U[O]=0;for(x=0;x<c;x++)U[e[r+x]]++;for(E=j,k=15;k>=1&&0===U[k];k--);if(E>k&&(E=k),0===k)return u[f++]=20971520,u[f++]=20971520,d.bits=1,0;for(P=1;P<k&&0===U[P];P++);for(E<P&&(E=P),R=1,O=1;O<=15;O++)if(R<<=1,(R-=U[O])<0)return-1;if(R>0&&(0===t||1!==k))return-1;for(C[1]=0,O=1;O<15;O++)C[O+1]=C[O]+U[O];for(x=0;x<c;x++)0!==e[r+x]&&(l[C[e[r+x]]++]=x);if(0===t?(I=D=l,m=19):1===t?(I=i,T-=257,D=o,M-=257,m=256):(I=a,D=s,m=-1),B=0,x=0,O=P,v=f,A=E,S=0,y=-1,g=($=1<<E)-1,1===t&&$>852||2===t&&$>592)return 1;for(;;){b=O-S,l[x]<m?(w=0,_=l[x]):l[x]>m?(w=D[M+l[x]],_=I[T+l[x]]):(w=96,_=0),h=1<<O-S,P=p=1<<A;do{u[v+(B>>S)+(p-=h)]=b<<24|w<<16|_|0}while(0!==p);for(h=1<<O-1;B&h;)h>>=1;if(0!==h?(B&=h-1,B+=h):B=0,x++,0==--U[O]){if(O===k)break;O=e[r+l[x]]}if(O>E&&(B&g)!==y){for(0===S&&(S=E),v+=P,R=1<<(A=O-S);A+S<k&&!((R-=U[A+S])<=0);)A++,R<<=1;if($+=1<<A,1===t&&$>852||2===t&&$>592)return 1;u[y=B&g]=E<<24|A<<16|v-f|0}}return 0!==B&&(u[v+B]=O-S<<24|64<<16|0),d.bits=E,0}},function(t,e,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(10);function i({capabilities:t=[],wants:e=[],haves:r=[],shallows:i=[],depth:o=null,since:a=null,exclude:s=[]}){const c=[];e=[...new Set(e)];let u=` ${t.join(" ")}`;for(const t of e)c.push(n.a.encode(`want ${t}${u}\n`)),u="";for(const t of i)c.push(n.a.encode(`shallow ${t}\n`));null!==o&&c.push(n.a.encode(`deepen ${o}\n`)),null!==a&&c.push(n.a.encode(`deepen-since ${Math.floor(a.valueOf()/1e3)}\n`));for(const t of s)c.push(n.a.encode(`deepen-not ${t}\n`));c.push(n.a.flush());for(const t of r)c.push(n.a.encode(`have ${t}\n`));return c.push(n.a.encode("done\n")),c}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(35),i=r(113),o=r(45);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*(t){const{packetlines:e,packfile:r,progress:a}=i.a.demux(t),s=[],c=[],u=[];let f=!1,l=!1;return new Promise((i,d)=>{Object(o.a)(e,e=>{const o=e.toString("utf8").trim();if(o.startsWith("shallow")){const t=o.slice(-41).trim();40!==t.length&&d(new n.a(t)),s.push(t)}else if(o.startsWith("unshallow")){const t=o.slice(-41).trim();40!==t.length&&d(new n.a(t)),c.push(t)}else if(o.startsWith("ACK")){const[,t,e]=o.split(" ");u.push({oid:t,status:e}),e||(l=!0)}else o.startsWith("NAK")?(f=!0,l=!0):(l=!0,f=!0);l&&(t.error?d(t.error):i({shallows:s,unshallows:c,acks:u,nak:f,packfile:r,progress:a}))}).finally(()=>{l||(t.error?d(t.error):i({shallows:s,unshallows:c,acks:u,nak:f,packfile:r,progress:a}))})})}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return y}));var n=r(27),i=r(32),o=r(97),a=r(96),s=r(14),c=r(18),u=r(36),f=r(12),l=r(154),d=r(89);function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}function y(t){return g.apply(this,arguments)}function g(){return(g=p((function*({fs:t,cache:e,dir:r,gitdir:l=Object(f.join)(r,".git"),index:h,ourOid:y,baseOid:g,theirOid:m,ourName:b="ours",baseName:w="base",theirName:_="theirs",dryRun:j=!1,abortOnConflict:O=!0,mergeDriver:x}){const P=Object(n.a)({ref:y}),k=Object(n.a)({ref:g}),E=Object(n.a)({ref:m}),A=[],S=[],R=[],$=[],B=yield Object(i.a)({fs:t,cache:e,dir:r,gitdir:l,trees:[P,k,E],map:(I=p((function*(e,[r,n,i]){const o=Object(u.a)(e);switch(`${yield Object(d.a)(r,n)}-${yield Object(d.a)(i,n)}`){case"false-false":return{mode:yield n.mode(),path:o,oid:yield n.oid(),type:yield n.type()};case"false-true":return i||"tree"!==(yield r.type())?i?{mode:yield i.mode(),path:o,oid:yield i.oid(),type:yield i.type()}:void 0:{mode:yield r.mode(),path:o,oid:yield r.oid(),type:yield r.type()};case"true-false":return r||"tree"!==(yield i.type())?r?{mode:yield r.mode(),path:o,oid:yield r.oid(),type:yield r.type()}:void 0:{mode:yield i.mode(),path:o,oid:yield i.oid(),type:yield i.type()};case"true-true":if(r&&i&&"tree"===(yield r.type())&&"tree"===(yield i.type()))return{mode:yield r.mode(),path:o,oid:yield r.oid(),type:"tree"};if(r&&i&&"blob"===(yield r.type())&&"blob"===(yield i.type()))return v({fs:t,gitdir:l,path:o,ours:r,base:n,theirs:i,ourName:b,baseName:w,theirName:_,mergeDriver:x}).then(function(){var t=p((function*(t){if(t.cleanMerge)O||h.insert({filepath:e,oid:t.mergeResult.oid,stage:0});else if(A.push(e),S.push(e),!O){let t="";n&&"blob"===(yield n.type())&&(t=yield n.oid());const o=yield r.oid(),a=yield i.oid();h.delete({filepath:e}),t&&h.insert({filepath:e,oid:t,stage:1}),h.insert({filepath:e,oid:o,stage:2}),h.insert({filepath:e,oid:a,stage:3})}return t.mergeResult}));return function(e){return t.apply(this,arguments)}}());if(n&&!r&&i&&"blob"===(yield n.type())&&"blob"===(yield i.type())){if(A.push(e),R.push(e),!O){const t=yield n.oid(),r=yield i.oid();h.delete({filepath:e}),h.insert({filepath:e,oid:t,stage:1}),h.insert({filepath:e,oid:r,stage:3})}return{mode:yield i.mode(),oid:yield i.oid(),type:"blob",path:o}}if(n&&r&&!i&&"blob"===(yield n.type())&&"blob"===(yield r.type())){if(A.push(e),$.push(e),!O){const t=yield n.oid(),i=yield r.oid();h.delete({filepath:e}),h.insert({filepath:e,oid:t,stage:1}),h.insert({filepath:e,oid:i,stage:2})}return{mode:yield r.mode(),oid:yield r.oid(),type:"blob",path:o}}if(n&&!r&&!i&&("blob"===(yield n.type())||"tree"===(yield n.type())))return;throw new a.a}})),function(t,e){return I.apply(this,arguments)}),reduce:0===A.length||r&&!O?function(){var e=p((function*(e,r){const n=r.filter(Boolean);if(e&&(!e||"tree"!==e.type||0!==n.length||"."===e.path)){if(n.length>0||"."===e.path&&0===n.length){const r=new s.a(n).toObject(),i=yield Object(c.a)({fs:t,gitdir:l,type:"tree",object:r,dryRun:j});e.oid=i}return e}}));return function(t,r){return e.apply(this,arguments)}}():void 0});var I,T;return 0!==A.length?(r&&!O&&(yield Object(i.a)({fs:t,cache:e,dir:r,gitdir:l,trees:[Object(n.a)({ref:B.oid})],map:(T=p((function*(e,[n]){const i=`${r}/${e}`;if("blob"===(yield n.type())){const e=yield n.mode(),r=(new TextDecoder).decode(yield n.content());yield t.write(i,r,{mode:e})}return!0})),function(t,e){return T.apply(this,arguments)})})),new o.a(A,S,R,$)):B.oid}))).apply(this,arguments)}function v(t){return m.apply(this,arguments)}function m(){return(m=p((function*({fs:e,gitdir:r,path:n,ours:i,base:o,theirs:a,ourName:s,theirName:u,baseName:f,dryRun:d,mergeDriver:h=l.a}){let p="100755",y="",g="";o&&"blob"===(yield o.type())&&(p=yield o.mode(),y=yield o.oid(),g=t.from(yield o.content()).toString("utf8"));const v=p===(yield i.mode())?yield a.mode():yield i.mode();if((yield i.oid())===(yield a.oid()))return{cleanMerge:!0,mergeResult:{mode:v,path:n,oid:yield i.oid(),type:"blob"}};if((yield i.oid())===y)return{cleanMerge:!0,mergeResult:{mode:v,path:n,oid:yield a.oid(),type:"blob"}};if((yield a.oid())===y)return{cleanMerge:!0,mergeResult:{mode:v,path:n,oid:yield i.oid(),type:"blob"}};const m=t.from(yield i.content()).toString("utf8"),b=t.from(yield a.content()).toString("utf8"),{mergedText:w,cleanMerge:_}=yield h({branches:[f,s,u],contents:[g,m,b],path:n});return{cleanMerge:_,mergeResult:{mode:v,path:n,oid:yield Object(c.a)({fs:e,gitdir:r,type:"blob",object:t.from(w,"utf8"),dryRun:d}),type:"blob"}}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r(19),i=r(4),o=r(49),a=r(20),s=r(17),c=r(7),u=r(12);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:t,cache:e,dir:r,gitdir:f=Object(u.join)(r,".git"),start:d,finish:h}){const p=yield o.a.read({fs:t,gitdir:f}),y=new Set,g=new Set;for(const e of d)y.add(yield i.a.resolve({fs:t,gitdir:f,ref:e}));for(const e of h)try{const r=yield i.a.resolve({fs:t,gitdir:f,ref:e});g.add(r)}catch(t){}const v=new Set;function m(t){return b.apply(this,arguments)}function b(){return(b=l((function*(r){v.add(r);const{type:i,object:o}=yield Object(c.a)({fs:t,cache:e,gitdir:f,oid:r});if("tag"===i){return m(a.a.from(o).headers().object)}if("commit"!==i)throw new n.a(r,i,"commit");if(!p.has(r)){const t=s.a.from(o).headers().parent;for(r of t)g.has(r)||v.has(r)||(yield m(r))}}))).apply(this,arguments)}for(const t of y)yield m(t);return v}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({capabilities:t=[],triplets:e=[]}){const r=[];let i=`\0 ${t.join(" ")}`;for(const t of e)r.push(n.a.encode(`${t.oldoid} ${t.oid} ${t.fullRef}${i}\n`)),i="";return r.push(n.a.flush()),r}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(41),i=r(10);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*(t){const e={};let r="";const o=i.a.streamReader(t);let a=yield o();for(;!0!==a;)null!==a&&(r+=a.toString("utf8")+"\n"),a=yield o();const s=r.toString("utf8").split("\n");if(a=s.shift(),!a.startsWith("unpack "))throw new n.a('unpack ok" or "unpack [error message]',a);e.ok="unpack ok"===a,e.ok||(e.error=a.slice("unpack ".length)),e.refs={};for(const t of s){if(""===t.trim())continue;const r=t.slice(0,2),n=t.slice(3);let i=n.indexOf(" ");-1===i&&(i=n.length);const o=n.slice(0,i),a=n.slice(i+1);e.refs[o]={ok:"ok"===r,error:a}}return e}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(11),i=r(13),o=r(54),a=r(12),s=r(24),c=r(15),u=r(22);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}class d{constructor({fs:t,dir:e,gitdir:r,cache:n}){this.fs=t,this.cache=n,this.dir=e,this.gitdir=r,this.config=null;const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return l((function*(){return i.type(t)}))()}mode(){var t=this;return l((function*(){return i.mode(t)}))()}stat(){var t=this;return l((function*(){return i.stat(t)}))()}content(){var t=this;return l((function*(){return i.content(t)}))()}oid(){var t=this;return l((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return l((function*(){const r=t._fullpath,{fs:n,dir:i}=e,o=yield n.readdir(Object(a.join)(i,r));return null===o?null:o.map(t=>Object(a.join)(r,t))}))()}type(t){return l((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return l((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return l((function*(){if(!1===t._stat){const{fs:r,dir:n}=e;let i=yield r.lstat(`${n}/${t._fullpath}`);if(!i)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);let o=i.isDirectory()?"tree":"blob";"blob"!==o||i.isFile()||i.isSymbolicLink()||(o="special"),t._type=o,i=Object(s.a)(i),t._mode=i.mode,-1===i.size&&t._actualSize&&(i.size=t._actualSize),t._stat=i}return t._stat}))()}content(t){var e=this;return l((function*(){if(!1===t._content){const{fs:r,dir:n,gitdir:i}=e;if("tree"===(yield t.type()))t._content=void 0;else{const o=yield e._getGitConfig(r,i),a=yield o.get("core.autocrlf"),s=yield r.read(`${n}/${t._fullpath}`,{autocrlf:a});t._actualSize=s.length,t._stat&&-1===t._stat.size&&(t._stat.size=t._actualSize),t._content=new Uint8Array(s)}}return t._content}))()}oid(e){var r=this;return l((function*(){if(!1===e._oid){const n=r,{fs:a,gitdir:s,cache:f}=r;let d;yield i.a.acquire({fs:a,gitdir:s,cache:f},function(){var r=l((function*(r){const i=r.entriesMap.get(e._fullpath),f=yield e.stat(),l=yield n._getGitConfig(a,s),h=yield l.get("core.filemode"),p=void 0===t||!("win32"===t.platform);if(!i||Object(o.a)(f,i,h,p)){const t=yield e.content();void 0===t?d=void 0:(d=yield Object(c.a)(u.a.wrap({type:"blob",object:t})),!i||d!==i.oid||h&&f.mode!==i.mode||!Object(o.a)(f,i,h,p)||r.insert({filepath:e._fullpath,stats:f,oid:d}))}else d=i.oid}));return function(t){return r.apply(this,arguments)}}()),e._oid=d}return e._oid}))()}_getGitConfig(t,e){var r=this;return l((function*(){return r.config?r.config:(r.config=yield n.a.get({fs:t,gitdir:e}),r.config)}))()}}}).call(this,r(56))},function(t,e,r){var n=r(217);function i(t,e){for(var r=[],i=t.length,o=e.length,a=function(t,e){var r=new n(t,e);r.compose();for(var i,o,a=r.getses(),s=t.length-1,c=e.length-1,u=a.length-1;u>=0;--u)a[u].t===r.SES_COMMON?(o?(o.chain={file1index:s,file2index:c,chain:null},o=o.chain):o=i={file1index:s,file2index:c,chain:null},s--,c--):a[u].t===r.SES_DELETE?s--:a[u].t===r.SES_ADD&&c--;var f={file1index:-1,file2index:-1,chain:null};return o?(o.chain=f,i):f}(t,e);null!==a;a=a.chain){var s=i-a.file1index-1,c=o-a.file2index-1;i=a.file1index,o=a.file2index,(s||c)&&r.push({file1:[i+1,s],file2:[o+1,c]})}return r.reverse(),r}t.exports=function(t,e,r){var n=[],o=[t,e,r],a=function(t,e,r){var n,o=i(e,t),a=i(e,r),s=[];function c(t,e){s.push([t.file1[0],e,t.file1[1],t.file2[0],t.file2[1]])}for(n=0;n<o.length;n++)c(o[n],0);for(n=0;n<a.length;n++)c(a[n],2);s.sort((function(t,e){return t[0]-e[0]}));var u=[],f=0;function l(t){t>f&&(u.push([1,f,t-f]),f=t)}for(var d=0;d<s.length;d++){for(var h=d,p=s[d],y=p[0],g=y+p[2];d<s.length-1;){var v=s[d+1],m=v[0];if(m>g)break;g=Math.max(g,m+v[2]),d++}if(l(y),h==d)p[4]>0&&u.push([p[1],p[3],p[4]]);else{var b={0:[t.length,-1,e.length,-1],2:[r.length,-1,e.length,-1]};for(n=h;n<=d;n++){var w=b[(p=s[n])[1]],_=p[0],j=_+p[2],O=p[3],x=O+p[4];w[0]=Math.min(O,w[0]),w[1]=Math.max(x,w[1]),w[2]=Math.min(_,w[2]),w[3]=Math.max(j,w[3])}var P=b[0][0]+(y-b[0][2]),k=b[0][1]+(g-b[0][3]),E=b[2][0]+(y-b[2][2]),A=b[2][1]+(g-b[2][3]);u.push([-1,P,k-P,y,g-y,E,A-E])}f=g}return l(e.length),u}(t,e,r),s=[];function c(){s.length&&n.push({ok:s}),s=[]}function u(t){for(var e=0;e<t.length;e++)s.push(t[e])}function f(e){if(e[2]!=e[6])return!0;for(var n=e[1],i=e[5],o=0;o<e[2];o++)if(t[o+n]!=r[o+i])return!0;return!1}for(var l=0;l<a.length;l++){var d=a[l],h=d[0];-1==h?f(d)?(c(),n.push({conflict:{a:t.slice(d[1],d[1]+d[2]),aIndex:d[1],o:e.slice(d[3],d[3]+d[4]),oIndex:d[3],b:r.slice(d[5],d[5]+d[6]),bIndex:d[5]}})):u(o[0].slice(d[1],d[1]+d[2])):u(o[h].slice(d[1],d[1]+d[2]))}return c(),n}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n={commit:16,tree:32,blob:48,tag:64,ofs_delta:96,ref_delta:112}},function(t,e,r){"use strict";function n(t,e){const r=t.map(t=>t.split("=",1)[0]);return e.filter(t=>{const e=t.split("=",1)[0];return r.includes(e)})}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(103),i=r(45);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){const e=t.indexOf("\r"),r=t.indexOf("\n");return-1===e&&-1===r?-1:-1===e?r+1:-1===r?e+1:r===e+1?r+1:Math.min(e,r)+1}function s(t){const e=new n.a;let r="";var s;return(s=function*(){yield Object(i.a)(t,t=>{for(t=t.toString("utf8"),r+=t;;){const t=a(r);if(-1===t)break;e.write(r.slice(0,t)),r=r.slice(t)}}),r.length>0&&e.write(r),e.end()},function(){var t=this,e=arguments;return new Promise((function(r,n){var i=s.apply(t,e);function a(t){o(i,r,n,a,c,"next",t)}function c(t){o(i,r,n,a,c,"throw",t)}a(void 0)}))})(),e}},function(t,e){t.exports=function(t,e){var r,n,i=t,o=e,a=i.length,s=o.length,c=!1,u=null,f=a+1,l=[],d=[],h=[],p="",y=function(t,e,r){return{x:t,y:e,k:r}},g=function(t,e){return{elem:t,t:e}},v=function(t,e,r){var n,c,u;for(n=e>r?l[t-1+f]:l[t+1+f],c=(u=Math.max(e,r))-t;c<a&&u<s&&i[c]===o[u];)++c,++u;return l[t+f]=d.length,d[d.length]=new y(c,u,n),u};return a>=s&&(r=i,n=a,i=o,o=r,a=s,s=n,c=!0,f=a+1),{SES_DELETE:-1,SES_COMMON:0,SES_ADD:1,editdistance:function(){return u},getlcs:function(){return p},getses:function(){return h},compose:function(){var t,e,r,n,m,b,w,_;for(t=s-a,e=a+s+3,r={},w=0;w<e;++w)r[w]=-1,l[w]=-1;n=-1;do{for(_=-++n;_<=t-1;++_)r[_+f]=v(_,r[_-1+f]+1,r[_+1+f]);for(_=t+n;_>=t+1;--_)r[_+f]=v(_,r[_-1+f]+1,r[_+1+f]);r[t+f]=v(t,r[t-1+f]+1,r[t+1+f])}while(r[t+f]!==s);for(u=t+2*n,m=l[t+f],b=[];-1!==m;)b[b.length]=new y(d[m].x,d[m].y,null),m=d[m].k;!function(t){var e,r,n;for(1,e=r=0,n=t.length-1;n>=0;--n)for(;e<t[n].x||r<t[n].y;)t[n].y-t[n].x>r-e?(h[h.length]=new g(o[r],c?-1:1),++r):t[n].y-t[n].x<r-e?(h[h.length]=new g(i[e],c?1:-1),++e):(h[h.length]=new g(i[e],0),p+=i[e],++e,++r)}(b)}}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return s}));var n=r(223),i=r(0);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({object:e}){try{Object(i.a)("object",e),"string"==typeof e?e=t.from(e,"utf8"):e instanceof Uint8Array||(e=new Uint8Array(e));const r="blob",{oid:o,object:a}=yield Object(n.a)({type:r,format:"content",object:e});return{oid:o,type:r,object:a,format:"wrapped"}}catch(t){throw t.caller="git.hashBlob",t}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(19),i=r(3),o=r(20),a=r(17),s=r(14),c=r(18),u=r(12);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,dir:r,gitdir:f=Object(u.join)(r,".git"),type:l,object:d,format:h="parsed",oid:p,encoding:y}){try{const r=new i.a(e);if("parsed"===h){switch(l){case"commit":d=a.a.from(d).toObject();break;case"tree":d=s.a.from(d).toObject();break;case"blob":d=t.from(d,y);break;case"tag":d=o.a.from(d).toObject();break;default:throw new n.a(p||"",l,"blob|commit|tag|tree")}h="content"}return p=yield Object(c.a)({fs:r,gitdir:f,type:l,object:d,oid:p,format:h})}catch(t){throw t.caller="git.writeObject",t}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t){return a.apply(this,arguments)}function a(){return(a=i((function*({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`;return t.exists(`${e}/${n}`)}))).apply(this,arguments)}var s=r(2),c=r(86),u=r(12);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:i}){let o=yield t.readdir(Object(u.join)(r,"objects/pack"));o=o.filter(t=>t.endsWith(".idx"));for(const a of o){const o=`${r}/objects/pack/${a}`,u=yield Object(c.a)({fs:t,cache:e,filename:o,getExternalRefDelta:i});if(u.error)throw new s.a(u.error);if(u.offsets.has(n))return!0}return!1}))).apply(this,arguments)}var p=r(7);function y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){y(o,n,i,a,s,"next",t)}function s(t){y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function v(t){return m.apply(this,arguments)}function m(){return(m=g((function*({fs:t,cache:e,gitdir:r,oid:n,format:i="content"}){const a=n=>Object(p.a)({fs:t,cache:e,gitdir:r,oid:n});let s=yield o({fs:t,gitdir:r,oid:n});return s||(s=yield d({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:a})),s}))).apply(this,arguments)}r.d(e,"a",(function(){return v}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(141),i=r(90),o=r(77),a=r(40),s=r(8),c=r(4),u=r(18);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,onSign:f,gitdir:l,ref:d,oid:h,note:p,force:y,author:g,committer:v,signingKey:m}){let b;try{b=yield c.a.resolve({gitdir:l,fs:e,ref:d})}catch(t){if(!(t instanceof s.a))throw t}let w=(yield Object(i.a)({fs:e,cache:r,gitdir:l,oid:b||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;if(y)w=w.filter(t=>t.path!==h);else for(const t of w)if(t.path===h)throw new a.a("note",h);"string"==typeof p&&(p=t.from(p,"utf8"));const _=yield Object(u.a)({fs:e,gitdir:l,type:"blob",object:p,format:"content"});w.push({mode:"100644",path:h,oid:_,type:"blob"});const j=yield Object(o.a)({fs:e,gitdir:l,tree:w});return yield Object(n.a)({fs:e,cache:r,onSign:f,gitdir:l,ref:d,tree:j,parent:b&&[b],message:"Note added by 'isomorphic-git addNote'\n",author:g,committer:v,signingKey:m})}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return"5041434b0000000200000000"===t.slice(0,12).toString("hex")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(22),i=r(15);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({type:t,object:e,format:r="content",oid:o}){return"deflated"!==r&&("wrapped"!==r&&(e=n.a.wrap({type:t,object:e})),o=yield Object(i.a)(e)),{oid:o,object:e}}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(58),i=r(12),o=r(155);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*({fs:e,cache:r,gitdir:a,oids:s,write:c}){const u=yield Object(o.a)({fs:e,cache:r,gitdir:a,oids:s}),f=t.from(yield Object(n.a)(u)),l=`pack-${f.slice(-20).toString("hex")}.pack`;return c?(yield e.write(Object(i.join)(a,`objects/pack/${l}`),f),{filename:l}):{filename:l,packfile:new Uint8Array(f)}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},,,function(t,e,r){"use strict";r.r(e);var n=r(75),i=r(27),o=r(99),a=r(32),s=r(152),c=r(13),u=r(3),f=r(0),l=r(12),d=r(89);function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}function y(t){return g.apply(this,arguments)}function g(){return(g=p((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),commit:h="HEAD",cache:y={}}){try{Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r);const l=new u.a(t),v=[Object(i.a)({ref:h}),Object(o.a)(),Object(n.a)()];let m=[];yield c.a.acquire({fs:l,gitdir:r,cache:y},function(){var t=p((function*(t){m=t.unmergedPaths}));return function(e){return t.apply(this,arguments)}}());const b=yield Object(a.a)({fs:l,cache:y,dir:e,gitdir:r,trees:v,map:(g=p((function*(t,[e,r,n]){const i=!(yield Object(d.a)(r,n)),o=m.includes(t),a=!(yield Object(d.a)(n,e));if(i||o)return e?{path:t,mode:yield e.mode(),oid:yield e.oid(),type:yield e.type(),content:yield e.content()}:void 0;if(a)return!1;throw new s.a(t)})),function(t,e){return g.apply(this,arguments)})});yield c.a.acquire({fs:l,gitdir:r,cache:y},function(){var t=p((function*(t){for(const r of b)if(!1!==r)if(r){if("blob"===r.type){const n=(new TextDecoder).decode(r.content);yield l.write(`${e}/${r.path}`,n,{mode:r.mode}),t.insert({filepath:r.path,oid:r.oid,stage:0})}}else yield l.rmdir(`${e}/${r.path}`,{recursive:!0}),t.delete({filepath:r.path})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.abortMerge",t}var g}))).apply(this,arguments)}var v=r(151),m=r(8),b=r(11),w=r(37),_=r(18),j=r(156);function O(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){O(o,n,i,a,s,"next",t)}function s(t){O(o,n,i,a,s,"throw",t)}a(void 0)}))}}function P(t){return k.apply(this,arguments)}function k(){return(k=x((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,cache:i={},force:o=!1,parallel:a=!0}){try{Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r),Object(f.a)("filepath",n);const s=new u.a(t);yield c.a.acquire({fs:s,gitdir:r,cache:i},function(){var t=x((function*(t){const i=yield b.a.get({fs:s,gitdir:r}),c=yield i.get("core.autocrlf");return E({dir:e,gitdir:r,fs:s,filepath:n,index:t,force:o,parallel:a,autocrlf:c})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.add",t}}))).apply(this,arguments)}function E(t){return A.apply(this,arguments)}function A(){return(A=x((function*({dir:t,gitdir:e,fs:r,filepath:n,index:i,force:o,parallel:a,autocrlf:s}){const c=(n=Array.isArray(n)?n:[n]).map(function(){var n=x((function*(n){if(!o){if(yield w.a.isIgnored({fs:r,dir:t,gitdir:e,filepath:n}))return}const c=yield r.lstat(Object(l.join)(t,n));if(!c)throw new m.a(n);if(c.isDirectory()){const c=yield r.readdir(Object(l.join)(t,n));if(a){const u=c.map(c=>E({dir:t,gitdir:e,fs:r,filepath:[Object(l.join)(n,c)],index:i,force:o,parallel:a,autocrlf:s}));yield Promise.all(u)}else for(const u of c)yield E({dir:t,gitdir:e,fs:r,filepath:[Object(l.join)(n,u)],index:i,force:o,parallel:a,autocrlf:s})}else{const o=c.isSymbolicLink()?yield r.readlink(Object(l.join)(t,n)).then(j.a):yield r.read(Object(l.join)(t,n),{autocrlf:s});if(null===o)throw new m.a(n);const a=yield Object(_.a)({fs:r,gitdir:e,type:"blob",object:o});i.insert({filepath:n,stats:c,oid:a})}}));return function(t){return n.apply(this,arguments)}}()),u=yield Promise.allSettled(c),f=u.filter(t=>"rejected"===t.status).map(t=>t.reason);if(f.length>1)throw new v.a(f);if(1===f.length)throw f[0];return u.filter(t=>"fulfilled"===t.status&&t.value).map(t=>t.value)}))).apply(this,arguments)}var S=r(221),R=r(25),$=r(34),B=r(66);function I(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function T(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){I(o,n,i,a,s,"next",t)}function s(t){I(o,n,i,a,s,"throw",t)}a(void 0)}))}}function U(t){return C.apply(this,arguments)}function C(){return(C=T((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ref:i="refs/notes/commits",oid:o,note:a,force:s,author:c,committer:d,signingKey:h,cache:p={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",n),Object(f.a)("oid",o),Object(f.a)("note",a),h&&Object(f.a)("onSign",e);const r=new u.a(t),l=yield Object($.a)({fs:r,gitdir:n,author:c});if(!l)throw new R.a("author");const y=yield Object(B.a)({fs:r,gitdir:n,author:l,committer:d});if(!y)throw new R.a("committer");return yield Object(S.a)({fs:new u.a(r),cache:p,onSign:e,gitdir:n,ref:i,oid:o,note:a,force:s,author:l,committer:y,signingKey:h})}catch(t){throw t.caller="git.addNote",t}}))).apply(this,arguments)}var D=r(114),M=r.n(D),z=r(115),N=r.n(z),F=r(40),H=r(33);function L(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){L(o,n,i,a,s,"next",t)}function s(t){L(o,n,i,a,s,"throw",t)}a(void 0)}))}}function W(t){return q.apply(this,arguments)}function q(){return(q=G((function*({fs:t,gitdir:e,remote:r,url:n,force:i}){if(!N()(r,!0))throw new H.a(r,M.a.clean(r));const o=yield b.a.get({fs:t,gitdir:e});if(!i){if((yield o.getSubsections("remote")).includes(r)&&n!==(yield o.get(`remote.${r}.url`)))throw new F.a("remote",r)}yield o.set(`remote.${r}.url`,n),yield o.set(`remote.${r}.fetch`,`+refs/heads/*:refs/remotes/${r}/*`),yield b.a.save({fs:t,gitdir:e,config:o})}))).apply(this,arguments)}function Y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Y(o,n,i,a,s,"next",t)}function s(t){Y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function K(t){return V.apply(this,arguments)}function V(){return(V=Z((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),remote:n,url:i,force:o=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("remote",n),Object(f.a)("url",i),yield W({fs:new u.a(t),gitdir:r,remote:n,url:i,force:o})}catch(t){throw t.caller="git.addRemote",t}}))).apply(this,arguments)}var X=r(4),J=r(20),Q=r(7);function tt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function et(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){tt(o,n,i,a,s,"next",t)}function s(t){tt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function rt(t){return nt.apply(this,arguments)}function nt(){return(nt=et((function*({fs:t,cache:e,onSign:r,gitdir:n,ref:i,tagger:o,message:a=i,gpgsig:s,object:c,signingKey:u,force:f=!1}){if(i=i.startsWith("refs/tags/")?i:`refs/tags/${i}`,!f&&(yield X.a.exists({fs:t,gitdir:n,ref:i})))throw new F.a("tag",i);const l=yield X.a.resolve({fs:t,gitdir:n,ref:c||"HEAD"}),{type:d}=yield Object(Q.a)({fs:t,cache:e,gitdir:n,oid:l});let h=J.a.from({object:l,type:d,tag:i.replace("refs/tags/",""),tagger:o,message:a,gpgsig:s});u&&(h=yield J.a.sign(h,r,u));const p=yield Object(_.a)({fs:t,gitdir:n,type:"tag",object:h.toObject()});yield X.a.writeRef({fs:t,gitdir:n,ref:i,value:p})}))).apply(this,arguments)}function it(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ot(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){it(o,n,i,a,s,"next",t)}function s(t){it(o,n,i,a,s,"throw",t)}a(void 0)}))}}function at(t){return st.apply(this,arguments)}function st(){return(st=ot((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ref:i,tagger:o,message:a=i,gpgsig:s,object:c,signingKey:d,force:h=!1,cache:p={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",n),Object(f.a)("ref",i),d&&Object(f.a)("onSign",e);const r=new u.a(t),l=yield Object($.a)({fs:r,gitdir:n,author:o});if(!l)throw new R.a("tagger");return yield rt({fs:r,cache:p,onSign:e,gitdir:n,ref:i,tagger:l,message:a,gpgsig:s,object:c,signingKey:d,force:h})}catch(t){throw t.caller="git.annotatedTag",t}}))).apply(this,arguments)}function ct(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ct(o,n,i,a,s,"next",t)}function s(t){ct(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ft(t){return lt.apply(this,arguments)}function lt(){return(lt=ut((function*({fs:t,gitdir:e,ref:r,object:n,checkout:i=!1,force:o=!1}){if(!N()(r,!0))throw new H.a(r,M.a.clean(r));const a=`refs/heads/${r}`;if(!o){if(yield X.a.exists({fs:t,gitdir:e,ref:a}))throw new F.a("branch",r,!1)}let s;try{s=yield X.a.resolve({fs:t,gitdir:e,ref:n||"HEAD"})}catch(t){}s&&(yield X.a.writeRef({fs:t,gitdir:e,ref:a,value:s})),i&&(yield X.a.writeSymbolicRef({fs:t,gitdir:e,ref:"HEAD",value:a}))}))).apply(this,arguments)}function dt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ht(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){dt(o,n,i,a,s,"next",t)}function s(t){dt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function pt(t){return yt.apply(this,arguments)}function yt(){return(yt=ht((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,object:i,checkout:o=!1,force:a=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield ft({fs:new u.a(t),gitdir:r,ref:n,object:i,checkout:o,force:a})}catch(t){throw t.caller="git.branch",t}}))).apply(this,arguments)}var gt=r(146),vt=r(147),mt=r(2),bt=r(110);const wt=(t,e)=>"."===t||null==e||0===e.length||"."===e||(e.length>=t.length?e.startsWith(t):t.startsWith(e));function _t(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function jt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_t(o,n,i,a,s,"next",t)}function s(t){_t(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ot(t){return xt.apply(this,arguments)}function xt(){return(xt=jt((function*({fs:t,cache:e,onProgress:r,onPostCheckout:n,dir:i,gitdir:o,remote:a,ref:s,filepaths:u,noCheckout:f,noUpdateHead:l,dryRun:d,force:h,track:p=!0,nonBlocking:y=!1,batchSize:g=100}){let v,w;if(n)try{v=yield X.a.resolve({fs:t,gitdir:o,ref:"HEAD"})}catch(t){v="0000000000000000000000000000000000000000"}try{w=yield X.a.resolve({fs:t,gitdir:o,ref:s})}catch(e){if("HEAD"===s)throw e;const r=`${a}/${s}`;if(w=yield X.a.resolve({fs:t,gitdir:o,ref:r}),p){const e=yield b.a.get({fs:t,gitdir:o});yield e.set(`branch.${s}.remote`,a),yield e.set(`branch.${s}.merge`,`refs/heads/${s}`),yield b.a.save({fs:t,gitdir:o,config:e})}yield X.a.writeRef({fs:t,gitdir:o,ref:`refs/heads/${s}`,value:w})}if(!f){let a;try{a=yield Pt({fs:t,cache:e,onProgress:r,dir:i,gitdir:o,ref:s,force:h,filepaths:u})}catch(t){throw t instanceof m.a&&t.data.what===w?new vt.a(s,w):t}const f=a.filter(([t])=>"conflict"===t).map(([t,e])=>e);if(f.length>0)throw new gt.a(f);const l=a.filter(([t])=>"error"===t).map(([t,e])=>e);if(l.length>0)throw new mt.a(l.join(", "));if(d)return void(n&&(yield n({previousHead:v,newHead:w,type:null!=u&&u.length>0?"file":"branch"})));let p=0;const b=a.length;if(yield c.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=jt((function*(e){yield Promise.all(a.filter(([t])=>"delete"===t||"delete-index"===t).map(function(){var n=jt((function*([n,o]){const a=`${i}/${o}`;"delete"===n&&(yield t.rm(a)),e.delete({filepath:o}),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}));return function(t){return n.apply(this,arguments)}}()))}));return function(t){return e.apply(this,arguments)}}()),yield c.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=jt((function*(e){for(const[n,o]of a)if("rmdir"===n||"rmdir-index"===n){const a=`${i}/${o}`;try{"rmdir"===n&&(yield t.rmdir(a)),e.delete({filepath:o}),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}catch(t){if("ENOTEMPTY"!==t.code)throw t;console.log(`Did not delete ${o} because directory is not empty`)}}}));return function(t){return e.apply(this,arguments)}}()),yield Promise.all(a.filter(([t])=>"mkdir"===t||"mkdir-index"===t).map(function(){var e=jt((function*([e,n]){const o=`${i}/${n}`;yield t.mkdir(o),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}));return function(t){return e.apply(this,arguments)}}())),y){const n=a.filter(([t])=>"create"===t||"create-index"===t||"update"===t||"mkdir-index"===t),s=yield $t("Update Working Dir",n.map(([r,n,a,s,c])=>()=>St({fs:t,cache:e,gitdir:o,dir:i},[r,n,a,s,c])),r,g);yield c.a.acquire({fs:t,gitdir:o,cache:e,allowUnmerged:!0},function(){var t=jt((function*(t){yield $t("Update Index",s.map(([e,r,n])=>()=>Et({index:t,fullpath:e,oid:r,stats:n})),r,g)}));return function(e){return t.apply(this,arguments)}}())}else yield c.a.acquire({fs:t,gitdir:o,cache:e,allowUnmerged:!0},function(){var n=jt((function*(n){yield Promise.all(a.filter(([t])=>"create"===t||"create-index"===t||"update"===t||"mkdir-index"===t).map(function(){var a=jt((function*([a,s,c,u,f]){const l=`${i}/${s}`;try{if("create-index"!==a&&"mkdir-index"!==a){const{object:r}=yield Object(Q.a)({fs:t,cache:e,gitdir:o,oid:c});if(f&&(yield t.rm(l)),33188===u)yield t.write(l,r);else if(33261===u)yield t.write(l,r,{mode:511});else{if(40960!==u)throw new mt.a(`Invalid mode 0o${u.toString(8)} detected in blob ${c}`);yield t.writelink(l,r)}}const i=yield t.lstat(l);33261===u&&(i.mode=493),"mkdir-index"===a&&(i.mode=57344),n.insert({filepath:s,stats:i,oid:c}),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}catch(t){console.log(t)}}));return function(t){return a.apply(this,arguments)}}()))}));return function(t){return n.apply(this,arguments)}}());n&&(yield n({previousHead:v,newHead:w,type:null!=u&&u.length>0?"file":"branch"}))}if(!l){const e=yield X.a.expand({fs:t,gitdir:o,ref:s});e.startsWith("refs/heads")?yield X.a.writeSymbolicRef({fs:t,gitdir:o,ref:"HEAD",value:e}):yield X.a.writeRef({fs:t,gitdir:o,ref:"HEAD",value:w})}}))).apply(this,arguments)}function Pt(t){return kt.apply(this,arguments)}function kt(){return(kt=jt((function*({fs:t,cache:e,onProgress:r,dir:s,gitdir:c,ref:u,force:f,filepaths:l}){let d=0;return Object(a.a)({fs:t,cache:e,dir:s,gitdir:c,trees:[Object(i.a)({ref:u}),Object(o.a)(),Object(n.a)()],map:(p=jt((function*(t,[e,n,i]){if("."!==t){if(l&&!l.some(e=>wt(t,e)))return null;switch(r&&(yield r({phase:"Analyzing workdir",loaded:++d})),[!!i,!!e,!!n].map(Number).join("")){case"000":return;case"001":return f&&l&&l.includes(t)?["delete",t]:void 0;case"010":switch(yield e.type()){case"tree":return["mkdir",t];case"blob":return["create",t,yield e.oid(),yield e.mode()];case"commit":return["mkdir-index",t,yield e.oid(),yield e.mode()];default:return["error",`new entry Unhandled type ${yield e.type()}`]}case"011":switch(`${yield e.type()}-${yield n.type()}`){case"tree-tree":return;case"tree-blob":case"blob-tree":return["conflict",t];case"blob-blob":return(yield e.oid())!==(yield n.oid())?f?["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield n.mode())]:["conflict",t]:(yield e.mode())!==(yield n.mode())?f?["update",t,yield e.oid(),yield e.mode(),!0]:["conflict",t]:["create-index",t,yield e.oid(),yield e.mode()];case"commit-tree":return;case"commit-blob":return["conflict",t];default:return["error",`new entry Unhandled type ${e.type}`]}case"100":return["delete-index",t];case"101":switch(yield i.type()){case"tree":return["rmdir-index",t];case"blob":return(yield i.oid())!==(yield n.oid())?f?["delete",t]:["conflict",t]:["delete",t];case"commit":return["rmdir-index",t];default:return["error",`delete entry Unhandled type ${yield i.type()}`]}case"110":case"111":switch(`${yield i.type()}-${yield e.type()}`){case"tree-tree":return;case"blob-blob":if((yield i.oid())===(yield e.oid())&&(yield i.mode())===(yield e.mode())&&!f)return;if(n){if((yield n.oid())!==(yield i.oid())&&(yield n.oid())!==(yield e.oid()))return f?["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield n.mode())]:["conflict",t]}else if(f)return["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield i.mode())];return(yield e.mode())!==(yield i.mode())?["update",t,yield e.oid(),yield e.mode(),!0]:(yield e.oid())!==(yield i.oid())?["update",t,yield e.oid(),yield e.mode(),!1]:void 0;case"tree-blob":return["update-dir-to-blob",t,yield e.oid()];case"blob-tree":return["update-blob-to-tree",t];case"commit-commit":return["mkdir-index",t,yield e.oid(),yield e.mode()];default:return["error",`update entry Unhandled type ${yield i.type()}-${yield e.type()}`]}}}})),function(t,e){return p.apply(this,arguments)}),reduce:(h=jt((function*(t,e){return e=Object(bt.a)(e),t?t&&"rmdir"===t[0]?(e.push(t),e):(e.unshift(t),e):e})),function(t,e){return h.apply(this,arguments)})});var h,p}))).apply(this,arguments)}function Et(t){return At.apply(this,arguments)}function At(){return(At=jt((function*({index:t,fullpath:e,stats:r,oid:n}){try{t.insert({filepath:e,stats:r,oid:n})}catch(t){console.warn(`Error inserting ${e} into index:`,t)}}))).apply(this,arguments)}function St(t,e){return Rt.apply(this,arguments)}function Rt(){return(Rt=jt((function*({fs:t,cache:e,gitdir:r,dir:n},[i,o,a,s,c]){const u=`${n}/${o}`;if("create-index"!==i&&"mkdir-index"!==i){const{object:n}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:a});if(c&&(yield t.rm(u)),33188===s)yield t.write(u,n);else if(33261===s)yield t.write(u,n,{mode:511});else{if(40960!==s)throw new mt.a(`Invalid mode 0o${s.toString(8)} detected in blob ${a}`);yield t.writelink(u,n)}}const f=yield t.lstat(u);return 33261===s&&(f.mode=493),"mkdir-index"===i&&(f.mode=57344),[o,a,f]}))).apply(this,arguments)}function $t(t,e,r,n){return Bt.apply(this,arguments)}function Bt(){return(Bt=jt((function*(t,e,r,n){const i=[];try{for(let t=0;t<e.length;t+=n){const o=e.slice(t,t+n).map(t=>t());(yield Promise.allSettled(o)).forEach(t=>{"fulfilled"===t.status&&i.push(t.value)}),r&&(yield r({phase:"Updating workdir",loaded:t+o.length,total:e.length}))}return i}catch(e){console.error(`Error during ${t}: ${e}`)}return i}))).apply(this,arguments)}function It(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Tt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){It(o,n,i,a,s,"next",t)}function s(t){It(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ut(t){return Ct.apply(this,arguments)}function Ct(){return(Ct=Tt((function*({fs:t,onProgress:e,onPostCheckout:r,dir:n,gitdir:i=Object(l.join)(n,".git"),remote:o="origin",ref:a,filepaths:s,noCheckout:c=!1,noUpdateHead:d=void 0===a,dryRun:h=!1,force:p=!1,track:y=!0,cache:g={},nonBlocking:v=!1,batchSize:m=100}){try{Object(f.a)("fs",t),Object(f.a)("dir",n),Object(f.a)("gitdir",i);const l=a||"HEAD";return yield Ot({fs:new u.a(t),cache:g,onProgress:e,onPostCheckout:r,dir:n,gitdir:i,remote:o,ref:l,filepaths:s,noCheckout:c,noUpdateHead:d,dryRun:h,force:p,track:y,nonBlocking:v,batchSize:m})}catch(t){throw t.caller="git.checkout",t}}))).apply(this,arguments)}var Dt=r(159);function Mt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function zt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Mt(o,n,i,a,s,"next",t)}function s(t){Mt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Nt(t){return Ft.apply(this,arguments)}function Ft(){return(Ft=zt((function*({fs:t,bare:e=!1,dir:r,gitdir:n=(e?r:Object(l.join)(r,".git")),defaultBranch:i="master"}){if(yield t.exists(n+"/config"))return;let o=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];o=o.map(t=>n+"/"+t);for(const e of o)yield t.mkdir(e);yield t.write(n+"/config","[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n"+`\tbare = ${e}\n`+(e?"":"\tlogallrefupdates = true\n")+"\tsymlinks = false\n\tignorecase = true\n"),yield t.write(n+"/HEAD",`ref: refs/heads/${i}\n`)}))).apply(this,arguments)}function Ht(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Lt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ht(o,n,i,a,s,"next",t)}function s(t){Ht(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Gt(t){return Wt.apply(this,arguments)}function Wt(){return(Wt=Lt((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,onPostCheckout:c,dir:u,gitdir:f,url:l,corsProxy:d,ref:h,remote:p,depth:y,since:g,exclude:v,relative:m,singleBranch:w,noCheckout:_,noTags:j,headers:O,nonBlocking:x,batchSize:P=100}){try{if(yield Nt({fs:t,gitdir:f}),yield W({fs:t,gitdir:f,remote:p,url:l,force:!1}),d){const e=yield b.a.get({fs:t,gitdir:f});yield e.set("http.corsProxy",d),yield b.a.save({fs:t,gitdir:f,config:e})}const{defaultBranch:k,fetchHead:E}=yield Object(Dt.a)({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:f,ref:h,remote:p,corsProxy:d,depth:y,since:g,exclude:v,relative:m,singleBranch:w,headers:O,tags:!j});if(null===E)return;h=(h=h||k).replace("refs/heads/",""),yield Ot({fs:t,cache:e,onProgress:n,onPostCheckout:c,dir:u,gitdir:f,ref:h,remote:p,noCheckout:_,nonBlocking:x,batchSize:P})}catch(e){throw yield t.rmdir(f,{recursive:!0,maxRetries:10}).catch(()=>{}),e}}))).apply(this,arguments)}function qt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Yt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){qt(o,n,i,a,s,"next",t)}function s(t){qt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Zt(t){return Kt.apply(this,arguments)}function Kt(){return(Kt=Yt((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPostCheckout:s,dir:c,gitdir:d=Object(l.join)(c,".git"),url:h,corsProxy:p,ref:y,remote:g="origin",depth:v,since:m,exclude:b=[],relative:w=!1,singleBranch:_=!1,noCheckout:j=!1,noTags:O=!1,headers:x={},cache:P={},nonBlocking:k=!1,batchSize:E=100}){try{return Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",d),j||Object(f.a)("dir",c),Object(f.a)("url",h),yield Gt({fs:new u.a(t),cache:P,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPostCheckout:s,dir:c,gitdir:d,url:h,corsProxy:p,ref:y,remote:g,depth:v,since:m,exclude:b,relative:w,singleBranch:_,noCheckout:j,noTags:O,headers:x,nonBlocking:k,batchSize:E})}catch(t){throw t.caller="git.clone",t}}))).apply(this,arguments)}var Vt=r(141);function Xt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Jt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xt(o,n,i,a,s,"next",t)}function s(t){Xt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qt(t){return te.apply(this,arguments)}function te(){return(te=Jt((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),message:i,author:o,committer:a,signingKey:s,amend:c=!1,dryRun:d=!1,noUpdateBranch:h=!1,ref:p,parent:y,tree:g,cache:v={}}){try{Object(f.a)("fs",t),c||Object(f.a)("message",i),s&&Object(f.a)("onSign",e);const r=new u.a(t);return yield Object(Vt.a)({fs:r,cache:v,onSign:e,gitdir:n,message:i,author:o,committer:a,signingKey:s,amend:c,dryRun:d,noUpdateBranch:h,ref:p,parent:y,tree:g})}catch(t){throw t.caller="git.commit",t}}))).apply(this,arguments)}var ee=r(55);function re(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ne(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){re(o,n,i,a,s,"next",t)}function s(t){re(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ie(t){return oe.apply(this,arguments)}function oe(){return(oe=ne((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),fullname:n=!1,test:i=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),yield Object(ee.a)({fs:new u.a(t),gitdir:r,fullname:n,test:i})}catch(t){throw t.caller="git.currentBranch",t}}))).apply(this,arguments)}var ae=r(102);function se(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ce(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){se(o,n,i,a,s,"next",t)}function s(t){se(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ue(t){return fe.apply(this,arguments)}function fe(){return(fe=ce((function*({fs:t,gitdir:e,ref:r}){if(r=r.startsWith("refs/heads/")?r:`refs/heads/${r}`,!(yield X.a.exists({fs:t,gitdir:e,ref:r})))throw new m.a(r);const n=yield X.a.expand({fs:t,gitdir:e,ref:r});if(n===(yield Object(ee.a)({fs:t,gitdir:e,fullname:!0}))){const r=yield X.a.resolve({fs:t,gitdir:e,ref:n});yield X.a.writeRef({fs:t,gitdir:e,ref:"HEAD",value:r})}yield X.a.deleteRef({fs:t,gitdir:e,ref:n});const i=Object(ae.a)(r),o=yield b.a.get({fs:t,gitdir:e});yield o.deleteSection("branch",i),yield b.a.save({fs:t,gitdir:e,config:o})}))).apply(this,arguments)}function le(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function de(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){le(o,n,i,a,s,"next",t)}function s(t){le(o,n,i,a,s,"throw",t)}a(void 0)}))}}function he(t){return pe.apply(this,arguments)}function pe(){return(pe=de((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{return Object(f.a)("fs",t),Object(f.a)("ref",n),yield ue({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteBranch",t}}))).apply(this,arguments)}function ye(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ge(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ye(o,n,i,a,s,"next",t)}function s(t){ye(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ve(t){return me.apply(this,arguments)}function me(){return(me=ge((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{Object(f.a)("fs",t),Object(f.a)("ref",n),yield X.a.deleteRef({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteRef",t}}))).apply(this,arguments)}function be(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function we(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){be(o,n,i,a,s,"next",t)}function s(t){be(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _e(t){return je.apply(this,arguments)}function je(){return(je=we((function*({fs:t,gitdir:e,remote:r}){const n=yield b.a.get({fs:t,gitdir:e});yield n.deleteSection("remote",r),yield b.a.save({fs:t,gitdir:e,config:n})}))).apply(this,arguments)}function Oe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oe(o,n,i,a,s,"next",t)}function s(t){Oe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pe(t){return ke.apply(this,arguments)}function ke(){return(ke=xe((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),remote:n}){try{return Object(f.a)("fs",t),Object(f.a)("remote",n),yield _e({fs:new u.a(t),gitdir:r,remote:n})}catch(t){throw t.caller="git.deleteRemote",t}}))).apply(this,arguments)}function Ee(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ae(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ee(o,n,i,a,s,"next",t)}function s(t){Ee(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Se(t){return Re.apply(this,arguments)}function Re(){return(Re=Ae((function*({fs:t,gitdir:e,ref:r}){r=r.startsWith("refs/tags/")?r:`refs/tags/${r}`,yield X.a.deleteRef({fs:t,gitdir:e,ref:r})}))).apply(this,arguments)}function $e(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Be(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$e(o,n,i,a,s,"next",t)}function s(t){$e(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ie(t){return Te.apply(this,arguments)}function Te(){return(Te=Be((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{return Object(f.a)("fs",t),Object(f.a)("ref",n),yield Se({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteTag",t}}))).apply(this,arguments)}var Ue=r(145);function Ce(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function De(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ce(o,n,i,a,s,"next",t)}function s(t){Ce(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Me(t){return ze.apply(this,arguments)}function ze(){return(ze=De((function*({fs:t,gitdir:e,oid:r}){const n=r.slice(0,2);return(yield t.readdir(`${e}/objects/${n}`)).map(t=>`${n}${t}`).filter(t=>t.startsWith(r))}))).apply(this,arguments)}var Ne=r(86);function Fe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function He(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fe(o,n,i,a,s,"next",t)}function s(t){Fe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Le(t){return Ge.apply(this,arguments)}function Ge(){return(Ge=He((function*({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:i}){const o=[];let a=yield t.readdir(Object(l.join)(r,"objects/pack"));a=a.filter(t=>t.endsWith(".idx"));for(const s of a){const a=`${r}/objects/pack/${s}`,c=yield Object(Ne.a)({fs:t,cache:e,filename:a,getExternalRefDelta:i});if(c.error)throw new mt.a(c.error);for(const t of c.offsets.keys())t.startsWith(n)&&o.push(t)}return o}))).apply(this,arguments)}function We(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){We(o,n,i,a,s,"next",t)}function s(t){We(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ye(t){return Ze.apply(this,arguments)}function Ze(){return(Ze=qe((function*({fs:t,cache:e,gitdir:r,oid:n}){const i=yield Me({fs:t,gitdir:r,oid:n}),o=yield Le({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:n=>Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n})});for(const t of o)-1===i.indexOf(t)&&i.push(t);if(1===i.length)return i[0];if(i.length>1)throw new Ue.a("oids",n,i);throw new m.a(`an object matching "${n}"`)}))).apply(this,arguments)}function Ke(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ve(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ke(o,n,i,a,s,"next",t)}function s(t){Ke(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xe(t){return Je.apply(this,arguments)}function Je(){return(Je=Ve((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Ye({fs:new u.a(t),cache:i,gitdir:r,oid:n})}catch(t){throw t.caller="git.expandOid",t}}))).apply(this,arguments)}function Qe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function tr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qe(o,n,i,a,s,"next",t)}function s(t){Qe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function er(t){return rr.apply(this,arguments)}function rr(){return(rr=tr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield X.a.expand({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.expandRef",t}}))).apply(this,arguments)}var nr=r(17);function ir(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function or(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ir(o,n,i,a,s,"next",t)}function s(t){ir(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ar(t){return sr.apply(this,arguments)}function sr(){return(sr=or((function*({fs:t,cache:e,gitdir:r,oids:n}){const i={},o=n.length;let a=n.map((t,e)=>({index:e,oid:t}));for(;a.length;){const n=new Set;for(const t of a){const{oid:e,index:r}=t;i[e]||(i[e]=new Set),i[e].add(r),i[e].size===o&&n.add(e)}if(n.size>0)return[...n];const s=new Map;for(const n of a){const{oid:o,index:a}=n;try{const{object:n}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:o}),c=nr.a.from(n),{parent:u}=c.parseHeaders();for(const t of u)i[t]&&i[t].has(a)||s.set(t+":"+a,{oid:t,index:a})}catch(t){}}a=Array.from(s.values())}return[]}))).apply(this,arguments)}var cr=r(148),ur=r(97),fr=r(96),lr=r(208);function dr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function hr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){dr(o,n,i,a,s,"next",t)}function s(t){dr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function pr(t){return yr.apply(this,arguments)}function yr(){return(yr=hr((function*({fs:t,cache:e,dir:r,gitdir:n,ours:i,theirs:o,fastForward:a=!0,fastForwardOnly:s=!1,dryRun:u=!1,noUpdateBranch:f=!1,abortOnConflict:l=!0,message:d,author:h,committer:p,signingKey:y,onSign:g,mergeDriver:v,allowUnrelatedHistories:m=!1}){void 0===i&&(i=yield Object(ee.a)({fs:t,gitdir:n,fullname:!0})),i=yield X.a.expand({fs:t,gitdir:n,ref:i}),o=yield X.a.expand({fs:t,gitdir:n,ref:o});const b=yield X.a.resolve({fs:t,gitdir:n,ref:i}),w=yield X.a.resolve({fs:t,gitdir:n,ref:o}),_=yield ar({fs:t,cache:e,gitdir:n,oids:[b,w]});if(1!==_.length){if(0!==_.length||!m)throw new fr.a;_.push("4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const j=_[0];if(j===w)return{oid:b,alreadyMerged:!0};if(a&&j===b)return u||f||(yield X.a.writeRef({fs:t,gitdir:n,ref:i,value:w})),{oid:w,fastForward:!0};{if(s)throw new cr.a;const a=yield c.a.acquire({fs:t,gitdir:n,cache:e,allowUnmerged:!1},function(){var a=hr((function*(a){return Object(lr.a)({fs:t,cache:e,dir:r,gitdir:n,index:a,ourOid:b,theirOid:w,baseOid:j,ourName:Object(ae.a)(i),baseName:"base",theirName:Object(ae.a)(o),dryRun:u,abortOnConflict:l,mergeDriver:v})}));return function(t){return a.apply(this,arguments)}}());if(a instanceof ur.a)throw a;return d||(d=`Merge branch '${Object(ae.a)(o)}' into ${Object(ae.a)(i)}`),{oid:yield Object(Vt.a)({fs:t,cache:e,gitdir:n,message:d,ref:i,tree:a,parent:[b,w],author:h,committer:p,signingKey:y,onSign:g,dryRun:u,noUpdateBranch:f}),tree:a,mergeCommit:!0}}}))).apply(this,arguments)}var gr=r(31);function vr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function mr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vr(o,n,i,a,s,"next",t)}function s(t){vr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function br(t){return wr.apply(this,arguments)}function wr(){return(wr=mr((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,dir:c,gitdir:u,ref:f,url:l,remote:d,remoteRef:h,prune:p,pruneTags:y,fastForward:g,fastForwardOnly:v,corsProxy:m,singleBranch:b,headers:w,author:_,committer:j,signingKey:O}){try{if(!f){const e=yield Object(ee.a)({fs:t,gitdir:u});if(!e)throw new gr.a("ref");f=e}const{fetchHead:x,fetchHeadDescription:P}=yield Object(Dt.a)({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:u,corsProxy:m,ref:f,url:l,remote:d,remoteRef:h,singleBranch:b,headers:w,prune:p,pruneTags:y});yield pr({fs:t,cache:e,gitdir:u,ours:f,theirs:x,fastForward:g,fastForwardOnly:v,message:`Merge ${P}`,author:_,committer:j,signingKey:O,dryRun:!1,noUpdateBranch:!1}),yield Ot({fs:t,cache:e,onProgress:n,dir:c,gitdir:u,ref:f,remote:d,noCheckout:!1})}catch(t){throw t.caller="git.pull",t}}))).apply(this,arguments)}function _r(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function jr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_r(o,n,i,a,s,"next",t)}function s(t){_r(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Or(t){return xr.apply(this,arguments)}function xr(){return(xr=jr((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(l.join)(s,".git"),ref:d,url:h,remote:p,remoteRef:y,corsProxy:g,singleBranch:v,headers:m={},cache:b={}}){try{Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",c);const l={name:"",email:"",timestamp:Date.now(),timezoneOffset:0};return yield br({fs:new u.a(t),cache:b,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,ref:d,url:h,remote:p,remoteRef:y,fastForwardOnly:!0,corsProxy:g,singleBranch:v,headers:m,author:l,committer:l})}catch(t){throw t.caller="git.fastForward",t}}))).apply(this,arguments)}function Pr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function kr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Pr(o,n,i,a,s,"next",t)}function s(t){Pr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Er(t){return Ar.apply(this,arguments)}function Ar(){return(Ar=kr((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(l.join)(s,".git"),ref:d,remote:h,remoteRef:p,url:y,corsProxy:g,depth:v=null,since:m=null,exclude:b=[],relative:w=!1,tags:_=!1,singleBranch:j=!1,headers:O={},prune:x=!1,pruneTags:P=!1,cache:k={}}){try{return Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",c),yield Object(Dt.a)({fs:new u.a(t),cache:k,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:c,ref:d,remote:h,remoteRef:p,url:y,corsProxy:g,depth:v,since:m,exclude:b,relative:w,tags:_,singleBranch:j,headers:O,prune:x,pruneTags:P})}catch(t){throw t.caller="git.fetch",t}}))).apply(this,arguments)}function Sr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Sr(o,n,i,a,s,"next",t)}function s(t){Sr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function $r(t){return Br.apply(this,arguments)}function Br(){return(Br=Rr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oids:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oids",n),yield ar({fs:new u.a(t),cache:i,gitdir:r,oids:n})}catch(t){throw t.caller="git.findMergeBase",t}}))).apply(this,arguments)}var Ir=r(23);function Tr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ur(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Tr(o,n,i,a,s,"next",t)}function s(t){Tr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Cr(t){return Dr.apply(this,arguments)}function Dr(){return(Dr=Ur((function*({fs:t,filepath:e}){if(yield t.exists(Object(l.join)(e,".git")))return e;{const r=Object(Ir.a)(e);if(r===e)throw new m.a(`git root for ${e}`);return Cr({fs:t,filepath:r})}}))).apply(this,arguments)}function Mr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function zr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Mr(o,n,i,a,s,"next",t)}function s(t){Mr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Nr(t){return Fr.apply(this,arguments)}function Fr(){return(Fr=zr((function*({fs:t,filepath:e}){try{return Object(f.a)("fs",t),Object(f.a)("filepath",e),yield Cr({fs:new u.a(t),filepath:e})}catch(t){throw t.caller="git.findRoot",t}}))).apply(this,arguments)}var Hr=r(42);function Lr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Gr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Lr(o,n,i,a,s,"next",t)}function s(t){Lr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Wr(t){return qr.apply(this,arguments)}function qr(){return(qr=Gr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),path:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("path",n),yield Object(Hr.a)({fs:new u.a(t),gitdir:r,path:n})}catch(t){throw t.caller="git.getConfig",t}}))).apply(this,arguments)}function Yr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Zr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Yr(o,n,i,a,s,"next",t)}function s(t){Yr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Kr(t){return Vr.apply(this,arguments)}function Vr(){return(Vr=Zr((function*({fs:t,gitdir:e,path:r}){return(yield b.a.get({fs:t,gitdir:e})).getall(r)}))).apply(this,arguments)}function Xr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Jr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xr(o,n,i,a,s,"next",t)}function s(t){Xr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qr(t){return tn.apply(this,arguments)}function tn(){return(tn=Jr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),path:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("path",n),yield Kr({fs:new u.a(t),gitdir:r,path:n})}catch(t){throw t.caller="git.getConfigAll",t}}))).apply(this,arguments)}var en=r(61);function rn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function nn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){rn(o,n,i,a,s,"next",t)}function s(t){rn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function on(t){return an.apply(this,arguments)}function an(){return(an=nn((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1}){try{Object(f.a)("http",t),Object(f.a)("url",o);const c=en.a.getRemoteHelperFor({url:o}),u=yield c.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:1}),l={capabilities:[...u.capabilities]};for(const[t,e]of u.refs){const r=t.split("/"),n=r.pop();let i=l;for(const t of r)i[t]=i[t]||{},i=i[t];i[n]=e}for(const[t,e]of u.symrefs){const r=t.split("/"),n=r.pop();let i=l;for(const t of r)i[t]=i[t]||{},i=i[t];i[n]=e}return l}catch(t){throw t.caller="git.getRemoteInfo",t}}))).apply(this,arguments)}function sn(t,e,r,n){const i=[];for(const[o,a]of t.refs){if(e&&!o.startsWith(e))continue;if(o.endsWith("^{}")){if(n){const t=o.replace("^{}",""),e=i[i.length-1],r=e.ref===t?e:i.find(e=>e.ref===t);if(void 0===r)throw new Error("I did not expect this to happen");r.peeled=a}continue}const s={ref:o,oid:a};r&&t.symrefs.has(o)&&(s.target=t.symrefs.get(o)),i.push(s)}return i}function cn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function un(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cn(o,n,i,a,s,"next",t)}function s(t){cn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function fn(t){return ln.apply(this,arguments)}function ln(){return(ln=un((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1,protocolVersion:c=2}){try{Object(f.a)("http",t),Object(f.a)("url",o);const u=en.a.getRemoteHelperFor({url:o}),l=yield u.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:c});if(2===l.protocolVersion)return{protocolVersion:l.protocolVersion,capabilities:l.capabilities2};const d={};for(const t of l.capabilities){const[e,r]=t.split("=");d[e]=r||!0}return{protocolVersion:1,capabilities:d,refs:sn(l,void 0,!0,!0)}}catch(t){throw t.caller="git.getRemoteInfo2",t}}))).apply(this,arguments)}var dn=r(218),hn=r(62);function pn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){pn(o,n,i,a,s,"next",t)}function s(t){pn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gn(t){return vn.apply(this,arguments)}function vn(){return(vn=yn((function*({fs:t,cache:e,onProgress:r,dir:n,gitdir:i,filepath:o}){try{o=Object(l.join)(n,o);const a=yield t.read(o),s=r=>Object(Q.a)({fs:t,cache:e,gitdir:i,oid:r}),c=yield hn.a.fromPack({pack:a,getExternalRefDelta:s,onProgress:r});return yield t.write(o.replace(/\.pack$/,".idx"),yield c.toBuffer()),{oids:[...c.hashes]}}catch(t){throw t.caller="git.indexPack",t}}))).apply(this,arguments)}function mn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function bn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){mn(o,n,i,a,s,"next",t)}function s(t){mn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function wn(t){return _n.apply(this,arguments)}function _n(){return(_n=bn((function*({fs:t,onProgress:e,dir:r,gitdir:n=Object(l.join)(r,".git"),filepath:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("dir",r),Object(f.a)("gitdir",r),Object(f.a)("filepath",i),yield gn({fs:new u.a(t),cache:o,onProgress:e,dir:r,gitdir:n,filepath:i})}catch(t){throw t.caller="git.indexPack",t}}))).apply(this,arguments)}function jn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function On(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){jn(o,n,i,a,s,"next",t)}function s(t){jn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function xn(t){return Pn.apply(this,arguments)}function Pn(){return(Pn=On((function*({fs:t,bare:e=!1,dir:r,gitdir:n=(e?r:Object(l.join)(r,".git")),defaultBranch:i="master"}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",n),e||Object(f.a)("dir",r),yield Nt({fs:new u.a(t),bare:e,dir:r,gitdir:n,defaultBranch:i})}catch(t){throw t.caller="git.init",t}}))).apply(this,arguments)}var kn=r(150),En=r(19),An=r(49);function Sn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Rn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Sn(o,n,i,a,s,"next",t)}function s(t){Sn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function $n(t){return Bn.apply(this,arguments)}function Bn(){return(Bn=Rn((function*({fs:t,cache:e,gitdir:r,oid:n,ancestor:i,depth:o}){const a=yield An.a.read({fs:t,gitdir:r});if(!n)throw new gr.a("oid");if(!i)throw new gr.a("ancestor");if(n===i)return!1;const s=[n],c=new Set;let u=0;for(;s.length;){if(u++===o)throw new kn.a(o);const n=s.shift(),{type:f,object:l}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n});if("commit"!==f)throw new En.a(n,f,"commit");const d=nr.a.from(l).parse();for(const t of d.parent)if(t===i)return!0;if(!a.has(n))for(const t of d.parent)c.has(t)||(s.push(t),c.add(t))}return!1}))).apply(this,arguments)}function In(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Tn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){In(o,n,i,a,s,"next",t)}function s(t){In(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Un(t){return Cn.apply(this,arguments)}function Cn(){return(Cn=Tn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,ancestor:i,depth:o=-1,cache:a={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),Object(f.a)("ancestor",i),yield $n({fs:new u.a(t),cache:a,gitdir:r,oid:n,ancestor:i,depth:o})}catch(t){throw t.caller="git.isDescendent",t}}))).apply(this,arguments)}function Dn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Dn(o,n,i,a,s,"next",t)}function s(t){Dn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zn(t){return Nn.apply(this,arguments)}function Nn(){return(Nn=Mn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n}){try{return Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r),Object(f.a)("filepath",n),w.a.isIgnored({fs:new u.a(t),dir:e,gitdir:r,filepath:n})}catch(t){throw t.caller="git.isIgnored",t}}))).apply(this,arguments)}function Fn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Hn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fn(o,n,i,a,s,"next",t)}function s(t){Fn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ln(t){return Gn.apply(this,arguments)}function Gn(){return(Gn=Hn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),remote:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),X.a.listBranches({fs:new u.a(t),gitdir:r,remote:n})}catch(t){throw t.caller="git.listBranches",t}}))).apply(this,arguments)}var Wn=r(90);function qn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Yn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){qn(o,n,i,a,s,"next",t)}function s(t){qn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Zn(t){return Kn.apply(this,arguments)}function Kn(){return(Kn=Yn((function*({fs:t,gitdir:e,ref:r,cache:n}){if(r){const i=yield X.a.resolve({gitdir:e,fs:t,ref:r}),o=[];return yield Vn({fs:t,cache:n,gitdir:e,oid:i,filenames:o,prefix:""}),o}return c.a.acquire({fs:t,gitdir:e,cache:n},function(){var t=Yn((function*(t){return t.entries.map(t=>t.path)}));return function(e){return t.apply(this,arguments)}}())}))).apply(this,arguments)}function Vn(t){return Xn.apply(this,arguments)}function Xn(){return(Xn=Yn((function*({fs:t,cache:e,gitdir:r,oid:n,filenames:i,prefix:o}){const{tree:a}=yield Object(Wn.a)({fs:t,cache:e,gitdir:r,oid:n});for(const n of a)"tree"===n.type?yield Vn({fs:t,cache:e,gitdir:r,oid:n.oid,filenames:i,prefix:Object(l.join)(o,n.path)}):i.push(Object(l.join)(o,n.path))}))).apply(this,arguments)}function Jn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Qn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Jn(o,n,i,a,s,"next",t)}function s(t){Jn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ti(t){return ei.apply(this,arguments)}function ei(){return(ei=Qn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),yield Zn({fs:new u.a(t),cache:i,gitdir:r,ref:n})}catch(t){throw t.caller="git.listFiles",t}}))).apply(this,arguments)}function ri(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ni(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ri(o,n,i,a,s,"next",t)}function s(t){ri(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ii(t){return oi.apply(this,arguments)}function oi(){return(oi=ni((function*({fs:t,cache:e,gitdir:r,ref:n}){let i;try{i=yield X.a.resolve({gitdir:r,fs:t,ref:n})}catch(t){if(t instanceof m.a)return[]}return(yield Object(Wn.a)({fs:t,cache:e,gitdir:r,oid:i})).tree.map(t=>({target:t.path,note:t.oid}))}))).apply(this,arguments)}function ai(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function si(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ai(o,n,i,a,s,"next",t)}function s(t){ai(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ci(t){return ui.apply(this,arguments)}function ui(){return(ui=si((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n="refs/notes/commits",cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield ii({fs:new u.a(t),cache:i,gitdir:r,ref:n})}catch(t){throw t.caller="git.listNotes",t}}))).apply(this,arguments)}function fi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function li(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){fi(o,n,i,a,s,"next",t)}function s(t){fi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function di(t){return hi.apply(this,arguments)}function hi(){return(hi=li((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),X.a.listRefs({fs:new u.a(t),gitdir:r,filepath:n})}catch(t){throw t.caller="git.listRefs",t}}))).apply(this,arguments)}function pi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){pi(o,n,i,a,s,"next",t)}function s(t){pi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gi(t){return vi.apply(this,arguments)}function vi(){return(vi=yi((function*({fs:t,gitdir:e}){const r=yield b.a.get({fs:t,gitdir:e}),n=yield r.getSubsections("remote");return Promise.all(n.map(function(){var t=yi((function*(t){return{remote:t,url:yield r.get(`remote.${t}.url`)}}));return function(e){return t.apply(this,arguments)}}()))}))).apply(this,arguments)}function mi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function bi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){mi(o,n,i,a,s,"next",t)}function s(t){mi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function wi(t){return _i.apply(this,arguments)}function _i(){return(_i=bi((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git")}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),yield gi({fs:new u.a(t),gitdir:r})}catch(t){throw t.caller="git.listRemotes",t}}))).apply(this,arguments)}var ji=r(44),Oi=r(10);function xi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Pi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xi(o,n,i,a,s,"next",t)}function s(t){xi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ki(t){return Ei.apply(this,arguments)}function Ei(){return(Ei=Pi((function*(t){const e=Oi.a.streamReader(t),r=[];let n;for(;n=yield e(),!0!==n;){if(null===n)continue;n=n.toString("utf8").replace(/\n$/,"");const[t,e,...i]=n.split(" "),o={ref:e,oid:t};for(const t of i){const[e,r]=t.split(":");"symref-target"===e?o.target=r:"peeled"===e&&(o.peeled=r)}r.push(o)}return r}))).apply(this,arguments)}var Ai=r(72);function Si(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ri(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Si(o,n,i,a,s,"next",t)}function s(t){Si(o,n,i,a,s,"throw",t)}a(void 0)}))}}function $i(t){return Bi.apply(this,arguments)}function Bi(){return(Bi=Ri((function*({prefix:t,symrefs:e,peelTags:r}){const n=[];return n.push(Oi.a.encode("command=ls-refs\n")),n.push(Oi.a.encode(`agent=${Ai.a.agent}\n`)),(r||e||t)&&n.push(Oi.a.delim()),r&&n.push(Oi.a.encode("peel")),e&&n.push(Oi.a.encode("symrefs")),t&&n.push(Oi.a.encode(`ref-prefix ${t}`)),n.push(Oi.a.flush()),n}))).apply(this,arguments)}function Ii(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ti(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ii(o,n,i,a,s,"next",t)}function s(t){Ii(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ui(t){return Ci.apply(this,arguments)}function Ci(){return(Ci=Ti((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1,protocolVersion:c=2,prefix:u,symrefs:l,peelTags:d}){try{Object(f.a)("http",t),Object(f.a)("url",o);const h=yield ji.a.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:c});if(1===h.protocolVersion)return sn(h,u,l,d);const p=yield $i({prefix:u,symrefs:l,peelTags:d});return ki((yield ji.a.connect({http:t,auth:h.auth,headers:a,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,body:p})).body)}catch(t){throw t.caller="git.listServerRefs",t}}))).apply(this,arguments)}function Di(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Di(o,n,i,a,s,"next",t)}function s(t){Di(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zi(t){return Ni.apply(this,arguments)}function Ni(){return(Ni=Mi((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git")}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),X.a.listTags({fs:new u.a(t),gitdir:r})}catch(t){throw t.caller="git.listTags",t}}))).apply(this,arguments)}var Fi=r(68);function Hi(t,e){return t.committer.timestamp-e.committer.timestamp}var Li=r(14),Gi=r(52);function Wi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wi(o,n,i,a,s,"next",t)}function s(t){Wi(o,n,i,a,s,"throw",t)}a(void 0)}))}}const Yi="e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";function Zi(t){return Ki.apply(this,arguments)}function Ki(){return(Ki=qi((function*({fs:t,cache:e,gitdir:r,oid:n,fileId:i}){if(i===Yi)return;const o=n;let a;const s=yield Object(Gi.a)({fs:t,cache:e,gitdir:r,oid:n}),c=s.tree;return i===s.oid?a=s.path:(a=yield Vi({fs:t,cache:e,gitdir:r,tree:c,fileId:i,oid:o}),Array.isArray(a)&&(0===a.length?a=void 0:1===a.length&&(a=a[0]))),a}))).apply(this,arguments)}function Vi(t){return Xi.apply(this,arguments)}function Xi(){return(Xi=qi((function*({fs:t,cache:e,gitdir:r,tree:n,fileId:i,oid:o,filepaths:a=[],parentPath:s=""}){const c=n.entries().map((function(n){let c;return n.oid===i?(c=Object(l.join)(s,n.path),a.push(c)):"tree"===n.type&&(c=Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n.oid}).then((function({object:c}){return Vi({fs:t,cache:e,gitdir:r,tree:Li.a.from(c),fileId:i,oid:o,filepaths:a,parentPath:Object(l.join)(s,n.path)})}))),c}));return yield Promise.all(c),a}))).apply(this,arguments)}var Ji=r(111);function Qi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function to(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qi(o,n,i,a,s,"next",t)}function s(t){Qi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function eo(t){return ro.apply(this,arguments)}function ro(){return(ro=to((function*({fs:t,cache:e,gitdir:r,filepath:n,ref:i,depth:o,since:a,force:s,follow:c}){const u=void 0===a?void 0:Math.floor(a.valueOf()/1e3),f=[],l=yield An.a.read({fs:t,gitdir:r}),d=yield X.a.resolve({fs:t,gitdir:r,ref:i}),h=[yield Object(Fi.a)({fs:t,cache:e,gitdir:r,oid:d})];let p,y,g;function v(t){g&&n&&f.push(t)}for(;h.length>0;){const i=h.pop();if(void 0!==u&&i.commit.committer.timestamp<=u)break;if(n){let o;try{o=yield Object(Ji.a)({fs:t,cache:e,gitdir:r,oid:i.commit.tree,filepath:n}),y&&p!==o&&f.push(y),p=o,y=i,g=!0}catch(o){if(!(o instanceof m.a))throw o;{let a=c&&p;if(a&&(a=yield Zi({fs:t,cache:e,gitdir:r,oid:i.commit.tree,fileId:p}),a))if(Array.isArray(a)){if(y){const i=yield Zi({fs:t,cache:e,gitdir:r,oid:y.commit.tree,fileId:p});if(Array.isArray(i)){if(a=a.filter(t=>-1===i.indexOf(t)),1!==a.length){a=!1,y&&f.push(y);break}a=a[0],n=a,y&&f.push(y)}}}else n=a,y&&f.push(y);if(!a){if(g&&p&&(f.push(y),!s))break;if(!s&&!c)throw o}y=i,g=!1}}}else f.push(i);if(void 0!==o&&f.length===o){v(i);break}if(!l.has(i.oid))for(const n of i.commit.parent){const i=yield Object(Fi.a)({fs:t,cache:e,gitdir:r,oid:n});h.map(t=>t.oid).includes(i.oid)||h.push(i)}0===h.length&&v(i),h.sort((t,e)=>Hi(t.commit,e.commit))}return f}))).apply(this,arguments)}function no(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function io(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){no(o,n,i,a,s,"next",t)}function s(t){no(o,n,i,a,s,"throw",t)}a(void 0)}))}}function oo(t){return ao.apply(this,arguments)}function ao(){return(ao=io((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,ref:i="HEAD",depth:o,since:a,force:s,follow:c,cache:d={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",i),yield eo({fs:new u.a(t),cache:d,gitdir:r,filepath:n,ref:i,depth:o,since:a,force:s,follow:c})}catch(t){throw t.caller="git.log",t}}))).apply(this,arguments)}function so(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function co(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){so(o,n,i,a,s,"next",t)}function s(t){so(o,n,i,a,s,"throw",t)}a(void 0)}))}}function uo(t){return fo.apply(this,arguments)}function fo(){return(fo=co((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ours:i,theirs:o,fastForward:a=!0,fastForwardOnly:s=!1,dryRun:c=!1,noUpdateBranch:d=!1,abortOnConflict:h=!0,message:p,author:y,committer:g,signingKey:v,cache:m={},mergeDriver:b,allowUnrelatedHistories:w=!1}){try{Object(f.a)("fs",t),v&&Object(f.a)("onSign",e);const l=new u.a(t),_=yield Object($.a)({fs:l,gitdir:n,author:y});if(!(_||s&&a))throw new R.a("author");const j=yield Object(B.a)({fs:l,gitdir:n,author:_,committer:g});if(!(j||s&&a))throw new R.a("committer");return yield pr({fs:l,cache:m,dir:r,gitdir:n,ours:i,theirs:o,fastForward:a,fastForwardOnly:s,dryRun:c,noUpdateBranch:d,abortOnConflict:h,message:p,author:_,committer:j,signingKey:v,onSign:e,mergeDriver:b,allowUnrelatedHistories:w})}catch(t){throw t.caller="git.merge",t}}))).apply(this,arguments)}var lo=r(224);function ho(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function po(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ho(o,n,i,a,s,"next",t)}function s(t){ho(o,n,i,a,s,"throw",t)}a(void 0)}))}}function yo(t){return go.apply(this,arguments)}function go(){return(go=po((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oids:n,write:i=!1,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oids",n),yield Object(lo.a)({fs:new u.a(t),cache:o,gitdir:r,oids:n,write:i})}catch(t){throw t.caller="git.packObjects",t}}))).apply(this,arguments)}function vo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function mo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vo(o,n,i,a,s,"next",t)}function s(t){vo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function bo(t){return wo.apply(this,arguments)}function wo(){return(wo=mo((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(l.join)(s,".git"),ref:d,url:h,remote:p,remoteRef:y,prune:g=!1,pruneTags:v=!1,fastForward:m=!0,fastForwardOnly:b=!1,corsProxy:w,singleBranch:_,headers:j={},author:O,committer:x,signingKey:P,cache:k={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",c);const l=new u.a(t),E=yield Object($.a)({fs:l,gitdir:c,author:O});if(!E)throw new R.a("author");const A=yield Object(B.a)({fs:l,gitdir:c,author:E,committer:x});if(!A)throw new R.a("committer");return yield br({fs:l,cache:k,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,ref:d,url:h,remote:p,remoteRef:y,fastForward:m,fastForwardOnly:b,corsProxy:w,singleBranch:_,headers:j,author:E,committer:A,signingKey:P,prune:g,pruneTags:v})}catch(t){throw t.caller="git.pull",t}}))).apply(this,arguments)}var _o=r(209),jo=r(157),Oo=r(155),xo=r(149),Po=r(132),ko=r(60),Eo=r(113),Ao=r(215),So=r(45),Ro=r(216),$o=r(211),Bo=r(210);function Io(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function To(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Io(o,n,i,a,s,"next",t)}function s(t){Io(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Uo(t){return Co.apply(this,arguments)}function Co(){return(Co=To((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,onPrePush:c,gitdir:u,ref:f,remoteRef:l,remote:d,url:h,force:p=!1,delete:y=!1,corsProxy:g,headers:v={}}){const w=f||(yield Object(ee.a)({fs:t,gitdir:u}));if(void 0===w)throw new gr.a("ref");const _=yield b.a.get({fs:t,gitdir:u});d=d||(yield _.get(`branch.${w}.pushRemote`))||(yield _.get("remote.pushDefault"))||(yield _.get(`branch.${w}.remote`))||"origin";const j=h||(yield _.get(`remote.${d}.pushurl`))||(yield _.get(`remote.${d}.url`));if(void 0===j)throw new gr.a("remote OR url");const O=l||(yield _.get(`branch.${w}.merge`));if(void 0===j)throw new gr.a("remoteRef");void 0===g&&(g=yield _.get("http.corsProxy"));const x=yield X.a.expand({fs:t,gitdir:u,ref:w}),P=y?"0000000000000000000000000000000000000000":yield X.a.resolve({fs:t,gitdir:u,ref:x}),k=en.a.getRemoteHelperFor({url:j}),E=yield k.discover({http:r,onAuth:o,onAuthSuccess:a,onAuthFailure:s,corsProxy:g,service:"git-receive-pack",url:j,headers:v,protocolVersion:1}),A=E.auth;let S;if(O)try{S=yield X.a.expandAgainstMap({ref:O,map:E.refs})}catch(t){if(!(t instanceof m.a))throw t;S=O.startsWith("refs/")?O:`refs/heads/${O}`}else S=x;const R=E.refs.get(S)||"0000000000000000000000000000000000000000";if(c){if(!(yield c({remote:d,url:j,localRef:{ref:y?"(delete)":x,oid:P},remoteRef:{ref:S,oid:R}})))throw new ko.a}const $=!E.capabilities.has("no-thin");let B=new Set;if(!y){const r=[...E.refs.values()];let n=new Set;if("0000000000000000000000000000000000000000"!==R){const i=yield ar({fs:t,cache:e,gitdir:u,oids:[P,R]});for(const t of i)r.push(t);$&&(n=yield Object(jo.a)({fs:t,cache:e,gitdir:u,oids:i}))}if(!r.includes(P)){const n=yield Object(_o.a)({fs:t,cache:e,gitdir:u,start:[P],finish:r});B=yield Object(jo.a)({fs:t,cache:e,gitdir:u,oids:n})}if($){try{const r=yield X.a.resolve({fs:t,gitdir:u,ref:`refs/remotes/${d}/HEAD`,depth:2}),{oid:i}=yield X.a.resolveAgainstMap({ref:r.replace(`refs/remotes/${d}/`,""),fullref:r,map:E.refs}),o=[i];for(const r of yield Object(jo.a)({fs:t,cache:e,gitdir:u,oids:o}))n.add(r)}catch(t){}for(const t of n)B.delete(t)}if(P===R&&(p=!0),!p){if(x.startsWith("refs/tags")&&"0000000000000000000000000000000000000000"!==R)throw new Po.a("tag-exists");if("0000000000000000000000000000000000000000"!==P&&"0000000000000000000000000000000000000000"!==R&&!(yield $n({fs:t,cache:e,gitdir:u,oid:P,ancestor:R,depth:-1})))throw new Po.a("not-fast-forward")}}const I=Object(Ao.a)([...E.capabilities],["report-status","side-band-64k",`agent=${Ai.a.agent}`]),T=yield Object(Bo.a)({capabilities:I,triplets:[{oldoid:R,oid:P,fullRef:S}]}),U=y?[]:yield Object(Oo.a)({fs:t,cache:e,gitdir:u,oids:[...B]}),C=yield k.connect({http:r,onProgress:n,corsProxy:g,service:"git-receive-pack",url:j,auth:A,headers:v,body:[...T,...U]}),{packfile:D,progress:M}=yield Eo.a.demux(C.body);if(i){const t=Object(Ro.a)(M);Object(So.a)(t,function(){var t=To((function*(t){yield i(t)}));return function(e){return t.apply(this,arguments)}}())}const z=yield Object($o.a)(D);if(C.headers&&(z.headers=C.headers),d&&z.ok&&z.refs[S].ok&&!x.startsWith("refs/tags")){const e=`refs/remotes/${d}/${S.replace("refs/heads","")}`;y?yield X.a.deleteRef({fs:t,gitdir:u,ref:e}):yield X.a.writeRef({fs:t,gitdir:u,ref:e,value:P})}if(z.ok&&Object.values(z.refs).every(t=>t.ok))return z;{const t=Object.entries(z.refs).filter(([t,e])=>!e.ok).map(([t,e])=>`\n - ${t}: ${e.error}`).join("");throw new xo.a(t,z)}}))).apply(this,arguments)}function Do(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Do(o,n,i,a,s,"next",t)}function s(t){Do(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zo(t){return No.apply(this,arguments)}function No(){return(No=Mo((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPrePush:s,dir:c,gitdir:d=Object(l.join)(c,".git"),ref:h,remoteRef:p,remote:y="origin",url:g,force:v=!1,delete:m=!1,corsProxy:b,headers:w={},cache:_={}}){try{return Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",d),yield Uo({fs:new u.a(t),cache:_,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPrePush:s,gitdir:d,ref:h,remoteRef:p,remote:y,url:g,force:v,delete:m,corsProxy:b,headers:w})}catch(t){throw t.caller="git.push",t}}))).apply(this,arguments)}function Fo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ho(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fo(o,n,i,a,s,"next",t)}function s(t){Fo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Lo(t){return Go.apply(this,arguments)}function Go(){return(Go=Ho((function*({fs:t,cache:e,gitdir:r,oid:n}){const{type:i,object:o}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n});if("tag"===i)return Lo({fs:t,cache:e,gitdir:r,oid:n=J.a.from(o).parse().object});if("blob"!==i)throw new En.a(n,i,"blob");return{oid:n,blob:new Uint8Array(o)}}))).apply(this,arguments)}function Wo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wo(o,n,i,a,s,"next",t)}function s(t){Wo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Yo(t){return Zo.apply(this,arguments)}function Zo(){return(Zo=qo((function*({fs:t,cache:e,gitdir:r,oid:n,filepath:i}){return void 0!==i&&(n=yield Object(Ji.a)({fs:t,cache:e,gitdir:r,oid:n,filepath:i})),yield Lo({fs:t,cache:e,gitdir:r,oid:n})}))).apply(this,arguments)}function Ko(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Vo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ko(o,n,i,a,s,"next",t)}function s(t){Ko(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xo(t){return Jo.apply(this,arguments)}function Jo(){return(Jo=Vo((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,filepath:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Yo({fs:new u.a(t),cache:o,gitdir:r,oid:n,filepath:i})}catch(t){throw t.caller="git.readBlob",t}}))).apply(this,arguments)}function Qo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ta(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qo(o,n,i,a,s,"next",t)}function s(t){Qo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ea(t){return ra.apply(this,arguments)}function ra(){return(ra=ta((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Object(Fi.a)({fs:new u.a(t),cache:i,gitdir:r,oid:n})}catch(t){throw t.caller="git.readCommit",t}}))).apply(this,arguments)}function na(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ia(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){na(o,n,i,a,s,"next",t)}function s(t){na(o,n,i,a,s,"throw",t)}a(void 0)}))}}function oa(t){return aa.apply(this,arguments)}function aa(){return(aa=ia((function*({fs:t,cache:e,gitdir:r,ref:n="refs/notes/commits",oid:i}){const o=yield X.a.resolve({gitdir:r,fs:t,ref:n}),{blob:a}=yield Yo({fs:t,cache:e,gitdir:r,oid:o,filepath:i});return a}))).apply(this,arguments)}function sa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ca(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){sa(o,n,i,a,s,"next",t)}function s(t){sa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ua(t){return fa.apply(this,arguments)}function fa(){return(fa=ca((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n="refs/notes/commits",oid:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),Object(f.a)("oid",i),yield oa({fs:new u.a(t),cache:o,gitdir:r,ref:n,oid:i})}catch(t){throw t.caller="git.readNote",t}}))).apply(this,arguments)}function la(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function da(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){la(o,n,i,a,s,"next",t)}function s(t){la(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ha(t){return pa.apply(this,arguments)}function pa(){return(pa=da((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,format:i="parsed",filepath:o,encoding:a,cache:s={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n);const e=new u.a(t);void 0!==o&&(n=yield Object(Ji.a)({fs:e,cache:s,gitdir:r,oid:n,filepath:o}));const c="parsed"===i?"content":i,l=yield Object(Q.a)({fs:e,cache:s,gitdir:r,oid:n,format:c});if(l.oid=n,"parsed"===i)switch(l.format="parsed",l.type){case"commit":l.object=nr.a.from(l.object).parse();break;case"tree":l.object=Li.a.from(l.object).entries();break;case"blob":a?l.object=l.object.toString(a):(l.object=new Uint8Array(l.object),l.format="content");break;case"tag":l.object=J.a.from(l.object).parse();break;default:throw new En.a(l.oid,l.type,"blob|commit|tag|tree")}else"deflated"!==l.format&&"wrapped"!==l.format||(l.type=l.format);return l}catch(t){throw t.caller="git.readObject",t}}))).apply(this,arguments)}function ya(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ga(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ya(o,n,i,a,s,"next",t)}function s(t){ya(o,n,i,a,s,"throw",t)}a(void 0)}))}}function va(t){return ma.apply(this,arguments)}function ma(){return(ma=ga((function*({fs:t,cache:e,gitdir:r,oid:n}){const{type:i,object:o}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n,format:"content"});if("tag"!==i)throw new En.a(n,i,"tag");const a=J.a.from(o);return{oid:n,tag:a.parse(),payload:a.payload()}}))).apply(this,arguments)}function ba(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function wa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ba(o,n,i,a,s,"next",t)}function s(t){ba(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _a(t){return ja.apply(this,arguments)}function ja(){return(ja=wa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield va({fs:new u.a(t),cache:i,gitdir:r,oid:n})}catch(t){throw t.caller="git.readTag",t}}))).apply(this,arguments)}function Oa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oa(o,n,i,a,s,"next",t)}function s(t){Oa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pa(t){return ka.apply(this,arguments)}function ka(){return(ka=xa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,filepath:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Object(Wn.a)({fs:new u.a(t),cache:o,gitdir:r,oid:n,filepath:i})}catch(t){throw t.caller="git.readTree",t}}))).apply(this,arguments)}function Ea(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Aa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ea(o,n,i,a,s,"next",t)}function s(t){Ea(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sa(t){return Ra.apply(this,arguments)}function Ra(){return(Ra=Aa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,cache:i={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",n),yield c.a.acquire({fs:new u.a(t),gitdir:r,cache:i},function(){var t=Aa((function*(t){t.delete({filepath:n})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.remove",t}}))).apply(this,arguments)}var $a=r(77);function Ba(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ia(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ba(o,n,i,a,s,"next",t)}function s(t){Ba(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ta(t){return Ua.apply(this,arguments)}function Ua(){return(Ua=Ia((function*({fs:t,cache:e,onSign:r,gitdir:n,ref:i="refs/notes/commits",oid:o,author:a,committer:s,signingKey:c}){let u;try{u=yield X.a.resolve({gitdir:n,fs:t,ref:i})}catch(t){if(!(t instanceof m.a))throw t}let f=(yield Object(Wn.a)({fs:t,gitdir:n,oid:u||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;f=f.filter(t=>t.path!==o);const l=yield Object($a.a)({fs:t,gitdir:n,tree:f});return yield Object(Vt.a)({fs:t,cache:e,onSign:r,gitdir:n,ref:i,tree:l,parent:u&&[u],message:"Note removed by 'isomorphic-git removeNote'\n",author:a,committer:s,signingKey:c})}))).apply(this,arguments)}function Ca(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Da(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ca(o,n,i,a,s,"next",t)}function s(t){Ca(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ma(t){return za.apply(this,arguments)}function za(){return(za=Da((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ref:i="refs/notes/commits",oid:o,author:a,committer:s,signingKey:c,cache:d={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",n),Object(f.a)("oid",o);const r=new u.a(t),l=yield Object($.a)({fs:r,gitdir:n,author:a});if(!l)throw new R.a("author");const h=yield Object(B.a)({fs:r,gitdir:n,author:l,committer:s});if(!h)throw new R.a("committer");return yield Ta({fs:r,cache:d,onSign:e,gitdir:n,ref:i,oid:o,author:l,committer:h,signingKey:c})}catch(t){throw t.caller="git.removeNote",t}}))).apply(this,arguments)}function Na(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Fa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Na(o,n,i,a,s,"next",t)}function s(t){Na(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ha(t){return La.apply(this,arguments)}function La(){return(La=Fa((function*({fs:t,gitdir:e,oldref:r,ref:n,checkout:i=!1}){if(!N()(n,!0))throw new H.a(n,M.a.clean(n));if(!N()(r,!0))throw new H.a(r,M.a.clean(r));const o=`refs/heads/${r}`,a=`refs/heads/${n}`;if(yield X.a.exists({fs:t,gitdir:e,ref:a}))throw new F.a("branch",n,!1);const s=yield X.a.resolve({fs:t,gitdir:e,ref:o,depth:1});yield X.a.writeRef({fs:t,gitdir:e,ref:a,value:s}),yield X.a.deleteRef({fs:t,gitdir:e,ref:o});const c=yield Object(ee.a)({fs:t,gitdir:e,fullname:!0});(i||c===o)&&(yield X.a.writeSymbolicRef({fs:t,gitdir:e,ref:"HEAD",value:a}))}))).apply(this,arguments)}function Ga(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Wa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ga(o,n,i,a,s,"next",t)}function s(t){Ga(o,n,i,a,s,"throw",t)}a(void 0)}))}}function qa(t){return Ya.apply(this,arguments)}function Ya(){return(Ya=Wa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,oldref:i,checkout:o=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),Object(f.a)("oldref",i),yield Ha({fs:new u.a(t),gitdir:r,ref:n,oldref:i,checkout:o})}catch(t){throw t.caller="git.renameBranch",t}}))).apply(this,arguments)}var Za=r(22),Ka=r(15);function Va(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Xa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Va(o,n,i,a,s,"next",t)}function s(t){Va(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ja(t){return Qa.apply(this,arguments)}function Qa(){return(Qa=Xa((function*({gitdir:t,type:e,object:r}){return Object(Ka.a)(Za.a.wrap({type:e,object:r}))}))).apply(this,arguments)}function ts(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function es(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ts(o,n,i,a,s,"next",t)}function s(t){ts(o,n,i,a,s,"throw",t)}a(void 0)}))}}function rs(t){return ns.apply(this,arguments)}function ns(){return(ns=es((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,ref:i,cache:o={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",n);const a=new u.a(t);let s,d;try{s=yield X.a.resolve({fs:a,gitdir:r,ref:i||"HEAD"})}catch(t){if(i)throw t}if(s)try{s=yield Object(Ji.a)({fs:a,cache:o,gitdir:r,oid:s,filepath:n})}catch(t){s=null}let h={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:0,uid:0,gid:0,size:0};const p=e&&(yield a.read(Object(l.join)(e,n)));p&&(d=yield Ja({gitdir:r,type:"blob",object:p}),s===d&&(h=yield a.lstat(Object(l.join)(e,n)))),yield c.a.acquire({fs:a,gitdir:r,cache:o},function(){var t=es((function*(t){t.delete({filepath:n}),s&&t.insert({filepath:n,stats:h,oid:s})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.reset",t}}))).apply(this,arguments)}function is(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function os(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){is(o,n,i,a,s,"next",t)}function s(t){is(o,n,i,a,s,"throw",t)}a(void 0)}))}}function as(t){return ss.apply(this,arguments)}function ss(){return(ss=os((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,depth:i}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield X.a.resolve({fs:new u.a(t),gitdir:r,ref:n,depth:i})}catch(t){throw t.caller="git.resolveRef",t}}))).apply(this,arguments)}function cs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function us(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cs(o,n,i,a,s,"next",t)}function s(t){cs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function fs(t){return ls.apply(this,arguments)}function ls(){return(ls=us((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),path:n,value:i,append:o=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("path",n);const e=new u.a(t),a=yield b.a.get({fs:e,gitdir:r});o?yield a.append(n,i):yield a.set(n,i),yield b.a.save({fs:e,gitdir:r,config:a})}catch(t){throw t.caller="git.setConfig",t}}))).apply(this,arguments)}var ds=r(116),hs=r(91);function ps(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ys(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ps(o,n,i,a,s,"next",t)}function s(t){ps(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gs(t){return vs.apply(this,arguments)}function vs(){return(vs=ys((function*({fs:t,dir:e,gitdir:r,message:o=""}){const a=new ds.a({fs:t,dir:e,gitdir:r});yield a.getAuthor();const s=yield Object(ee.a)({fs:t,gitdir:r,fullname:!1}),c=yield X.a.resolve({fs:t,gitdir:r,ref:"HEAD"}),u=(yield ea({fs:t,dir:e,gitdir:r,oid:c})).commit.message,f=[c];let l=null,d=Object(i.a)({ref:"HEAD"});const h=yield Object(hs.c)({fs:t,dir:e,gitdir:r,treePair:[Object(i.a)({ref:"HEAD"}),"stage"]});if(h){const t=yield a.writeStashCommit({message:`stash-Index: WIP on ${s} - ${(new Date).toISOString()}`,tree:h,parent:f});f.push(t),l=h,d=Object(n.a)()}const p=yield Object(hs.c)({fs:t,dir:e,gitdir:r,treePair:[d,"workdir"]});if(p){const t=yield a.writeStashCommit({message:`stash-WorkDir: WIP on ${s} - ${(new Date).toISOString()}`,tree:p,parent:[f[f.length-1]]});f.push(t),l=p}if(!l||!h&&!p)throw new m.a("changes, nothing to stash");const y=(o.trim()||`WIP on ${s}`)+`: ${c.substring(0,7)} ${u}`,g=yield a.writeStashCommit({message:y,tree:l,parent:f});return yield a.writeStashRef(g),yield a.writeStashReflogEntry({stashCommit:g,message:y}),yield Ut({fs:t,dir:e,gitdir:r,ref:s,track:!1,force:!0}),g}))).apply(this,arguments)}function ms(t){return bs.apply(this,arguments)}function bs(){return(bs=ys((function*({fs:t,dir:e,gitdir:r,refIdx:n=0}){const i=new ds.a({fs:t,dir:e,gitdir:r}),o=yield i.readStashCommit(n),{parent:a=null}=o.commit?o.commit:{};if(a&&Array.isArray(a))for(let n=0;n<a.length-1;n++){const i=(yield Object(Fi.a)({fs:t,cache:{},gitdir:r,oid:a[n+1]})).commit.message.startsWith("stash-Index");yield Object(hs.b)({fs:t,dir:e,gitdir:r,stashCommit:a[n+1],parentCommit:a[n],wasStaged:i})}}))).apply(this,arguments)}function ws(t){return _s.apply(this,arguments)}function _s(){return(_s=ys((function*({fs:t,dir:e,gitdir:r,refIdx:n=0}){const i=new ds.a({fs:t,dir:e,gitdir:r});if(!(yield i.readStashCommit(n)).commit)return;const o=i.refStashPath;yield Object(hs.a)(o,ys((function*(){(yield t.exists(o))&&(yield t.rm(o))})));const a=yield i.readStashReflogs({parsed:!1});if(!a.length)return;a.splice(n,1);const s=i.refLogsStashPath;yield Object(hs.a)({reflogEntries:a,stashReflogPath:s,stashMgr:i},ys((function*(){if(a.length){yield t.write(s,a.join("\n"),"utf8");const e=a[a.length-1].split(" ")[1];yield i.writeStashRef(e)}else yield t.rm(s)})))}))).apply(this,arguments)}function js(t){return Os.apply(this,arguments)}function Os(){return(Os=ys((function*({fs:t,dir:e,gitdir:r}){return new ds.a({fs:t,dir:e,gitdir:r}).readStashReflogs({parsed:!0})}))).apply(this,arguments)}function xs(t){return Ps.apply(this,arguments)}function Ps(){return(Ps=ys((function*({fs:t,dir:e,gitdir:r}){const n=new ds.a({fs:t,dir:e,gitdir:r}),i=[n.refStashPath,n.refLogsStashPath];yield Object(hs.a)(i,ys((function*(){yield Promise.all(i.map(function(){var e=ys((function*(e){if(yield t.exists(e))return t.rm(e)}));return function(t){return e.apply(this,arguments)}}()))})))}))).apply(this,arguments)}function ks(t){return Es.apply(this,arguments)}function Es(){return(Es=ys((function*({fs:t,dir:e,gitdir:r,refIdx:n=0}){yield ms({fs:t,dir:e,gitdir:r,refIdx:n}),yield ws({fs:t,dir:e,gitdir:r,refIdx:n})}))).apply(this,arguments)}function As(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ss(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){As(o,n,i,a,s,"next",t)}function s(t){As(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Rs(t){return $s.apply(this,arguments)}function $s(){return($s=Ss((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),op:n="push",message:i="",refIdx:o=0}){Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r),Object(f.a)("op",n);const a={push:gs,apply:ms,drop:ws,list:js,clear:xs,pop:ks},s=["apply","drop","pop"];try{const c=new u.a(t);["refs","logs","logs/refs"].map(t=>Object(l.join)(r,t)).forEach(function(){var t=Ss((function*(t){(yield c.exists(t))||(yield c.mkdir(t))}));return function(e){return t.apply(this,arguments)}}());const f=a[n];if(f){if(s.includes(n)&&o<0)throw new H.a(`stash@${o}`,"number that is in range of [0, num of stash pushed]");return yield f({fs:c,dir:e,gitdir:r,message:i,refIdx:o})}throw new Error(`To be implemented: ${n}`)}catch(t){throw t.caller="git.stash",t}}))).apply(this,arguments)}var Bs=r(54);function Is(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ts(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Is(o,n,i,a,s,"next",t)}function s(t){Is(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Us(t){return Cs.apply(this,arguments)}function Cs(){return(Cs=Ts((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,cache:i={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",n);const o=new u.a(t);if(yield w.a.isIgnored({fs:o,gitdir:r,dir:e,filepath:n}))return"ignored";const a=yield zs({fs:o,cache:i,gitdir:r}),s=yield Ds({fs:o,cache:i,gitdir:r,tree:a,path:n}),d=yield c.a.acquire({fs:o,gitdir:r,cache:i},function(){var t=Ts((function*(t){for(const e of t)if(e.path===n)return e;return null}));return function(e){return t.apply(this,arguments)}}()),h=yield o.lstat(Object(l.join)(e,n)),p=null!==s,y=null!==d,g=null!==h,v=function(){var t=Ts((function*(){if(y&&!Object(Bs.a)(d,h))return d.oid;{const t=yield o.read(Object(l.join)(e,n)),a=yield Ja({gitdir:r,type:"blob",object:t});return y&&d.oid===a&&-1!==h.size&&c.a.acquire({fs:o,gitdir:r,cache:i},function(){var t=Ts((function*(t){t.insert({filepath:n,stats:h,oid:a})}));return function(e){return t.apply(this,arguments)}}()),a}}));return function(){return t.apply(this,arguments)}}();if(!p&&!g&&!y)return"absent";if(!p&&!g&&y)return"*absent";if(!p&&g&&!y)return"*added";if(!p&&g&&y){return(yield v())===d.oid?"added":"*added"}if(p&&!g&&!y)return"deleted";if(p&&!g&&y)return d.oid,"*deleted";if(p&&g&&!y){return(yield v())===s?"*undeleted":"*undeletemodified"}if(p&&g&&y){const t=yield v();return t===s?t===d.oid?"unmodified":"*unmodified":t===d.oid?"modified":"*modified"}}catch(t){throw t.caller="git.status",t}}))).apply(this,arguments)}function Ds(t){return Ms.apply(this,arguments)}function Ms(){return(Ms=Ts((function*({fs:t,cache:e,gitdir:r,tree:n,path:i}){"string"==typeof i&&(i=i.split("/"));const o=i.shift();for(const a of n)if(a.path===o){if(0===i.length)return a.oid;const{type:n,object:o}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:a.oid});if("tree"===n){return Ds({fs:t,cache:e,gitdir:r,tree:Li.a.from(o),path:i})}if("blob"===n)throw new En.a(a.oid,n,"blob",i.join("/"))}return null}))).apply(this,arguments)}function zs(t){return Ns.apply(this,arguments)}function Ns(){return(Ns=Ts((function*({fs:t,cache:e,gitdir:r}){let n;try{n=yield X.a.resolve({fs:t,gitdir:r,ref:"HEAD"})}catch(t){if(t instanceof m.a)return[]}const{tree:i}=yield Object(Wn.a)({fs:t,cache:e,gitdir:r,oid:n});return i}))).apply(this,arguments)}function Fs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Hs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fs(o,n,i,a,s,"next",t)}function s(t){Fs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ls(t){return Gs.apply(this,arguments)}function Gs(){return(Gs=Hs((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:s="HEAD",filepaths:c=["."],filter:d,cache:h={},ignored:p=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",s);const l=new u.a(t);return yield Object(a.a)({fs:l,cache:h,dir:e,gitdir:r,trees:[Object(i.a)({ref:s}),Object(o.a)(),Object(n.a)()],map:(y=Hs((function*(t,[r,n,i]){if(!r&&!i&&n&&!p&&(yield w.a.isIgnored({fs:l,dir:e,filepath:t})))return null;if(!c.some(e=>wt(t,e)))return null;if(d&&!d(t))return;const[o,a,s]=yield Promise.all([r&&r.type(),n&&n.type(),i&&i.type()]),u=[o,a,s].includes("blob");if(("tree"===o||"special"===o)&&!u)return;if("commit"===o)return null;if(("tree"===a||"special"===a)&&!u)return;if("commit"===s)return null;if(("tree"===s||"special"===s)&&!u)return;const f="blob"===o?yield r.oid():void 0,h="blob"===s?yield i.oid():void 0;let y;"blob"!==o&&"blob"===a&&"blob"!==s?y="42":"blob"===a&&(y=yield n.oid());const g=[void 0,f,y,h],v=g.map(t=>g.indexOf(t));return v.shift(),[t,...v]})),function(t,e){return y.apply(this,arguments)})})}catch(t){throw t.caller="git.statusMatrix",t}var y}))).apply(this,arguments)}function Ws(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ws(o,n,i,a,s,"next",t)}function s(t){Ws(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ys(t){return Zs.apply(this,arguments)}function Zs(){return(Zs=qs((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,object:i,force:o=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n);const e=new u.a(t);if(void 0===n)throw new gr.a("ref");n=n.startsWith("refs/tags/")?n:`refs/tags/${n}`;const a=yield X.a.resolve({fs:e,gitdir:r,ref:i||"HEAD"});if(!o&&(yield X.a.exists({fs:e,gitdir:r,ref:n})))throw new F.a("tag",n);yield X.a.writeRef({fs:e,gitdir:r,ref:n,value:a})}catch(t){throw t.caller="git.tag",t}}))).apply(this,arguments)}var Ks=r(98);function Vs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Xs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Vs(o,n,i,a,s,"next",t)}function s(t){Vs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Js(t){return Qs.apply(this,arguments)}function Qs(){return(Qs=Xs((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),cache:n={},filepath:i,oid:o,mode:a,add:s,remove:d,force:h}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",i);const p=new u.a(t);if(d)return yield c.a.acquire({fs:p,gitdir:r,cache:n},function(){var t=Xs((function*(t){if(!h){const t=yield p.lstat(Object(l.join)(e,i));if(t){if(t.isDirectory())throw new Ks.a("directory");return}}t.has({filepath:i})&&t.delete({filepath:i})}));return function(e){return t.apply(this,arguments)}}());let y;if(!o){if(y=yield p.lstat(Object(l.join)(e,i)),!y)throw new m.a(`file at "${i}" on disk and "remove" not set`);if(y.isDirectory())throw new Ks.a("directory")}return yield c.a.acquire({fs:p,gitdir:r,cache:n},function(){var t=Xs((function*(t){if(!s&&!t.has({filepath:i}))throw new m.a(`file at "${i}" in index and "add" not set`);let n;if(o)n={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:a,uid:0,gid:0,size:0};else{n=y;const t=n.isSymbolicLink()?yield p.readlink(Object(l.join)(e,i)):yield p.read(Object(l.join)(e,i));o=yield Object(_.a)({fs:p,gitdir:r,type:"blob",format:"content",object:t})}return t.insert({filepath:i,oid:o,stats:n}),o}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.updateIndex",t}}))).apply(this,arguments)}function tc(){try{return Ai.a.version}catch(t){throw t.caller="git.version",t}}function ec(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function rc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ec(o,n,i,a,s,"next",t)}function s(t){ec(o,n,i,a,s,"throw",t)}a(void 0)}))}}function nc(t){return ic.apply(this,arguments)}function ic(){return(ic=rc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),trees:n,map:i,reduce:o,iterate:s,cache:c={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("trees",n),yield Object(a.a)({fs:new u.a(t),cache:c,dir:e,gitdir:r,trees:n,map:i,reduce:o,iterate:s})}catch(t){throw t.caller="git.walk",t}}))).apply(this,arguments)}function oc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ac(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){oc(o,n,i,a,s,"next",t)}function s(t){oc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function sc(t){return cc.apply(this,arguments)}function cc(){return(cc=ac((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),blob:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("blob",n),yield Object(_.a)({fs:new u.a(t),gitdir:r,type:"blob",object:n,format:"content"})}catch(t){throw t.caller="git.writeBlob",t}}))).apply(this,arguments)}var uc=r(158);function fc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function lc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){fc(o,n,i,a,s,"next",t)}function s(t){fc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function dc(t){return hc.apply(this,arguments)}function hc(){return(hc=lc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),commit:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("commit",n),yield Object(uc.a)({fs:new u.a(t),gitdir:r,commit:n})}catch(t){throw t.caller="git.writeCommit",t}}))).apply(this,arguments)}var pc=r(219);function yc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function gc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){yc(o,n,i,a,s,"next",t)}function s(t){yc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function vc(t){return mc.apply(this,arguments)}function mc(){return(mc=gc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,value:i,force:o=!1,symbolic:a=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),Object(f.a)("value",i);const e=new u.a(t);if(!N()(n,!0))throw new H.a(n,M.a.clean(n));if(!o&&(yield X.a.exists({fs:e,gitdir:r,ref:n})))throw new F.a("ref",n);a?yield X.a.writeSymbolicRef({fs:e,gitdir:r,ref:n,value:i}):(i=yield X.a.resolve({fs:e,gitdir:r,ref:i}),yield X.a.writeRef({fs:e,gitdir:r,ref:n,value:i}))}catch(t){throw t.caller="git.writeRef",t}}))).apply(this,arguments)}function bc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function wc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){bc(o,n,i,a,s,"next",t)}function s(t){bc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _c(t){return jc.apply(this,arguments)}function jc(){return(jc=wc((function*({fs:t,gitdir:e,tag:r}){const n=J.a.from(r).toObject();return yield Object(_.a)({fs:t,gitdir:e,type:"tag",object:n,format:"content"})}))).apply(this,arguments)}function Oc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oc(o,n,i,a,s,"next",t)}function s(t){Oc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pc(t){return kc.apply(this,arguments)}function kc(){return(kc=xc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),tag:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("tag",n),yield _c({fs:new u.a(t),gitdir:r,tag:n})}catch(t){throw t.caller="git.writeTag",t}}))).apply(this,arguments)}function Ec(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ac(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ec(o,n,i,a,s,"next",t)}function s(t){Ec(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sc(t){return Rc.apply(this,arguments)}function Rc(){return(Rc=Ac((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),tree:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("tree",n),yield Object($a.a)({fs:new u.a(t),gitdir:r,tree:n})}catch(t){throw t.caller="git.writeTree",t}}))).apply(this,arguments)}var $c=r(112);r.d(e,"Errors",(function(){return $c})),r.d(e,"STAGE",(function(){return n.a})),r.d(e,"TREE",(function(){return i.a})),r.d(e,"WORKDIR",(function(){return o.a})),r.d(e,"abortMerge",(function(){return y})),r.d(e,"add",(function(){return P})),r.d(e,"addNote",(function(){return U})),r.d(e,"addRemote",(function(){return K})),r.d(e,"annotatedTag",(function(){return at})),r.d(e,"branch",(function(){return pt})),r.d(e,"checkout",(function(){return Ut})),r.d(e,"clone",(function(){return Zt})),r.d(e,"commit",(function(){return Qt})),r.d(e,"getConfig",(function(){return Wr})),r.d(e,"getConfigAll",(function(){return Qr})),r.d(e,"setConfig",(function(){return fs})),r.d(e,"currentBranch",(function(){return ie})),r.d(e,"deleteBranch",(function(){return he})),r.d(e,"deleteRef",(function(){return ve})),r.d(e,"deleteRemote",(function(){return Pe})),r.d(e,"deleteTag",(function(){return Ie})),r.d(e,"expandOid",(function(){return Xe})),r.d(e,"expandRef",(function(){return er})),r.d(e,"fastForward",(function(){return Or})),r.d(e,"fetch",(function(){return Er})),r.d(e,"findMergeBase",(function(){return $r})),r.d(e,"findRoot",(function(){return Nr})),r.d(e,"getRemoteInfo",(function(){return on})),r.d(e,"getRemoteInfo2",(function(){return fn})),r.d(e,"hashBlob",(function(){return dn.a})),r.d(e,"indexPack",(function(){return wn})),r.d(e,"init",(function(){return xn})),r.d(e,"isDescendent",(function(){return Un})),r.d(e,"isIgnored",(function(){return zn})),r.d(e,"listBranches",(function(){return Ln})),r.d(e,"listFiles",(function(){return ti})),r.d(e,"listNotes",(function(){return ci})),r.d(e,"listRefs",(function(){return di})),r.d(e,"listRemotes",(function(){return wi})),r.d(e,"listServerRefs",(function(){return Ui})),r.d(e,"listTags",(function(){return zi})),r.d(e,"log",(function(){return oo})),r.d(e,"merge",(function(){return uo})),r.d(e,"packObjects",(function(){return yo})),r.d(e,"pull",(function(){return bo})),r.d(e,"push",(function(){return zo})),r.d(e,"readBlob",(function(){return Xo})),r.d(e,"readCommit",(function(){return ea})),r.d(e,"readNote",(function(){return ua})),r.d(e,"readObject",(function(){return ha})),r.d(e,"readTag",(function(){return _a})),r.d(e,"readTree",(function(){return Pa})),r.d(e,"remove",(function(){return Sa})),r.d(e,"removeNote",(function(){return Ma})),r.d(e,"renameBranch",(function(){return qa})),r.d(e,"resetIndex",(function(){return rs})),r.d(e,"updateIndex",(function(){return Js})),r.d(e,"resolveRef",(function(){return as})),r.d(e,"status",(function(){return Us})),r.d(e,"statusMatrix",(function(){return Ls})),r.d(e,"tag",(function(){return Ys})),r.d(e,"version",(function(){return tc})),r.d(e,"walk",(function(){return nc})),r.d(e,"writeBlob",(function(){return sc})),r.d(e,"writeCommit",(function(){return dc})),r.d(e,"writeObject",(function(){return pc.a})),r.d(e,"writeRef",(function(){return vc})),r.d(e,"writeTag",(function(){return Pc})),r.d(e,"writeTree",(function(){return Sc})),r.d(e,"stash",(function(){return Rs}));e.default={Errors:$c,STAGE:n.a,TREE:i.a,WORKDIR:o.a,add:P,abortMerge:y,addNote:U,addRemote:K,annotatedTag:at,branch:pt,checkout:Ut,clone:Zt,commit:Qt,getConfig:Wr,getConfigAll:Qr,setConfig:fs,currentBranch:ie,deleteBranch:he,deleteRef:ve,deleteRemote:Pe,deleteTag:Ie,expandOid:Xe,expandRef:er,fastForward:Or,fetch:Er,findMergeBase:$r,findRoot:Nr,getRemoteInfo:on,getRemoteInfo2:fn,hashBlob:dn.a,indexPack:wn,init:xn,isDescendent:Un,isIgnored:zn,listBranches:Ln,listFiles:ti,listNotes:ci,listRefs:di,listRemotes:wi,listServerRefs:Ui,listTags:zi,log:oo,merge:uo,packObjects:yo,pull:bo,push:zo,readBlob:Xo,readCommit:ea,readNote:ua,readObject:ha,readTag:_a,readTree:Pa,remove:Sa,removeNote:Ma,renameBranch:qa,resetIndex:rs,updateIndex:Js,resolveRef:as,status:Us,statusMatrix:Ls,tag:Ys,version:tc,walk:nc,writeBlob:sc,writeCommit:dc,writeObject:pc.a,writeRef:vc,writeTag:Pc,writeTree:Sc,stash:Rs}}])}));
12
+ var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(46),i=r(118)("TypedArray.prototype.buffer",!0),o=r(186);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},function(t,e,r){"use strict";t.exports=Error},function(t,e,r){"use strict";t.exports=EvalError},function(t,e,r){"use strict";t.exports=RangeError},function(t,e,r){"use strict";t.exports=ReferenceError},function(t,e,r){"use strict";t.exports=URIError},function(t,e,r){"use strict";t.exports=Math.abs},function(t,e,r){"use strict";t.exports=Math.floor},function(t,e,r){"use strict";t.exports=Math.max},function(t,e,r){"use strict";t.exports=Math.min},function(t,e,r){"use strict";t.exports=Math.pow},function(t,e,r){"use strict";t.exports=Math.round},function(t,e,r){"use strict";var n=r(179);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},function(t,e,r){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,e,r){"use strict";t.exports=Object.getOwnPropertyDescriptor},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(122);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,r){"use strict";var n,i=r(92),o=r(47);try{n=[].__proto__===Array.prototype}catch(t){if(!(t&&"object"==typeof t&&"code"in t&&"ERR_PROTO_ACCESS"===t.code))throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof c&&function(t){return c(null==t?t:s(t))}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r},s=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},c=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.apply(e))throw new TypeError(n+e);for(var r,u=s(arguments,1),f=function(){if(this instanceof r){var n=e.apply(this,a(u,arguments));return Object(n)===n?n:this}return e.apply(t,a(u,arguments))},l=o(0,e.length-u.length),d=[],h=0;h<l;h++)d[h]="$"+h;if(r=Function("binder","return function ("+c(d,",")+"){ return binder.apply(this,arguments); }")(f),e.prototype){var p=function(){};p.prototype=e.prototype,r.prototype=new p,p.prototype=null}return r}},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},function(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(48);t.exports=o.call(n,i)},function(t,e,r){"use strict";var n=r(187);t.exports=function(t){return!!n(t)}},function(t,e,r){"use strict";(function(e){var n=r(188),i=r(190),o=r(192),a=r(118),s=r(47),c=r(123),u=a("Object.prototype.toString"),f=r(197)(),l="undefined"==typeof globalThis?e:globalThis,d=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};n(d,f&&s&&c?function(t){var e=new l[t];if(Symbol.toStringTag in e&&c){var r=c(e),n=s(r,Symbol.toStringTag);if(!n&&r){var i=c(r);n=s(i,Symbol.toStringTag)}y["$"+t]=o(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(y["$"+t]=o(r))});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=h(u(t),8,-1);return p(d,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(y,(function(r,n){if(!e)try{r(t),e=h(n,1)}catch(t){}})),e}(t)}return s?function(t){var e=!1;return n(y,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=h(n,1))}catch(t){}})),e}(t):null}}).call(this,r(71))},function(t,e,r){"use strict";var n=r(189),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},c=function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};function u(t){return"[object Array]"===i.call(t)}t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),u(t)?a(t,e,i):"string"==typeof t?s(t,e,i):c(t,e,i)}},function(t,e,r){"use strict";var n,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,n)}catch(t){t!==i&&(a=null)}else a=null;var s=/^\s*class\b/,c=function(t){try{var e=o.call(t);return s.test(e)}catch(t){return!1}},u=function(t){try{return!c(t)&&(o.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;f.call(p)===f.call(document.all)&&(h=function(t){if((d||!t)&&(void 0===t||"object"==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=a?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{a(t,null,n)}catch(t){if(t!==i)return!1}return!c(t)&&u(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return u(t);if(c(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}},function(t,e,r){"use strict";(function(e){var n=r(191),i="undefined"==typeof globalThis?e:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}}).call(this,r(71))},function(t,e,r){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},function(t,e,r){"use strict";var n=r(193),i=r(59),o=r(92),a=r(196);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},function(t,e,r){"use strict";var n=r(119),i=r(194),o=r(195)(),a=r(47),s=r(46),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(u=!1)}return(n||u||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,r){"use strict";var n=r(59),i=r(121),o=r(46),a=r(47);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===u&&l?l.configurable:!u,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===c&&l?l.writable:!c});else{if(!f&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},function(t,e,r){"use strict";var n=r(59),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){"use strict";var n=r(48),i=r(94),o=r(126);t.exports=function(){return o(n,i,arguments)}},function(t,e,r){"use strict";var n=r(122);t.exports=function(){return n()&&!!Symbol.toStringTag}},function(t,e,r){"use strict";var n=r(199),i=r(28),o=r(129),a=r(95),s=r(130),c=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=n.deflateSetDictionary(this.strm,f)))throw new Error(a[r]);this._dict_set=!0}}function f(t,e){var r=new u(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}u.prototype.push=function(t,e){var r,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=u,e.deflate=f,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},function(t,e,r){"use strict";var n,i=r(28),o=r(200),a=r(127),s=r(128),c=r(95);function u(t,e){return t.msg=c[e],e}function f(t){return(t<<1)-(t>4?9:0)}function l(t){for(var e=t.length;--e>=0;)t[e]=0}function d(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function h(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,d(t.strm)}function p(t,e){t.pending_buf[t.pending++]=e}function y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function g(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,u=t.window,f=t.w_mask,l=t.prev,d=t.strstart+258,h=u[o+a-1],p=u[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===h&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<d);if(n=258-(d-o),o=d-258,n>a){if(t.match_start=e,a=n,n>=s)break;h=u[o+a-1],p=u[o+a]}}}while((e=l[e&f])>c&&0!=--i);return a<=t.lookahead?a:t.lookahead}function m(t){var e,r,n,o,c,u,f,l,d,h,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-262)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=p?n-p:0}while(--r);e=r=p;do{n=t.prev[--e],t.prev[e]=n>=p?n-p:0}while(--r);o+=p}if(0===t.strm.avail_in)break;if(u=t.strm,f=t.window,l=t.strstart+t.lookahead,d=o,h=void 0,(h=u.avail_in)>d&&(h=d),r=0===h?0:(u.avail_in-=h,i.arraySet(f,u.input,u.next_in,h,l),1===u.state.wrap?u.adler=a(u.adler,f,h,l):2===u.state.wrap&&(u.adler=s(u.adler,f,h,l)),u.next_in+=h,u.total_in+=h,h),t.lookahead+=r,t.lookahead+t.insert>=3)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+3-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function v(t,e){for(var r,n;;){if(t.lookahead<262){if(m(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-262&&(t.match_length=g(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}function b(t,e){for(var r,n,i;;){if(t.lookahead<262){if(m(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-262&&(t.match_length=g(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(h(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&h(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}function w(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),l(this.dyn_ltree),l(this.dyn_dtree),l(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),l(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),l(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function j(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):u(t,-2)}function O(t){var e,r=j(t);return 0===r&&((e=t.state).window_size=2*e.w_size,l(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function x(t,e,r,n,o,a){if(!t)return-2;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==r||n<8||n>15||e<0||e>9||a<0||a>4)return u(t,-2);8===n&&(n=9);var c=new _;return t.state=c,c.strm=t,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=a,c.method=r,O(t)}n=[new w(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(m(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,h(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(h(t,!1),t.strm.avail_out),1)})),new w(4,4,8,4,v),new w(4,5,16,8,v),new w(4,6,32,32,v),new w(4,4,16,16,b),new w(8,16,32,32,b),new w(8,16,128,128,b),new w(8,32,128,256,b),new w(32,128,258,1024,b),new w(32,258,258,4096,b)],e.deflateInit=function(t,e){return x(t,e,8,15,8,0)},e.deflateInit2=x,e.deflateReset=O,e.deflateResetKeep=j,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},e.deflate=function(t,e){var r,i,a,c;if(!t||!t.state||e>5||e<0)return t?u(t,-2):-2;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&4!==e)return u(t,0===t.avail_out?-5:-2);if(i.strm=t,r=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,y(i,g),0!==i.strstart&&(y(i,t.adler>>>16),y(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),d(t),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(t),i.pending+2<=i.pending_buf_size&&(p(i,255&t.adler),p(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(r)&&4!==e)return u(t,-5);if(666===i.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var v=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(m(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=258){if(m(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[i=t.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=t.strstart+258;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=258-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(h(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(h(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==v&&4!==v||(i.status=666),1===v||3===v)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===v&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(l(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&t.adler),p(i,t.adler>>8&255),p(i,t.adler>>16&255),p(i,t.adler>>24&255),p(i,255&t.total_in),p(i,t.total_in>>8&255),p(i,t.total_in>>16&255),p(i,t.total_in>>24&255)):(y(i,t.adler>>>16),y(i,65535&t.adler)),d(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?u(t,-2):(t.state=null,113===e?u(t,-3):0):-2},e.deflateSetDictionary=function(t,e){var r,n,o,s,c,u,f,d,h=e.length;if(!t||!t.state)return-2;if(2===(s=(r=t.state).wrap)||1===s&&42!==r.status||r.lookahead)return-2;for(1===s&&(t.adler=a(t.adler,e,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(l(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new i.Buf8(r.w_size),i.arraySet(d,e,h-r.w_size,r.w_size,0),e=d,h=r.w_size),c=t.avail_in,u=t.next_in,f=t.input,t.avail_in=h,t.next_in=0,t.input=e,m(r);r.lookahead>=3;){n=r.strstart,o=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=2,m(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=f,t.avail_in=c,r.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},function(t,e,r){"use strict";var n=r(28);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var f=new Array(60);i(f);var l=new Array(512);i(l);var d=new Array(256);i(d);var h=new Array(29);i(h);var p,y,g,m=new Array(30);function v(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function w(t){return t<256?l[t]:l[256+(t>>>7)]}function _(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function j(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,_(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function O(t,e,r){j(t,r[2*e],r[2*e+1])}function x(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function P(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=x(o[s]++,s))}}function k(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function E(t){t.bi_valid>8?_(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function A(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function S(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&A(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!A(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function R(t,e,r){var n,i,s,c,u=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*u]<<8|t.pending_buf[t.d_buf+2*u+1],i=t.pending_buf[t.l_buf+u],u++,0===n?O(t,i,e):(O(t,(s=d[i])+256+1,e),0!==(c=o[s])&&j(t,i-=h[s],c),O(t,s=w(--n),r),0!==(c=a[s])&&j(t,n-=m[s],c))}while(u<t.last_lit);O(t,256,e)}function $(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<c;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=u,r=t.heap_len>>1;r>=1;r--)S(t,o,r);i=c;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,S(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,c=e.dyn_tree,u=e.max_code,f=e.stat_desc.static_tree,l=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,p=e.stat_desc.max_length,y=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)(o=c[2*c[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,y++),c[2*n+1]=o,n>u||(t.bl_count[o]++,a=0,n>=h&&(a=d[n-h]),s=c[2*n],t.opt_len+=s*(o+a),l&&(t.static_len+=s*(f[2*n+1]+a)));if(0!==y){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,y-=2}while(y>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>u||(c[2*i+1]!==o&&(t.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),n--)}}(t,e),P(o,u,t.bl_count)}function B(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<c&&i===a||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function I(t,e,r){var n,i,o=-1,a=e[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)do{O(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(O(t,i,t.bl_tree),s--),O(t,16,t.bl_tree),j(t,s-3,2)):s<=10?(O(t,17,t.bl_tree),j(t,s-3,3)):(O(t,18,t.bl_tree),j(t,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(m);var T=!1;function U(t,e,r,i){j(t,0+(i?1:0),3),function(t,e,r,i){E(t),i&&(_(t,r),_(t,~r)),n.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}e._tr_init=function(t){T||(!function(){var t,e,r,n,i,c=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,t=0;t<1<<o[n];t++)d[r++]=n;for(d[r-1]=n,i=0,n=0;n<16;n++)for(m[n]=i,t=0;t<1<<a[n];t++)l[i++]=n;for(i>>=7;n<30;n++)for(m[n]=i<<7,t=0;t<1<<a[n]-7;t++)l[256+i++]=n;for(e=0;e<=15;e++)c[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,c[8]++;for(;t<=255;)u[2*t+1]=9,t++,c[9]++;for(;t<=279;)u[2*t+1]=7,t++,c[7]++;for(;t<=287;)u[2*t+1]=8,t++,c[8]++;for(P(u,287,c),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=x(t,5);p=new v(u,o,257,286,15),y=new v(f,a,0,30,15),g=new v(new Array(0),s,0,19,7)}(),T=!0),t.l_desc=new b(t.dyn_ltree,p),t.d_desc=new b(t.dyn_dtree,y),t.bl_desc=new b(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,k(t)},e._tr_stored_block=U,e._tr_flush_block=function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),$(t,t.l_desc),$(t,t.d_desc),a=function(t){var e;for(B(t,t.dyn_ltree,t.l_desc.max_code),B(t,t.dyn_dtree,t.d_desc.max_code),$(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*c[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?U(t,e,r,n):4===t.strategy||o===i?(j(t,2+(n?1:0),3),R(t,u,f)):(j(t,4+(n?1:0),3),function(t,e,r,n){var i;for(j(t,e-257,5),j(t,r-1,5),j(t,n-4,4),i=0;i<n;i++)j(t,t.bl_tree[2*c[i]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&E(t)},e._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(d[r]+256+1)]++,t.dyn_dtree[2*w(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){j(t,2,3),O(t,256,u),function(t){16===t.bi_valid?(_(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,r){"use strict";var n=r(202),i=r(28),o=r(129),a=r(131),s=r(95),c=r(130),u=r(205),f=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[r])}function d(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}l.prototype.push=function(t,e){var r,s,c,u,l,d=this.strm,h=this.options.chunkSize,p=this.options.dictionary,y=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===f.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(h),d.next_out=0,d.avail_out=h),(r=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(d.output,d.next_out),u=d.next_out-c,l=o.buf2string(d.output,c),d.next_out=u,d.avail_out=h-u,u&&i.arraySet(d.output,d.output,c,u,0),this.onData(l)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(y=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=l,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},function(t,e,r){"use strict";var n=r(28),i=r(127),o=r(128),a=r(203),s=r(204);function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function l(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,f(t)):-2}function d(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,l(t))):-2}function h(t,e){var r,n;return t?(n=new u,t.state=n,n.window=null,0!==(r=d(t,e))&&(t.state=null),r):-2}var p,y,g=!0;function m(t){if(g){var e;for(p=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,y,0,t.work,{bits:5}),g=!1}t.lencode=p,t.lenbits=9,t.distcode=y,t.distbits=5}function v(t,e,r,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,e,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,e,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=l,e.inflateReset2=d,e.inflateResetKeep=f,e.inflateInit=function(t){return h(t,15)},e.inflateInit2=h,e.inflate=function(t,e){var r,u,f,l,d,h,p,y,g,b,w,_,j,O,x,P,k,E,A,S,R,$,B,I,T=0,U=new n.Buf8(4),C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,u=t.input,h=t.avail_in,y=r.hold,g=r.bits,b=h,w=p,$=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(2&r.wrap&&35615===y){r.check=0,U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0),y=0,g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",r.mode=30;break}if(g-=4,R=8+(15&(y>>>=4)),0===r.wbits)r.wbits=R;else if(R>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<R,t.adler=r.check=1,r.mode=512&y?10:12,y=0,g=0;break;case 2:for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(r.flags=y,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=y>>8&1),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0,r.mode=3;case 3:for(;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.head&&(r.head.time=y),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,U[2]=y>>>16&255,U[3]=y>>>24&255,r.check=o(r.check,U,4,0)),y=0,g=0,r.mode=4;case 4:for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.head&&(r.head.xflags=255&y,r.head.os=y>>8),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0,r.mode=5;case 5:if(1024&r.flags){for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.length=y,r.head&&(r.head.extra_len=y),512&r.flags&&(U[0]=255&y,U[1]=y>>>8&255,r.check=o(r.check,U,2,0)),y=0,g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((_=r.length)>h&&(_=h),_&&(r.head&&(R=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,_,R)),512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,r.length-=_),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break t;_=0;do{R=u[l+_++],r.head&&R&&r.length<65536&&(r.head.name+=String.fromCharCode(R))}while(R&&_<h);if(512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,R)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break t;_=0;do{R=u[l+_++],r.head&&R&&r.length<65536&&(r.head.comment+=String.fromCharCode(R))}while(R&&_<h);if(512&r.flags&&(r.check=o(r.check,u,_,l)),h-=_,l+=_,R)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;g<16;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(y!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}y=0,g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}t.adler=r.check=c(y),y=0,g=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){y>>>=7&g,g-=7&g,r.mode=27;break}for(;g<3;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}switch(r.last=1&y,g-=1,3&(y>>>=1)){case 0:r.mode=14;break;case 1:if(m(r),r.mode=20,6===e){y>>>=2,g-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}y>>>=2,g-=2;break;case 14:for(y>>>=7&g,g-=7&g;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,y=0,g=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(_=r.length){if(_>h&&(_=h),_>p&&(_=p),0===_)break t;n.arraySet(f,u,l,_,d),h-=_,l+=_,p-=_,d+=_,r.length-=_;break}r.mode=12;break;case 17:for(;g<14;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(r.nlen=257+(31&y),y>>>=5,g-=5,r.ndist=1+(31&y),y>>>=5,g-=5,r.ncode=4+(15&y),y>>>=4,g-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;g<3;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.lens[C[r.have++]]=7&y,y>>>=3,g-=3}for(;r.have<19;)r.lens[C[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},$=s(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,$){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;P=(T=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,k=65535&T,!((x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(k<16)y>>>=x,g-=x,r.lens[r.have++]=k;else{if(16===k){for(I=x+2;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(y>>>=x,g-=x,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}R=r.lens[r.have-1],_=3+(3&y),y>>>=2,g-=2}else if(17===k){for(I=x+3;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}g-=x,R=0,_=3+(7&(y>>>=x)),y>>>=3,g-=3}else{for(I=x+7;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}g-=x,R=0,_=11+(127&(y>>>=x)),y>>>=7,g-=7}if(r.have+_>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;_--;)r.lens[r.have++]=R}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},$=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,$){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},$=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,$){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(h>=6&&p>=258){t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,a(t,w),d=t.next_out,f=t.output,p=t.avail_out,l=t.next_in,u=t.input,h=t.avail_in,y=r.hold,g=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;P=(T=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,k=65535&T,!((x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(P&&0==(240&P)){for(E=x,A=P,S=k;P=(T=r.lencode[S+((y&(1<<E+A)-1)>>E)])>>>16&255,k=65535&T,!(E+(x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}y>>>=E,g-=E,r.back+=E}if(y>>>=x,g-=x,r.back+=x,r.length=k,0===P){r.mode=26;break}if(32&P){r.back=-1,r.mode=12;break}if(64&P){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&P,r.mode=22;case 22:if(r.extra){for(I=r.extra;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.length+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;P=(T=r.distcode[y&(1<<r.distbits)-1])>>>16&255,k=65535&T,!((x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(0==(240&P)){for(E=x,A=P,S=k;P=(T=r.distcode[S+((y&(1<<E+A)-1)>>E)])>>>16&255,k=65535&T,!(E+(x=T>>>24)<=g);){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}y>>>=E,g-=E,r.back+=E}if(y>>>=x,g-=x,r.back+=x,64&P){t.msg="invalid distance code",r.mode=30;break}r.offset=k,r.extra=15&P,r.mode=24;case 24:if(r.extra){for(I=r.extra;g<I;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}r.offset+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===p)break t;if(_=w-p,r.offset>_){if((_=r.offset-_)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}_>r.wnext?(_-=r.wnext,j=r.wsize-_):j=r.wnext-_,_>r.length&&(_=r.length),O=r.window}else O=f,j=d-r.offset,_=r.length;_>p&&(_=p),p-=_,r.length-=_;do{f[d++]=O[j++]}while(--_);0===r.length&&(r.mode=21);break;case 26:if(0===p)break t;f[d++]=r.length,p--,r.mode=21;break;case 27:if(r.wrap){for(;g<32;){if(0===h)break t;h--,y|=u[l++]<<g,g+=8}if(w-=p,t.total_out+=w,r.total+=w,w&&(t.adler=r.check=r.flags?o(r.check,f,w,d-w):i(r.check,f,w,d-w)),w=p,(r.flags?y:c(y))!==r.check){t.msg="incorrect data check",r.mode=30;break}y=0,g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;g<32;){if(0===h)break t;h--,y+=u[l++]<<g,g+=8}if(y!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}y=0,g=0}r.mode=29;case 29:$=1;break t;case 30:$=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=d,t.avail_out=p,t.next_in=l,t.avail_in=h,r.hold=y,r.bits=g,(r.wsize||w!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&v(t,t.output,t.next_out,w-t.avail_out)?(r.mode=31,-4):(b-=t.avail_in,w-=t.avail_out,t.total_in+=b,t.total_out+=w,r.total+=w,r.wrap&&w&&(t.adler=r.check=r.flags?o(r.check,f,w,t.next_out-w):i(r.check,f,w,t.next_out-w)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===b&&0===w||4===e)&&0===$&&($=-5),$)},e.inflateEnd=function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?-2:(r.head=e,e.done=!1,0):-2},e.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,e,n,0)!==r.check?-3:v(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},e.inflateInfo="pako inflate (from Nodeca project)"},function(t,e,r){"use strict";t.exports=function(t,e){var r,n,i,o,a,s,c,u,f,l,d,h,p,y,g,m,v,b,w,_,j,O,x,P,k;r=t.state,n=t.next_in,P=t.input,i=n+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),c=r.dmax,u=r.wsize,f=r.whave,l=r.wnext,d=r.window,h=r.hold,p=r.bits,y=r.lencode,g=r.distcode,m=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(h+=P[n++]<<p,p+=8,h+=P[n++]<<p,p+=8),b=y[h&m];e:for(;;){if(h>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))k[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=y[(65535&b)+(h&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&b,(w&=15)&&(p<w&&(h+=P[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=P[n++]<<p,p+=8,h+=P[n++]<<p,p+=8),b=g[h&v];r:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(h&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(j=65535&b,p<(w&=15)&&(h+=P[n++]<<p,(p+=8)<w&&(h+=P[n++]<<p,p+=8)),(j+=h&(1<<w)-1)>c){t.msg="invalid distance too far back",r.mode=30;break t}if(h>>>=w,p-=w,j>(w=o-a)){if((w=j-w)>f&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(O=0,x=d,0===l){if(O+=u-w,w<_){_-=w;do{k[o++]=d[O++]}while(--w);O=o-j,x=k}}else if(l<w){if(O+=u+l-w,(w-=l)<_){_-=w;do{k[o++]=d[O++]}while(--w);if(O=0,l<_){_-=w=l;do{k[o++]=d[O++]}while(--w);O=o-j,x=k}}}else if(O+=l-w,w<_){_-=w;do{k[o++]=d[O++]}while(--w);O=o-j,x=k}for(;_>2;)k[o++]=x[O++],k[o++]=x[O++],k[o++]=x[O++],_-=3;_&&(k[o++]=x[O++],_>1&&(k[o++]=x[O++]))}else{O=o-j;do{k[o++]=k[O++],k[o++]=k[O++],k[o++]=k[O++],_-=3}while(_>2);_&&(k[o++]=k[O++],_>1&&(k[o++]=k[O++]))}break}}break}}while(n<i&&o<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=h,r.bits=p}},function(t,e,r){"use strict";var n=r(28),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,r,c,u,f,l,d){var h,p,y,g,m,v,b,w,_,j=d.bits,O=0,x=0,P=0,k=0,E=0,A=0,S=0,R=0,$=0,B=0,I=null,T=0,U=new n.Buf16(16),C=new n.Buf16(16),D=null,M=0;for(O=0;O<=15;O++)U[O]=0;for(x=0;x<c;x++)U[e[r+x]]++;for(E=j,k=15;k>=1&&0===U[k];k--);if(E>k&&(E=k),0===k)return u[f++]=20971520,u[f++]=20971520,d.bits=1,0;for(P=1;P<k&&0===U[P];P++);for(E<P&&(E=P),R=1,O=1;O<=15;O++)if(R<<=1,(R-=U[O])<0)return-1;if(R>0&&(0===t||1!==k))return-1;for(C[1]=0,O=1;O<15;O++)C[O+1]=C[O]+U[O];for(x=0;x<c;x++)0!==e[r+x]&&(l[C[e[r+x]]++]=x);if(0===t?(I=D=l,v=19):1===t?(I=i,T-=257,D=o,M-=257,v=256):(I=a,D=s,v=-1),B=0,x=0,O=P,m=f,A=E,S=0,y=-1,g=($=1<<E)-1,1===t&&$>852||2===t&&$>592)return 1;for(;;){b=O-S,l[x]<v?(w=0,_=l[x]):l[x]>v?(w=D[M+l[x]],_=I[T+l[x]]):(w=96,_=0),h=1<<O-S,P=p=1<<A;do{u[m+(B>>S)+(p-=h)]=b<<24|w<<16|_|0}while(0!==p);for(h=1<<O-1;B&h;)h>>=1;if(0!==h?(B&=h-1,B+=h):B=0,x++,0==--U[O]){if(O===k)break;O=e[r+l[x]]}if(O>E&&(B&g)!==y){for(0===S&&(S=E),m+=P,R=1<<(A=O-S);A+S<k&&!((R-=U[A+S])<=0);)A++,R<<=1;if($+=1<<A,1===t&&$>852||2===t&&$>592)return 1;u[y=B&g]=E<<24|A<<16|m-f|0}}return 0!==B&&(u[m+B]=O-S<<24|64<<16|0),d.bits=E,0}},function(t,e,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r(10);function i({capabilities:t=[],wants:e=[],haves:r=[],shallows:i=[],depth:o=null,since:a=null,exclude:s=[]}){const c=[];e=[...new Set(e)];let u=` ${t.join(" ")}`;for(const t of e)c.push(n.a.encode(`want ${t}${u}\n`)),u="";for(const t of i)c.push(n.a.encode(`shallow ${t}\n`));null!==o&&c.push(n.a.encode(`deepen ${o}\n`)),null!==a&&c.push(n.a.encode(`deepen-since ${Math.floor(a.valueOf()/1e3)}\n`));for(const t of s)c.push(n.a.encode(`deepen-not ${t}\n`));c.push(n.a.flush());for(const t of r)c.push(n.a.encode(`have ${t}\n`));return c.push(n.a.encode("done\n")),c}},function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(35),i=r(113),o=r(45);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*(t){const{packetlines:e,packfile:r,progress:a}=i.a.demux(t),s=[],c=[],u=[];let f=!1,l=!1;return new Promise((i,d)=>{Object(o.a)(e,e=>{const o=e.toString("utf8").trim();if(o.startsWith("shallow")){const t=o.slice(-41).trim();40!==t.length&&d(new n.a(t)),s.push(t)}else if(o.startsWith("unshallow")){const t=o.slice(-41).trim();40!==t.length&&d(new n.a(t)),c.push(t)}else if(o.startsWith("ACK")){const[,t,e]=o.split(" ");u.push({oid:t,status:e}),e||(l=!0)}else o.startsWith("NAK")?(f=!0,l=!0):(l=!0,f=!0);l&&(t.error?d(t.error):i({shallows:s,unshallows:c,acks:u,nak:f,packfile:r,progress:a}))}).finally(()=>{l||(t.error?d(t.error):i({shallows:s,unshallows:c,acks:u,nak:f,packfile:r,progress:a}))})})}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return y}));var n=r(27),i=r(32),o=r(97),a=r(96),s=r(14),c=r(18),u=r(36),f=r(12),l=r(154),d=r(89);function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}function y(t){return g.apply(this,arguments)}function g(){return(g=p((function*({fs:t,cache:e,dir:r,gitdir:l=Object(f.join)(r,".git"),index:h,ourOid:y,baseOid:g,theirOid:v,ourName:b="ours",baseName:w="base",theirName:_="theirs",dryRun:j=!1,abortOnConflict:O=!0,mergeDriver:x}){const P=Object(n.a)({ref:y}),k=Object(n.a)({ref:g}),E=Object(n.a)({ref:v}),A=[],S=[],R=[],$=[],B=yield Object(i.a)({fs:t,cache:e,dir:r,gitdir:l,trees:[P,k,E],map:(I=p((function*(e,[r,n,i]){const o=Object(u.a)(e);switch(`${yield Object(d.a)(r,n)}-${yield Object(d.a)(i,n)}`){case"false-false":return{mode:yield n.mode(),path:o,oid:yield n.oid(),type:yield n.type()};case"false-true":return i||"tree"!==(yield r.type())?i?{mode:yield i.mode(),path:o,oid:yield i.oid(),type:yield i.type()}:void 0:{mode:yield r.mode(),path:o,oid:yield r.oid(),type:yield r.type()};case"true-false":return r||"tree"!==(yield i.type())?r?{mode:yield r.mode(),path:o,oid:yield r.oid(),type:yield r.type()}:void 0:{mode:yield i.mode(),path:o,oid:yield i.oid(),type:yield i.type()};case"true-true":if(r&&i&&"tree"===(yield r.type())&&"tree"===(yield i.type()))return{mode:yield r.mode(),path:o,oid:yield r.oid(),type:"tree"};if(r&&i&&"blob"===(yield r.type())&&"blob"===(yield i.type()))return m({fs:t,gitdir:l,path:o,ours:r,base:n,theirs:i,ourName:b,baseName:w,theirName:_,mergeDriver:x}).then(function(){var t=p((function*(t){if(t.cleanMerge)O||h.insert({filepath:e,oid:t.mergeResult.oid,stage:0});else if(A.push(e),S.push(e),!O){let t="";n&&"blob"===(yield n.type())&&(t=yield n.oid());const o=yield r.oid(),a=yield i.oid();h.delete({filepath:e}),t&&h.insert({filepath:e,oid:t,stage:1}),h.insert({filepath:e,oid:o,stage:2}),h.insert({filepath:e,oid:a,stage:3})}return t.mergeResult}));return function(e){return t.apply(this,arguments)}}());if(n&&!r&&i&&"blob"===(yield n.type())&&"blob"===(yield i.type())){if(A.push(e),R.push(e),!O){const t=yield n.oid(),r=yield i.oid();h.delete({filepath:e}),h.insert({filepath:e,oid:t,stage:1}),h.insert({filepath:e,oid:r,stage:3})}return{mode:yield i.mode(),oid:yield i.oid(),type:"blob",path:o}}if(n&&r&&!i&&"blob"===(yield n.type())&&"blob"===(yield r.type())){if(A.push(e),$.push(e),!O){const t=yield n.oid(),i=yield r.oid();h.delete({filepath:e}),h.insert({filepath:e,oid:t,stage:1}),h.insert({filepath:e,oid:i,stage:2})}return{mode:yield r.mode(),oid:yield r.oid(),type:"blob",path:o}}if(n&&!r&&!i&&("blob"===(yield n.type())||"tree"===(yield n.type())))return;throw new a.a}})),function(t,e){return I.apply(this,arguments)}),reduce:0===A.length||r&&!O?function(){var e=p((function*(e,r){const n=r.filter(Boolean);if(e&&(!e||"tree"!==e.type||0!==n.length||"."===e.path)){if(n.length>0||"."===e.path&&0===n.length){const r=new s.a(n).toObject(),i=yield Object(c.a)({fs:t,gitdir:l,type:"tree",object:r,dryRun:j});e.oid=i}return e}}));return function(t,r){return e.apply(this,arguments)}}():void 0});var I,T;return 0!==A.length?(r&&!O&&(yield Object(i.a)({fs:t,cache:e,dir:r,gitdir:l,trees:[Object(n.a)({ref:B.oid})],map:(T=p((function*(e,[n]){const i=`${r}/${e}`;if("blob"===(yield n.type())){const e=yield n.mode(),r=(new TextDecoder).decode(yield n.content());yield t.write(i,r,{mode:e})}return!0})),function(t,e){return T.apply(this,arguments)})})),new o.a(A,S,R,$)):B.oid}))).apply(this,arguments)}function m(t){return v.apply(this,arguments)}function v(){return(v=p((function*({fs:e,gitdir:r,path:n,ours:i,base:o,theirs:a,ourName:s,theirName:u,baseName:f,dryRun:d,mergeDriver:h=l.a}){let p="100755",y="",g="";o&&"blob"===(yield o.type())&&(p=yield o.mode(),y=yield o.oid(),g=t.from(yield o.content()).toString("utf8"));const m=p===(yield i.mode())?yield a.mode():yield i.mode();if((yield i.oid())===(yield a.oid()))return{cleanMerge:!0,mergeResult:{mode:m,path:n,oid:yield i.oid(),type:"blob"}};if((yield i.oid())===y)return{cleanMerge:!0,mergeResult:{mode:m,path:n,oid:yield a.oid(),type:"blob"}};if((yield a.oid())===y)return{cleanMerge:!0,mergeResult:{mode:m,path:n,oid:yield i.oid(),type:"blob"}};const v=t.from(yield i.content()).toString("utf8"),b=t.from(yield a.content()).toString("utf8"),{mergedText:w,cleanMerge:_}=yield h({branches:[f,s,u],contents:[g,v,b],path:n});return{cleanMerge:_,mergeResult:{mode:m,path:n,oid:yield Object(c.a)({fs:e,gitdir:r,type:"blob",object:t.from(w,"utf8"),dryRun:d}),type:"blob"}}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r(19),i=r(4),o=r(49),a=r(20),s=r(17),c=r(7),u=r(12);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:t,cache:e,dir:r,gitdir:f=Object(u.join)(r,".git"),start:d,finish:h}){const p=yield o.a.read({fs:t,gitdir:f}),y=new Set,g=new Set;for(const e of d)y.add(yield i.a.resolve({fs:t,gitdir:f,ref:e}));for(const e of h)try{const r=yield i.a.resolve({fs:t,gitdir:f,ref:e});g.add(r)}catch(t){}const m=new Set;function v(t){return b.apply(this,arguments)}function b(){return(b=l((function*(r){m.add(r);const{type:i,object:o}=yield Object(c.a)({fs:t,cache:e,gitdir:f,oid:r});if("tag"===i){return v(a.a.from(o).headers().object)}if("commit"!==i)throw new n.a(r,i,"commit");if(!p.has(r)){const t=s.a.from(o).headers().parent;for(r of t)g.has(r)||m.has(r)||(yield v(r))}}))).apply(this,arguments)}for(const t of y)yield v(t);return m}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function i(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,c,"next",t)}function c(t){i(a,n,o,s,c,"throw",t)}s(void 0)}))}}function a(t){return s.apply(this,arguments)}function s(){return(s=o((function*({capabilities:t=[],triplets:e=[]}){const r=[];let i=`\0 ${t.join(" ")}`;for(const t of e)r.push(n.a.encode(`${t.oldoid} ${t.oid} ${t.fullRef}${i}\n`)),i="";return r.push(n.a.flush()),r}))).apply(this,arguments)}},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(41),i=r(10);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*(t){const e={};let r="";const o=i.a.streamReader(t);let a=yield o();for(;!0!==a;)null!==a&&(r+=a.toString("utf8")+"\n"),a=yield o();const s=r.toString("utf8").split("\n");if(a=s.shift(),!a.startsWith("unpack "))throw new n.a('unpack ok" or "unpack [error message]',a);e.ok="unpack ok"===a,e.ok||(e.error=a.slice("unpack ".length)),e.refs={};for(const t of s){if(""===t.trim())continue;const r=t.slice(0,2),n=t.slice(3);let i=n.indexOf(" ");-1===i&&(i=n.length);const o=n.slice(0,i),a=n.slice(i+1);e.refs[o]={ok:"ok"===r,error:a}}return e}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(11),i=r(13),o=r(54),a=r(12),s=r(24),c=r(15),u=r(22);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}class d{constructor({fs:t,dir:e,gitdir:r,cache:n}){this.fs=t,this.cache=n,this.dir=e,this.gitdir=r,this.config=null;const i=this;this.ConstructEntry=class{constructor(t){this._fullpath=t,this._type=!1,this._mode=!1,this._stat=!1,this._content=!1,this._oid=!1}type(){var t=this;return l((function*(){return i.type(t)}))()}mode(){var t=this;return l((function*(){return i.mode(t)}))()}stat(){var t=this;return l((function*(){return i.stat(t)}))()}content(){var t=this;return l((function*(){return i.content(t)}))()}oid(){var t=this;return l((function*(){return i.oid(t)}))()}}}readdir(t){var e=this;return l((function*(){const r=t._fullpath,{fs:n,dir:i}=e,o=yield n.readdir(Object(a.join)(i,r));return null===o?null:o.map(t=>Object(a.join)(r,t))}))()}type(t){return l((function*(){return!1===t._type&&(yield t.stat()),t._type}))()}mode(t){return l((function*(){return!1===t._mode&&(yield t.stat()),t._mode}))()}stat(t){var e=this;return l((function*(){if(!1===t._stat){const{fs:r,dir:n}=e;let i=yield r.lstat(`${n}/${t._fullpath}`);if(!i)throw new Error(`ENOENT: no such file or directory, lstat '${t._fullpath}'`);let o=i.isDirectory()?"tree":"blob";"blob"!==o||i.isFile()||i.isSymbolicLink()||(o="special"),t._type=o,i=Object(s.a)(i),t._mode=i.mode,-1===i.size&&t._actualSize&&(i.size=t._actualSize),t._stat=i}return t._stat}))()}content(t){var e=this;return l((function*(){if(!1===t._content){const{fs:r,dir:n,gitdir:i}=e;if("tree"===(yield t.type()))t._content=void 0;else{const o=yield e._getGitConfig(r,i),a=yield o.get("core.autocrlf"),s=yield r.read(`${n}/${t._fullpath}`,{autocrlf:a});t._actualSize=s.length,t._stat&&-1===t._stat.size&&(t._stat.size=t._actualSize),t._content=new Uint8Array(s)}}return t._content}))()}oid(e){var r=this;return l((function*(){if(!1===e._oid){const n=r,{fs:a,gitdir:s,cache:f}=r;let d;yield i.a.acquire({fs:a,gitdir:s,cache:f},function(){var r=l((function*(r){const i=r.entriesMap.get(e._fullpath),f=yield e.stat(),l=yield n._getGitConfig(a,s),h=yield l.get("core.filemode"),p=void 0===t||!("win32"===t.platform);if(!i||Object(o.a)(f,i,h,p)){const t=yield e.content();void 0===t?d=void 0:(d=yield Object(c.a)(u.a.wrap({type:"blob",object:t})),!i||d!==i.oid||h&&f.mode!==i.mode||!Object(o.a)(f,i,h,p)||r.insert({filepath:e._fullpath,stats:f,oid:d}))}else d=i.oid}));return function(t){return r.apply(this,arguments)}}()),e._oid=d}return e._oid}))()}_getGitConfig(t,e){var r=this;return l((function*(){return r.config?r.config:(r.config=yield n.a.get({fs:t,gitdir:e}),r.config)}))()}}}).call(this,r(56))},function(t,e,r){var n=r(217);function i(t,e){for(var r=[],i=t.length,o=e.length,a=function(t,e){var r=new n(t,e);r.compose();for(var i,o,a=r.getses(),s=t.length-1,c=e.length-1,u=a.length-1;u>=0;--u)a[u].t===r.SES_COMMON?(o?(o.chain={file1index:s,file2index:c,chain:null},o=o.chain):o=i={file1index:s,file2index:c,chain:null},s--,c--):a[u].t===r.SES_DELETE?s--:a[u].t===r.SES_ADD&&c--;var f={file1index:-1,file2index:-1,chain:null};return o?(o.chain=f,i):f}(t,e);null!==a;a=a.chain){var s=i-a.file1index-1,c=o-a.file2index-1;i=a.file1index,o=a.file2index,(s||c)&&r.push({file1:[i+1,s],file2:[o+1,c]})}return r.reverse(),r}t.exports=function(t,e,r){var n=[],o=[t,e,r],a=function(t,e,r){var n,o=i(e,t),a=i(e,r),s=[];function c(t,e){s.push([t.file1[0],e,t.file1[1],t.file2[0],t.file2[1]])}for(n=0;n<o.length;n++)c(o[n],0);for(n=0;n<a.length;n++)c(a[n],2);s.sort((function(t,e){return t[0]-e[0]}));var u=[],f=0;function l(t){t>f&&(u.push([1,f,t-f]),f=t)}for(var d=0;d<s.length;d++){for(var h=d,p=s[d],y=p[0],g=y+p[2];d<s.length-1;){var m=s[d+1],v=m[0];if(v>g)break;g=Math.max(g,v+m[2]),d++}if(l(y),h==d)p[4]>0&&u.push([p[1],p[3],p[4]]);else{var b={0:[t.length,-1,e.length,-1],2:[r.length,-1,e.length,-1]};for(n=h;n<=d;n++){var w=b[(p=s[n])[1]],_=p[0],j=_+p[2],O=p[3],x=O+p[4];w[0]=Math.min(O,w[0]),w[1]=Math.max(x,w[1]),w[2]=Math.min(_,w[2]),w[3]=Math.max(j,w[3])}var P=b[0][0]+(y-b[0][2]),k=b[0][1]+(g-b[0][3]),E=b[2][0]+(y-b[2][2]),A=b[2][1]+(g-b[2][3]);u.push([-1,P,k-P,y,g-y,E,A-E])}f=g}return l(e.length),u}(t,e,r),s=[];function c(){s.length&&n.push({ok:s}),s=[]}function u(t){for(var e=0;e<t.length;e++)s.push(t[e])}function f(e){if(e[2]!=e[6])return!0;for(var n=e[1],i=e[5],o=0;o<e[2];o++)if(t[o+n]!=r[o+i])return!0;return!1}for(var l=0;l<a.length;l++){var d=a[l],h=d[0];-1==h?f(d)?(c(),n.push({conflict:{a:t.slice(d[1],d[1]+d[2]),aIndex:d[1],o:e.slice(d[3],d[3]+d[4]),oIndex:d[3],b:r.slice(d[5],d[5]+d[6]),bIndex:d[5]}})):u(o[0].slice(d[1],d[1]+d[2])):u(o[h].slice(d[1],d[1]+d[2]))}return c(),n}},function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));const n={commit:16,tree:32,blob:48,tag:64,ofs_delta:96,ref_delta:112}},function(t,e,r){"use strict";function n(t,e){const r=t.map(t=>t.split("=",1)[0]);return e.filter(t=>{const e=t.split("=",1)[0];return r.includes(e)})}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(103),i=r(45);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){const e=t.indexOf("\r"),r=t.indexOf("\n");return-1===e&&-1===r?-1:-1===e?r+1:-1===r?e+1:r===e+1?r+1:Math.min(e,r)+1}function s(t){const e=new n.a;let r="";var s;return(s=function*(){yield Object(i.a)(t,t=>{for(t=t.toString("utf8"),r+=t;;){const t=a(r);if(-1===t)break;e.write(r.slice(0,t)),r=r.slice(t)}}),r.length>0&&e.write(r),e.end()},function(){var t=this,e=arguments;return new Promise((function(r,n){var i=s.apply(t,e);function a(t){o(i,r,n,a,c,"next",t)}function c(t){o(i,r,n,a,c,"throw",t)}a(void 0)}))})(),e}},function(t,e){t.exports=function(t,e){var r,n,i=t,o=e,a=i.length,s=o.length,c=!1,u=null,f=a+1,l=[],d=[],h=[],p="",y=function(t,e,r){return{x:t,y:e,k:r}},g=function(t,e){return{elem:t,t:e}},m=function(t,e,r){var n,c,u;for(n=e>r?l[t-1+f]:l[t+1+f],c=(u=Math.max(e,r))-t;c<a&&u<s&&i[c]===o[u];)++c,++u;return l[t+f]=d.length,d[d.length]=new y(c,u,n),u};return a>=s&&(r=i,n=a,i=o,o=r,a=s,s=n,c=!0,f=a+1),{SES_DELETE:-1,SES_COMMON:0,SES_ADD:1,editdistance:function(){return u},getlcs:function(){return p},getses:function(){return h},compose:function(){var t,e,r,n,v,b,w,_;for(t=s-a,e=a+s+3,r={},w=0;w<e;++w)r[w]=-1,l[w]=-1;n=-1;do{for(_=-++n;_<=t-1;++_)r[_+f]=m(_,r[_-1+f]+1,r[_+1+f]);for(_=t+n;_>=t+1;--_)r[_+f]=m(_,r[_-1+f]+1,r[_+1+f]);r[t+f]=m(t,r[t-1+f]+1,r[t+1+f])}while(r[t+f]!==s);for(u=t+2*n,v=l[t+f],b=[];-1!==v;)b[b.length]=new y(d[v].x,d[v].y,null),v=d[v].k;!function(t){var e,r,n;for(1,e=r=0,n=t.length-1;n>=0;--n)for(;e<t[n].x||r<t[n].y;)t[n].y-t[n].x>r-e?(h[h.length]=new g(o[r],c?-1:1),++r):t[n].y-t[n].x<r-e?(h[h.length]=new g(i[e],c?1:-1),++e):(h[h.length]=new g(i[e],0),p+=i[e],++e,++r)}(b)}}}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return s}));var n=r(223),i=r(0);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({object:e}){try{Object(i.a)("object",e),"string"==typeof e?e=t.from(e,"utf8"):e instanceof Uint8Array||(e=new Uint8Array(e));const r="blob",{oid:o,object:a}=yield Object(n.a)({type:r,format:"content",object:e});return{oid:o,type:r,object:a,format:"wrapped"}}catch(t){throw t.caller="git.hashBlob",t}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(19),i=r(3),o=r(20),a=r(17),s=r(14),c=r(18),u=r(12);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,dir:r,gitdir:f=Object(u.join)(r,".git"),type:l,object:d,format:h="parsed",oid:p,encoding:y}){try{const r=new i.a(e);if("parsed"===h){switch(l){case"commit":d=a.a.from(d).toObject();break;case"tree":d=s.a.from(d).toObject();break;case"blob":d=t.from(d,y);break;case"tag":d=o.a.from(d).toObject();break;default:throw new n.a(p||"",l,"blob|commit|tag|tree")}h="content"}return p=yield Object(c.a)({fs:r,gitdir:f,type:l,object:d,oid:p,format:h})}catch(t){throw t.caller="git.writeObject",t}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}function o(t){return a.apply(this,arguments)}function a(){return(a=i((function*({fs:t,gitdir:e,oid:r}){const n=`objects/${r.slice(0,2)}/${r.slice(2)}`;return t.exists(`${e}/${n}`)}))).apply(this,arguments)}var s=r(2),c=r(86),u=r(12);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:i}){let o=yield t.readdir(Object(u.join)(r,"objects/pack"));o=o.filter(t=>t.endsWith(".idx"));for(const a of o){const o=`${r}/objects/pack/${a}`,u=yield Object(c.a)({fs:t,cache:e,filename:o,getExternalRefDelta:i});if(u.error)throw new s.a(u.error);if(u.offsets.has(n))return!0}return!1}))).apply(this,arguments)}var p=r(7);function y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){y(o,n,i,a,s,"next",t)}function s(t){y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function m(t){return v.apply(this,arguments)}function v(){return(v=g((function*({fs:t,cache:e,gitdir:r,oid:n,format:i="content"}){const a=n=>Object(p.a)({fs:t,cache:e,gitdir:r,oid:n});let s=yield o({fs:t,gitdir:r,oid:n});return s||(s=yield d({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:a})),s}))).apply(this,arguments)}r.d(e,"a",(function(){return m}))},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return d}));var n=r(141),i=r(90),o=r(77),a=r(40),s=r(8),c=r(4),u=r(18);function f(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){f(o,n,i,a,s,"next",t)}function s(t){f(o,n,i,a,s,"throw",t)}a(void 0)}))}}function d(t){return h.apply(this,arguments)}function h(){return(h=l((function*({fs:e,cache:r,onSign:f,gitdir:l,ref:d,oid:h,note:p,force:y,author:g,committer:m,signingKey:v}){let b;try{b=yield c.a.resolve({gitdir:l,fs:e,ref:d})}catch(t){if(!(t instanceof s.a))throw t}let w=(yield Object(i.a)({fs:e,cache:r,gitdir:l,oid:b||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;if(y)w=w.filter(t=>t.path!==h);else for(const t of w)if(t.path===h)throw new a.a("note",h);"string"==typeof p&&(p=t.from(p,"utf8"));const _=yield Object(u.a)({fs:e,gitdir:l,type:"blob",object:p,format:"content"});w.push({mode:"100644",path:h,oid:_,type:"blob"});const j=yield Object(o.a)({fs:e,gitdir:l,tree:w});return yield Object(n.a)({fs:e,cache:r,onSign:f,gitdir:l,ref:d,tree:j,parent:b&&[b],message:"Note added by 'isomorphic-git addNote'\n",author:g,committer:m,signingKey:v})}))).apply(this,arguments)}}).call(this,r(9).Buffer)},function(t,e,r){"use strict";function n(t){return"5041434b0000000200000000"===t.slice(0,12).toString("hex")}r.d(e,"a",(function(){return n}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(22),i=r(15);function o(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}function s(t){return c.apply(this,arguments)}function c(){return(c=a((function*({type:t,object:e,format:r="content",oid:o}){return"deflated"!==r&&("wrapped"!==r&&(e=n.a.wrap({type:t,object:e})),o=yield Object(i.a)(e)),{oid:o,object:e}}))).apply(this,arguments)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(58),i=r(12),o=r(155);function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t){return u.apply(this,arguments)}function u(){return(u=s((function*({fs:e,cache:r,gitdir:a,oids:s,write:c}){const u=yield Object(o.a)({fs:e,cache:r,gitdir:a,oids:s}),f=t.from(yield Object(n.a)(u)),l=`pack-${f.slice(-20).toString("hex")}.pack`;return c?(yield e.write(Object(i.join)(a,`objects/pack/${l}`),f),{filename:l}):{filename:l,packfile:new Uint8Array(f)}}))).apply(this,arguments)}}).call(this,r(9).Buffer)},,,function(t,e,r){"use strict";r.r(e);var n=r(75),i=r(27),o=r(99),a=r(32),s=r(152),c=r(13),u=r(3),f=r(0),l=r(12),d=r(89);function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}function y(t){return g.apply(this,arguments)}function g(){return(g=p((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),commit:h="HEAD",cache:y={}}){try{Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r);const l=new u.a(t),m=[Object(i.a)({ref:h}),Object(o.a)(),Object(n.a)()];let v=[];yield c.a.acquire({fs:l,gitdir:r,cache:y},function(){var t=p((function*(t){v=t.unmergedPaths}));return function(e){return t.apply(this,arguments)}}());const b=yield Object(a.a)({fs:l,cache:y,dir:e,gitdir:r,trees:m,map:(g=p((function*(t,[e,r,n]){const i=!(yield Object(d.a)(r,n)),o=v.includes(t),a=!(yield Object(d.a)(n,e));if(i||o)return e?{path:t,mode:yield e.mode(),oid:yield e.oid(),type:yield e.type(),content:yield e.content()}:void 0;if(a)return!1;throw new s.a(t)})),function(t,e){return g.apply(this,arguments)})});yield c.a.acquire({fs:l,gitdir:r,cache:y},function(){var t=p((function*(t){for(const r of b)if(!1!==r)if(r){if("blob"===r.type){const n=(new TextDecoder).decode(r.content);yield l.write(`${e}/${r.path}`,n,{mode:r.mode}),t.insert({filepath:r.path,oid:r.oid,stage:0})}}else yield l.rmdir(`${e}/${r.path}`,{recursive:!0}),t.delete({filepath:r.path})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.abortMerge",t}var g}))).apply(this,arguments)}var m=r(151),v=r(8),b=r(11),w=r(37),_=r(18),j=r(156);function O(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){O(o,n,i,a,s,"next",t)}function s(t){O(o,n,i,a,s,"throw",t)}a(void 0)}))}}function P(t){return k.apply(this,arguments)}function k(){return(k=x((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,cache:i={},force:o=!1,parallel:a=!0}){try{Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r),Object(f.a)("filepath",n);const s=new u.a(t);yield c.a.acquire({fs:s,gitdir:r,cache:i},function(){var t=x((function*(t){const i=yield b.a.get({fs:s,gitdir:r}),c=yield i.get("core.autocrlf");return E({dir:e,gitdir:r,fs:s,filepath:n,index:t,force:o,parallel:a,autocrlf:c})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.add",t}}))).apply(this,arguments)}function E(t){return A.apply(this,arguments)}function A(){return(A=x((function*({dir:t,gitdir:e,fs:r,filepath:n,index:i,force:o,parallel:a,autocrlf:s}){const c=(n=Array.isArray(n)?n:[n]).map(function(){var n=x((function*(n){if(!o){if(yield w.a.isIgnored({fs:r,dir:t,gitdir:e,filepath:n}))return}const c=yield r.lstat(Object(l.join)(t,n));if(!c)throw new v.a(n);if(c.isDirectory()){const c=yield r.readdir(Object(l.join)(t,n));if(a){const u=c.map(c=>E({dir:t,gitdir:e,fs:r,filepath:[Object(l.join)(n,c)],index:i,force:o,parallel:a,autocrlf:s}));yield Promise.all(u)}else for(const u of c)yield E({dir:t,gitdir:e,fs:r,filepath:[Object(l.join)(n,u)],index:i,force:o,parallel:a,autocrlf:s})}else{const o=c.isSymbolicLink()?yield r.readlink(Object(l.join)(t,n)).then(j.a):yield r.read(Object(l.join)(t,n),{autocrlf:s});if(null===o)throw new v.a(n);const a=yield Object(_.a)({fs:r,gitdir:e,type:"blob",object:o});i.insert({filepath:n,stats:c,oid:a})}}));return function(t){return n.apply(this,arguments)}}()),u=yield Promise.allSettled(c),f=u.filter(t=>"rejected"===t.status).map(t=>t.reason);if(f.length>1)throw new m.a(f);if(1===f.length)throw f[0];return u.filter(t=>"fulfilled"===t.status&&t.value).map(t=>t.value)}))).apply(this,arguments)}var S=r(221),R=r(25),$=r(34),B=r(66);function I(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function T(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){I(o,n,i,a,s,"next",t)}function s(t){I(o,n,i,a,s,"throw",t)}a(void 0)}))}}function U(t){return C.apply(this,arguments)}function C(){return(C=T((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ref:i="refs/notes/commits",oid:o,note:a,force:s,author:c,committer:d,signingKey:h,cache:p={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",n),Object(f.a)("oid",o),Object(f.a)("note",a),h&&Object(f.a)("onSign",e);const r=new u.a(t),l=yield Object($.a)({fs:r,gitdir:n,author:c});if(!l)throw new R.a("author");const y=yield Object(B.a)({fs:r,gitdir:n,author:l,committer:d});if(!y)throw new R.a("committer");return yield Object(S.a)({fs:new u.a(r),cache:p,onSign:e,gitdir:n,ref:i,oid:o,note:a,force:s,author:l,committer:y,signingKey:h})}catch(t){throw t.caller="git.addNote",t}}))).apply(this,arguments)}var D=r(114),M=r.n(D),z=r(115),N=r.n(z),F=r(40),H=r(33);function L(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){L(o,n,i,a,s,"next",t)}function s(t){L(o,n,i,a,s,"throw",t)}a(void 0)}))}}function W(t){return q.apply(this,arguments)}function q(){return(q=G((function*({fs:t,gitdir:e,remote:r,url:n,force:i}){if(!N()(r,!0))throw new H.a(r,M.a.clean(r));const o=yield b.a.get({fs:t,gitdir:e});if(!i){if((yield o.getSubsections("remote")).includes(r)&&n!==(yield o.get(`remote.${r}.url`)))throw new F.a("remote",r)}yield o.set(`remote.${r}.url`,n),yield o.set(`remote.${r}.fetch`,`+refs/heads/*:refs/remotes/${r}/*`),yield b.a.save({fs:t,gitdir:e,config:o})}))).apply(this,arguments)}function Y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Y(o,n,i,a,s,"next",t)}function s(t){Y(o,n,i,a,s,"throw",t)}a(void 0)}))}}function K(t){return V.apply(this,arguments)}function V(){return(V=Z((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),remote:n,url:i,force:o=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("remote",n),Object(f.a)("url",i),yield W({fs:new u.a(t),gitdir:r,remote:n,url:i,force:o})}catch(t){throw t.caller="git.addRemote",t}}))).apply(this,arguments)}var X=r(4),J=r(20),Q=r(7);function tt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function et(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){tt(o,n,i,a,s,"next",t)}function s(t){tt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function rt(t){return nt.apply(this,arguments)}function nt(){return(nt=et((function*({fs:t,cache:e,onSign:r,gitdir:n,ref:i,tagger:o,message:a=i,gpgsig:s,object:c,signingKey:u,force:f=!1}){if(i=i.startsWith("refs/tags/")?i:`refs/tags/${i}`,!f&&(yield X.a.exists({fs:t,gitdir:n,ref:i})))throw new F.a("tag",i);const l=yield X.a.resolve({fs:t,gitdir:n,ref:c||"HEAD"}),{type:d}=yield Object(Q.a)({fs:t,cache:e,gitdir:n,oid:l});let h=J.a.from({object:l,type:d,tag:i.replace("refs/tags/",""),tagger:o,message:a,gpgsig:s});u&&(h=yield J.a.sign(h,r,u));const p=yield Object(_.a)({fs:t,gitdir:n,type:"tag",object:h.toObject()});yield X.a.writeRef({fs:t,gitdir:n,ref:i,value:p})}))).apply(this,arguments)}function it(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ot(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){it(o,n,i,a,s,"next",t)}function s(t){it(o,n,i,a,s,"throw",t)}a(void 0)}))}}function at(t){return st.apply(this,arguments)}function st(){return(st=ot((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ref:i,tagger:o,message:a=i,gpgsig:s,object:c,signingKey:d,force:h=!1,cache:p={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",n),Object(f.a)("ref",i),d&&Object(f.a)("onSign",e);const r=new u.a(t),l=yield Object($.a)({fs:r,gitdir:n,author:o});if(!l)throw new R.a("tagger");return yield rt({fs:r,cache:p,onSign:e,gitdir:n,ref:i,tagger:l,message:a,gpgsig:s,object:c,signingKey:d,force:h})}catch(t){throw t.caller="git.annotatedTag",t}}))).apply(this,arguments)}function ct(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ct(o,n,i,a,s,"next",t)}function s(t){ct(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ft(t){return lt.apply(this,arguments)}function lt(){return(lt=ut((function*({fs:t,gitdir:e,ref:r,object:n,checkout:i=!1,force:o=!1}){if(!N()(r,!0))throw new H.a(r,M.a.clean(r));const a=`refs/heads/${r}`;if(!o){if(yield X.a.exists({fs:t,gitdir:e,ref:a}))throw new F.a("branch",r,!1)}let s;try{s=yield X.a.resolve({fs:t,gitdir:e,ref:n||"HEAD"})}catch(t){}s&&(yield X.a.writeRef({fs:t,gitdir:e,ref:a,value:s})),i&&(yield X.a.writeSymbolicRef({fs:t,gitdir:e,ref:"HEAD",value:a}))}))).apply(this,arguments)}function dt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ht(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){dt(o,n,i,a,s,"next",t)}function s(t){dt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function pt(t){return yt.apply(this,arguments)}function yt(){return(yt=ht((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,object:i,checkout:o=!1,force:a=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield ft({fs:new u.a(t),gitdir:r,ref:n,object:i,checkout:o,force:a})}catch(t){throw t.caller="git.branch",t}}))).apply(this,arguments)}var gt=r(146),mt=r(147),vt=r(2),bt=r(110);const wt=(t,e)=>"."===t||null==e||0===e.length||"."===e||(e.length>=t.length?e.startsWith(t):t.startsWith(e));function _t(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function jt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_t(o,n,i,a,s,"next",t)}function s(t){_t(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ot(t){return xt.apply(this,arguments)}function xt(){return(xt=jt((function*({fs:t,cache:e,onProgress:r,onPostCheckout:n,dir:i,gitdir:o,remote:a,ref:s,filepaths:u,noCheckout:f,noUpdateHead:l,dryRun:d,force:h,track:p=!0,nonBlocking:y=!1,batchSize:g=100}){let m,w;if(n)try{m=yield X.a.resolve({fs:t,gitdir:o,ref:"HEAD"})}catch(t){m="0000000000000000000000000000000000000000"}try{w=yield X.a.resolve({fs:t,gitdir:o,ref:s})}catch(e){if("HEAD"===s)throw e;const r=`${a}/${s}`;if(w=yield X.a.resolve({fs:t,gitdir:o,ref:r}),p){const e=yield b.a.get({fs:t,gitdir:o});yield e.set(`branch.${s}.remote`,a),yield e.set(`branch.${s}.merge`,`refs/heads/${s}`),yield b.a.save({fs:t,gitdir:o,config:e})}yield X.a.writeRef({fs:t,gitdir:o,ref:`refs/heads/${s}`,value:w})}if(!f){let a;try{a=yield Pt({fs:t,cache:e,onProgress:r,dir:i,gitdir:o,ref:s,force:h,filepaths:u})}catch(t){throw t instanceof v.a&&t.data.what===w?new mt.a(s,w):t}const f=a.filter(([t])=>"conflict"===t).map(([t,e])=>e);if(f.length>0)throw new gt.a(f);const l=a.filter(([t])=>"error"===t).map(([t,e])=>e);if(l.length>0)throw new vt.a(l.join(", "));if(d)return void(n&&(yield n({previousHead:m,newHead:w,type:null!=u&&u.length>0?"file":"branch"})));let p=0;const b=a.length;if(yield c.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=jt((function*(e){yield Promise.all(a.filter(([t])=>"delete"===t||"delete-index"===t).map(function(){var n=jt((function*([n,o]){const a=`${i}/${o}`;"delete"===n&&(yield t.rm(a)),e.delete({filepath:o}),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}));return function(t){return n.apply(this,arguments)}}()))}));return function(t){return e.apply(this,arguments)}}()),yield c.a.acquire({fs:t,gitdir:o,cache:e},function(){var e=jt((function*(e){for(const[n,o]of a)if("rmdir"===n||"rmdir-index"===n){const a=`${i}/${o}`;try{"rmdir"===n&&(yield t.rmdir(a)),e.delete({filepath:o}),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}catch(t){if("ENOTEMPTY"!==t.code)throw t;console.log(`Did not delete ${o} because directory is not empty`)}}}));return function(t){return e.apply(this,arguments)}}()),yield Promise.all(a.filter(([t])=>"mkdir"===t||"mkdir-index"===t).map(function(){var e=jt((function*([e,n]){const o=`${i}/${n}`;yield t.mkdir(o),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}));return function(t){return e.apply(this,arguments)}}())),y){const n=a.filter(([t])=>"create"===t||"create-index"===t||"update"===t||"mkdir-index"===t),s=yield $t("Update Working Dir",n.map(([r,n,a,s,c])=>()=>St({fs:t,cache:e,gitdir:o,dir:i},[r,n,a,s,c])),r,g);yield c.a.acquire({fs:t,gitdir:o,cache:e,allowUnmerged:!0},function(){var t=jt((function*(t){yield $t("Update Index",s.map(([e,r,n])=>()=>Et({index:t,fullpath:e,oid:r,stats:n})),r,g)}));return function(e){return t.apply(this,arguments)}}())}else yield c.a.acquire({fs:t,gitdir:o,cache:e,allowUnmerged:!0},function(){var n=jt((function*(n){yield Promise.all(a.filter(([t])=>"create"===t||"create-index"===t||"update"===t||"mkdir-index"===t).map(function(){var a=jt((function*([a,s,c,u,f]){const l=`${i}/${s}`;try{if("create-index"!==a&&"mkdir-index"!==a){const{object:r}=yield Object(Q.a)({fs:t,cache:e,gitdir:o,oid:c});if(f&&(yield t.rm(l)),33188===u)yield t.write(l,r);else if(33261===u)yield t.write(l,r,{mode:511});else{if(40960!==u)throw new vt.a(`Invalid mode 0o${u.toString(8)} detected in blob ${c}`);yield t.writelink(l,r)}}const i=yield t.lstat(l);33261===u&&(i.mode=493),"mkdir-index"===a&&(i.mode=57344),n.insert({filepath:s,stats:i,oid:c}),r&&(yield r({phase:"Updating workdir",loaded:++p,total:b}))}catch(t){console.log(t)}}));return function(t){return a.apply(this,arguments)}}()))}));return function(t){return n.apply(this,arguments)}}());n&&(yield n({previousHead:m,newHead:w,type:null!=u&&u.length>0?"file":"branch"}))}if(!l){const e=yield X.a.expand({fs:t,gitdir:o,ref:s});e.startsWith("refs/heads")?yield X.a.writeSymbolicRef({fs:t,gitdir:o,ref:"HEAD",value:e}):yield X.a.writeRef({fs:t,gitdir:o,ref:"HEAD",value:w})}}))).apply(this,arguments)}function Pt(t){return kt.apply(this,arguments)}function kt(){return(kt=jt((function*({fs:t,cache:e,onProgress:r,dir:s,gitdir:c,ref:u,force:f,filepaths:l}){let d=0;return Object(a.a)({fs:t,cache:e,dir:s,gitdir:c,trees:[Object(i.a)({ref:u}),Object(o.a)(),Object(n.a)()],map:(p=jt((function*(t,[e,n,i]){if("."!==t){if(l&&!l.some(e=>wt(t,e)))return null;switch(r&&(yield r({phase:"Analyzing workdir",loaded:++d})),[!!i,!!e,!!n].map(Number).join("")){case"000":return;case"001":return f&&l&&l.includes(t)?["delete",t]:void 0;case"010":switch(yield e.type()){case"tree":return["mkdir",t];case"blob":return["create",t,yield e.oid(),yield e.mode()];case"commit":return["mkdir-index",t,yield e.oid(),yield e.mode()];default:return["error",`new entry Unhandled type ${yield e.type()}`]}case"011":switch(`${yield e.type()}-${yield n.type()}`){case"tree-tree":return;case"tree-blob":case"blob-tree":return["conflict",t];case"blob-blob":return(yield e.oid())!==(yield n.oid())?f?["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield n.mode())]:["conflict",t]:(yield e.mode())!==(yield n.mode())?f?["update",t,yield e.oid(),yield e.mode(),!0]:["conflict",t]:["create-index",t,yield e.oid(),yield e.mode()];case"commit-tree":return;case"commit-blob":return["conflict",t];default:return["error",`new entry Unhandled type ${e.type}`]}case"100":return["delete-index",t];case"101":switch(yield i.type()){case"tree":return["rmdir-index",t];case"blob":return(yield i.oid())!==(yield n.oid())?f?["delete",t]:["conflict",t]:["delete",t];case"commit":return["rmdir-index",t];default:return["error",`delete entry Unhandled type ${yield i.type()}`]}case"110":case"111":switch(`${yield i.type()}-${yield e.type()}`){case"tree-tree":return;case"blob-blob":if((yield i.oid())===(yield e.oid())&&(yield i.mode())===(yield e.mode())&&!f)return;if(n){if((yield n.oid())!==(yield i.oid())&&(yield n.oid())!==(yield e.oid()))return f?["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield n.mode())]:["conflict",t]}else if(f)return["update",t,yield e.oid(),yield e.mode(),(yield e.mode())!==(yield i.mode())];return(yield e.mode())!==(yield i.mode())?["update",t,yield e.oid(),yield e.mode(),!0]:(yield e.oid())!==(yield i.oid())?["update",t,yield e.oid(),yield e.mode(),!1]:void 0;case"tree-blob":return["update-dir-to-blob",t,yield e.oid()];case"blob-tree":return["update-blob-to-tree",t];case"commit-commit":return["mkdir-index",t,yield e.oid(),yield e.mode()];default:return["error",`update entry Unhandled type ${yield i.type()}-${yield e.type()}`]}}}})),function(t,e){return p.apply(this,arguments)}),reduce:(h=jt((function*(t,e){return e=Object(bt.a)(e),t?t&&"rmdir"===t[0]?(e.push(t),e):(e.unshift(t),e):e})),function(t,e){return h.apply(this,arguments)})});var h,p}))).apply(this,arguments)}function Et(t){return At.apply(this,arguments)}function At(){return(At=jt((function*({index:t,fullpath:e,stats:r,oid:n}){try{t.insert({filepath:e,stats:r,oid:n})}catch(t){console.warn(`Error inserting ${e} into index:`,t)}}))).apply(this,arguments)}function St(t,e){return Rt.apply(this,arguments)}function Rt(){return(Rt=jt((function*({fs:t,cache:e,gitdir:r,dir:n},[i,o,a,s,c]){const u=`${n}/${o}`;if("create-index"!==i&&"mkdir-index"!==i){const{object:n}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:a});if(c&&(yield t.rm(u)),33188===s)yield t.write(u,n);else if(33261===s)yield t.write(u,n,{mode:511});else{if(40960!==s)throw new vt.a(`Invalid mode 0o${s.toString(8)} detected in blob ${a}`);yield t.writelink(u,n)}}const f=yield t.lstat(u);return 33261===s&&(f.mode=493),"mkdir-index"===i&&(f.mode=57344),[o,a,f]}))).apply(this,arguments)}function $t(t,e,r,n){return Bt.apply(this,arguments)}function Bt(){return(Bt=jt((function*(t,e,r,n){const i=[];try{for(let t=0;t<e.length;t+=n){const o=e.slice(t,t+n).map(t=>t());(yield Promise.allSettled(o)).forEach(t=>{"fulfilled"===t.status&&i.push(t.value)}),r&&(yield r({phase:"Updating workdir",loaded:t+o.length,total:e.length}))}return i}catch(e){console.error(`Error during ${t}: ${e}`)}return i}))).apply(this,arguments)}function It(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Tt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){It(o,n,i,a,s,"next",t)}function s(t){It(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ut(t){return Ct.apply(this,arguments)}function Ct(){return(Ct=Tt((function*({fs:t,onProgress:e,onPostCheckout:r,dir:n,gitdir:i=Object(l.join)(n,".git"),remote:o="origin",ref:a,filepaths:s,noCheckout:c=!1,noUpdateHead:d=void 0===a,dryRun:h=!1,force:p=!1,track:y=!0,cache:g={},nonBlocking:m=!1,batchSize:v=100}){try{Object(f.a)("fs",t),Object(f.a)("dir",n),Object(f.a)("gitdir",i);const l=a||"HEAD";return yield Ot({fs:new u.a(t),cache:g,onProgress:e,onPostCheckout:r,dir:n,gitdir:i,remote:o,ref:l,filepaths:s,noCheckout:c,noUpdateHead:d,dryRun:h,force:p,track:y,nonBlocking:m,batchSize:v})}catch(t){throw t.caller="git.checkout",t}}))).apply(this,arguments)}var Dt=r(159);function Mt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function zt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Mt(o,n,i,a,s,"next",t)}function s(t){Mt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Nt(t){return Ft.apply(this,arguments)}function Ft(){return(Ft=zt((function*({fs:t,bare:e=!1,dir:r,gitdir:n=(e?r:Object(l.join)(r,".git")),defaultBranch:i="master"}){if(yield t.exists(n+"/config"))return;let o=["hooks","info","objects/info","objects/pack","refs/heads","refs/tags"];o=o.map(t=>n+"/"+t);for(const e of o)yield t.mkdir(e);yield t.write(n+"/config","[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n"+`\tbare = ${e}\n`+(e?"":"\tlogallrefupdates = true\n")+"\tsymlinks = false\n\tignorecase = true\n"),yield t.write(n+"/HEAD",`ref: refs/heads/${i}\n`)}))).apply(this,arguments)}function Ht(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Lt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ht(o,n,i,a,s,"next",t)}function s(t){Ht(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Gt(t){return Wt.apply(this,arguments)}function Wt(){return(Wt=Lt((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,onPostCheckout:c,dir:u,gitdir:f,url:l,corsProxy:d,ref:h,remote:p,depth:y,since:g,exclude:m,relative:v,singleBranch:w,noCheckout:_,noTags:j,headers:O,nonBlocking:x,batchSize:P=100}){try{if(yield Nt({fs:t,gitdir:f}),yield W({fs:t,gitdir:f,remote:p,url:l,force:!1}),d){const e=yield b.a.get({fs:t,gitdir:f});yield e.set("http.corsProxy",d),yield b.a.save({fs:t,gitdir:f,config:e})}const{defaultBranch:k,fetchHead:E}=yield Object(Dt.a)({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:f,ref:h,remote:p,corsProxy:d,depth:y,since:g,exclude:m,relative:v,singleBranch:w,headers:O,tags:!j});if(null===E)return;h=(h=h||k).replace("refs/heads/",""),yield Ot({fs:t,cache:e,onProgress:n,onPostCheckout:c,dir:u,gitdir:f,ref:h,remote:p,noCheckout:_,nonBlocking:x,batchSize:P})}catch(e){throw yield t.rmdir(f,{recursive:!0,maxRetries:10}).catch(()=>{}),e}}))).apply(this,arguments)}function qt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Yt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){qt(o,n,i,a,s,"next",t)}function s(t){qt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Zt(t){return Kt.apply(this,arguments)}function Kt(){return(Kt=Yt((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPostCheckout:s,dir:c,gitdir:d=Object(l.join)(c,".git"),url:h,corsProxy:p,ref:y,remote:g="origin",depth:m,since:v,exclude:b=[],relative:w=!1,singleBranch:_=!1,noCheckout:j=!1,noTags:O=!1,headers:x={},cache:P={},nonBlocking:k=!1,batchSize:E=100}){try{return Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",d),j||Object(f.a)("dir",c),Object(f.a)("url",h),yield Gt({fs:new u.a(t),cache:P,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPostCheckout:s,dir:c,gitdir:d,url:h,corsProxy:p,ref:y,remote:g,depth:m,since:v,exclude:b,relative:w,singleBranch:_,noCheckout:j,noTags:O,headers:x,nonBlocking:k,batchSize:E})}catch(t){throw t.caller="git.clone",t}}))).apply(this,arguments)}var Vt=r(141);function Xt(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Jt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xt(o,n,i,a,s,"next",t)}function s(t){Xt(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qt(t){return te.apply(this,arguments)}function te(){return(te=Jt((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),message:i,author:o,committer:a,signingKey:s,amend:c=!1,dryRun:d=!1,noUpdateBranch:h=!1,ref:p,parent:y,tree:g,cache:m={}}){try{Object(f.a)("fs",t),c||Object(f.a)("message",i),s&&Object(f.a)("onSign",e);const r=new u.a(t);return yield Object(Vt.a)({fs:r,cache:m,onSign:e,gitdir:n,message:i,author:o,committer:a,signingKey:s,amend:c,dryRun:d,noUpdateBranch:h,ref:p,parent:y,tree:g})}catch(t){throw t.caller="git.commit",t}}))).apply(this,arguments)}var ee=r(55);function re(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ne(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){re(o,n,i,a,s,"next",t)}function s(t){re(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ie(t){return oe.apply(this,arguments)}function oe(){return(oe=ne((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),fullname:n=!1,test:i=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),yield Object(ee.a)({fs:new u.a(t),gitdir:r,fullname:n,test:i})}catch(t){throw t.caller="git.currentBranch",t}}))).apply(this,arguments)}var ae=r(102);function se(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ce(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){se(o,n,i,a,s,"next",t)}function s(t){se(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ue(t){return fe.apply(this,arguments)}function fe(){return(fe=ce((function*({fs:t,gitdir:e,ref:r}){if(r=r.startsWith("refs/heads/")?r:`refs/heads/${r}`,!(yield X.a.exists({fs:t,gitdir:e,ref:r})))throw new v.a(r);const n=yield X.a.expand({fs:t,gitdir:e,ref:r});if(n===(yield Object(ee.a)({fs:t,gitdir:e,fullname:!0}))){const r=yield X.a.resolve({fs:t,gitdir:e,ref:n});yield X.a.writeRef({fs:t,gitdir:e,ref:"HEAD",value:r})}yield X.a.deleteRef({fs:t,gitdir:e,ref:n});const i=Object(ae.a)(r),o=yield b.a.get({fs:t,gitdir:e});yield o.deleteSection("branch",i),yield b.a.save({fs:t,gitdir:e,config:o})}))).apply(this,arguments)}function le(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function de(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){le(o,n,i,a,s,"next",t)}function s(t){le(o,n,i,a,s,"throw",t)}a(void 0)}))}}function he(t){return pe.apply(this,arguments)}function pe(){return(pe=de((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{return Object(f.a)("fs",t),Object(f.a)("ref",n),yield ue({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteBranch",t}}))).apply(this,arguments)}function ye(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ge(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ye(o,n,i,a,s,"next",t)}function s(t){ye(o,n,i,a,s,"throw",t)}a(void 0)}))}}function me(t){return ve.apply(this,arguments)}function ve(){return(ve=ge((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{Object(f.a)("fs",t),Object(f.a)("ref",n),yield X.a.deleteRef({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteRef",t}}))).apply(this,arguments)}function be(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function we(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){be(o,n,i,a,s,"next",t)}function s(t){be(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _e(t){return je.apply(this,arguments)}function je(){return(je=we((function*({fs:t,gitdir:e,remote:r}){const n=yield b.a.get({fs:t,gitdir:e});yield n.deleteSection("remote",r),yield b.a.save({fs:t,gitdir:e,config:n})}))).apply(this,arguments)}function Oe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oe(o,n,i,a,s,"next",t)}function s(t){Oe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pe(t){return ke.apply(this,arguments)}function ke(){return(ke=xe((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),remote:n}){try{return Object(f.a)("fs",t),Object(f.a)("remote",n),yield _e({fs:new u.a(t),gitdir:r,remote:n})}catch(t){throw t.caller="git.deleteRemote",t}}))).apply(this,arguments)}function Ee(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ae(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ee(o,n,i,a,s,"next",t)}function s(t){Ee(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Se(t){return Re.apply(this,arguments)}function Re(){return(Re=Ae((function*({fs:t,gitdir:e,ref:r}){r=r.startsWith("refs/tags/")?r:`refs/tags/${r}`,yield X.a.deleteRef({fs:t,gitdir:e,ref:r})}))).apply(this,arguments)}function $e(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Be(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$e(o,n,i,a,s,"next",t)}function s(t){$e(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ie(t){return Te.apply(this,arguments)}function Te(){return(Te=Be((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{return Object(f.a)("fs",t),Object(f.a)("ref",n),yield Se({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.deleteTag",t}}))).apply(this,arguments)}var Ue=r(145);function Ce(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function De(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ce(o,n,i,a,s,"next",t)}function s(t){Ce(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Me(t){return ze.apply(this,arguments)}function ze(){return(ze=De((function*({fs:t,gitdir:e,oid:r}){const n=r.slice(0,2);return(yield t.readdir(`${e}/objects/${n}`)).map(t=>`${n}${t}`).filter(t=>t.startsWith(r))}))).apply(this,arguments)}var Ne=r(86);function Fe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function He(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fe(o,n,i,a,s,"next",t)}function s(t){Fe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Le(t){return Ge.apply(this,arguments)}function Ge(){return(Ge=He((function*({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:i}){const o=[];let a=yield t.readdir(Object(l.join)(r,"objects/pack"));a=a.filter(t=>t.endsWith(".idx"));for(const s of a){const a=`${r}/objects/pack/${s}`,c=yield Object(Ne.a)({fs:t,cache:e,filename:a,getExternalRefDelta:i});if(c.error)throw new vt.a(c.error);for(const t of c.offsets.keys())t.startsWith(n)&&o.push(t)}return o}))).apply(this,arguments)}function We(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qe(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){We(o,n,i,a,s,"next",t)}function s(t){We(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ye(t){return Ze.apply(this,arguments)}function Ze(){return(Ze=qe((function*({fs:t,cache:e,gitdir:r,oid:n}){const i=yield Me({fs:t,gitdir:r,oid:n}),o=yield Le({fs:t,cache:e,gitdir:r,oid:n,getExternalRefDelta:n=>Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n})});for(const t of o)-1===i.indexOf(t)&&i.push(t);if(1===i.length)return i[0];if(i.length>1)throw new Ue.a("oids",n,i);throw new v.a(`an object matching "${n}"`)}))).apply(this,arguments)}function Ke(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ve(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ke(o,n,i,a,s,"next",t)}function s(t){Ke(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xe(t){return Je.apply(this,arguments)}function Je(){return(Je=Ve((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Ye({fs:new u.a(t),cache:i,gitdir:r,oid:n})}catch(t){throw t.caller="git.expandOid",t}}))).apply(this,arguments)}function Qe(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function tr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qe(o,n,i,a,s,"next",t)}function s(t){Qe(o,n,i,a,s,"throw",t)}a(void 0)}))}}function er(t){return rr.apply(this,arguments)}function rr(){return(rr=tr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield X.a.expand({fs:new u.a(t),gitdir:r,ref:n})}catch(t){throw t.caller="git.expandRef",t}}))).apply(this,arguments)}var nr=r(17);function ir(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function or(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ir(o,n,i,a,s,"next",t)}function s(t){ir(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ar(t){return sr.apply(this,arguments)}function sr(){return(sr=or((function*({fs:t,cache:e,gitdir:r,oids:n}){const i={},o=n.length;let a=n.map((t,e)=>({index:e,oid:t}));for(;a.length;){const n=new Set;for(const t of a){const{oid:e,index:r}=t;i[e]||(i[e]=new Set),i[e].add(r),i[e].size===o&&n.add(e)}if(n.size>0)return[...n];const s=new Map;for(const n of a){const{oid:o,index:a}=n;try{const{object:n}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:o}),c=nr.a.from(n),{parent:u}=c.parseHeaders();for(const t of u)i[t]&&i[t].has(a)||s.set(t+":"+a,{oid:t,index:a})}catch(t){}}a=Array.from(s.values())}return[]}))).apply(this,arguments)}var cr=r(148),ur=r(97),fr=r(96),lr=r(208);function dr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function hr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){dr(o,n,i,a,s,"next",t)}function s(t){dr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function pr(t){return yr.apply(this,arguments)}function yr(){return(yr=hr((function*({fs:t,cache:e,dir:r,gitdir:n,ours:i,theirs:o,fastForward:a=!0,fastForwardOnly:s=!1,dryRun:u=!1,noUpdateBranch:f=!1,abortOnConflict:l=!0,message:d,author:h,committer:p,signingKey:y,onSign:g,mergeDriver:m,allowUnrelatedHistories:v=!1}){void 0===i&&(i=yield Object(ee.a)({fs:t,gitdir:n,fullname:!0})),i=yield X.a.expand({fs:t,gitdir:n,ref:i}),o=yield X.a.expand({fs:t,gitdir:n,ref:o});const b=yield X.a.resolve({fs:t,gitdir:n,ref:i}),w=yield X.a.resolve({fs:t,gitdir:n,ref:o}),_=yield ar({fs:t,cache:e,gitdir:n,oids:[b,w]});if(1!==_.length){if(0!==_.length||!v)throw new fr.a;_.push("4b825dc642cb6eb9a060e54bf8d69288fbee4904")}const j=_[0];if(j===w)return{oid:b,alreadyMerged:!0};if(a&&j===b)return u||f||(yield X.a.writeRef({fs:t,gitdir:n,ref:i,value:w})),{oid:w,fastForward:!0};{if(s)throw new cr.a;const a=yield c.a.acquire({fs:t,gitdir:n,cache:e,allowUnmerged:!1},function(){var a=hr((function*(a){return Object(lr.a)({fs:t,cache:e,dir:r,gitdir:n,index:a,ourOid:b,theirOid:w,baseOid:j,ourName:Object(ae.a)(i),baseName:"base",theirName:Object(ae.a)(o),dryRun:u,abortOnConflict:l,mergeDriver:m})}));return function(t){return a.apply(this,arguments)}}());if(a instanceof ur.a)throw a;return d||(d=`Merge branch '${Object(ae.a)(o)}' into ${Object(ae.a)(i)}`),{oid:yield Object(Vt.a)({fs:t,cache:e,gitdir:n,message:d,ref:i,tree:a,parent:[b,w],author:h,committer:p,signingKey:y,onSign:g,dryRun:u,noUpdateBranch:f}),tree:a,mergeCommit:!0}}}))).apply(this,arguments)}var gr=r(31);function mr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function vr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){mr(o,n,i,a,s,"next",t)}function s(t){mr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function br(t){return wr.apply(this,arguments)}function wr(){return(wr=vr((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,dir:c,gitdir:u,ref:f,url:l,remote:d,remoteRef:h,prune:p,pruneTags:y,fastForward:g,fastForwardOnly:m,corsProxy:v,singleBranch:b,headers:w,author:_,committer:j,signingKey:O}){try{if(!f){const e=yield Object(ee.a)({fs:t,gitdir:u});if(!e)throw new gr.a("ref");f=e}const{fetchHead:x,fetchHeadDescription:P}=yield Object(Dt.a)({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,gitdir:u,corsProxy:v,ref:f,url:l,remote:d,remoteRef:h,singleBranch:b,headers:w,prune:p,pruneTags:y});yield pr({fs:t,cache:e,gitdir:u,ours:f,theirs:x,fastForward:g,fastForwardOnly:m,message:`Merge ${P}`,author:_,committer:j,signingKey:O,dryRun:!1,noUpdateBranch:!1}),yield Ot({fs:t,cache:e,onProgress:n,dir:c,gitdir:u,ref:f,remote:d,noCheckout:!1})}catch(t){throw t.caller="git.pull",t}}))).apply(this,arguments)}function _r(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function jr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_r(o,n,i,a,s,"next",t)}function s(t){_r(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Or(t){return xr.apply(this,arguments)}function xr(){return(xr=jr((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(l.join)(s,".git"),ref:d,url:h,remote:p,remoteRef:y,corsProxy:g,singleBranch:m,headers:v={},cache:b={}}){try{Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",c);const l={name:"",email:"",timestamp:Date.now(),timezoneOffset:0};return yield br({fs:new u.a(t),cache:b,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,ref:d,url:h,remote:p,remoteRef:y,fastForwardOnly:!0,corsProxy:g,singleBranch:m,headers:v,author:l,committer:l})}catch(t){throw t.caller="git.fastForward",t}}))).apply(this,arguments)}function Pr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function kr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Pr(o,n,i,a,s,"next",t)}function s(t){Pr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Er(t){return Ar.apply(this,arguments)}function Ar(){return(Ar=kr((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(l.join)(s,".git"),ref:d,remote:h,remoteRef:p,url:y,corsProxy:g,depth:m=null,since:v=null,exclude:b=[],relative:w=!1,tags:_=!1,singleBranch:j=!1,headers:O={},prune:x=!1,pruneTags:P=!1,cache:k={}}){try{return Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",c),yield Object(Dt.a)({fs:new u.a(t),cache:k,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,gitdir:c,ref:d,remote:h,remoteRef:p,url:y,corsProxy:g,depth:m,since:v,exclude:b,relative:w,tags:_,singleBranch:j,headers:O,prune:x,pruneTags:P})}catch(t){throw t.caller="git.fetch",t}}))).apply(this,arguments)}function Sr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Sr(o,n,i,a,s,"next",t)}function s(t){Sr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function $r(t){return Br.apply(this,arguments)}function Br(){return(Br=Rr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oids:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oids",n),yield ar({fs:new u.a(t),cache:i,gitdir:r,oids:n})}catch(t){throw t.caller="git.findMergeBase",t}}))).apply(this,arguments)}var Ir=r(23);function Tr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ur(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Tr(o,n,i,a,s,"next",t)}function s(t){Tr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Cr(t){return Dr.apply(this,arguments)}function Dr(){return(Dr=Ur((function*({fs:t,filepath:e}){if(yield t.exists(Object(l.join)(e,".git")))return e;{const r=Object(Ir.a)(e);if(r===e)throw new v.a(`git root for ${e}`);return Cr({fs:t,filepath:r})}}))).apply(this,arguments)}function Mr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function zr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Mr(o,n,i,a,s,"next",t)}function s(t){Mr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Nr(t){return Fr.apply(this,arguments)}function Fr(){return(Fr=zr((function*({fs:t,filepath:e}){try{return Object(f.a)("fs",t),Object(f.a)("filepath",e),yield Cr({fs:new u.a(t),filepath:e})}catch(t){throw t.caller="git.findRoot",t}}))).apply(this,arguments)}var Hr=r(42);function Lr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Gr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Lr(o,n,i,a,s,"next",t)}function s(t){Lr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Wr(t){return qr.apply(this,arguments)}function qr(){return(qr=Gr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),path:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("path",n),yield Object(Hr.a)({fs:new u.a(t),gitdir:r,path:n})}catch(t){throw t.caller="git.getConfig",t}}))).apply(this,arguments)}function Yr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Zr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Yr(o,n,i,a,s,"next",t)}function s(t){Yr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Kr(t){return Vr.apply(this,arguments)}function Vr(){return(Vr=Zr((function*({fs:t,gitdir:e,path:r}){return(yield b.a.get({fs:t,gitdir:e})).getall(r)}))).apply(this,arguments)}function Xr(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Jr(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xr(o,n,i,a,s,"next",t)}function s(t){Xr(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Qr(t){return tn.apply(this,arguments)}function tn(){return(tn=Jr((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),path:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("path",n),yield Kr({fs:new u.a(t),gitdir:r,path:n})}catch(t){throw t.caller="git.getConfigAll",t}}))).apply(this,arguments)}var en=r(61);function rn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function nn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){rn(o,n,i,a,s,"next",t)}function s(t){rn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function on(t){return an.apply(this,arguments)}function an(){return(an=nn((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1}){try{Object(f.a)("http",t),Object(f.a)("url",o);const c=en.a.getRemoteHelperFor({url:o}),u=yield c.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:1}),l={capabilities:[...u.capabilities]};for(const[t,e]of u.refs){const r=t.split("/"),n=r.pop();let i=l;for(const t of r)i[t]=i[t]||{},i=i[t];i[n]=e}for(const[t,e]of u.symrefs){const r=t.split("/"),n=r.pop();let i=l;for(const t of r)i[t]=i[t]||{},i=i[t];i[n]=e}return l}catch(t){throw t.caller="git.getRemoteInfo",t}}))).apply(this,arguments)}function sn(t,e,r,n){const i=[];for(const[o,a]of t.refs){if(e&&!o.startsWith(e))continue;if(o.endsWith("^{}")){if(n){const t=o.replace("^{}",""),e=i[i.length-1],r=e.ref===t?e:i.find(e=>e.ref===t);if(void 0===r)throw new Error("I did not expect this to happen");r.peeled=a}continue}const s={ref:o,oid:a};r&&t.symrefs.has(o)&&(s.target=t.symrefs.get(o)),i.push(s)}return i}function cn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function un(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cn(o,n,i,a,s,"next",t)}function s(t){cn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function fn(t){return ln.apply(this,arguments)}function ln(){return(ln=un((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1,protocolVersion:c=2}){try{Object(f.a)("http",t),Object(f.a)("url",o);const u=en.a.getRemoteHelperFor({url:o}),l=yield u.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:c});if(2===l.protocolVersion)return{protocolVersion:l.protocolVersion,capabilities:l.capabilities2};const d={};for(const t of l.capabilities){const[e,r]=t.split("=");d[e]=r||!0}return{protocolVersion:1,capabilities:d,refs:sn(l,void 0,!0,!0)}}catch(t){throw t.caller="git.getRemoteInfo2",t}}))).apply(this,arguments)}var dn=r(218),hn=r(62);function pn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){pn(o,n,i,a,s,"next",t)}function s(t){pn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gn(t){return mn.apply(this,arguments)}function mn(){return(mn=yn((function*({fs:t,cache:e,onProgress:r,dir:n,gitdir:i,filepath:o}){try{o=Object(l.join)(n,o);const a=yield t.read(o),s=r=>Object(Q.a)({fs:t,cache:e,gitdir:i,oid:r}),c=yield hn.a.fromPack({pack:a,getExternalRefDelta:s,onProgress:r});return yield t.write(o.replace(/\.pack$/,".idx"),yield c.toBuffer()),{oids:[...c.hashes]}}catch(t){throw t.caller="git.indexPack",t}}))).apply(this,arguments)}function vn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function bn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vn(o,n,i,a,s,"next",t)}function s(t){vn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function wn(t){return _n.apply(this,arguments)}function _n(){return(_n=bn((function*({fs:t,onProgress:e,dir:r,gitdir:n=Object(l.join)(r,".git"),filepath:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("dir",r),Object(f.a)("gitdir",r),Object(f.a)("filepath",i),yield gn({fs:new u.a(t),cache:o,onProgress:e,dir:r,gitdir:n,filepath:i})}catch(t){throw t.caller="git.indexPack",t}}))).apply(this,arguments)}function jn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function On(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){jn(o,n,i,a,s,"next",t)}function s(t){jn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function xn(t){return Pn.apply(this,arguments)}function Pn(){return(Pn=On((function*({fs:t,bare:e=!1,dir:r,gitdir:n=(e?r:Object(l.join)(r,".git")),defaultBranch:i="master"}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",n),e||Object(f.a)("dir",r),yield Nt({fs:new u.a(t),bare:e,dir:r,gitdir:n,defaultBranch:i})}catch(t){throw t.caller="git.init",t}}))).apply(this,arguments)}var kn=r(150),En=r(19),An=r(49);function Sn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Rn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Sn(o,n,i,a,s,"next",t)}function s(t){Sn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function $n(t){return Bn.apply(this,arguments)}function Bn(){return(Bn=Rn((function*({fs:t,cache:e,gitdir:r,oid:n,ancestor:i,depth:o}){const a=yield An.a.read({fs:t,gitdir:r});if(!n)throw new gr.a("oid");if(!i)throw new gr.a("ancestor");if(n===i)return!1;const s=[n],c=new Set;let u=0;for(;s.length;){if(u++===o)throw new kn.a(o);const n=s.shift(),{type:f,object:l}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n});if("commit"!==f)throw new En.a(n,f,"commit");const d=nr.a.from(l).parse();for(const t of d.parent)if(t===i)return!0;if(!a.has(n))for(const t of d.parent)c.has(t)||(s.push(t),c.add(t))}return!1}))).apply(this,arguments)}function In(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Tn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){In(o,n,i,a,s,"next",t)}function s(t){In(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Un(t){return Cn.apply(this,arguments)}function Cn(){return(Cn=Tn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,ancestor:i,depth:o=-1,cache:a={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),Object(f.a)("ancestor",i),yield $n({fs:new u.a(t),cache:a,gitdir:r,oid:n,ancestor:i,depth:o})}catch(t){throw t.caller="git.isDescendent",t}}))).apply(this,arguments)}function Dn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Dn(o,n,i,a,s,"next",t)}function s(t){Dn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zn(t){return Nn.apply(this,arguments)}function Nn(){return(Nn=Mn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n}){try{return Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r),Object(f.a)("filepath",n),w.a.isIgnored({fs:new u.a(t),dir:e,gitdir:r,filepath:n})}catch(t){throw t.caller="git.isIgnored",t}}))).apply(this,arguments)}function Fn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Hn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fn(o,n,i,a,s,"next",t)}function s(t){Fn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ln(t){return Gn.apply(this,arguments)}function Gn(){return(Gn=Hn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),remote:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),X.a.listBranches({fs:new u.a(t),gitdir:r,remote:n})}catch(t){throw t.caller="git.listBranches",t}}))).apply(this,arguments)}var Wn=r(90);function qn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Yn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){qn(o,n,i,a,s,"next",t)}function s(t){qn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Zn(t){return Kn.apply(this,arguments)}function Kn(){return(Kn=Yn((function*({fs:t,gitdir:e,ref:r,cache:n}){if(r){const i=yield X.a.resolve({gitdir:e,fs:t,ref:r}),o=[];return yield Vn({fs:t,cache:n,gitdir:e,oid:i,filenames:o,prefix:""}),o}return c.a.acquire({fs:t,gitdir:e,cache:n},function(){var t=Yn((function*(t){return t.entries.map(t=>t.path)}));return function(e){return t.apply(this,arguments)}}())}))).apply(this,arguments)}function Vn(t){return Xn.apply(this,arguments)}function Xn(){return(Xn=Yn((function*({fs:t,cache:e,gitdir:r,oid:n,filenames:i,prefix:o}){const{tree:a}=yield Object(Wn.a)({fs:t,cache:e,gitdir:r,oid:n});for(const n of a)"tree"===n.type?yield Vn({fs:t,cache:e,gitdir:r,oid:n.oid,filenames:i,prefix:Object(l.join)(o,n.path)}):i.push(Object(l.join)(o,n.path))}))).apply(this,arguments)}function Jn(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Qn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Jn(o,n,i,a,s,"next",t)}function s(t){Jn(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ti(t){return ei.apply(this,arguments)}function ei(){return(ei=Qn((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),yield Zn({fs:new u.a(t),cache:i,gitdir:r,ref:n})}catch(t){throw t.caller="git.listFiles",t}}))).apply(this,arguments)}function ri(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ni(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ri(o,n,i,a,s,"next",t)}function s(t){ri(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ii(t){return oi.apply(this,arguments)}function oi(){return(oi=ni((function*({fs:t,cache:e,gitdir:r,ref:n}){let i;try{i=yield X.a.resolve({gitdir:r,fs:t,ref:n})}catch(t){if(t instanceof v.a)return[]}return(yield Object(Wn.a)({fs:t,cache:e,gitdir:r,oid:i})).tree.map(t=>({target:t.path,note:t.oid}))}))).apply(this,arguments)}function ai(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function si(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ai(o,n,i,a,s,"next",t)}function s(t){ai(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ci(t){return ui.apply(this,arguments)}function ui(){return(ui=si((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n="refs/notes/commits",cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield ii({fs:new u.a(t),cache:i,gitdir:r,ref:n})}catch(t){throw t.caller="git.listNotes",t}}))).apply(this,arguments)}function fi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function li(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){fi(o,n,i,a,s,"next",t)}function s(t){fi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function di(t){return hi.apply(this,arguments)}function hi(){return(hi=li((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),X.a.listRefs({fs:new u.a(t),gitdir:r,filepath:n})}catch(t){throw t.caller="git.listRefs",t}}))).apply(this,arguments)}function pi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){pi(o,n,i,a,s,"next",t)}function s(t){pi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gi(t){return mi.apply(this,arguments)}function mi(){return(mi=yi((function*({fs:t,gitdir:e}){const r=yield b.a.get({fs:t,gitdir:e}),n=yield r.getSubsections("remote");return Promise.all(n.map(function(){var t=yi((function*(t){return{remote:t,url:yield r.get(`remote.${t}.url`)}}));return function(e){return t.apply(this,arguments)}}()))}))).apply(this,arguments)}function vi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function bi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vi(o,n,i,a,s,"next",t)}function s(t){vi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function wi(t){return _i.apply(this,arguments)}function _i(){return(_i=bi((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git")}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),yield gi({fs:new u.a(t),gitdir:r})}catch(t){throw t.caller="git.listRemotes",t}}))).apply(this,arguments)}var ji=r(44),Oi=r(10);function xi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Pi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xi(o,n,i,a,s,"next",t)}function s(t){xi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ki(t){return Ei.apply(this,arguments)}function Ei(){return(Ei=Pi((function*(t){const e=Oi.a.streamReader(t),r=[];let n;for(;n=yield e(),!0!==n;){if(null===n)continue;n=n.toString("utf8").replace(/\n$/,"");const[t,e,...i]=n.split(" "),o={ref:e,oid:t};for(const t of i){const[e,r]=t.split(":");"symref-target"===e?o.target=r:"peeled"===e&&(o.peeled=r)}r.push(o)}return r}))).apply(this,arguments)}var Ai=r(72);function Si(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ri(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Si(o,n,i,a,s,"next",t)}function s(t){Si(o,n,i,a,s,"throw",t)}a(void 0)}))}}function $i(t){return Bi.apply(this,arguments)}function Bi(){return(Bi=Ri((function*({prefix:t,symrefs:e,peelTags:r}){const n=[];return n.push(Oi.a.encode("command=ls-refs\n")),n.push(Oi.a.encode(`agent=${Ai.a.agent}\n`)),(r||e||t)&&n.push(Oi.a.delim()),r&&n.push(Oi.a.encode("peel")),e&&n.push(Oi.a.encode("symrefs")),t&&n.push(Oi.a.encode(`ref-prefix ${t}`)),n.push(Oi.a.flush()),n}))).apply(this,arguments)}function Ii(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ti(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ii(o,n,i,a,s,"next",t)}function s(t){Ii(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ui(t){return Ci.apply(this,arguments)}function Ci(){return(Ci=Ti((function*({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,url:o,headers:a={},forPush:s=!1,protocolVersion:c=2,prefix:u,symrefs:l,peelTags:d}){try{Object(f.a)("http",t),Object(f.a)("url",o);const h=yield ji.a.discover({http:t,onAuth:e,onAuthSuccess:r,onAuthFailure:n,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,headers:a,protocolVersion:c});if(1===h.protocolVersion)return sn(h,u,l,d);const p=yield $i({prefix:u,symrefs:l,peelTags:d});return ki((yield ji.a.connect({http:t,auth:h.auth,headers:a,corsProxy:i,service:s?"git-receive-pack":"git-upload-pack",url:o,body:p})).body)}catch(t){throw t.caller="git.listServerRefs",t}}))).apply(this,arguments)}function Di(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Di(o,n,i,a,s,"next",t)}function s(t){Di(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zi(t){return Ni.apply(this,arguments)}function Ni(){return(Ni=Mi((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git")}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),X.a.listTags({fs:new u.a(t),gitdir:r})}catch(t){throw t.caller="git.listTags",t}}))).apply(this,arguments)}var Fi=r(68);function Hi(t,e){return t.committer.timestamp-e.committer.timestamp}var Li=r(14),Gi=r(52);function Wi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wi(o,n,i,a,s,"next",t)}function s(t){Wi(o,n,i,a,s,"throw",t)}a(void 0)}))}}const Yi="e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";function Zi(t){return Ki.apply(this,arguments)}function Ki(){return(Ki=qi((function*({fs:t,cache:e,gitdir:r,oid:n,fileId:i}){if(i===Yi)return;const o=n;let a;const s=yield Object(Gi.a)({fs:t,cache:e,gitdir:r,oid:n}),c=s.tree;return i===s.oid?a=s.path:(a=yield Vi({fs:t,cache:e,gitdir:r,tree:c,fileId:i,oid:o}),Array.isArray(a)&&(0===a.length?a=void 0:1===a.length&&(a=a[0]))),a}))).apply(this,arguments)}function Vi(t){return Xi.apply(this,arguments)}function Xi(){return(Xi=qi((function*({fs:t,cache:e,gitdir:r,tree:n,fileId:i,oid:o,filepaths:a=[],parentPath:s=""}){const c=n.entries().map((function(n){let c;return n.oid===i?(c=Object(l.join)(s,n.path),a.push(c)):"tree"===n.type&&(c=Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n.oid}).then((function({object:c}){return Vi({fs:t,cache:e,gitdir:r,tree:Li.a.from(c),fileId:i,oid:o,filepaths:a,parentPath:Object(l.join)(s,n.path)})}))),c}));return yield Promise.all(c),a}))).apply(this,arguments)}var Ji=r(111);function Qi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function to(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qi(o,n,i,a,s,"next",t)}function s(t){Qi(o,n,i,a,s,"throw",t)}a(void 0)}))}}function eo(t){return ro.apply(this,arguments)}function ro(){return(ro=to((function*({fs:t,cache:e,gitdir:r,filepath:n,ref:i,depth:o,since:a,force:s,follow:c}){const u=void 0===a?void 0:Math.floor(a.valueOf()/1e3),f=[],l=yield An.a.read({fs:t,gitdir:r}),d=yield X.a.resolve({fs:t,gitdir:r,ref:i}),h=[yield Object(Fi.a)({fs:t,cache:e,gitdir:r,oid:d})];let p,y,g;function m(t){g&&n&&f.push(t)}for(;h.length>0;){const i=h.pop();if(void 0!==u&&i.commit.committer.timestamp<=u)break;if(n){let o;try{o=yield Object(Ji.a)({fs:t,cache:e,gitdir:r,oid:i.commit.tree,filepath:n}),y&&p!==o&&f.push(y),p=o,y=i,g=!0}catch(o){if(!(o instanceof v.a))throw o;{let a=c&&p;if(a&&(a=yield Zi({fs:t,cache:e,gitdir:r,oid:i.commit.tree,fileId:p}),a))if(Array.isArray(a)){if(y){const i=yield Zi({fs:t,cache:e,gitdir:r,oid:y.commit.tree,fileId:p});if(Array.isArray(i)){if(a=a.filter(t=>-1===i.indexOf(t)),1!==a.length){a=!1,y&&f.push(y);break}a=a[0],n=a,y&&f.push(y)}}}else n=a,y&&f.push(y);if(!a){if(g&&p&&(f.push(y),!s))break;if(!s&&!c)throw o}y=i,g=!1}}}else f.push(i);if(void 0!==o&&f.length===o){m(i);break}if(!l.has(i.oid))for(const n of i.commit.parent){const i=yield Object(Fi.a)({fs:t,cache:e,gitdir:r,oid:n});h.map(t=>t.oid).includes(i.oid)||h.push(i)}0===h.length&&m(i),h.sort((t,e)=>Hi(t.commit,e.commit))}return f}))).apply(this,arguments)}function no(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function io(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){no(o,n,i,a,s,"next",t)}function s(t){no(o,n,i,a,s,"throw",t)}a(void 0)}))}}function oo(t){return ao.apply(this,arguments)}function ao(){return(ao=io((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,ref:i="HEAD",depth:o,since:a,force:s,follow:c,cache:d={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",i),yield eo({fs:new u.a(t),cache:d,gitdir:r,filepath:n,ref:i,depth:o,since:a,force:s,follow:c})}catch(t){throw t.caller="git.log",t}}))).apply(this,arguments)}function so(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function co(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){so(o,n,i,a,s,"next",t)}function s(t){so(o,n,i,a,s,"throw",t)}a(void 0)}))}}function uo(t){return fo.apply(this,arguments)}function fo(){return(fo=co((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ours:i,theirs:o,fastForward:a=!0,fastForwardOnly:s=!1,dryRun:c=!1,noUpdateBranch:d=!1,abortOnConflict:h=!0,message:p,author:y,committer:g,signingKey:m,cache:v={},mergeDriver:b,allowUnrelatedHistories:w=!1}){try{Object(f.a)("fs",t),m&&Object(f.a)("onSign",e);const l=new u.a(t),_=yield Object($.a)({fs:l,gitdir:n,author:y});if(!(_||s&&a))throw new R.a("author");const j=yield Object(B.a)({fs:l,gitdir:n,author:_,committer:g});if(!(j||s&&a))throw new R.a("committer");return yield pr({fs:l,cache:v,dir:r,gitdir:n,ours:i,theirs:o,fastForward:a,fastForwardOnly:s,dryRun:c,noUpdateBranch:d,abortOnConflict:h,message:p,author:_,committer:j,signingKey:m,onSign:e,mergeDriver:b,allowUnrelatedHistories:w})}catch(t){throw t.caller="git.merge",t}}))).apply(this,arguments)}var lo=r(224);function ho(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function po(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ho(o,n,i,a,s,"next",t)}function s(t){ho(o,n,i,a,s,"throw",t)}a(void 0)}))}}function yo(t){return go.apply(this,arguments)}function go(){return(go=po((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oids:n,write:i=!1,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oids",n),yield Object(lo.a)({fs:new u.a(t),cache:o,gitdir:r,oids:n,write:i})}catch(t){throw t.caller="git.packObjects",t}}))).apply(this,arguments)}function mo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function vo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){mo(o,n,i,a,s,"next",t)}function s(t){mo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function bo(t){return wo.apply(this,arguments)}function wo(){return(wo=vo((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c=Object(l.join)(s,".git"),ref:d,url:h,remote:p,remoteRef:y,prune:g=!1,pruneTags:m=!1,fastForward:v=!0,fastForwardOnly:b=!1,corsProxy:w,singleBranch:_,headers:j={},author:O,committer:x,signingKey:P,cache:k={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",c);const l=new u.a(t),E=yield Object($.a)({fs:l,gitdir:c,author:O});if(!E)throw new R.a("author");const A=yield Object(B.a)({fs:l,gitdir:c,author:E,committer:x});if(!A)throw new R.a("committer");return yield br({fs:l,cache:k,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,dir:s,gitdir:c,ref:d,url:h,remote:p,remoteRef:y,fastForward:v,fastForwardOnly:b,corsProxy:w,singleBranch:_,headers:j,author:E,committer:A,signingKey:P,prune:g,pruneTags:m})}catch(t){throw t.caller="git.pull",t}}))).apply(this,arguments)}var _o=r(209),jo=r(157),Oo=r(155),xo=r(149),Po=r(132),ko=r(60),Eo=r(113),Ao=r(215),So=r(45),Ro=r(216),$o=r(211),Bo=r(210);function Io(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function To(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Io(o,n,i,a,s,"next",t)}function s(t){Io(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Uo(t){return Co.apply(this,arguments)}function Co(){return(Co=To((function*({fs:t,cache:e,http:r,onProgress:n,onMessage:i,onAuth:o,onAuthSuccess:a,onAuthFailure:s,onPrePush:c,gitdir:u,ref:f,remoteRef:l,remote:d,url:h,force:p=!1,delete:y=!1,corsProxy:g,headers:m={}}){const w=f||(yield Object(ee.a)({fs:t,gitdir:u}));if(void 0===w)throw new gr.a("ref");const _=yield b.a.get({fs:t,gitdir:u});d=d||(yield _.get(`branch.${w}.pushRemote`))||(yield _.get("remote.pushDefault"))||(yield _.get(`branch.${w}.remote`))||"origin";const j=h||(yield _.get(`remote.${d}.pushurl`))||(yield _.get(`remote.${d}.url`));if(void 0===j)throw new gr.a("remote OR url");const O=l||(yield _.get(`branch.${w}.merge`));if(void 0===j)throw new gr.a("remoteRef");void 0===g&&(g=yield _.get("http.corsProxy"));const x=yield X.a.expand({fs:t,gitdir:u,ref:w}),P=y?"0000000000000000000000000000000000000000":yield X.a.resolve({fs:t,gitdir:u,ref:x}),k=en.a.getRemoteHelperFor({url:j}),E=yield k.discover({http:r,onAuth:o,onAuthSuccess:a,onAuthFailure:s,corsProxy:g,service:"git-receive-pack",url:j,headers:m,protocolVersion:1}),A=E.auth;let S;if(O)try{S=yield X.a.expandAgainstMap({ref:O,map:E.refs})}catch(t){if(!(t instanceof v.a))throw t;S=O.startsWith("refs/")?O:`refs/heads/${O}`}else S=x;const R=E.refs.get(S)||"0000000000000000000000000000000000000000";if(c){if(!(yield c({remote:d,url:j,localRef:{ref:y?"(delete)":x,oid:P},remoteRef:{ref:S,oid:R}})))throw new ko.a}const $=!E.capabilities.has("no-thin");let B=new Set;if(!y){const r=[...E.refs.values()];let n=new Set;if("0000000000000000000000000000000000000000"!==R){const i=yield ar({fs:t,cache:e,gitdir:u,oids:[P,R]});for(const t of i)r.push(t);$&&(n=yield Object(jo.a)({fs:t,cache:e,gitdir:u,oids:i}))}if(!r.includes(P)){const n=yield Object(_o.a)({fs:t,cache:e,gitdir:u,start:[P],finish:r});B=yield Object(jo.a)({fs:t,cache:e,gitdir:u,oids:n})}if($){try{const r=yield X.a.resolve({fs:t,gitdir:u,ref:`refs/remotes/${d}/HEAD`,depth:2}),{oid:i}=yield X.a.resolveAgainstMap({ref:r.replace(`refs/remotes/${d}/`,""),fullref:r,map:E.refs}),o=[i];for(const r of yield Object(jo.a)({fs:t,cache:e,gitdir:u,oids:o}))n.add(r)}catch(t){}for(const t of n)B.delete(t)}if(P===R&&(p=!0),!p){if(x.startsWith("refs/tags")&&"0000000000000000000000000000000000000000"!==R)throw new Po.a("tag-exists");if("0000000000000000000000000000000000000000"!==P&&"0000000000000000000000000000000000000000"!==R&&!(yield $n({fs:t,cache:e,gitdir:u,oid:P,ancestor:R,depth:-1})))throw new Po.a("not-fast-forward")}}const I=Object(Ao.a)([...E.capabilities],["report-status","side-band-64k",`agent=${Ai.a.agent}`]),T=yield Object(Bo.a)({capabilities:I,triplets:[{oldoid:R,oid:P,fullRef:S}]}),U=y?[]:yield Object(Oo.a)({fs:t,cache:e,gitdir:u,oids:[...B]}),C=yield k.connect({http:r,onProgress:n,corsProxy:g,service:"git-receive-pack",url:j,auth:A,headers:m,body:[...T,...U]}),{packfile:D,progress:M}=yield Eo.a.demux(C.body);if(i){const t=Object(Ro.a)(M);Object(So.a)(t,function(){var t=To((function*(t){yield i(t)}));return function(e){return t.apply(this,arguments)}}())}const z=yield Object($o.a)(D);if(C.headers&&(z.headers=C.headers),d&&z.ok&&z.refs[S].ok&&!x.startsWith("refs/tags")){const e=`refs/remotes/${d}/${S.replace("refs/heads","")}`;y?yield X.a.deleteRef({fs:t,gitdir:u,ref:e}):yield X.a.writeRef({fs:t,gitdir:u,ref:e,value:P})}if(z.ok&&Object.values(z.refs).every(t=>t.ok))return z;{const t=Object.entries(z.refs).filter(([t,e])=>!e.ok).map(([t,e])=>`\n - ${t}: ${e.error}`).join("");throw new xo.a(t,z)}}))).apply(this,arguments)}function Do(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Do(o,n,i,a,s,"next",t)}function s(t){Do(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zo(t){return No.apply(this,arguments)}function No(){return(No=Mo((function*({fs:t,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPrePush:s,dir:c,gitdir:d=Object(l.join)(c,".git"),ref:h,remoteRef:p,remote:y="origin",url:g,force:m=!1,delete:v=!1,corsProxy:b,headers:w={},cache:_={}}){try{return Object(f.a)("fs",t),Object(f.a)("http",e),Object(f.a)("gitdir",d),yield Uo({fs:new u.a(t),cache:_,http:e,onProgress:r,onMessage:n,onAuth:i,onAuthSuccess:o,onAuthFailure:a,onPrePush:s,gitdir:d,ref:h,remoteRef:p,remote:y,url:g,force:m,delete:v,corsProxy:b,headers:w})}catch(t){throw t.caller="git.push",t}}))).apply(this,arguments)}function Fo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ho(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fo(o,n,i,a,s,"next",t)}function s(t){Fo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Lo(t){return Go.apply(this,arguments)}function Go(){return(Go=Ho((function*({fs:t,cache:e,gitdir:r,oid:n}){const{type:i,object:o}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n});if("tag"===i)return Lo({fs:t,cache:e,gitdir:r,oid:n=J.a.from(o).parse().object});if("blob"!==i)throw new En.a(n,i,"blob");return{oid:n,blob:new Uint8Array(o)}}))).apply(this,arguments)}function Wo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Wo(o,n,i,a,s,"next",t)}function s(t){Wo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Yo(t){return Zo.apply(this,arguments)}function Zo(){return(Zo=qo((function*({fs:t,cache:e,gitdir:r,oid:n,filepath:i}){return void 0!==i&&(n=yield Object(Ji.a)({fs:t,cache:e,gitdir:r,oid:n,filepath:i})),yield Lo({fs:t,cache:e,gitdir:r,oid:n})}))).apply(this,arguments)}function Ko(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Vo(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ko(o,n,i,a,s,"next",t)}function s(t){Ko(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xo(t){return Jo.apply(this,arguments)}function Jo(){return(Jo=Vo((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,filepath:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Yo({fs:new u.a(t),cache:o,gitdir:r,oid:n,filepath:i})}catch(t){throw t.caller="git.readBlob",t}}))).apply(this,arguments)}function Qo(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ta(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Qo(o,n,i,a,s,"next",t)}function s(t){Qo(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ea(t){return ra.apply(this,arguments)}function ra(){return(ra=ta((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Object(Fi.a)({fs:new u.a(t),cache:i,gitdir:r,oid:n})}catch(t){throw t.caller="git.readCommit",t}}))).apply(this,arguments)}function na(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ia(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){na(o,n,i,a,s,"next",t)}function s(t){na(o,n,i,a,s,"throw",t)}a(void 0)}))}}function oa(t){return aa.apply(this,arguments)}function aa(){return(aa=ia((function*({fs:t,cache:e,gitdir:r,ref:n="refs/notes/commits",oid:i}){const o=yield X.a.resolve({gitdir:r,fs:t,ref:n}),{blob:a}=yield Yo({fs:t,cache:e,gitdir:r,oid:o,filepath:i});return a}))).apply(this,arguments)}function sa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ca(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){sa(o,n,i,a,s,"next",t)}function s(t){sa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ua(t){return fa.apply(this,arguments)}function fa(){return(fa=ca((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n="refs/notes/commits",oid:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),Object(f.a)("oid",i),yield oa({fs:new u.a(t),cache:o,gitdir:r,ref:n,oid:i})}catch(t){throw t.caller="git.readNote",t}}))).apply(this,arguments)}function la(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function da(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){la(o,n,i,a,s,"next",t)}function s(t){la(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ha(t){return pa.apply(this,arguments)}function pa(){return(pa=da((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,format:i="parsed",filepath:o,encoding:a,cache:s={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n);const e=new u.a(t);void 0!==o&&(n=yield Object(Ji.a)({fs:e,cache:s,gitdir:r,oid:n,filepath:o}));const c="parsed"===i?"content":i,l=yield Object(Q.a)({fs:e,cache:s,gitdir:r,oid:n,format:c});if(l.oid=n,"parsed"===i)switch(l.format="parsed",l.type){case"commit":l.object=nr.a.from(l.object).parse();break;case"tree":l.object=Li.a.from(l.object).entries();break;case"blob":a?l.object=l.object.toString(a):(l.object=new Uint8Array(l.object),l.format="content");break;case"tag":l.object=J.a.from(l.object).parse();break;default:throw new En.a(l.oid,l.type,"blob|commit|tag|tree")}else"deflated"!==l.format&&"wrapped"!==l.format||(l.type=l.format);return l}catch(t){throw t.caller="git.readObject",t}}))).apply(this,arguments)}function ya(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ga(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ya(o,n,i,a,s,"next",t)}function s(t){ya(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ma(t){return va.apply(this,arguments)}function va(){return(va=ga((function*({fs:t,cache:e,gitdir:r,oid:n}){const{type:i,object:o}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:n,format:"content"});if("tag"!==i)throw new En.a(n,i,"tag");const a=J.a.from(o);return{oid:n,tag:a.parse(),payload:a.payload()}}))).apply(this,arguments)}function ba(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function wa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ba(o,n,i,a,s,"next",t)}function s(t){ba(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _a(t){return ja.apply(this,arguments)}function ja(){return(ja=wa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,cache:i={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield ma({fs:new u.a(t),cache:i,gitdir:r,oid:n})}catch(t){throw t.caller="git.readTag",t}}))).apply(this,arguments)}function Oa(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oa(o,n,i,a,s,"next",t)}function s(t){Oa(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pa(t){return ka.apply(this,arguments)}function ka(){return(ka=xa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),oid:n,filepath:i,cache:o={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("oid",n),yield Object(Wn.a)({fs:new u.a(t),cache:o,gitdir:r,oid:n,filepath:i})}catch(t){throw t.caller="git.readTree",t}}))).apply(this,arguments)}function Ea(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Aa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ea(o,n,i,a,s,"next",t)}function s(t){Ea(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sa(t){return Ra.apply(this,arguments)}function Ra(){return(Ra=Aa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,cache:i={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",n),yield c.a.acquire({fs:new u.a(t),gitdir:r,cache:i},function(){var t=Aa((function*(t){t.delete({filepath:n})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.remove",t}}))).apply(this,arguments)}var $a=r(77);function Ba(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ia(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ba(o,n,i,a,s,"next",t)}function s(t){Ba(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ta(t){return Ua.apply(this,arguments)}function Ua(){return(Ua=Ia((function*({fs:t,cache:e,onSign:r,gitdir:n,ref:i="refs/notes/commits",oid:o,author:a,committer:s,signingKey:c}){let u;try{u=yield X.a.resolve({gitdir:n,fs:t,ref:i})}catch(t){if(!(t instanceof v.a))throw t}let f=(yield Object(Wn.a)({fs:t,gitdir:n,oid:u||"4b825dc642cb6eb9a060e54bf8d69288fbee4904"})).tree;f=f.filter(t=>t.path!==o);const l=yield Object($a.a)({fs:t,gitdir:n,tree:f});return yield Object(Vt.a)({fs:t,cache:e,onSign:r,gitdir:n,ref:i,tree:l,parent:u&&[u],message:"Note removed by 'isomorphic-git removeNote'\n",author:a,committer:s,signingKey:c})}))).apply(this,arguments)}function Ca(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Da(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ca(o,n,i,a,s,"next",t)}function s(t){Ca(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ma(t){return za.apply(this,arguments)}function za(){return(za=Da((function*({fs:t,onSign:e,dir:r,gitdir:n=Object(l.join)(r,".git"),ref:i="refs/notes/commits",oid:o,author:a,committer:s,signingKey:c,cache:d={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",n),Object(f.a)("oid",o);const r=new u.a(t),l=yield Object($.a)({fs:r,gitdir:n,author:a});if(!l)throw new R.a("author");const h=yield Object(B.a)({fs:r,gitdir:n,author:l,committer:s});if(!h)throw new R.a("committer");return yield Ta({fs:r,cache:d,onSign:e,gitdir:n,ref:i,oid:o,author:l,committer:h,signingKey:c})}catch(t){throw t.caller="git.removeNote",t}}))).apply(this,arguments)}function Na(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Fa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Na(o,n,i,a,s,"next",t)}function s(t){Na(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ha(t){return La.apply(this,arguments)}function La(){return(La=Fa((function*({fs:t,gitdir:e,oldref:r,ref:n,checkout:i=!1}){if(!N()(n,!0))throw new H.a(n,M.a.clean(n));if(!N()(r,!0))throw new H.a(r,M.a.clean(r));const o=`refs/heads/${r}`,a=`refs/heads/${n}`;if(yield X.a.exists({fs:t,gitdir:e,ref:a}))throw new F.a("branch",n,!1);const s=yield X.a.resolve({fs:t,gitdir:e,ref:o,depth:1});yield X.a.writeRef({fs:t,gitdir:e,ref:a,value:s}),yield X.a.deleteRef({fs:t,gitdir:e,ref:o});const c=yield Object(ee.a)({fs:t,gitdir:e,fullname:!0});(i||c===o)&&(yield X.a.writeSymbolicRef({fs:t,gitdir:e,ref:"HEAD",value:a}))}))).apply(this,arguments)}function Ga(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Wa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ga(o,n,i,a,s,"next",t)}function s(t){Ga(o,n,i,a,s,"throw",t)}a(void 0)}))}}function qa(t){return Ya.apply(this,arguments)}function Ya(){return(Ya=Wa((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,oldref:i,checkout:o=!1}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),Object(f.a)("oldref",i),yield Ha({fs:new u.a(t),gitdir:r,ref:n,oldref:i,checkout:o})}catch(t){throw t.caller="git.renameBranch",t}}))).apply(this,arguments)}var Za=r(22),Ka=r(15);function Va(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Xa(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Va(o,n,i,a,s,"next",t)}function s(t){Va(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ja(t){return Qa.apply(this,arguments)}function Qa(){return(Qa=Xa((function*({gitdir:t,type:e,object:r}){return Object(Ka.a)(Za.a.wrap({type:e,object:r}))}))).apply(this,arguments)}function ts(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function es(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ts(o,n,i,a,s,"next",t)}function s(t){ts(o,n,i,a,s,"throw",t)}a(void 0)}))}}function rs(t){return ns.apply(this,arguments)}function ns(){return(ns=es((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,ref:i,cache:o={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",n);const a=new u.a(t);let s,d;try{s=yield X.a.resolve({fs:a,gitdir:r,ref:i||"HEAD"})}catch(t){if(i)throw t}if(s)try{s=yield Object(Ji.a)({fs:a,cache:o,gitdir:r,oid:s,filepath:n})}catch(t){s=null}let h={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:0,uid:0,gid:0,size:0};const p=e&&(yield a.read(Object(l.join)(e,n)));p&&(d=yield Ja({gitdir:r,type:"blob",object:p}),s===d&&(h=yield a.lstat(Object(l.join)(e,n)))),yield c.a.acquire({fs:a,gitdir:r,cache:o},function(){var t=es((function*(t){t.delete({filepath:n}),s&&t.insert({filepath:n,stats:h,oid:s})}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.reset",t}}))).apply(this,arguments)}function is(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function os(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){is(o,n,i,a,s,"next",t)}function s(t){is(o,n,i,a,s,"throw",t)}a(void 0)}))}}function as(t){return ss.apply(this,arguments)}function ss(){return(ss=os((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,depth:i}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),yield X.a.resolve({fs:new u.a(t),gitdir:r,ref:n,depth:i})}catch(t){throw t.caller="git.resolveRef",t}}))).apply(this,arguments)}function cs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function us(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cs(o,n,i,a,s,"next",t)}function s(t){cs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function fs(t){return ls.apply(this,arguments)}function ls(){return(ls=us((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),path:n,value:i,append:o=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("path",n);const e=new u.a(t),a=yield b.a.get({fs:e,gitdir:r});o?yield a.append(n,i):yield a.set(n,i),yield b.a.save({fs:e,gitdir:r,config:a})}catch(t){throw t.caller="git.setConfig",t}}))).apply(this,arguments)}var ds=r(116),hs=r(91);function ps(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ys(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ps(o,n,i,a,s,"next",t)}function s(t){ps(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gs(t){return ms.apply(this,arguments)}function ms(){return(ms=ys((function*({fs:t,dir:e,gitdir:r,message:o=""}){const a=new ds.a({fs:t,dir:e,gitdir:r});yield a.getAuthor();const s=yield Object(ee.a)({fs:t,gitdir:r,fullname:!1}),c=yield X.a.resolve({fs:t,gitdir:r,ref:"HEAD"}),u=(yield ea({fs:t,dir:e,gitdir:r,oid:c})).commit.message,f=[c];let l=null,d=Object(i.a)({ref:"HEAD"});const h=yield Object(hs.c)({fs:t,dir:e,gitdir:r,treePair:[Object(i.a)({ref:"HEAD"}),"stage"]});if(h){const t=yield a.writeStashCommit({message:`stash-Index: WIP on ${s} - ${(new Date).toISOString()}`,tree:h,parent:f});f.push(t),l=h,d=Object(n.a)()}const p=yield Object(hs.c)({fs:t,dir:e,gitdir:r,treePair:[d,"workdir"]});if(p){const t=yield a.writeStashCommit({message:`stash-WorkDir: WIP on ${s} - ${(new Date).toISOString()}`,tree:p,parent:[f[f.length-1]]});f.push(t),l=p}if(!l||!h&&!p)throw new v.a("changes, nothing to stash");const y=(o.trim()||`WIP on ${s}`)+`: ${c.substring(0,7)} ${u}`;return{stashCommit:yield a.writeStashCommit({message:y,tree:l,parent:f}),stashMsg:y,branch:s,stashMgr:a}}))).apply(this,arguments)}function vs(t){return bs.apply(this,arguments)}function bs(){return(bs=ys((function*({fs:t,dir:e,gitdir:r,message:n=""}){const{stashCommit:i,stashMsg:o,branch:a,stashMgr:s}=yield gs({fs:t,dir:e,gitdir:r,message:n});return yield s.writeStashRef(i),yield s.writeStashReflogEntry({stashCommit:i,message:o}),yield Ut({fs:t,dir:e,gitdir:r,ref:a,track:!1,force:!0}),i}))).apply(this,arguments)}function ws(t){return _s.apply(this,arguments)}function _s(){return(_s=ys((function*({fs:t,dir:e,gitdir:r,message:n=""}){const{stashCommit:i}=yield gs({fs:t,dir:e,gitdir:r,message:n});return i}))).apply(this,arguments)}function js(t){return Os.apply(this,arguments)}function Os(){return(Os=ys((function*({fs:t,dir:e,gitdir:r,refIdx:n=0}){const i=new ds.a({fs:t,dir:e,gitdir:r}),o=yield i.readStashCommit(n),{parent:a=null}=o.commit?o.commit:{};if(a&&Array.isArray(a))for(let n=0;n<a.length-1;n++){const i=(yield Object(Fi.a)({fs:t,cache:{},gitdir:r,oid:a[n+1]})).commit.message.startsWith("stash-Index");yield Object(hs.b)({fs:t,dir:e,gitdir:r,stashCommit:a[n+1],parentCommit:a[n],wasStaged:i})}}))).apply(this,arguments)}function xs(t){return Ps.apply(this,arguments)}function Ps(){return(Ps=ys((function*({fs:t,dir:e,gitdir:r,refIdx:n=0}){const i=new ds.a({fs:t,dir:e,gitdir:r});if(!(yield i.readStashCommit(n)).commit)return;const o=i.refStashPath;yield Object(hs.a)(o,ys((function*(){(yield t.exists(o))&&(yield t.rm(o))})));const a=yield i.readStashReflogs({parsed:!1});if(!a.length)return;a.splice(n,1);const s=i.refLogsStashPath;yield Object(hs.a)({reflogEntries:a,stashReflogPath:s,stashMgr:i},ys((function*(){if(a.length){yield t.write(s,a.reverse().join("\n")+"\n","utf8");const e=a[a.length-1].split(" ")[1];yield i.writeStashRef(e)}else yield t.rm(s)})))}))).apply(this,arguments)}function ks(t){return Es.apply(this,arguments)}function Es(){return(Es=ys((function*({fs:t,dir:e,gitdir:r}){return new ds.a({fs:t,dir:e,gitdir:r}).readStashReflogs({parsed:!0})}))).apply(this,arguments)}function As(t){return Ss.apply(this,arguments)}function Ss(){return(Ss=ys((function*({fs:t,dir:e,gitdir:r}){const n=new ds.a({fs:t,dir:e,gitdir:r}),i=[n.refStashPath,n.refLogsStashPath];yield Object(hs.a)(i,ys((function*(){yield Promise.all(i.map(function(){var e=ys((function*(e){if(yield t.exists(e))return t.rm(e)}));return function(t){return e.apply(this,arguments)}}()))})))}))).apply(this,arguments)}function Rs(t){return $s.apply(this,arguments)}function $s(){return($s=ys((function*({fs:t,dir:e,gitdir:r,refIdx:n=0}){yield js({fs:t,dir:e,gitdir:r,refIdx:n}),yield xs({fs:t,dir:e,gitdir:r,refIdx:n})}))).apply(this,arguments)}function Bs(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Is(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Bs(o,n,i,a,s,"next",t)}function s(t){Bs(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ts(t){return Us.apply(this,arguments)}function Us(){return(Us=Is((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),op:n="push",message:i="",refIdx:o=0}){Object(f.a)("fs",t),Object(f.a)("dir",e),Object(f.a)("gitdir",r),Object(f.a)("op",n);const a={push:vs,apply:js,drop:xs,list:ks,clear:As,pop:Rs,create:ws},s=["apply","drop","pop"];try{const c=new u.a(t);["refs","logs","logs/refs"].map(t=>Object(l.join)(r,t)).forEach(function(){var t=Is((function*(t){(yield c.exists(t))||(yield c.mkdir(t))}));return function(e){return t.apply(this,arguments)}}());const f=a[n];if(f){if(s.includes(n)&&o<0)throw new H.a(`stash@${o}`,"number that is in range of [0, num of stash pushed]");return yield f({fs:c,dir:e,gitdir:r,message:i,refIdx:o})}throw new Error(`To be implemented: ${n}`)}catch(t){throw t.caller="git.stash",t}}))).apply(this,arguments)}var Cs=r(54);function Ds(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ms(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ds(o,n,i,a,s,"next",t)}function s(t){Ds(o,n,i,a,s,"throw",t)}a(void 0)}))}}function zs(t){return Ns.apply(this,arguments)}function Ns(){return(Ns=Ms((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),filepath:n,cache:i={}}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",n);const o=new u.a(t);if(yield w.a.isIgnored({fs:o,gitdir:r,dir:e,filepath:n}))return"ignored";const a=yield Ls({fs:o,cache:i,gitdir:r}),s=yield Fs({fs:o,cache:i,gitdir:r,tree:a,path:n}),d=yield c.a.acquire({fs:o,gitdir:r,cache:i},function(){var t=Ms((function*(t){for(const e of t)if(e.path===n)return e;return null}));return function(e){return t.apply(this,arguments)}}()),h=yield o.lstat(Object(l.join)(e,n)),p=null!==s,y=null!==d,g=null!==h,m=function(){var t=Ms((function*(){if(y&&!Object(Cs.a)(d,h))return d.oid;{const t=yield o.read(Object(l.join)(e,n)),a=yield Ja({gitdir:r,type:"blob",object:t});return y&&d.oid===a&&-1!==h.size&&c.a.acquire({fs:o,gitdir:r,cache:i},function(){var t=Ms((function*(t){t.insert({filepath:n,stats:h,oid:a})}));return function(e){return t.apply(this,arguments)}}()),a}}));return function(){return t.apply(this,arguments)}}();if(!p&&!g&&!y)return"absent";if(!p&&!g&&y)return"*absent";if(!p&&g&&!y)return"*added";if(!p&&g&&y){return(yield m())===d.oid?"added":"*added"}if(p&&!g&&!y)return"deleted";if(p&&!g&&y)return d.oid,"*deleted";if(p&&g&&!y){return(yield m())===s?"*undeleted":"*undeletemodified"}if(p&&g&&y){const t=yield m();return t===s?t===d.oid?"unmodified":"*unmodified":t===d.oid?"modified":"*modified"}}catch(t){throw t.caller="git.status",t}}))).apply(this,arguments)}function Fs(t){return Hs.apply(this,arguments)}function Hs(){return(Hs=Ms((function*({fs:t,cache:e,gitdir:r,tree:n,path:i}){"string"==typeof i&&(i=i.split("/"));const o=i.shift();for(const a of n)if(a.path===o){if(0===i.length)return a.oid;const{type:n,object:o}=yield Object(Q.a)({fs:t,cache:e,gitdir:r,oid:a.oid});if("tree"===n){return Fs({fs:t,cache:e,gitdir:r,tree:Li.a.from(o),path:i})}if("blob"===n)throw new En.a(a.oid,n,"blob",i.join("/"))}return null}))).apply(this,arguments)}function Ls(t){return Gs.apply(this,arguments)}function Gs(){return(Gs=Ms((function*({fs:t,cache:e,gitdir:r}){let n;try{n=yield X.a.resolve({fs:t,gitdir:r,ref:"HEAD"})}catch(t){if(t instanceof v.a)return[]}const{tree:i}=yield Object(Wn.a)({fs:t,cache:e,gitdir:r,oid:n});return i}))).apply(this,arguments)}function Ws(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function qs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ws(o,n,i,a,s,"next",t)}function s(t){Ws(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ys(t){return Zs.apply(this,arguments)}function Zs(){return(Zs=qs((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:s="HEAD",filepaths:c=["."],filter:d,cache:h={},ignored:p=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",s);const l=new u.a(t);return yield Object(a.a)({fs:l,cache:h,dir:e,gitdir:r,trees:[Object(i.a)({ref:s}),Object(o.a)(),Object(n.a)()],map:(y=qs((function*(t,[r,n,i]){if(!r&&!i&&n&&!p&&(yield w.a.isIgnored({fs:l,dir:e,filepath:t})))return null;if(!c.some(e=>wt(t,e)))return null;if(d&&!d(t))return;const[o,a,s]=yield Promise.all([r&&r.type(),n&&n.type(),i&&i.type()]),u=[o,a,s].includes("blob");if(("tree"===o||"special"===o)&&!u)return;if("commit"===o)return null;if(("tree"===a||"special"===a)&&!u)return;if("commit"===s)return null;if(("tree"===s||"special"===s)&&!u)return;const f="blob"===o?yield r.oid():void 0,h="blob"===s?yield i.oid():void 0;let y;"blob"!==o&&"blob"===a&&"blob"!==s?y="42":"blob"===a&&(y=yield n.oid());const g=[void 0,f,y,h],m=g.map(t=>g.indexOf(t));return m.shift(),[t,...m]})),function(t,e){return y.apply(this,arguments)})})}catch(t){throw t.caller="git.statusMatrix",t}var y}))).apply(this,arguments)}function Ks(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Vs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ks(o,n,i,a,s,"next",t)}function s(t){Ks(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xs(t){return Js.apply(this,arguments)}function Js(){return(Js=Vs((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,object:i,force:o=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n);const e=new u.a(t);if(void 0===n)throw new gr.a("ref");n=n.startsWith("refs/tags/")?n:`refs/tags/${n}`;const a=yield X.a.resolve({fs:e,gitdir:r,ref:i||"HEAD"});if(!o&&(yield X.a.exists({fs:e,gitdir:r,ref:n})))throw new F.a("tag",n);yield X.a.writeRef({fs:e,gitdir:r,ref:n,value:a})}catch(t){throw t.caller="git.tag",t}}))).apply(this,arguments)}var Qs=r(98);function tc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ec(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){tc(o,n,i,a,s,"next",t)}function s(t){tc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function rc(t){return nc.apply(this,arguments)}function nc(){return(nc=ec((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),cache:n={},filepath:i,oid:o,mode:a,add:s,remove:d,force:h}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("filepath",i);const p=new u.a(t);if(d)return yield c.a.acquire({fs:p,gitdir:r,cache:n},function(){var t=ec((function*(t){if(!h){const t=yield p.lstat(Object(l.join)(e,i));if(t){if(t.isDirectory())throw new Qs.a("directory");return}}t.has({filepath:i})&&t.delete({filepath:i})}));return function(e){return t.apply(this,arguments)}}());let y;if(!o){if(y=yield p.lstat(Object(l.join)(e,i)),!y)throw new v.a(`file at "${i}" on disk and "remove" not set`);if(y.isDirectory())throw new Qs.a("directory")}return yield c.a.acquire({fs:p,gitdir:r,cache:n},function(){var t=ec((function*(t){if(!s&&!t.has({filepath:i}))throw new v.a(`file at "${i}" in index and "add" not set`);let n;if(o)n={ctime:new Date(0),mtime:new Date(0),dev:0,ino:0,mode:a,uid:0,gid:0,size:0};else{n=y;const t=n.isSymbolicLink()?yield p.readlink(Object(l.join)(e,i)):yield p.read(Object(l.join)(e,i));o=yield Object(_.a)({fs:p,gitdir:r,type:"blob",format:"content",object:t})}return t.insert({filepath:i,oid:o,stats:n}),o}));return function(e){return t.apply(this,arguments)}}())}catch(t){throw t.caller="git.updateIndex",t}}))).apply(this,arguments)}function ic(){try{return Ai.a.version}catch(t){throw t.caller="git.version",t}}function oc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ac(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){oc(o,n,i,a,s,"next",t)}function s(t){oc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function sc(t){return cc.apply(this,arguments)}function cc(){return(cc=ac((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),trees:n,map:i,reduce:o,iterate:s,cache:c={}}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("trees",n),yield Object(a.a)({fs:new u.a(t),cache:c,dir:e,gitdir:r,trees:n,map:i,reduce:o,iterate:s})}catch(t){throw t.caller="git.walk",t}}))).apply(this,arguments)}function uc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function fc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){uc(o,n,i,a,s,"next",t)}function s(t){uc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function lc(t){return dc.apply(this,arguments)}function dc(){return(dc=fc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),blob:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("blob",n),yield Object(_.a)({fs:new u.a(t),gitdir:r,type:"blob",object:n,format:"content"})}catch(t){throw t.caller="git.writeBlob",t}}))).apply(this,arguments)}var hc=r(158);function pc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){pc(o,n,i,a,s,"next",t)}function s(t){pc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function gc(t){return mc.apply(this,arguments)}function mc(){return(mc=yc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),commit:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("commit",n),yield Object(hc.a)({fs:new u.a(t),gitdir:r,commit:n})}catch(t){throw t.caller="git.writeCommit",t}}))).apply(this,arguments)}var vc=r(219);function bc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function wc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){bc(o,n,i,a,s,"next",t)}function s(t){bc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function _c(t){return jc.apply(this,arguments)}function jc(){return(jc=wc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),ref:n,value:i,force:o=!1,symbolic:a=!1}){try{Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("ref",n),Object(f.a)("value",i);const e=new u.a(t);if(!N()(n,!0))throw new H.a(n,M.a.clean(n));if(!o&&(yield X.a.exists({fs:e,gitdir:r,ref:n})))throw new F.a("ref",n);a?yield X.a.writeSymbolicRef({fs:e,gitdir:r,ref:n,value:i}):(i=yield X.a.resolve({fs:e,gitdir:r,ref:i}),yield X.a.writeRef({fs:e,gitdir:r,ref:n,value:i}))}catch(t){throw t.caller="git.writeRef",t}}))).apply(this,arguments)}function Oc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oc(o,n,i,a,s,"next",t)}function s(t){Oc(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Pc(t){return kc.apply(this,arguments)}function kc(){return(kc=xc((function*({fs:t,gitdir:e,tag:r}){const n=J.a.from(r).toObject();return yield Object(_.a)({fs:t,gitdir:e,type:"tag",object:n,format:"content"})}))).apply(this,arguments)}function Ec(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ac(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ec(o,n,i,a,s,"next",t)}function s(t){Ec(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Sc(t){return Rc.apply(this,arguments)}function Rc(){return(Rc=Ac((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),tag:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("tag",n),yield Pc({fs:new u.a(t),gitdir:r,tag:n})}catch(t){throw t.caller="git.writeTag",t}}))).apply(this,arguments)}function $c(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Bc(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$c(o,n,i,a,s,"next",t)}function s(t){$c(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Ic(t){return Tc.apply(this,arguments)}function Tc(){return(Tc=Bc((function*({fs:t,dir:e,gitdir:r=Object(l.join)(e,".git"),tree:n}){try{return Object(f.a)("fs",t),Object(f.a)("gitdir",r),Object(f.a)("tree",n),yield Object($a.a)({fs:new u.a(t),gitdir:r,tree:n})}catch(t){throw t.caller="git.writeTree",t}}))).apply(this,arguments)}var Uc=r(112);r.d(e,"Errors",(function(){return Uc})),r.d(e,"STAGE",(function(){return n.a})),r.d(e,"TREE",(function(){return i.a})),r.d(e,"WORKDIR",(function(){return o.a})),r.d(e,"abortMerge",(function(){return y})),r.d(e,"add",(function(){return P})),r.d(e,"addNote",(function(){return U})),r.d(e,"addRemote",(function(){return K})),r.d(e,"annotatedTag",(function(){return at})),r.d(e,"branch",(function(){return pt})),r.d(e,"checkout",(function(){return Ut})),r.d(e,"clone",(function(){return Zt})),r.d(e,"commit",(function(){return Qt})),r.d(e,"getConfig",(function(){return Wr})),r.d(e,"getConfigAll",(function(){return Qr})),r.d(e,"setConfig",(function(){return fs})),r.d(e,"currentBranch",(function(){return ie})),r.d(e,"deleteBranch",(function(){return he})),r.d(e,"deleteRef",(function(){return me})),r.d(e,"deleteRemote",(function(){return Pe})),r.d(e,"deleteTag",(function(){return Ie})),r.d(e,"expandOid",(function(){return Xe})),r.d(e,"expandRef",(function(){return er})),r.d(e,"fastForward",(function(){return Or})),r.d(e,"fetch",(function(){return Er})),r.d(e,"findMergeBase",(function(){return $r})),r.d(e,"findRoot",(function(){return Nr})),r.d(e,"getRemoteInfo",(function(){return on})),r.d(e,"getRemoteInfo2",(function(){return fn})),r.d(e,"hashBlob",(function(){return dn.a})),r.d(e,"indexPack",(function(){return wn})),r.d(e,"init",(function(){return xn})),r.d(e,"isDescendent",(function(){return Un})),r.d(e,"isIgnored",(function(){return zn})),r.d(e,"listBranches",(function(){return Ln})),r.d(e,"listFiles",(function(){return ti})),r.d(e,"listNotes",(function(){return ci})),r.d(e,"listRefs",(function(){return di})),r.d(e,"listRemotes",(function(){return wi})),r.d(e,"listServerRefs",(function(){return Ui})),r.d(e,"listTags",(function(){return zi})),r.d(e,"log",(function(){return oo})),r.d(e,"merge",(function(){return uo})),r.d(e,"packObjects",(function(){return yo})),r.d(e,"pull",(function(){return bo})),r.d(e,"push",(function(){return zo})),r.d(e,"readBlob",(function(){return Xo})),r.d(e,"readCommit",(function(){return ea})),r.d(e,"readNote",(function(){return ua})),r.d(e,"readObject",(function(){return ha})),r.d(e,"readTag",(function(){return _a})),r.d(e,"readTree",(function(){return Pa})),r.d(e,"remove",(function(){return Sa})),r.d(e,"removeNote",(function(){return Ma})),r.d(e,"renameBranch",(function(){return qa})),r.d(e,"resetIndex",(function(){return rs})),r.d(e,"updateIndex",(function(){return rc})),r.d(e,"resolveRef",(function(){return as})),r.d(e,"status",(function(){return zs})),r.d(e,"statusMatrix",(function(){return Ys})),r.d(e,"tag",(function(){return Xs})),r.d(e,"version",(function(){return ic})),r.d(e,"walk",(function(){return sc})),r.d(e,"writeBlob",(function(){return lc})),r.d(e,"writeCommit",(function(){return gc})),r.d(e,"writeObject",(function(){return vc.a})),r.d(e,"writeRef",(function(){return _c})),r.d(e,"writeTag",(function(){return Sc})),r.d(e,"writeTree",(function(){return Ic})),r.d(e,"stash",(function(){return Ts}));e.default={Errors:Uc,STAGE:n.a,TREE:i.a,WORKDIR:o.a,add:P,abortMerge:y,addNote:U,addRemote:K,annotatedTag:at,branch:pt,checkout:Ut,clone:Zt,commit:Qt,getConfig:Wr,getConfigAll:Qr,setConfig:fs,currentBranch:ie,deleteBranch:he,deleteRef:me,deleteRemote:Pe,deleteTag:Ie,expandOid:Xe,expandRef:er,fastForward:Or,fetch:Er,findMergeBase:$r,findRoot:Nr,getRemoteInfo:on,getRemoteInfo2:fn,hashBlob:dn.a,indexPack:wn,init:xn,isDescendent:Un,isIgnored:zn,listBranches:Ln,listFiles:ti,listNotes:ci,listRefs:di,listRemotes:wi,listServerRefs:Ui,listTags:zi,log:oo,merge:uo,packObjects:yo,pull:bo,push:zo,readBlob:Xo,readCommit:ea,readNote:ua,readObject:ha,readTag:_a,readTree:Pa,remove:Sa,removeNote:Ma,renameBranch:qa,resetIndex:rs,updateIndex:rc,resolveRef:as,status:zs,statusMatrix:Ys,tag:Xs,version:ic,walk:sc,writeBlob:lc,writeCommit:gc,writeObject:vc.a,writeRef:_c,writeTag:Sc,writeTree:Ic,stash:Ts}}])}));
13
13
  //# sourceMappingURL=index.umd.min.js.map