@21st-dev/magic
Version:
Magic MCP UI builder by 21st.dev
1 lines • 652 kB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[427],{4748:function(e,t,n){!function(e,t,n,r){"use strict";class i{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new t.SetArray}}function a(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:a}=e;return function(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function s(e,n,r,i,a,s,l,u,c){let{_mappings:p,_sources:f,_sourcesContent:d,_names:h}=n,y=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(p,r),m=function(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][0]);n=r--);return n}(y,i);if(!a){if(e&&(0===m||1===y[m-1].length))return;return o(y,m,[i])}let g=t.put(f,a),T=u?t.put(h,u):-1;if(g===d.length&&(d[g]=null!=c?c:null),!(e&&function(e,t,n,r,i,a){if(0===t)return!1;let s=e[t-1];return 1!==s.length&&n===s[1]&&r===s[2]&&i===s[3]&&a===(5===s.length?s[4]:-1)}(y,m,g,s,l,T)))return o(y,m,u?[i,g,s,l,T]:[i,g,s,l])}function o(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function l(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function u(e,t,n){let{generated:r,source:i,original:a,name:o,content:l}=n;return i?s(e,t,r.line-1,r.column,i,a.line-1,a.column,o,l):s(e,t,r.line-1,r.column,null,null,null,null,null)}e.GenMapping=i,e.addMapping=function(e,t){return u(!1,e,t)},e.addSegment=function(e,t,n,r,i,a,o,l){return s(!1,e,t,n,r,i,a,o,l)},e.allMappings=function(e){let t=[],{_mappings:n,_sources:r,_names:i}=e;for(let e=0;e<n.length;e++){let a=n[e];for(let n=0;n<a.length;n++){let s,o,l;let u=a[n],c={line:e+1,column:u[0]};1!==u.length&&(s=r.array[u[1]],o={line:u[2]+1,column:u[3]},5===u.length&&(l=i.array[u[4]])),t.push({generated:c,source:s,original:o,name:l})}}return t},e.fromMap=function(e){let t=new r.TraceMap(e),n=new i({file:t.file,sourceRoot:t.sourceRoot});return l(n._names,t.names),l(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map(()=>null),n._mappings=r.decodedMappings(t),t.ignoreList&&l(n._ignoreList,t.ignoreList),n},e.maybeAddMapping=(e,t)=>u(!0,e,t),e.maybeAddSegment=(e,t,n,r,i,a,o,l)=>s(!0,e,t,n,r,i,a,o,l),e.setIgnore=function(e,n,r=!0){let{_sources:i,_sourcesContent:a,_ignoreList:s}=e,o=t.put(i,n);o===a.length&&(a[o]=null),r?t.put(s,o):t.remove(s,o)},e.setSourceContent=function(e,n,r){let{_sources:i,_sourcesContent:a}=e;a[t.put(i,n)]=r},e.toDecodedMap=a,e.toEncodedMap=function(e){let t=a(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2498),n(9013),n(5890))},3752:function(e){var t;t=function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(e){return e.startsWith("/")}function i(e){return/^[.?#]/.test(e)}function a(e){let n=t.exec(e);return s(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function s(e,t,n,r,i,a,s){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:s,type:7}}function o(t){if(t.startsWith("//")){let e=a("http:"+t);return e.scheme="",e.type=6,e}if(r(t)){let e=a("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(t.startsWith("file:"))return function(e){let t=n.exec(e),i=t[2];return s("file:","",t[1]||"","",r(i)?i:"/"+i,t[3]||"",t[4]||"")}(t);if(e.test(t))return a(t);let i=a("http://foo.com/"+t);return i.scheme="",i.host="",i.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,i}function l(e,t){let n=t<=4,r=e.path.split("/"),i=1,a=0,s=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){s=!0;continue}if(s=!1,"."!==t){if(".."===t){a?(s=!0,a--,i--):n&&(r[i++]=t);continue}r[i++]=t,a++}}let o="";for(let e=1;e<i;e++)o+="/"+r[e];o&&(!s||o.endsWith("/.."))||(o+="/"),e.path=o}return function(e,t){if(!e&&!t)return"";let n=o(e),r=n.type;if(t&&7!==r){let e=o(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:l(e,e.type),"/"===n.path?n.path=e.path:n.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(e.path)+n.path;case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}l(n,r);let a=n.query+n.hash;switch(r){case 2:case 3:return a;case 4:{let r=n.path.slice(1);if(!r)return a||".";if(i(t||e)&&!i(r))return"./"+r+a;return r+a}case 5:return n.path+a;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+a}}},e.exports=t()},2498:function(e,t){!function(e){"use strict";class t{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(e,t){return e._indexes[t]}e.SetArray=t,e.get=n,e.pop=function(e){let{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.put=function(e,t){let r=n(e,t);if(void 0!==r)return r;let{array:i,_indexes:a}=e,s=i.push(t);return a[t]=s-1},e.remove=function(e,t){let r=n(e,t);if(void 0===r)return;let{array:i,_indexes:a}=e;for(let e=r+1;e<i.length;e++){let t=i[e];i[e-1]=t,a[t]--}a[t]=void 0,i.pop()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},9013:function(e,t,n){var r=n(5927).hp;!function(e){"use strict";let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),i=new Uint8Array(128);for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);n[e]=r,i[r]=e}function a(e,t){let n=0,r=0,a=0;do n|=(31&(a=i[e.next()]))<<r,r+=5;while(32&a);let s=1&n;return n>>>=1,s&&(n=-0x80000000|-n),t+n}function s(e,t,r){let i=t-r;i=i<0?-i<<1|1:i<<1;do{let t=31&i;(i>>>=5)>0&&(t|=32),e.write(n[t])}while(i>0);return t}function o(e,t){return!(e.pos>=t)&&44!==e.peek()}let l="undefined"!=typeof TextDecoder?new TextDecoder:void 0!==r?{decode:e=>r.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};class u{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=l.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+l.decode(e.subarray(0,n)):t}}class c{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return -1===r?t.length:r}}let p=[];function f(e,t,n){do e.write(59);while(++t<n)}function d(e,t){return e[0]-t[0]}e.decode=function(e){let{length:t}=e,n=new c(e),r=[],i=0,s=0,l=0,u=0,p=0;do{let e=n.indexOf(";"),t=[],c=!0,f=0;for(i=0;n.pos<e;){let r;(i=a(n,i))<f&&(c=!1),f=i,o(n,e)?(s=a(n,s),l=a(n,l),u=a(n,u),r=o(n,e)?[i,s,l,u,p=a(n,p)]:[i,s,l,u]):r=[i],t.push(r),n.pos++}c||function(e){e.sort(d)}(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r},e.decodeGeneratedRanges=function(e){let{length:t}=e,n=new c(e),r=[],i=[],s=0,l=0,u=0,f=0,d=0,h=0,y=0,m=0;do{let e=n.indexOf(";"),t=0;for(;n.pos<e;n.pos++){let c;if(t=a(n,t),!o(n,e)){let e=i.pop();e[2]=s,e[3]=t;continue}let g=a(n,0),T=1&g,S=2&g,b=4&g,E=null,v=p;if(T){let e=a(n,l);u=a(n,l===e?u:0),l=e,c=[s,t,0,0,e,u]}else c=[s,t,0,0];if(c.isScope=!!b,S){let e=d,t=f===(f=a(n,f));d=a(n,t?d:0),h=a(n,t&&e===d?h:0),E=[f,d,h]}if(c.callsite=E,o(n,e)){v=[];do{let e;y=s,m=t;let r=a(n,0);if(r<-1){e=[[a(n,0)]];for(let t=-1;t>r;t--){let t=y;y=a(n,y),m=a(n,y===t?m:0);let r=a(n,0);e.push([r,y,m])}}else e=[[r]];v.push(e)}while(o(n,e))}c.bindings=v,r.push(c),i.push(c)}s++,n.pos=e+1}while(n.pos<t);return r},e.decodeOriginalScopes=function(e){let{length:t}=e,n=new c(e),r=[],i=[],s=0;for(;n.pos<t;n.pos++){s=a(n,s);let e=a(n,0);if(!o(n,t)){let t=i.pop();t[2]=s,t[3]=e;continue}let l=a(n,0),u=1&a(n,0)?[s,e,0,0,l,a(n,0)]:[s,e,0,0,l],c=p;if(o(n,t)){c=[];do{let e=a(n,0);c.push(e)}while(o(n,t))}u.vars=c,r.push(u),i.push(u)}return r},e.encode=function(e){let t=new u,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let l=e[o];if(o>0&&t.write(59),0===l.length)continue;let u=0;for(let e=0;e<l.length;e++){let o=l[e];e>0&&t.write(44),u=s(t,o[0],u),1!==o.length&&(n=s(t,o[1],n),r=s(t,o[2],r),i=s(t,o[3],i),4!==o.length&&(a=s(t,o[4],a)))}}return t.flush()},e.encodeGeneratedRanges=function(e){if(0===e.length)return"";let t=new u;for(let n=0;n<e.length;)n=function e(t,n,r,i){let a=t[n],{0:o,1:l,2:u,3:c,isScope:p,callsite:d,bindings:h}=a;if(i[0]<o?(f(r,i[0],o),i[0]=o,i[1]=0):n>0&&r.write(44),i[1]=s(r,a[1],i[1]),s(r,(6===a.length?1:0)|(d?2:0)|(p?4:0),0),6===a.length){let{4:e,5:t}=a;e!==i[2]&&(i[3]=0),i[2]=s(r,e,i[2]),i[3]=s(r,t,i[3])}if(d){let{0:e,1:t,2:n}=a.callsite;e!==i[4]?(i[5]=0,i[6]=0):t!==i[5]&&(i[6]=0),i[4]=s(r,e,i[4]),i[5]=s(r,t,i[5]),i[6]=s(r,n,i[6])}if(h)for(let e of h){e.length>1&&s(r,-e.length,0),s(r,e[0][0],0);let t=o,n=l;for(let i=1;i<e.length;i++){let a=e[i];t=s(r,a[1],t),n=s(r,a[2],n),s(r,a[0],0)}}for(n++;n<t.length;){let{0:a,1:s}=t[n];if(a>u||a===u&&s>=c)break;n=e(t,n,r,i)}return i[0]<u?(f(r,i[0],u),i[0]=u,i[1]=0):r.write(44),i[1]=s(r,c,i[1]),n}(e,n,t,[0,0,0,0,0,0,0]);return t.flush()},e.encodeOriginalScopes=function(e){let t=new u;for(let n=0;n<e.length;)n=function e(t,n,r,i){let a=t[n],{0:o,1:l,2:u,3:c,4:p,vars:f}=a;for(let e of(n>0&&r.write(44),i[0]=s(r,o,i[0]),s(r,l,0),s(r,p,0),s(r,6===a.length?1:0,0),6===a.length&&s(r,a[5],0),f))s(r,e,0);for(n++;n<t.length;){let{0:a,1:s}=t[n];if(a>u||a===u&&s>=c)break;n=e(t,n,r,i)}return r.write(44),i[0]=s(r,u,i[0]),s(r,c,0),n}(e,n,t,[0]);return t.flush()},Object.defineProperty(e,"__esModule",{value:!0})}(t)},5890:function(e,t,n){!function(e,t,n){"use strict";function r(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function i(e,t){for(let n=t;n<e.length;n++)if(!function(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[n]))return n;return e.length}function a(e,t){return e[0]-t[0]}let s=!1;function o(e,t,n){for(let r=n+1;r<e.length&&e[r][0]===t;n=r++);return n}function l(e,t,n){for(let r=n-1;r>=0&&e[r][0]===t;n=r--);return n}function u(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function c(e,t,n,r){let{lastKey:i,lastNeedle:a,lastIndex:o}=n,l=0,u=e.length-1;if(r===i){if(t===a)return s=-1!==o&&e[o][0]===t,o;t>=a?l=-1===o?0:o:u=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){let i=n+(r-n>>1),a=e[i][0]-t;if(0===a)return s=!0,i;a<0?n=i+1:r=i-1}return s=!1,n-1}(e,t,l,u)}function p(){return{__proto__:null}}function f(e){return"string"==typeof e?JSON.parse(e):e}function d(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}let h="`line` must be greater than 0 (lines start at line 1)",y="`column` must be greater than or equal to 0 (columns start at column 0)";class m{constructor(e,t){let n="string"==typeof e;if(!n&&e._decodedMemo)return e;let s=n?JSON.parse(e):e,{version:o,file:l,names:c,sourceRoot:p,sources:f,sourcesContent:d}=s;this.version=o,this.file=l,this.names=c||[],this.sourceRoot=p,this.sources=f,this.sourcesContent=d,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;let h=r(p||"",function(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=f.map(e=>r(e||"",h));let{mappings:y}=s;"string"==typeof y?(this._encoded=y,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){let n=i(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=i(e,s+1)){var r;e[s]=(r=e[s],t||(r=r.slice()),r.sort(a))}return e}(y,n)),this._decodedMemo=u(),this._bySources=void 0,this._bySourceMemos=void 0}}function g(e){var n;return null!==(n=e._encoded)&&void 0!==n?n:e._encoded=t.encode(e._decoded)}function T(e){return e._decoded||(e._decoded=t.decode(e._encoded))}function S(e,t){let{sources:n,resolvedSources:r}=e,i=n.indexOf(t);return -1===i&&(i=r.indexOf(t)),i}function b(e,t){let n=new m(E(e,[]),t);return n._decoded=e.mappings,n}function E(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function v(e,t,n,r){return{source:e,line:t,column:n,name:r}}function x(e,t){return{line:e,column:t}}function P(e,t,n,r,i){let a=c(e,r,t,n);return(s?a=(-1===i?o:l)(e,r,a):-1===i&&a++,-1===a||a===e.length)?-1:a}function A(e,t,n,r,i,a){if(--n<0)throw Error(h);if(r<0)throw Error(y);let{sources:f,resolvedSources:d}=e,m=f.indexOf(t);if(-1===m&&(m=d.indexOf(t)),-1===m)return a?[]:x(null,null);let g=(e._bySources||(e._bySources=function(e,t){let n=t.map(p);for(let r=0;r<e.length;r++){let i=e[r];for(let e=0;e<i.length;e++){let a=i[e];if(1===a.length)continue;let s=a[1],l=a[2],u=a[3],p=n[s],f=p[l]||(p[l]=[]),d=t[s],h=o(f,u,c(f,u,d,l));d.lastIndex=++h,function(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}(f,h,[u,r,a[0]])}}return n}(T(e),e._bySourceMemos=f.map(u))))[m][n];if(null==g)return a?[]:x(null,null);let S=e._bySourceMemos[m];if(a)return function(e,t,n,r,i){let a=P(e,t,n,r,1);if(!s&&-1===i&&a++,-1===a||a===e.length)return[];let u=s?r:e[a][0];s||(a=l(e,u,a));let c=o(e,u,a),p=[];for(;a<=c;a++){let t=e[a];p.push(x(t[1]+1,t[2]))}return p}(g,S,n,r,i);let b=P(g,S,n,r,i);if(-1===b)return x(null,null);let E=g[b];return x(E[1]+1,E[2])}e.AnyMap=function(e,t){let n=f(e);if(!("sections"in n))return new m(n,t);let r=[],i=[],a=[],s=[],o=[];return function e(t,n,r,i,a,s,o,l,u,c,p){let{sections:h}=t;for(let t=0;t<h.length;t++){let{map:y,offset:g}=h[t],S=c,b=p;if(t+1<h.length){let e=h[t+1].offset;(S=Math.min(c,l+e.line))===c?b=Math.min(p,u+e.column):S<c&&(b=u+e.column)}(function(t,n,r,i,a,s,o,l,u,c,p){let h=f(t);if("sections"in h)return e(...arguments);let y=new m(h,n),g=i.length,S=s.length,b=T(y),{resolvedSources:E,sourcesContent:v,ignoreList:x}=y;if(d(i,E),d(s,y.names),v)d(a,v);else for(let e=0;e<E.length;e++)a.push(null);if(x)for(let e=0;e<x.length;e++)o.push(x[e]+g);for(let e=0;e<b.length;e++){let t=l+e;if(t>c)return;let n=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(r,t),i=0===e?u:0,a=b[e];for(let e=0;e<a.length;e++){let r=a[e],s=i+r[0];if(t===c&&s>=p)return;if(1===r.length){n.push([s]);continue}let o=g+r[1],l=r[2],u=r[3];n.push(4===r.length?[s,o,l,u]:[s,o,l,u,S+r[4]])}}})(y,n,r,i,a,s,o,l+g.line,u+g.column,S,b)}}(n,t,r,i,a,s,o,0,0,1/0,1/0),b({version:3,file:n.file,names:s,sources:i,sourcesContent:a,mappings:r,ignoreList:o})},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=-1,e.TraceMap=m,e.allGeneratedPositionsFor=function(e,t){let{source:n,line:r,column:i,bias:a}=t;return A(e,n,r,i,a||-1,!0)},e.decodedMap=function(e){return E(e,T(e))},e.decodedMappings=T,e.eachMapping=function(e,t){let n=T(e),{names:r,resolvedSources:i}=e;for(let e=0;e<n.length;e++){let a=n[e];for(let n=0;n<a.length;n++){let s=a[n],o=e+1,l=s[0],u=null,c=null,p=null,f=null;1!==s.length&&(u=i[s[1]],c=s[2]+1,p=s[3]),5===s.length&&(f=r[s[4]]),t({generatedLine:o,generatedColumn:l,source:u,originalLine:c,originalColumn:p,name:f})}}},e.encodedMap=function(e){return E(e,g(e))},e.encodedMappings=g,e.generatedPositionFor=function(e,t){let{source:n,line:r,column:i,bias:a}=t;return A(e,n,r,i,a||1,!1)},e.isIgnored=function(e,t){let{ignoreList:n}=e;if(null==n)return!1;let r=S(e,t);return -1!==r&&n.includes(r)},e.originalPositionFor=function(e,t){let{line:n,column:r,bias:i}=t;if(--n<0)throw Error(h);if(r<0)throw Error(y);let a=T(e);if(n>=a.length)return v(null,null,null,null);let s=a[n],o=P(s,e._decodedMemo,n,r,i||1);if(-1===o)return v(null,null,null,null);let l=s[o];if(1===l.length)return v(null,null,null,null);let{names:u,resolvedSources:c}=e;return v(c[l[1]],l[2]+1,l[3],5===l.length?u[l[4]]:null)},e.presortedDecodedMap=b,e.sourceContentFor=function(e,t){let{sourcesContent:n}=e;if(null==n)return null;let r=S(e,t);return -1===r?null:n[r]},e.traceSegment=function(e,t,n){let r=T(e);if(t>=r.length)return null;let i=r[t],a=P(i,e._decodedMemo,t,n,1);return -1===a?null:i[a]}}(t,n(9013),n(3752))},6086:e=>{"use strict";var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],r=/(https?:\/\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\]-]|&|%[A-Fa-f0-9]{2})+)/gm,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0,this.decorations=[]}return t(e,null,[{key:"escapeForHtml",value:function(t){return new e().escapeForHtml(t)}},{key:"linkify",value:function(t){return new e().linkify(t)}},{key:"ansiToHtml",value:function(t,n){return new e().ansiToHtml(t,n)}},{key:"ansiToJson",value:function(t,n){return new e().ansiToJson(t,n)}},{key:"ansiToText",value:function(t){return new e().ansiToText(t)}}]),t(e,[{key:"setupPalette",value:function(){this.PALETTE_COLORS=[];for(var e=0;e<2;++e)for(var t=0;t<8;++t)this.PALETTE_COLORS.push(n[e][t].color);for(var r=[0,95,135,175,215,255],i=function(e,t,n){return r[e]+", "+r[t]+", "+r[n]},a=0;a<6;++a)for(var s=0;s<6;++s)for(var o=0;o<6;++o)this.PALETTE_COLORS.push(i(a,s,o));for(var l=8,u=0;u<24;++u,l+=10)this.PALETTE_COLORS.push(i(l,l,l))}},{key:"escapeForHtml",value:function(e){return e.replace(/[&<>\"]/gm,function(e){return"&"==e?"&":'"'==e?""":"<"==e?"<":">"==e?">":""})}},{key:"linkify",value:function(e){return e.replace(r,function(e){return'<a href="'+e+'">'+e+"</a>"})}},{key:"ansiToHtml",value:function(e,t){return this.process(e,t,!0)}},{key:"ansiToJson",value:function(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}},{key:"ansiToText",value:function(e){return this.process(e,{},!1)}},{key:"process",value:function(e,t,n){var r=this,i=e.split(/\033\[/),a=i.shift();null==t&&(t={}),t.clearLine=/\r/.test(e);var s=i.map(function(e){return r.processChunk(e,t,n)});if(t&&t.json){var o=this.processChunkJson("");return o.content=a,o.clearLine=t.clearLine,s.unshift(o),t.remove_empty&&(s=s.filter(function(e){return!e.isEmpty()})),s}return s.unshift(a),s.join("")}},{key:"processChunkJson",value:function(e,t,r){var i=(t=void 0===t?{}:t).use_classes=void 0!==t.use_classes&&t.use_classes,a=t.key=i?"class":"color",s={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,isInverted:!1,clearLine:t.clearLine,decoration:null,decorations:[],was_processed:!1,isEmpty:function(){return!s.content}},o=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!o)return s;s.content=o[4];var l=o[2].split(";");if(""!==o[1]||"m"!==o[3]||!r)return s;for(;l.length>0;){var u=parseInt(l.shift());if(isNaN(u)||0===u)this.fg=this.bg=null,this.decorations=[];else if(1===u)this.decorations.push("bold");else if(2===u)this.decorations.push("dim");else if(3===u)this.decorations.push("italic");else if(4===u)this.decorations.push("underline");else if(5===u)this.decorations.push("blink");else if(7===u)this.decorations.push("reverse");else if(8===u)this.decorations.push("hidden");else if(9===u)this.decorations.push("strikethrough");else if(21===u)this.removeDecoration("bold");else if(22===u)this.removeDecoration("bold"),this.removeDecoration("dim");else if(23===u)this.removeDecoration("italic");else if(24===u)this.removeDecoration("underline");else if(25===u)this.removeDecoration("blink");else if(27===u)this.removeDecoration("reverse");else if(28===u)this.removeDecoration("hidden");else if(29===u)this.removeDecoration("strikethrough");else if(39===u)this.fg=null;else if(49===u)this.bg=null;else if(u>=30&&u<38)this.fg=n[0][u%10][a];else if(u>=90&&u<98)this.fg=n[1][u%10][a];else if(u>=40&&u<48)this.bg=n[0][u%10][a];else if(u>=100&&u<108)this.bg=n[1][u%10][a];else if(38===u||48===u){var c=38===u;if(l.length>=1){var p=l.shift();if("5"===p&&l.length>=1){var f=parseInt(l.shift());if(f>=0&&f<=255){if(i){var d=f>=16?"ansi-palette-"+f:n[f>7?1:0][f%8].class;c?this.fg=d:this.bg=d}else this.PALETTE_COLORS||this.setupPalette(),c?this.fg=this.PALETTE_COLORS[f]:this.bg=this.PALETTE_COLORS[f]}}else if("2"===p&&l.length>=3){var h=parseInt(l.shift()),y=parseInt(l.shift()),m=parseInt(l.shift());if(h>=0&&h<=255&&y>=0&&y<=255&&m>=0&&m<=255){var g=h+", "+y+", "+m;i?c?(this.fg="ansi-truecolor",this.fg_truecolor=g):(this.bg="ansi-truecolor",this.bg_truecolor=g):c?this.fg=g:this.bg=g}}}}}return null===this.fg&&null===this.bg&&0===this.decorations.length||(s.fg=this.fg,s.bg=this.bg,s.fg_truecolor=this.fg_truecolor,s.bg_truecolor=this.bg_truecolor,s.decorations=this.decorations,s.decoration=this.decorations.slice(-1).pop()||null,s.was_processed=!0),s}},{key:"processChunk",value:function(e,t,r){var i=this;t=t||{};var a=this.processChunkJson(e,t,r),s=t.use_classes;if(a.decorations=a.decorations.filter(function(e){if("reverse"===e){a.fg||(a.fg=n[0][7][s?"class":"color"]),a.bg||(a.bg=n[0][0][s?"class":"color"]);var t=a.fg;a.fg=a.bg,a.bg=t;var r=a.fg_truecolor;return a.fg_truecolor=a.bg_truecolor,a.bg_truecolor=r,a.isInverted=!0,!1}return!0}),t.json)return a;if(a.isEmpty())return"";if(!a.was_processed)return a.content;var o=[],l=[],u=[],c={},p=function(e){var t=[],n=void 0;for(n in e)e.hasOwnProperty(n)&&t.push("data-"+n+'="'+i.escapeForHtml(e[n])+'"');return t.length>0?" "+t.join(" "):""};return(a.isInverted&&(c["ansi-is-inverted"]="true"),a.fg&&(s?(o.push(a.fg+"-fg"),null!==a.fg_truecolor&&(c["ansi-truecolor-fg"]=a.fg_truecolor,a.fg_truecolor=null)):o.push("color:rgb("+a.fg+")")),a.bg&&(s?(o.push(a.bg+"-bg"),null!==a.bg_truecolor&&(c["ansi-truecolor-bg"]=a.bg_truecolor,a.bg_truecolor=null)):o.push("background-color:rgb("+a.bg+")")),a.decorations.forEach(function(e){if(s){l.push("ansi-"+e);return}"bold"===e?l.push("font-weight:bold"):"dim"===e?l.push("opacity:0.5"):"italic"===e?l.push("font-style:italic"):"hidden"===e?l.push("visibility:hidden"):"strikethrough"===e?u.push("line-through"):u.push(e)}),u.length&&l.push("text-decoration:"+u.join(" ")),s)?'<span class="'+o.concat(l).join(" ")+'"'+p(c)+">"+a.content+"</span>":'<span style="'+o.concat(l).join(";")+'"'+p(c)+">"+a.content+"</span>"}},{key:"removeDecoration",value:function(e){var t=this.decorations.indexOf(e);t>=0&&this.decorations.splice(t,1)}}]),e}();e.exports=i},3836:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),s=a[0],o=a[1],u=new i((s+o)*3/4-o),c=0,p=o>0?s-4:s;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===o&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],s=0,o=r-i;s<o;s+=16383)a.push(function(e,t,r){for(var i,a=[],s=t;s<r;s+=3)a.push(n[(i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},5927:(e,t,n)=>{"use strict";let r=n(3836),i=n(4981),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw TypeError("Unknown encoding: "+t);let n=0|h(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(B(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);let i=function(e){var t;if(o.isBuffer(e)){let t=0|d(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|d(e))}function p(e){let t=e.length<0?0:0|d(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){let r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),o.prototype),r}function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(i)return r?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=F[e[r]];return i}(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":var a,s;return a=t,s=n,0===a&&s===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let r=e.slice(t,n),i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:T(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):T(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function T(e,t,n,r,i){let a,s=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(a=n;a<o;a++)if(u(e,a)===u(t,-1===r?0:a-r)){if(-1===r&&(r=a),a-r+1===l)return r*s}else -1!==r&&(a-=a-r),r=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){let n=!0;for(let r=0;r<l;r++)if(u(e,a+r)!==u(t,r)){n=!1;break}if(n)return a}return -1}function S(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,o,l;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(n=e[i+1]))==128&&(l=(31&t)<<6|63&n)>127&&(a=l);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(l=(15&t)<<12|(63&n)<<6|63&r)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:n=e[i+1],r=e[i+2],o=e[i+3],(192&n)==128&&(192&r)==128&&(192&o)==128&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&o)>65535&&l<1114112&&(a=l)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function E(e,t,n,r,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function v(e,t,n,r,i){k(t,r,i,e,n,7);let a=Number(t&BigInt(0xffffffff));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function x(e,t,n,r,i){k(t,r,i,e,n,7);let a=Number(t&BigInt(0xffffffff));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function P(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function A(e,t,n,r,a){return t=+t,n>>>=0,a||P(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function O(e,t,n,r,a){return t=+t,n>>>=0,a||P(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.hp=o,t.IS=50,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,n){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(B(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).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}},o.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(B(t,Uint8Array))i+t.length>r.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(o.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?S(this,0,e):y.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){let e="",n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,i){if(B(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,s=n-t,l=Math.min(a,s),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<l;++e)if(u[e]!==c[e]){a=u[e],s=c[e];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){var i,a,s,o,l,u,c,p;if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let d=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;let s=t.length;for(r>s/2&&(r=s/2),i=0;i<r;++i){let r=parseInt(t.substr(2*i,2),16);if(r!=r)break;e[n+i]=r}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,j(M(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return s=t,o=n,j(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,s,o);case"base64":return l=t,u=n,j(L(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,p=n,j(function(e,t){let n,r;let i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,p);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,o.prototype),r},o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=R(function(e){_(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&D(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*n;return BigInt(r)+(BigInt(i)<<BigInt(32))}),o.prototype.readBigUInt64BE=R(function(e){_(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&D(e,this.length-8);let r=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),o.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=R(function(e){_(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&D(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),o.prototype.readBigInt64BE=R(function(e){_(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&D(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+n)}),o.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;E(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;E(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=R(function(e,t=0){return v(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=R(function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);E(this,e,t,n,r-1,-r)}let i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=Math.pow(2,8*n-1);E(this,e,t,n,r-1,-r)}let i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=R(function(e,t=0){return v(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=R(function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,n){return A(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return A(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},o.prototype.fill=function(e,t,n,r){let i;if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){let t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let a=o.isBuffer(e)?e:o.from(e,r),s=a.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};let C={};function w(e,t,n){C[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function I(e){let t="",n=e.length,r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function k(e,t,n,r,i,a){if(e>n||e<t){let r;let i="bigint"==typeof t?"n":"";throw r=a>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new C.ERR_OUT_OF_RANGE("value",r,e)}_(i,"offset"),(void 0===r[i]||void 0===r[i+a])&&D(i,r.length-(a+1))}function _(e,t){if("number"!=typeof e)throw new C.ERR_INVALID_ARG_TYPE(t,"number",e)}function D(e,t,n){if(Math.floor(e)!==e)throw _(e,n),new C.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new C.ERR_BUFFER_OUT_OF_BOUNDS;throw new C.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}w("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),w("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),w("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>0x100000000?i=I(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let N=/[^+/0-9A-Za-z-_]/g;function M(e,t){let n;t=t||1/0;let r=e.length,i=null,a=[];for(let s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function L(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function R(e){return"undefined"==typeof BigInt?V:e}function V(){throw Error("BigInt not supported")}},5875:(e,t,n)=>{var r=n(2818);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try