@ampt/cli 0.0.1-beta.37 → 0.0.1-beta.38
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/dist/cli.js +12 -12
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
`).join(`
|
|
18
18
|
`+s),e.push(i+"m+"+PE.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ust()+t+" "+e[0]}function ust(){return Hn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cst(...e){return process.stderr.write(kE.format(...e)+`
|
|
19
19
|
`)}function lst(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function fst(){return process.env.DEBUG}function pst(e){e.inspectOpts={};let t=Object.keys(Hn.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Hn.inspectOpts[t[r]]}PE.exports=K2()(Hn);var{formatters:uee}=PE.exports;uee.o=function(e){return this.inspectOpts.colors=this.useColors,kE.inspect(e,this.inspectOpts).split(`
|
|
20
|
-
`).map(t=>t.trim()).join(" ")};uee.O=function(e){return this.inspectOpts.colors=this.useColors,kE.inspect(e,this.inspectOpts)}});var t0=m((thr,X2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?X2.exports=aee():X2.exports=cee()});var fee=m((rhr,lee)=>{var r0;lee.exports=function(){if(!r0){try{r0=t0()("follow-redirects")}catch{}typeof r0!="function"&&(r0=function(){})}r0.apply(null,arguments)}});var DE=m((nhr,ek)=>{var Pf=require("url"),Y2=Pf.URL,dst=require("http"),hst=require("https"),hee=require("stream").Writable,mee=require("assert"),gee=fee(),J2=["abort","aborted","connect","error","socket","timeout"],Q2=Object.create(null);J2.forEach(function(e){Q2[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var mst=i0("ERR_INVALID_URL","Invalid URL",TypeError),pee=i0("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),gst=i0("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),vst=i0("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),yst=i0("ERR_STREAM_WRITE_AFTER_END","write after end");function bs(e,t){hee.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}bs.prototype=Object.create(hee.prototype);bs.prototype.abort=function(){yee(this._currentRequest),this.emit("abort")};bs.prototype.write=function(e,t,r){if(this._ending)throw new yst;if(!Df(e)&&!bst(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(n0(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new vst),this.abort())};bs.prototype.end=function(e,t,r){if(n0(e)?(r=e,e=t=null):n0(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};bs.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};bs.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};bs.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){bs.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(bs.prototype,e,{get:function(){return this._currentRequest[e]}})});bs.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};bs.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of J2)n.on(i,Q2[i]);if(this._currentUrl=/^\//.test(this._options.path)?Pf.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(c){if(n===o._currentRequest)if(c)o.emit("error",c);else if(s<a.length){var f=a[s++];n.finished||n.write(f.data,f.encoding,u)}else o._ended&&n.end()})()}};bs.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(yee(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new gst);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Z2(/^content-/i,this._options.headers));var o=Z2(/^host$/i,this._options.headers),a=Pf.parse(this._currentUrl),u=o||a.host,c=/^\w+:/.test(r)?this._currentUrl:Pf.format(Object.assign(a,{host:u})),f;try{f=Pf.resolve(c,r)}catch(v){this.emit("error",new pee({cause:v}));return}gee("redirecting to",f),this._isRedirect=!0;var p=Pf.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!_st(p.host,u))&&Z2(/^(?:authorization|cookie)$/i,this._options.headers),n0(i)){var h={headers:e.headers,statusCode:t},g={url:c,method:s,headers:n};try{i(this._options,h,g)}catch(v){this.emit("error",v);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(v){this.emit("error",new pee({cause:v}))}};function vee(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);function a(c,f,p){if(Df(c)){var h;try{h=dee(new Y2(c))}catch{h=Pf.parse(c)}if(!Df(h.protocol))throw new mst({input:c});c=h}else Y2&&c instanceof Y2?c=dee(c):(p=f,f=c,c={protocol:i});return n0(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},c,f),f.nativeProtocols=r,!Df(f.host)&&!Df(f.hostname)&&(f.hostname="::1"),mee.equal(f.protocol,i,"protocol mismatch"),gee("options",f),new bs(f,p)}function u(c,f,p){var h=o.request(c,f,p);return h.end(),h}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function xst(){}function dee(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function Z2(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function i0(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function yee(e){for(var t of J2)e.removeListener(t,Q2[t]);e.on("error",xst),e.abort()}function _st(e,t){mee(Df(e)&&Df(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Df(e){return typeof e=="string"||e instanceof String}function n0(e){return typeof e=="function"}function bst(e){return typeof e=="object"&&"length"in e}ek.exports=vee({http:dst,https:hst});ek.exports.wrap=vee});var LE=m((ihr,xee)=>{xee.exports={version:"0.26.1"}});var Aee=m((shr,Tee)=>{"use strict";var s0=gi(),_ee=H2(),wst=$2(),bee=SE(),Est=require("http"),Sst=require("https"),Tst=DE().http,Ast=DE().https,wee=require("url"),Cst=require("zlib"),Rst=LE().version,xh=RE(),FE=AE(),Ost=CE(),Ist=mh(),Eee=/https:?/;function See(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,See(s,t,s.href)}}Tee.exports=function(t){return new Promise(function(n,i){var s;function o(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}var a=function(Ee){o(),n(Ee)},u=!1,c=function(Ee){o(),u=!0,i(Ee)},f=t.data,p=t.headers,h={};if(Object.keys(p).forEach(function(Ee){h[Ee.toLowerCase()]=Ee}),"user-agent"in h?p[h["user-agent"]]||delete p[h["user-agent"]]:p["User-Agent"]="axios/"+Rst,f&&!s0.isStream(f)){if(!Buffer.isBuffer(f))if(s0.isArrayBuffer(f))f=Buffer.from(new Uint8Array(f));else if(s0.isString(f))f=Buffer.from(f,"utf-8");else return c(xh("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));if(t.maxBodyLength>-1&&f.length>t.maxBodyLength)return c(xh("Request body larger than maxBodyLength limit",t));h["content-length"]||(p["Content-Length"]=f.length)}var g=void 0;if(t.auth){var v=t.auth.username||"",_=t.auth.password||"";g=v+":"+_}var w=wst(t.baseURL,t.url),y=wee.parse(w),b=y.protocol||"http:";if(!g&&y.auth){var S=y.auth.split(":"),T=S[0]||"",R=S[1]||"";g=T+":"+R}g&&h.authorization&&delete p[h.authorization];var q=Eee.test(b),O=q?t.httpsAgent:t.httpAgent;try{bee(y.path,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(Le){var M=new Error(Le.message);M.config=t,M.url=t.url,M.exists=!0,c(M)}var U={path:bee(y.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:p,agent:O,agents:{http:t.httpAgent,https:t.httpsAgent},auth:g};t.socketPath?U.socketPath=t.socketPath:(U.hostname=y.hostname,U.port=y.port);var z=t.proxy;if(!z&&z!==!1){var L=b.slice(0,-1)+"_proxy",D=process.env[L]||process.env[L.toUpperCase()];if(D){var Z=wee.parse(D),le=process.env.no_proxy||process.env.NO_PROXY,B=!0;if(le){var V=le.split(",").map(function(Ee){return Ee.trim()});B=!V.some(function(Ee){return Ee?Ee==="*"||Ee[0]==="."&&y.hostname.substr(y.hostname.length-Ee.length)===Ee?!0:y.hostname===Ee:!1})}if(B&&(z={host:Z.hostname,port:Z.port,protocol:Z.protocol},Z.auth)){var he=Z.auth.split(":");z.auth={username:he[0],password:he[1]}}}}z&&(U.headers.host=y.hostname+(y.port?":"+y.port:""),See(U,z,b+"//"+y.hostname+(y.port?":"+y.port:"")+U.path));var fe,xe=q&&(z?Eee.test(z.protocol):!0);t.transport?fe=t.transport:t.maxRedirects===0?fe=xe?Sst:Est:(t.maxRedirects&&(U.maxRedirects=t.maxRedirects),fe=xe?Ast:Tst),t.maxBodyLength>-1&&(U.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(U.insecureHTTPParser=t.insecureHTTPParser);var se=fe.request(U,function(Ee){if(!se.aborted){var it=Ee,Vt=Ee.req||se;if(Ee.statusCode!==204&&Vt.method!=="HEAD"&&t.decompress!==!1)switch(Ee.headers["content-encoding"]){case"gzip":case"compress":case"deflate":it=it.pipe(Cst.createUnzip()),delete Ee.headers["content-encoding"];break}var Te={status:Ee.statusCode,statusText:Ee.statusMessage,headers:Ee.headers,config:t,request:Vt};if(t.responseType==="stream")Te.data=it,_ee(a,c,Te);else{var Ur=[],Ci=0;it.on("data",function(k){Ur.push(k),Ci+=k.length,t.maxContentLength>-1&&Ci>t.maxContentLength&&(u=!0,it.destroy(),c(xh("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Vt)))}),it.on("aborted",function(){u||(it.destroy(),c(xh("error request aborted",t,"ERR_REQUEST_ABORTED",Vt)))}),it.on("error",function(k){se.aborted||c(FE(k,t,null,Vt))}),it.on("end",function(){try{var k=Ur.length===1?Ur[0]:Buffer.concat(Ur);t.responseType!=="arraybuffer"&&(k=k.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(k=s0.stripBOM(k))),Te.data=k}catch(A){c(FE(A,t,A.code,Te.request,Te))}_ee(a,c,Te)})}}});if(se.on("error",function(Ee){se.aborted&&Ee.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(FE(Ee,t,null,se))}),se.on("socket",function(Ee){Ee.setKeepAlive(!0,1e3*60)}),t.timeout){var Ge=parseInt(t.timeout,10);if(isNaN(Ge)){c(xh("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",se));return}se.setTimeout(Ge,function(){se.abort();var Ee="";t.timeoutErrorMessage?Ee=t.timeoutErrorMessage:Ee="timeout of "+t.timeout+"ms exceeded";var it=t.transitional||Ost;c(xh(Ee,t,it.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",se))})}(t.cancelToken||t.signal)&&(s=function(Le){se.aborted||(se.abort(),c(!Le||Le&&Le.type?new Ist("canceled"):Le))},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),s0.isStream(f)?f.on("error",function(Ee){c(FE(Ee,t,null,se))}).pipe(se):se.end(f)})}});var jE=m((ohr,Oee)=>{"use strict";var $n=gi(),Cee=MQ(),Nst=AE(),qst=CE(),kst={"Content-Type":"application/x-www-form-urlencoded"};function Ree(e,t){!$n.isUndefined(e)&&$n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Pst(){var e;return typeof XMLHttpRequest<"u"?e=nee():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Aee()),e}function Dst(e,t,r){if($n.isString(e))try{return(t||JSON.parse)(e),$n.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ME={transitional:qst,adapter:Pst(),transformRequest:[function(t,r){return Cee(r,"Accept"),Cee(r,"Content-Type"),$n.isFormData(t)||$n.isArrayBuffer(t)||$n.isBuffer(t)||$n.isStream(t)||$n.isFile(t)||$n.isBlob(t)?t:$n.isArrayBufferView(t)?t.buffer:$n.isURLSearchParams(t)?(Ree(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):$n.isObject(t)||r&&r["Content-Type"]==="application/json"?(Ree(r,"application/json"),Dst(t)):t}],transformResponse:[function(t){var r=this.transitional||ME.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&$n.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Nst(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$n.forEach(["delete","get","head"],function(t){ME.headers[t]={}});$n.forEach(["post","put","patch"],function(t){ME.headers[t]=$n.merge(kst)});Oee.exports=ME});var Nee=m((ahr,Iee)=>{"use strict";var Lst=gi(),Fst=jE();Iee.exports=function(t,r,n){var i=this||Fst;return Lst.forEach(n,function(o){t=o.call(i,t,r)}),t}});var tk=m((uhr,qee)=>{"use strict";qee.exports=function(t){return!!(t&&t.__CANCEL__)}});var Dee=m((chr,Pee)=>{"use strict";var kee=gi(),rk=Nee(),Mst=tk(),jst=jE(),Bst=mh();function nk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bst("canceled")}Pee.exports=function(t){nk(t),t.headers=t.headers||{},t.data=rk.call(t,t.data,t.headers,t.transformRequest),t.headers=kee.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),kee.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||jst.adapter;return r(t).then(function(i){return nk(t),i.data=rk.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Mst(i)||(nk(t),i&&i.response&&(i.response.data=rk.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var ik=m((lhr,Lee)=>{"use strict";var ws=gi();Lee.exports=function(t,r){r=r||{};var n={};function i(f,p){return ws.isPlainObject(f)&&ws.isPlainObject(p)?ws.merge(f,p):ws.isPlainObject(p)?ws.merge({},p):ws.isArray(p)?p.slice():p}function s(f){if(ws.isUndefined(r[f])){if(!ws.isUndefined(t[f]))return i(void 0,t[f])}else return i(t[f],r[f])}function o(f){if(!ws.isUndefined(r[f]))return i(void 0,r[f])}function a(f){if(ws.isUndefined(r[f])){if(!ws.isUndefined(t[f]))return i(void 0,t[f])}else return i(void 0,r[f])}function u(f){if(f in r)return i(t[f],r[f]);if(f in t)return i(void 0,t[f])}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return ws.forEach(Object.keys(t).concat(Object.keys(r)),function(p){var h=c[p]||s,g=h(p);ws.isUndefined(g)&&h!==u||(n[p]=g)}),n}});var jee=m((fhr,Mee)=>{"use strict";var Ust=LE().version,sk={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sk[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Fee={};sk.transitional=function(t,r,n){function i(s,o){return"[Axios v"+Ust+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return function(s,o,a){if(t===!1)throw new Error(i(o," has been removed"+(r?" in "+r:"")));return r&&!Fee[o]&&(Fee[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,o,a):!0}};function Wst(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],o=t[s];if(o){var a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Mee.exports={assertOptions:Wst,validators:sk}});var zee=m((phr,$ee)=>{"use strict";var Wee=gi(),Hst=SE(),Bee=LQ(),Uee=Dee(),BE=ik(),Hee=jee(),_h=Hee.validators;function o0(e){this.defaults=e,this.interceptors={request:new Bee,response:new Bee}}o0.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=BE(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&Hee.assertOptions(n,{silentJSONParsing:_h.transitional(_h.boolean),forcedJSONParsing:_h.transitional(_h.boolean),clarifyTimeoutError:_h.transitional(_h.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(s=s&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});var o=[];this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});var a;if(!s){var u=[Uee,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(o),a=Promise.resolve(r);u.length;)a=a.then(u.shift(),u.shift());return a}for(var c=r;i.length;){var f=i.shift(),p=i.shift();try{c=f(c)}catch(h){p(h);break}}try{a=Uee(c)}catch(h){return Promise.reject(h)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};o0.prototype.getUri=function(t){return t=BE(this.defaults,t),Hst(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Wee.forEach(["delete","get","head","options"],function(t){o0.prototype[t]=function(r,n){return this.request(BE(n||{},{method:t,url:r,data:(n||{}).data}))}});Wee.forEach(["post","put","patch"],function(t){o0.prototype[t]=function(r,n,i){return this.request(BE(i||{},{method:t,url:r,data:n}))}});$ee.exports=o0});var Vee=m((dhr,Gee)=>{"use strict";var $st=mh();function bh(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;this.promise.then(function(n){if(r._listeners){var i,s=r._listeners.length;for(i=0;i<s;i++)r._listeners[i](n);r._listeners=null}}),this.promise.then=function(n){var i,s=new Promise(function(o){r.subscribe(o),i=o}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i){r.reason||(r.reason=new $st(i),t(r.reason))})}bh.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};bh.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};bh.prototype.unsubscribe=function(t){if(this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};bh.source=function(){var t,r=new bh(function(i){t=i});return{token:r,cancel:t}};Gee.exports=bh});var Xee=m((hhr,Kee)=>{"use strict";Kee.exports=function(t){return function(n){return t.apply(null,n)}}});var Zee=m((mhr,Yee)=>{"use strict";var zst=gi();Yee.exports=function(t){return zst.isObject(t)&&t.isAxiosError===!0}});var ete=m((ghr,ok)=>{"use strict";var Jee=gi(),Gst=M2(),UE=zee(),Vst=ik(),Kst=jE();function Qee(e){var t=new UE(e),r=Gst(UE.prototype.request,t);return Jee.extend(r,UE.prototype,t),Jee.extend(r,t),r.create=function(i){return Qee(Vst(e,i))},r}var ya=Qee(Kst);ya.Axios=UE;ya.Cancel=mh();ya.CancelToken=Vee();ya.isCancel=tk();ya.VERSION=LE().version;ya.all=function(t){return Promise.all(t)};ya.spread=Xee();ya.isAxiosError=Zee();ok.exports=ya;ok.exports.default=ya});var WE=m((vhr,tte)=>{tte.exports=ete()});var nte=m((yhr,rte)=>{"use strict";var Xst=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);rte.exports=e=>!Xst.has(e&&e.code)});function ite(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(c){r(c);return}a.done?t(u):Promise.resolve(u).then(n,i)}function ute(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){ite(s,n,i,o,a,"next",u)}function a(u){ite(s,n,i,o,a,"throw",u)}o(void 0)})}}function ste(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ote(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ste(Object(r),!0).forEach(function(n){Yst(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ste(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yst(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lte(e){return!e.response&&!!e.code&&e.code!=="ECONNABORTED"&&(0,cte.default)(e)}function ck(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status>=500&&e.response.status<=599)}function Jst(e){return e.config?ck(e)&&fte.indexOf(e.config.method)!==-1:!1}function pte(e){return e.config?ck(e)&&Zst.indexOf(e.config.method)!==-1:!1}function dte(e){return lte(e)||pte(e)}function Qst(){return 0}function eot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=Math.pow(2,e)*100,r=t*.2*Math.random();return t+r}function ate(e){var t=e[ak]||{};return t.retryCount=t.retryCount||0,e[ak]=t,t}function tot(e,t){return ote(ote({},t),e[ak])}function rot(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}function not(e,t,r,n){return uk.apply(this,arguments)}function uk(){return uk=ute(function*(e,t,r,n){var i=r.retryCount<e&&t(n);if(typeof i=="object")try{var s=yield i;return s!==!1}catch{return!1}return i}),uk.apply(this,arguments)}function ko(e,t){e.interceptors.request.use(r=>{var n=ate(r);return n.lastRequestTime=Date.now(),r}),e.interceptors.response.use(null,function(){var r=ute(function*(n){var{config:i}=n;if(!i)return Promise.reject(n);var{retries:s=3,retryCondition:o=dte,retryDelay:a=Qst,shouldResetTimeout:u=!1,onRetry:c=()=>{}}=tot(i,t),f=ate(i);if(yield not(s,o,f,n)){f.retryCount+=1;var p=a(f.retryCount,n);if(rot(e,i),!u&&i.timeout&&f.lastRequestTime){var h=Date.now()-f.lastRequestTime,g=i.timeout-h-p;if(g<=0)return Promise.reject(n);i.timeout=g}return i.transformRequest=[v=>v],c(f.retryCount,n,i),new Promise(v=>setTimeout(()=>v(e(i)),p))}return Promise.reject(n)});return function(n){return r.apply(this,arguments)}}())}var cte,ak,fte,Zst,hte=ye(()=>{cte=de(nte(),1);ak="axios-retry";fte=["get","head","options"],Zst=fte.concat(["put","delete"]);ko.isNetworkError=lte;ko.isSafeRequestError=Jst;ko.isIdempotentRequestError=pte;ko.isNetworkOrIdempotentRequestError=dte;ko.exponentialDelay=eot;ko.isRetryableError=ck});var yte=m((_hr,vte)=>{"use strict";vte.exports=gte;var{toString:iot}=Object.prototype,lk=Symbol("circular-ref-tag"),fk=Symbol("pino-raw-err-ref"),mte=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[fk]},set:function(e){this[fk]=e}}});Object.defineProperty(mte,fk,{writable:!0,value:{}});function gte(e){if(!(e instanceof Error))return e;e[lk]=void 0;let t=Object.create(mte);t.type=iot.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack;for(let r in e)if(t[r]===void 0){let n=e[r];n instanceof Error?n.hasOwnProperty(lk)||(t[r]=gte(n)):t[r]=n}return delete e[lk],t.raw=e,t}});var wte=m((bhr,bte)=>{"use strict";bte.exports={mapHttpRequest:sot,reqSerializer:_te};var pk=Symbol("pino-raw-req-ref"),xte=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[pk]},set:function(e){this[pk]=e}}});Object.defineProperty(xte,pk,{writable:!0,value:{}});function _te(e){let t=e.info||e.socket,r=Object.create(xte);return r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl?(r.url=e.originalUrl,r.query=e.query,r.params=e.params):r.url=e.path||(e.url?e.url.path||e.url:void 0),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function sot(e){return{req:_te(e)}}});var Ate=m((whr,Tte)=>{"use strict";Tte.exports={mapHttpResponse:oot,resSerializer:Ste};var dk=Symbol("pino-raw-res-ref"),Ete=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[dk]},set:function(e){this[dk]=e}}});Object.defineProperty(Ete,dk,{writable:!0,value:{}});function Ste(e){let t=Object.create(Ete);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function oot(e){return{res:Ste(e)}}});var mk=m((Ehr,Cte)=>{"use strict";var hk=yte(),HE=wte(),$E=Ate();Cte.exports={err:hk,mapHttpRequest:HE.mapHttpRequest,mapHttpResponse:$E.mapHttpResponse,req:HE.reqSerializer,res:$E.resSerializer,wrapErrorSerializer:function(t){return t===hk?t:function(n){return t(hk(n))}},wrapRequestSerializer:function(t){return t===HE.reqSerializer?t:function(n){return t(HE.reqSerializer(n))}},wrapResponseSerializer:function(t){return t===$E.resSerializer?t:function(n){return t($E.resSerializer(n))}}}});var Ote=m((Shr,Rte)=>{"use strict";var{createContext:aot,runInContext:uot}=require("vm");Rte.exports=cot;function cot(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=n=>`fast-redact \u2013 Invalid path (${n})`}=e;return function({paths:i}){i.forEach(s=>{if(typeof s!="string")throw Error(t());try{if(/〇/.test(s))throw Error();let o=new Proxy({},{get:()=>o,set:()=>{throw Error()}}),a=(s[0]==="["?"":".")+s.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(a)||/\/\*/.test(a))throw Error();uot(`
|
|
20
|
+
`).map(t=>t.trim()).join(" ")};uee.O=function(e){return this.inspectOpts.colors=this.useColors,kE.inspect(e,this.inspectOpts)}});var t0=m((thr,X2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?X2.exports=aee():X2.exports=cee()});var fee=m((rhr,lee)=>{var r0;lee.exports=function(){if(!r0){try{r0=t0()("follow-redirects")}catch{}typeof r0!="function"&&(r0=function(){})}r0.apply(null,arguments)}});var DE=m((nhr,ek)=>{var Pf=require("url"),Y2=Pf.URL,dst=require("http"),hst=require("https"),hee=require("stream").Writable,mee=require("assert"),gee=fee(),J2=["abort","aborted","connect","error","socket","timeout"],Q2=Object.create(null);J2.forEach(function(e){Q2[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var mst=i0("ERR_INVALID_URL","Invalid URL",TypeError),pee=i0("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),gst=i0("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),vst=i0("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),yst=i0("ERR_STREAM_WRITE_AFTER_END","write after end");function bs(e,t){hee.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}bs.prototype=Object.create(hee.prototype);bs.prototype.abort=function(){yee(this._currentRequest),this.emit("abort")};bs.prototype.write=function(e,t,r){if(this._ending)throw new yst;if(!Df(e)&&!bst(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(n0(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new vst),this.abort())};bs.prototype.end=function(e,t,r){if(n0(e)?(r=e,e=t=null):n0(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};bs.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};bs.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};bs.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){bs.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(bs.prototype,e,{get:function(){return this._currentRequest[e]}})});bs.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};bs.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of J2)n.on(i,Q2[i]);if(this._currentUrl=/^\//.test(this._options.path)?Pf.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(c){if(n===o._currentRequest)if(c)o.emit("error",c);else if(s<a.length){var f=a[s++];n.finished||n.write(f.data,f.encoding,u)}else o._ended&&n.end()})()}};bs.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(yee(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new gst);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Z2(/^content-/i,this._options.headers));var o=Z2(/^host$/i,this._options.headers),a=Pf.parse(this._currentUrl),u=o||a.host,c=/^\w+:/.test(r)?this._currentUrl:Pf.format(Object.assign(a,{host:u})),f;try{f=Pf.resolve(c,r)}catch(v){this.emit("error",new pee({cause:v}));return}gee("redirecting to",f),this._isRedirect=!0;var p=Pf.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!_st(p.host,u))&&Z2(/^(?:authorization|cookie)$/i,this._options.headers),n0(i)){var h={headers:e.headers,statusCode:t},g={url:c,method:s,headers:n};try{i(this._options,h,g)}catch(v){this.emit("error",v);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(v){this.emit("error",new pee({cause:v}))}};function vee(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);function a(c,f,p){if(Df(c)){var h;try{h=dee(new Y2(c))}catch{h=Pf.parse(c)}if(!Df(h.protocol))throw new mst({input:c});c=h}else Y2&&c instanceof Y2?c=dee(c):(p=f,f=c,c={protocol:i});return n0(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},c,f),f.nativeProtocols=r,!Df(f.host)&&!Df(f.hostname)&&(f.hostname="::1"),mee.equal(f.protocol,i,"protocol mismatch"),gee("options",f),new bs(f,p)}function u(c,f,p){var h=o.request(c,f,p);return h.end(),h}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function xst(){}function dee(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function Z2(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function i0(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function yee(e){for(var t of J2)e.removeListener(t,Q2[t]);e.on("error",xst),e.abort()}function _st(e,t){mee(Df(e)&&Df(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Df(e){return typeof e=="string"||e instanceof String}function n0(e){return typeof e=="function"}function bst(e){return typeof e=="object"&&"length"in e}ek.exports=vee({http:dst,https:hst});ek.exports.wrap=vee});var LE=m((ihr,xee)=>{xee.exports={version:"0.26.1"}});var Aee=m((shr,Tee)=>{"use strict";var s0=gi(),_ee=H2(),wst=$2(),bee=SE(),Est=require("http"),Sst=require("https"),Tst=DE().http,Ast=DE().https,wee=require("url"),Cst=require("zlib"),Rst=LE().version,xh=RE(),FE=AE(),Ost=CE(),Ist=mh(),Eee=/https:?/;function See(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,See(s,t,s.href)}}Tee.exports=function(t){return new Promise(function(n,i){var s;function o(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}var a=function(Ee){o(),n(Ee)},u=!1,c=function(Ee){o(),u=!0,i(Ee)},f=t.data,p=t.headers,h={};if(Object.keys(p).forEach(function(Ee){h[Ee.toLowerCase()]=Ee}),"user-agent"in h?p[h["user-agent"]]||delete p[h["user-agent"]]:p["User-Agent"]="axios/"+Rst,f&&!s0.isStream(f)){if(!Buffer.isBuffer(f))if(s0.isArrayBuffer(f))f=Buffer.from(new Uint8Array(f));else if(s0.isString(f))f=Buffer.from(f,"utf-8");else return c(xh("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));if(t.maxBodyLength>-1&&f.length>t.maxBodyLength)return c(xh("Request body larger than maxBodyLength limit",t));h["content-length"]||(p["Content-Length"]=f.length)}var g=void 0;if(t.auth){var v=t.auth.username||"",_=t.auth.password||"";g=v+":"+_}var w=wst(t.baseURL,t.url),y=wee.parse(w),b=y.protocol||"http:";if(!g&&y.auth){var S=y.auth.split(":"),T=S[0]||"",R=S[1]||"";g=T+":"+R}g&&h.authorization&&delete p[h.authorization];var q=Eee.test(b),O=q?t.httpsAgent:t.httpAgent;try{bee(y.path,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(Le){var M=new Error(Le.message);M.config=t,M.url=t.url,M.exists=!0,c(M)}var U={path:bee(y.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:p,agent:O,agents:{http:t.httpAgent,https:t.httpsAgent},auth:g};t.socketPath?U.socketPath=t.socketPath:(U.hostname=y.hostname,U.port=y.port);var z=t.proxy;if(!z&&z!==!1){var L=b.slice(0,-1)+"_proxy",D=process.env[L]||process.env[L.toUpperCase()];if(D){var Z=wee.parse(D),le=process.env.no_proxy||process.env.NO_PROXY,B=!0;if(le){var V=le.split(",").map(function(Ee){return Ee.trim()});B=!V.some(function(Ee){return Ee?Ee==="*"||Ee[0]==="."&&y.hostname.substr(y.hostname.length-Ee.length)===Ee?!0:y.hostname===Ee:!1})}if(B&&(z={host:Z.hostname,port:Z.port,protocol:Z.protocol},Z.auth)){var he=Z.auth.split(":");z.auth={username:he[0],password:he[1]}}}}z&&(U.headers.host=y.hostname+(y.port?":"+y.port:""),See(U,z,b+"//"+y.hostname+(y.port?":"+y.port:"")+U.path));var fe,xe=q&&(z?Eee.test(z.protocol):!0);t.transport?fe=t.transport:t.maxRedirects===0?fe=xe?Sst:Est:(t.maxRedirects&&(U.maxRedirects=t.maxRedirects),fe=xe?Ast:Tst),t.maxBodyLength>-1&&(U.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(U.insecureHTTPParser=t.insecureHTTPParser);var se=fe.request(U,function(Ee){if(!se.aborted){var it=Ee,Vt=Ee.req||se;if(Ee.statusCode!==204&&Vt.method!=="HEAD"&&t.decompress!==!1)switch(Ee.headers["content-encoding"]){case"gzip":case"compress":case"deflate":it=it.pipe(Cst.createUnzip()),delete Ee.headers["content-encoding"];break}var Te={status:Ee.statusCode,statusText:Ee.statusMessage,headers:Ee.headers,config:t,request:Vt};if(t.responseType==="stream")Te.data=it,_ee(a,c,Te);else{var Ur=[],Ci=0;it.on("data",function(k){Ur.push(k),Ci+=k.length,t.maxContentLength>-1&&Ci>t.maxContentLength&&(u=!0,it.destroy(),c(xh("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Vt)))}),it.on("aborted",function(){u||(it.destroy(),c(xh("error request aborted",t,"ERR_REQUEST_ABORTED",Vt)))}),it.on("error",function(k){se.aborted||c(FE(k,t,null,Vt))}),it.on("end",function(){try{var k=Ur.length===1?Ur[0]:Buffer.concat(Ur);t.responseType!=="arraybuffer"&&(k=k.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(k=s0.stripBOM(k))),Te.data=k}catch(A){c(FE(A,t,A.code,Te.request,Te))}_ee(a,c,Te)})}}});if(se.on("error",function(Ee){se.aborted&&Ee.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(FE(Ee,t,null,se))}),se.on("socket",function(Ee){Ee.setKeepAlive(!0,1e3*60)}),t.timeout){var Ve=parseInt(t.timeout,10);if(isNaN(Ve)){c(xh("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",se));return}se.setTimeout(Ve,function(){se.abort();var Ee="";t.timeoutErrorMessage?Ee=t.timeoutErrorMessage:Ee="timeout of "+t.timeout+"ms exceeded";var it=t.transitional||Ost;c(xh(Ee,t,it.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",se))})}(t.cancelToken||t.signal)&&(s=function(Le){se.aborted||(se.abort(),c(!Le||Le&&Le.type?new Ist("canceled"):Le))},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),s0.isStream(f)?f.on("error",function(Ee){c(FE(Ee,t,null,se))}).pipe(se):se.end(f)})}});var jE=m((ohr,Oee)=>{"use strict";var $n=gi(),Cee=MQ(),Nst=AE(),qst=CE(),kst={"Content-Type":"application/x-www-form-urlencoded"};function Ree(e,t){!$n.isUndefined(e)&&$n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Pst(){var e;return typeof XMLHttpRequest<"u"?e=nee():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Aee()),e}function Dst(e,t,r){if($n.isString(e))try{return(t||JSON.parse)(e),$n.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ME={transitional:qst,adapter:Pst(),transformRequest:[function(t,r){return Cee(r,"Accept"),Cee(r,"Content-Type"),$n.isFormData(t)||$n.isArrayBuffer(t)||$n.isBuffer(t)||$n.isStream(t)||$n.isFile(t)||$n.isBlob(t)?t:$n.isArrayBufferView(t)?t.buffer:$n.isURLSearchParams(t)?(Ree(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):$n.isObject(t)||r&&r["Content-Type"]==="application/json"?(Ree(r,"application/json"),Dst(t)):t}],transformResponse:[function(t){var r=this.transitional||ME.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&$n.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Nst(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$n.forEach(["delete","get","head"],function(t){ME.headers[t]={}});$n.forEach(["post","put","patch"],function(t){ME.headers[t]=$n.merge(kst)});Oee.exports=ME});var Nee=m((ahr,Iee)=>{"use strict";var Lst=gi(),Fst=jE();Iee.exports=function(t,r,n){var i=this||Fst;return Lst.forEach(n,function(o){t=o.call(i,t,r)}),t}});var tk=m((uhr,qee)=>{"use strict";qee.exports=function(t){return!!(t&&t.__CANCEL__)}});var Dee=m((chr,Pee)=>{"use strict";var kee=gi(),rk=Nee(),Mst=tk(),jst=jE(),Bst=mh();function nk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bst("canceled")}Pee.exports=function(t){nk(t),t.headers=t.headers||{},t.data=rk.call(t,t.data,t.headers,t.transformRequest),t.headers=kee.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),kee.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||jst.adapter;return r(t).then(function(i){return nk(t),i.data=rk.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Mst(i)||(nk(t),i&&i.response&&(i.response.data=rk.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var ik=m((lhr,Lee)=>{"use strict";var ws=gi();Lee.exports=function(t,r){r=r||{};var n={};function i(f,p){return ws.isPlainObject(f)&&ws.isPlainObject(p)?ws.merge(f,p):ws.isPlainObject(p)?ws.merge({},p):ws.isArray(p)?p.slice():p}function s(f){if(ws.isUndefined(r[f])){if(!ws.isUndefined(t[f]))return i(void 0,t[f])}else return i(t[f],r[f])}function o(f){if(!ws.isUndefined(r[f]))return i(void 0,r[f])}function a(f){if(ws.isUndefined(r[f])){if(!ws.isUndefined(t[f]))return i(void 0,t[f])}else return i(void 0,r[f])}function u(f){if(f in r)return i(t[f],r[f]);if(f in t)return i(void 0,t[f])}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return ws.forEach(Object.keys(t).concat(Object.keys(r)),function(p){var h=c[p]||s,g=h(p);ws.isUndefined(g)&&h!==u||(n[p]=g)}),n}});var jee=m((fhr,Mee)=>{"use strict";var Ust=LE().version,sk={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){sk[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Fee={};sk.transitional=function(t,r,n){function i(s,o){return"[Axios v"+Ust+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return function(s,o,a){if(t===!1)throw new Error(i(o," has been removed"+(r?" in "+r:"")));return r&&!Fee[o]&&(Fee[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,o,a):!0}};function Wst(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],o=t[s];if(o){var a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Mee.exports={assertOptions:Wst,validators:sk}});var zee=m((phr,$ee)=>{"use strict";var Wee=gi(),Hst=SE(),Bee=LQ(),Uee=Dee(),BE=ik(),Hee=jee(),_h=Hee.validators;function o0(e){this.defaults=e,this.interceptors={request:new Bee,response:new Bee}}o0.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=BE(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&Hee.assertOptions(n,{silentJSONParsing:_h.transitional(_h.boolean),forcedJSONParsing:_h.transitional(_h.boolean),clarifyTimeoutError:_h.transitional(_h.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(s=s&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});var o=[];this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});var a;if(!s){var u=[Uee,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(o),a=Promise.resolve(r);u.length;)a=a.then(u.shift(),u.shift());return a}for(var c=r;i.length;){var f=i.shift(),p=i.shift();try{c=f(c)}catch(h){p(h);break}}try{a=Uee(c)}catch(h){return Promise.reject(h)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};o0.prototype.getUri=function(t){return t=BE(this.defaults,t),Hst(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Wee.forEach(["delete","get","head","options"],function(t){o0.prototype[t]=function(r,n){return this.request(BE(n||{},{method:t,url:r,data:(n||{}).data}))}});Wee.forEach(["post","put","patch"],function(t){o0.prototype[t]=function(r,n,i){return this.request(BE(i||{},{method:t,url:r,data:n}))}});$ee.exports=o0});var Vee=m((dhr,Gee)=>{"use strict";var $st=mh();function bh(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;this.promise.then(function(n){if(r._listeners){var i,s=r._listeners.length;for(i=0;i<s;i++)r._listeners[i](n);r._listeners=null}}),this.promise.then=function(n){var i,s=new Promise(function(o){r.subscribe(o),i=o}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i){r.reason||(r.reason=new $st(i),t(r.reason))})}bh.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};bh.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};bh.prototype.unsubscribe=function(t){if(this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};bh.source=function(){var t,r=new bh(function(i){t=i});return{token:r,cancel:t}};Gee.exports=bh});var Xee=m((hhr,Kee)=>{"use strict";Kee.exports=function(t){return function(n){return t.apply(null,n)}}});var Zee=m((mhr,Yee)=>{"use strict";var zst=gi();Yee.exports=function(t){return zst.isObject(t)&&t.isAxiosError===!0}});var ete=m((ghr,ok)=>{"use strict";var Jee=gi(),Gst=M2(),UE=zee(),Vst=ik(),Kst=jE();function Qee(e){var t=new UE(e),r=Gst(UE.prototype.request,t);return Jee.extend(r,UE.prototype,t),Jee.extend(r,t),r.create=function(i){return Qee(Vst(e,i))},r}var ya=Qee(Kst);ya.Axios=UE;ya.Cancel=mh();ya.CancelToken=Vee();ya.isCancel=tk();ya.VERSION=LE().version;ya.all=function(t){return Promise.all(t)};ya.spread=Xee();ya.isAxiosError=Zee();ok.exports=ya;ok.exports.default=ya});var WE=m((vhr,tte)=>{tte.exports=ete()});var nte=m((yhr,rte)=>{"use strict";var Xst=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);rte.exports=e=>!Xst.has(e&&e.code)});function ite(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(c){r(c);return}a.done?t(u):Promise.resolve(u).then(n,i)}function ute(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){ite(s,n,i,o,a,"next",u)}function a(u){ite(s,n,i,o,a,"throw",u)}o(void 0)})}}function ste(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ote(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ste(Object(r),!0).forEach(function(n){Yst(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ste(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yst(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lte(e){return!e.response&&!!e.code&&e.code!=="ECONNABORTED"&&(0,cte.default)(e)}function ck(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status>=500&&e.response.status<=599)}function Jst(e){return e.config?ck(e)&&fte.indexOf(e.config.method)!==-1:!1}function pte(e){return e.config?ck(e)&&Zst.indexOf(e.config.method)!==-1:!1}function dte(e){return lte(e)||pte(e)}function Qst(){return 0}function eot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=Math.pow(2,e)*100,r=t*.2*Math.random();return t+r}function ate(e){var t=e[ak]||{};return t.retryCount=t.retryCount||0,e[ak]=t,t}function tot(e,t){return ote(ote({},t),e[ak])}function rot(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}function not(e,t,r,n){return uk.apply(this,arguments)}function uk(){return uk=ute(function*(e,t,r,n){var i=r.retryCount<e&&t(n);if(typeof i=="object")try{var s=yield i;return s!==!1}catch{return!1}return i}),uk.apply(this,arguments)}function ko(e,t){e.interceptors.request.use(r=>{var n=ate(r);return n.lastRequestTime=Date.now(),r}),e.interceptors.response.use(null,function(){var r=ute(function*(n){var{config:i}=n;if(!i)return Promise.reject(n);var{retries:s=3,retryCondition:o=dte,retryDelay:a=Qst,shouldResetTimeout:u=!1,onRetry:c=()=>{}}=tot(i,t),f=ate(i);if(yield not(s,o,f,n)){f.retryCount+=1;var p=a(f.retryCount,n);if(rot(e,i),!u&&i.timeout&&f.lastRequestTime){var h=Date.now()-f.lastRequestTime,g=i.timeout-h-p;if(g<=0)return Promise.reject(n);i.timeout=g}return i.transformRequest=[v=>v],c(f.retryCount,n,i),new Promise(v=>setTimeout(()=>v(e(i)),p))}return Promise.reject(n)});return function(n){return r.apply(this,arguments)}}())}var cte,ak,fte,Zst,hte=ye(()=>{cte=de(nte(),1);ak="axios-retry";fte=["get","head","options"],Zst=fte.concat(["put","delete"]);ko.isNetworkError=lte;ko.isSafeRequestError=Jst;ko.isIdempotentRequestError=pte;ko.isNetworkOrIdempotentRequestError=dte;ko.exponentialDelay=eot;ko.isRetryableError=ck});var yte=m((_hr,vte)=>{"use strict";vte.exports=gte;var{toString:iot}=Object.prototype,lk=Symbol("circular-ref-tag"),fk=Symbol("pino-raw-err-ref"),mte=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[fk]},set:function(e){this[fk]=e}}});Object.defineProperty(mte,fk,{writable:!0,value:{}});function gte(e){if(!(e instanceof Error))return e;e[lk]=void 0;let t=Object.create(mte);t.type=iot.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack;for(let r in e)if(t[r]===void 0){let n=e[r];n instanceof Error?n.hasOwnProperty(lk)||(t[r]=gte(n)):t[r]=n}return delete e[lk],t.raw=e,t}});var wte=m((bhr,bte)=>{"use strict";bte.exports={mapHttpRequest:sot,reqSerializer:_te};var pk=Symbol("pino-raw-req-ref"),xte=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[pk]},set:function(e){this[pk]=e}}});Object.defineProperty(xte,pk,{writable:!0,value:{}});function _te(e){let t=e.info||e.socket,r=Object.create(xte);return r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl?(r.url=e.originalUrl,r.query=e.query,r.params=e.params):r.url=e.path||(e.url?e.url.path||e.url:void 0),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function sot(e){return{req:_te(e)}}});var Ate=m((whr,Tte)=>{"use strict";Tte.exports={mapHttpResponse:oot,resSerializer:Ste};var dk=Symbol("pino-raw-res-ref"),Ete=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[dk]},set:function(e){this[dk]=e}}});Object.defineProperty(Ete,dk,{writable:!0,value:{}});function Ste(e){let t=Object.create(Ete);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function oot(e){return{res:Ste(e)}}});var mk=m((Ehr,Cte)=>{"use strict";var hk=yte(),HE=wte(),$E=Ate();Cte.exports={err:hk,mapHttpRequest:HE.mapHttpRequest,mapHttpResponse:$E.mapHttpResponse,req:HE.reqSerializer,res:$E.resSerializer,wrapErrorSerializer:function(t){return t===hk?t:function(n){return t(hk(n))}},wrapRequestSerializer:function(t){return t===HE.reqSerializer?t:function(n){return t(HE.reqSerializer(n))}},wrapResponseSerializer:function(t){return t===$E.resSerializer?t:function(n){return t($E.resSerializer(n))}}}});var Ote=m((Shr,Rte)=>{"use strict";var{createContext:aot,runInContext:uot}=require("vm");Rte.exports=cot;function cot(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=n=>`fast-redact \u2013 Invalid path (${n})`}=e;return function({paths:i}){i.forEach(s=>{if(typeof s!="string")throw Error(t());try{if(/〇/.test(s))throw Error();let o=new Proxy({},{get:()=>o,set:()=>{throw Error()}}),a=(s[0]==="["?"":".")+s.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(a)||/\/\*/.test(a))throw Error();uot(`
|
|
21
21
|
(function () {
|
|
22
22
|
'use strict'
|
|
23
23
|
o${a}
|
|
@@ -122,7 +122,7 @@ Url: `+sT(e)),!0)}uy._shouldDropEvent=ode;function DAt(e,t){return!t||!t.length?
|
|
|
122
122
|
`;n.auth&&(o["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:c,port:f,secureEndpoint:p}=r;SCt(f,p)||(c+=`:${f}`),o.Host=c,o.Connection="close";for(let w of Object.keys(o))u+=`${w}: ${o[w]}\r
|
|
123
123
|
`;let h=wCt.default(s);s.write(`${u}\r
|
|
124
124
|
`);let{statusCode:g,buffered:v}=yield h;if(g===200){if(t.once("socket",ECt),r.secureEndpoint){py("Upgrading socket connection to TLS");let w=r.servername||r.host;return xde.default.connect(Object.assign(Object.assign({},ACt(r,"host","hostname","path","port")),{socket:s,servername:w}))}return s}s.destroy();let _=new yde.default.Socket({writable:!1});return _.readable=!0,t.once("socket",w=>{py("replaying proxy buffer for failed request"),xCt.default(w.listenerCount("data")>0),w.push(v),w.push(null)}),_})}};cp.default=pM;function ECt(e){e.resume()}function SCt(e,t){return!!(!t&&e===80||t&&e===443)}function TCt(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function ACt(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}});var cT=m((mM,bde)=>{"use strict";var CCt=mM&&mM.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},dM=CCt(_de());function hM(e){return new dM.default(e)}(function(e){e.HttpsProxyAgent=dM.default,e.prototype=dM.default.prototype})(hM||(hM={}));bde.exports=hM});var Sde=m(gM=>{Object.defineProperty(gM,"__esModule",{value:!0});var RCt=(Yn(),Et(Xn)),wde=Sn(),Ede=require("http"),OCt=aT(),ICt=function(e){RCt.__extends(t,e);function t(r){var n=e.call(this,r)||this;n.options=r;var i=n._getProxy("http");return n.module=Ede,n.client=i?new(cT())(i):new Ede.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),n}return t.prototype.sendEvent=function(r){return this._send(wde.eventToSentryRequest(r,this._api),r)},t.prototype.sendSession=function(r){return this._send(wde.sessionToSentryRequest(r,this._api),r)},t}(OCt.BaseTransport);gM.HTTPTransport=ICt});var Cde=m(vM=>{Object.defineProperty(vM,"__esModule",{value:!0});var NCt=(Yn(),Et(Xn)),Tde=Sn(),Ade=require("https"),qCt=aT(),kCt=function(e){NCt.__extends(t,e);function t(r){var n=e.call(this,r)||this;n.options=r;var i=n._getProxy("https");return n.module=Ade,n.client=i?new(cT())(i):new Ade.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),n}return t.prototype.sendEvent=function(r){return this._send(Tde.eventToSentryRequest(r,this._api),r)},t.prototype.sendSession=function(r){return this._send(Tde.sessionToSentryRequest(r,this._api),r)},t}(qCt.BaseTransport);vM.HTTPSTransport=kCt});var Ode=m(yM=>{Object.defineProperty(yM,"__esModule",{value:!0});var PCt=Sn(),DCt=Ut(),LCt=require("http"),FCt=require("https"),Rde=require("url");function MCt(e){var t,r=new Rde.URL(e.url),n=r.protocol==="https:",i=jCt(r,e.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),s=n?FCt:LCt,o=i?new(cT())(i):new s.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),a=BCt(e,(t=e.httpModule,t??s),o);return PCt.createTransport({bufferSize:e.bufferSize},a)}yM.makeNodeTransport=MCt;function jCt(e,t){var r=process.env.no_proxy,n=r&&r.split(",").some(function(i){return e.host.endsWith(i)||e.hostname.endsWith(i)});if(!n)return t}function BCt(e,t,r){var n=new Rde.URL(e.url),i=n.hostname,s=n.pathname,o=n.port,a=n.protocol,u=n.search;return function(f){return new Promise(function(p,h){var g=t.request({method:"POST",agent:r,headers:e.headers,hostname:i,path:""+s+u,port:o,protocol:a,ca:e.caCerts},function(v){var _,w,y;v.on("data",function(){}),v.on("end",function(){});var b=(_=v.statusCode,_??500),S=DCt.eventStatusFromHttpCode(b);v.setEncoding("utf8");var T=(w=v.headers["retry-after"],w??null),R=(y=v.headers["x-sentry-rate-limits"],y??null);p({headers:{"retry-after":T,"x-sentry-rate-limits":Array.isArray(R)?R[0]:R},reason:S,statusCode:b})});g.on("error",h),g.end(f.body)})}}});var xM=m(ym=>{Object.defineProperty(ym,"__esModule",{value:!0});var UCt=aT();ym.BaseTransport=UCt.BaseTransport;var WCt=Sde();ym.HTTPTransport=WCt.HTTPTransport;var HCt=Cde();ym.HTTPSTransport=HCt.HTTPSTransport;var $Ct=Ode();ym.makeNodeTransport=$Ct.makeNodeTransport});var SM=m(EM=>{Object.defineProperty(EM,"__esModule",{value:!0});var xm=(Yn(),Et(Xn)),_M=Sn(),zCt=rm(),bM=Ut(),Ide=rM(),wM=xM(),GCt=function(e){xm.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.eventFromException=function(r,n){return bM.resolvedSyncPromise(Ide.eventFromUnknownInput(r,n))},t.prototype.eventFromMessage=function(r,n,i){return n===void 0&&(n=zCt.Severity.Info),bM.resolvedSyncPromise(Ide.eventFromMessage(r,n,i,this._options.attachStacktrace))},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var r=bM.makeDsn(this._options.dsn),n=xm.__assign(xm.__assign(xm.__assign(xm.__assign(xm.__assign({},this._options.transportOptions),this._options.httpProxy&&{httpProxy:this._options.httpProxy}),this._options.httpsProxy&&{httpsProxy:this._options.httpsProxy}),this._options.caCerts&&{caCerts:this._options.caCerts}),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});if(this._options.transport)return new this._options.transport(n);var i=_M.initAPIDetails(n.dsn,n._metadata,n.tunnel),s=_M.getEnvelopeEndpointWithUrlEncodedAuth(i.dsn,i.tunnel);return this._newTransport=wM.makeNodeTransport({url:s,headers:n.headers,proxy:n.httpProxy,caCerts:n.caCerts}),r.protocol==="http"?new wM.HTTPTransport(n):new wM.HTTPSTransport(n)},t}(_M.BaseBackend);EM.NodeBackend=GCt});var CM=m(AM=>{Object.defineProperty(AM,"__esModule",{value:!0});var VCt=(Yn(),Et(Xn)),TM=Sn(),KCt=Oa(),Nde=Ut(),XCt=SM(),qde=vl(),YCt=function(e){VCt.__extends(t,e);function t(r){var n=this;return r._metadata=r._metadata||{},r._metadata.sdk=r._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:TM.SDK_VERSION}],version:TM.SDK_VERSION},n=e.call(this,XCt.NodeBackend,r)||this,n}return t.prototype.captureException=function(r,n,i){if(this._options.autoSessionTracking&&this._sessionFlusher&&i){var s=i.getRequestSession();s&&s.status==="ok"&&(s.status="errored")}return e.prototype.captureException.call(this,r,n,i)},t.prototype.captureEvent=function(r,n,i){if(this._options.autoSessionTracking&&this._sessionFlusher&&i){var s=r.type||"exception",o=s==="exception"&&r.exception&&r.exception.values&&r.exception.values.length>0;if(o){var a=i.getRequestSession();a&&a.status==="ok"&&(a.status="errored")}}return e.prototype.captureEvent.call(this,r,n,i)},t.prototype.close=function(r){var n;return(n=this._sessionFlusher)===null||n===void 0||n.close(),e.prototype.close.call(this,r)},t.prototype.initSessionFlusher=function(){var r=this._options,n=r.release,i=r.environment;n?this._sessionFlusher=new KCt.SessionFlusher(this.getTransport(),{release:n,environment:i}):qde.IS_DEBUG_BUILD&&Nde.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")},t.prototype._prepareEvent=function(r,n,i){return r.platform=r.platform||"node",this.getOptions().serverName&&(r.server_name=this.getOptions().serverName),e.prototype._prepareEvent.call(this,r,n,i)},t.prototype._captureRequestSession=function(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():qde.IS_DEBUG_BUILD&&Nde.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")},t}(TM.BaseClient);AM.NodeClient=YCt});var Fde=m(RM=>{Object.defineProperty(RM,"__esModule",{value:!0});var Pde=(Yn(),Et(Xn)),kde=Sn(),Dde=Ut(),ZCt=require("util"),Lde=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){var t,r;try{for(var n=Pde.__values(["debug","info","warn","error","log"]),i=n.next();!i.done;i=n.next()){var s=i.value;Dde.fill(console,s,JCt(s))}}catch(o){t={error:o}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.id="Console",e}();RM.Console=Lde;function JCt(e){return function(r){var n=Dde.severityFromString(e);return function(){kde.getCurrentHub().getIntegration(Lde)&&kde.getCurrentHub().addBreadcrumb({category:"console",level:n,message:ZCt.format.apply(void 0,arguments)},{input:Pde.__spread(arguments),level:e}),r.apply(this,arguments)}}}});var Ude=m(lp=>{Object.defineProperty(lp,"__esModule",{value:!0});var OM=(Yn(),Et(Xn)),QCt=Sn(),eRt=Ut(),Mde=require("url"),jde=eRt.parseSemver(process.versions.node);function tRt(e){var t,r=(t=QCt.getCurrentHub().getClient())===null||t===void 0?void 0:t.getDsn();return r?e.includes(r.host):!1}lp.isSentryRequest=tRt;function Bde(e){var t=e.protocol||"",r=e.hostname||e.host||"",n=!e.port||e.port===80||e.port===443?"":":"+e.port,i=e.path?e.path:"/";return t+"//"+r+n+i}lp.extractUrl=Bde;function rRt(e,t,r){var n,i,s;if(!e)return e;var o=OM.__read(e.split(" "),2),a=o[0],u=o[1];return t.host&&!t.protocol&&(t.protocol=(i=(n=r)===null||n===void 0?void 0:n.agent)===null||i===void 0?void 0:i.protocol,u=Bde(t)),!((s=u)===null||s===void 0)&&s.startsWith("///")&&(u=u.slice(2)),a+" "+u}lp.cleanSpanDescription=rRt;function IM(e){var t={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:""+(e.pathname||"")+(e.search||""),href:e.href};return e.port!==""&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=e.username+":"+e.password),t}lp.urlToOptions=IM;function nRt(e,t){var r,n,i,s,o,a,u,c,f,p;return typeof t[t.length-1]=="function"&&(f=t.pop()),typeof t[0]=="string"?p=IM(new Mde.URL(t[0])):t[0]instanceof Mde.URL?p=IM(t[0]):p=t[0],t.length===2&&(p=OM.__assign(OM.__assign({},p),t[1])),p.protocol===void 0&&(jde.major&&jde.major>8?p.protocol=((n=(r=e)===null||r===void 0?void 0:r.globalAgent)===null||n===void 0?void 0:n.protocol)||((i=p.agent)===null||i===void 0?void 0:i.protocol)||((s=p._defaultAgent)===null||s===void 0?void 0:s.protocol):p.protocol=((o=p.agent)===null||o===void 0?void 0:o.protocol)||((a=p._defaultAgent)===null||a===void 0?void 0:a.protocol)||((c=(u=e)===null||u===void 0?void 0:u.globalAgent)===null||c===void 0?void 0:c.protocol)),f?[p,f]:[p]}lp.normalizeRequestArgs=nRt});var Gde=m(qM=>{Object.defineProperty(qM,"__esModule",{value:!0});var Wde=(Yn(),Et(Xn)),NM=Sn(),_m=Ut(),iRt=vl(),dy=Ude(),Hde=_m.parseSemver(process.versions.node),zde=function(){function e(t){t===void 0&&(t={}),this.name=e.id,this._breadcrumbs=typeof t.breadcrumbs>"u"?!0:t.breadcrumbs,this._tracing=typeof t.tracing>"u"?!1:t.tracing}return e.prototype.setupOnce=function(){if(!(!this._breadcrumbs&&!this._tracing)){var t=sRt(this._breadcrumbs,this._tracing),r=require("http");if(_m.fill(r,"get",t),_m.fill(r,"request",t),Hde.major&&Hde.major>8){var n=require("https");_m.fill(n,"get",t),_m.fill(n,"request",t)}}},e.id="Http",e}();qM.Http=zde;function sRt(e,t){return function(n){return function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=this,u=dy.normalizeRequestArgs(this,s),c=u[0],f=dy.extractUrl(c);if(dy.isSentryRequest(f))return n.apply(a,u);var p,h,g=NM.getCurrentHub().getScope();if(g&&t&&(h=g.getSpan(),h)){p=h.startChild({description:(c.method||"GET")+" "+f,op:"http.client"});var v=p.toTraceparent();iRt.IS_DEBUG_BUILD&&_m.logger.log("[Tracing] Adding sentry-trace header "+v+" to outgoing request to "+f+": "),c.headers=Wde.__assign(Wde.__assign({},c.headers),{"sentry-trace":v})}return n.apply(a,u).once("response",function(_){var w=this;e&&$de("response",f,w,_),t&&p&&(_.statusCode&&p.setHttpStatus(_.statusCode),p.description=dy.cleanSpanDescription(p.description,c,w),p.finish())}).once("error",function(){var _=this;e&&$de("error",f,_),t&&p&&(p.setHttpStatus(500),p.description=dy.cleanSpanDescription(p.description,c,_),p.finish())})}}}function $de(e,t,r,n){NM.getCurrentHub().getIntegration(zde)&&NM.getCurrentHub().addBreadcrumb({category:"http",data:{method:r.method,status_code:n&&n.statusCode,url:t},type:"http"},{event:e,request:r,response:n})}});var DM=m(PM=>{Object.defineProperty(PM,"__esModule",{value:!0});var oRt=Sn(),kM=Ut(),Vde=vl(),aRt=2e3;function uRt(e){console.error(e&&e.stack?e.stack:e);var t=oRt.getCurrentHub().getClient();t===void 0&&(Vde.IS_DEBUG_BUILD&&kM.logger.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1));var r=t.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||aRt;kM.forget(t.close(n).then(function(i){i||Vde.IS_DEBUG_BUILD&&kM.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)}))}PM.logAndExitProcess=uRt});var Yde=m(LM=>{Object.defineProperty(LM,"__esModule",{value:!0});var Kde=Sn(),cRt=rm(),lRt=Ut(),fRt=vl(),Xde=DM(),pRt=function(){function e(t){t===void 0&&(t={}),this._options=t,this.name=e.id,this.handler=this._makeErrorHandler()}return e.prototype.setupOnce=function(){global.process.on("uncaughtException",this.handler.bind(this))},e.prototype._makeErrorHandler=function(){var t=this,r=2e3,n=!1,i=!1,s=!1,o;return function(a){var u=Xde.logAndExitProcess,c=Kde.getCurrentHub().getClient();if(t._options.onFatalError?u=t._options.onFatalError:c&&c.getOptions().onFatalError&&(u=c.getOptions().onFatalError),n)s?(fRt.IS_DEBUG_BUILD&&lRt.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),Xde.logAndExitProcess(a)):i||(i=!0,setTimeout(function(){s||(s=!0,u(o,a))},r));else{var f=Kde.getCurrentHub();o=a,n=!0,f.getIntegration(e)?f.withScope(function(p){p.setLevel(cRt.Severity.Fatal),f.captureException(a,{originalException:a,data:{mechanism:{handled:!1,type:"onuncaughtexception"}}}),s||(s=!0,u(a))}):s||(s=!0,u(a))}}},e.id="OnUncaughtException",e}();LM.OnUncaughtException=pRt});var Jde=m(FM=>{Object.defineProperty(FM,"__esModule",{value:!0});var dRt=Sn(),Zde=Ut(),hRt=DM(),mRt=function(){function e(t){t===void 0&&(t={mode:"warn"}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))},e.prototype.sendUnhandledPromise=function(t,r){var n=dRt.getCurrentHub();if(!n.getIntegration(e)){this._handleRejection(t);return}var i=r.domain&&r.domain.sentryContext||{};n.withScope(function(s){s.setExtra("unhandledPromiseRejection",!0),i.user&&s.setUser(i.user),i.tags&&s.setTags(i.tags),i.extra&&s.setExtras(i.extra),n.captureException(t,{originalException:r,data:{mechanism:{handled:!1,type:"onunhandledrejection"}}})}),this._handleRejection(t)},e.prototype._handleRejection=function(t){var r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";this._options.mode==="warn"?Zde.consoleSandbox(function(){console.warn(r),console.error(t&&t.stack?t.stack:t)}):this._options.mode==="strict"&&(Zde.consoleSandbox(function(){console.warn(r)}),hRt.logAndExitProcess(t))},e.id="OnUnhandledRejection",e}();FM.OnUnhandledRejection=mRt});var Qde=m(lT=>{(function(e,t){let r=typeof lT=="object"?lT:typeof e=="object"?e:{};t(r),typeof define=="function"&&define.amd&&define("lru",r)})(lT,function(e){let t=Symbol("newer"),r=Symbol("older");function n(u,c){typeof u!="number"&&(c=u,u=0),this.size=0,this.limit=u,this.oldest=this.newest=void 0,this._keymap=new Map,c&&(this.assign(c),u<1&&(this.limit=this.size))}e.LRUMap=n;function i(u,c){this.key=u,this.value=c,this[t]=void 0,this[r]=void 0}n.prototype._markEntryAsUsed=function(u){u!==this.newest&&(u[t]&&(u===this.oldest&&(this.oldest=u[t]),u[t][r]=u[r]),u[r]&&(u[r][t]=u[t]),u[t]=void 0,u[r]=this.newest,this.newest&&(this.newest[t]=u),this.newest=u)},n.prototype.assign=function(u){let c,f=this.limit||Number.MAX_VALUE;this._keymap.clear();let p=u[Symbol.iterator]();for(let h=p.next();!h.done;h=p.next()){let g=new i(h.value[0],h.value[1]);if(this._keymap.set(g.key,g),c?(c[t]=g,g[r]=c):this.oldest=g,c=g,f--==0)throw new Error("overflow")}this.newest=c,this.size=this._keymap.size},n.prototype.get=function(u){var c=this._keymap.get(u);if(c)return this._markEntryAsUsed(c),c.value},n.prototype.set=function(u,c){var f=this._keymap.get(u);return f?(f.value=c,this._markEntryAsUsed(f),this):(this._keymap.set(u,f=new i(u,c)),this.newest?(this.newest[t]=f,f[r]=this.newest):this.oldest=f,this.newest=f,++this.size,this.size>this.limit&&this.shift(),this)},n.prototype.shift=function(){var u=this.oldest;if(u)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[r]=void 0):(this.oldest=void 0,this.newest=void 0),u[t]=u[r]=void 0,this._keymap.delete(u.key),--this.size,[u.key,u.value]},n.prototype.find=function(u){let c=this._keymap.get(u);return c?c.value:void 0},n.prototype.has=function(u){return this._keymap.has(u)},n.prototype.delete=function(u){var c=this._keymap.get(u);if(c)return this._keymap.delete(c.key),c[t]&&c[r]?(c[r][t]=c[t],c[t][r]=c[r]):c[t]?(c[t][r]=void 0,this.oldest=c[t]):c[r]?(c[r][t]=void 0,this.newest=c[r]):this.oldest=this.newest=void 0,this.size--,c.value},n.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()};function s(u){this.entry=u}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let u=this.entry;return u?(this.entry=u[t],{done:!1,value:[u.key,u.value]}):{done:!0,value:void 0}};function o(u){this.entry=u}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let u=this.entry;return u?(this.entry=u[t],{done:!1,value:u.key}):{done:!0,value:void 0}};function a(u){this.entry=u}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let u=this.entry;return u?(this.entry=u[t],{done:!1,value:u.value}):{done:!0,value:void 0}},n.prototype.keys=function(){return new o(this.oldest)},n.prototype.values=function(){return new a(this.oldest)},n.prototype.entries=function(){return this},n.prototype[Symbol.iterator]=function(){return new s(this.oldest)},n.prototype.forEach=function(u,c){typeof c!="object"&&(c=this);let f=this.oldest;for(;f;)u.call(c,f.value,f.key,this),f=f[t]},n.prototype.toJSON=function(){for(var u=new Array(this.size),c=0,f=this.oldest;f;)u[c++]={key:f.key,value:f.value},f=f[t];return u},n.prototype.toString=function(){for(var u="",c=this.oldest;c;)u+=String(c.key)+":"+c.value,c=c[t],c&&(u+=" < ");return u}})});var jM=m(fT=>{Object.defineProperty(fT,"__esModule",{value:!0});var xl=(Yn(),Et(Xn)),gRt=Sn(),vRt=Ut(),yRt=require("fs"),xRt=Qde(),MM=new xRt.LRUMap(100),_Rt=7;function bRt(e){return new Promise(function(t,r){yRt.readFile(e,"utf8",function(n,i){n?r(n):t(i)})})}function wRt(){MM.clear()}fT.resetFileContentCache=wRt;var ERt=function(){function e(t){t===void 0&&(t={}),this._options=t,this.name=e.id}return Object.defineProperty(e.prototype,"_contextLines",{get:function(){var t,r;if(this._options.frameContextLines===void 0){var n=(t=gRt.getCurrentHub().getClient())===null||t===void 0?void 0:t.getOptions();this._options.frameContextLines=(r=n)===null||r===void 0?void 0:r.frameContextLines}return this._options.frameContextLines!==void 0?this._options.frameContextLines:_Rt},enumerable:!0,configurable:!0}),e.prototype.setupOnce=function(t){var r=this;t(function(n){return r.addSourceContext(n)})},e.prototype.addSourceContext=function(t){var r,n;return xl.__awaiter(this,void 0,void 0,function(){var i,s,o,a,u,c;return xl.__generator(this,function(f){switch(f.label){case 0:if(!(this._contextLines>0&&(!((r=t.exception)===null||r===void 0)&&r.values)))return[3,8];f.label=1;case 1:f.trys.push([1,6,7,8]),i=xl.__values(t.exception.values),s=i.next(),f.label=2;case 2:return s.done?[3,5]:(o=s.value,!((n=o.stacktrace)===null||n===void 0)&&n.frames?[4,this.addSourceContextToFrames(o.stacktrace.frames)]:[3,4]);case 3:f.sent(),f.label=4;case 4:return s=i.next(),[3,2];case 5:return[3,8];case 6:return a=f.sent(),u={error:a},[3,8];case 7:try{s&&!s.done&&(c=i.return)&&c.call(i)}finally{if(u)throw u.error}return[7];case 8:return[2,t]}})})},e.prototype.addSourceContextToFrames=function(t){return xl.__awaiter(this,void 0,void 0,function(){var r,n,i,s,o,a,u,c,f;return xl.__generator(this,function(p){switch(p.label){case 0:r=this._contextLines,p.label=1;case 1:p.trys.push([1,6,7,8]),n=xl.__values(t),i=n.next(),p.label=2;case 2:return i.done?[3,5]:(s=i.value,s.filename&&s.context_line===void 0?[4,SRt(s.filename)]:[3,4]);case 3:if(o=p.sent(),o)try{a=o.split(`
|
|
125
|
-
`),vRt.addContextToFrame(a,s,r)}catch{}p.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return u=p.sent(),c={error:u},[3,8];case 7:try{i&&!i.done&&(f=n.return)&&f.call(n)}finally{if(c)throw c.error}return[7];case 8:return[2]}})})},e.id="ContextLines",e}();fT.ContextLines=ERt;function SRt(e){return xl.__awaiter(this,void 0,void 0,function(){var t,r,n;return xl.__generator(this,function(i){switch(i.label){case 0:if(t=MM.get(e),t!==void 0)return[2,t];r=null,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,bRt(e)];case 2:return r=i.sent(),[3,4];case 3:return n=i.sent(),[3,4];case 4:return MM.set(e,r),[2,r]}})})}});var ehe=m(UM=>{Object.defineProperty(UM,"__esModule",{value:!0});var pT=(Yn(),Et(Xn)),BM=Sn(),dT=Ut(),TRt=rM(),ARt=jM(),CRt="cause",RRt=5,ORt=function(){function e(t){t===void 0&&(t={}),this.name=e.id,this._key=t.key||CRt,this._limit=t.limit||RRt}return e.prototype.setupOnce=function(){BM.addGlobalEventProcessor(function(t,r){var n=BM.getCurrentHub().getIntegration(e);if(n){var i=n._handler&&n._handler.bind(n);return typeof i=="function"?i(t,r):t}return t})},e.prototype._handler=function(t,r){var n=this;return!t.exception||!t.exception.values||!r||!dT.isInstanceOf(r.originalException,Error)?dT.resolvedSyncPromise(t):new dT.SyncPromise(function(i){n._walkErrorTree(r.originalException,n._key).then(function(s){t&&t.exception&&t.exception.values&&(t.exception.values=pT.__spread(s,t.exception.values)),i(t)}).then(null,function(){i(t)})})},e.prototype._walkErrorTree=function(t,r,n){n===void 0&&(n=[]);var i;return pT.__awaiter(this,void 0,void 0,function(){var s,o,a=this;return pT.__generator(this,function(u){switch(u.label){case 0:return!dT.isInstanceOf(t[r],Error)||n.length+1>=this._limit?[2,Promise.resolve(n)]:(s=TRt.exceptionFromError(t[r]),o=BM.getCurrentHub().getIntegration(ARt.ContextLines),o&&(!((i=s.stacktrace)===null||i===void 0)&&i.frames)?[4,o.addSourceContextToFrames(s.stacktrace.frames)]:[3,2]);case 1:u.sent(),u.label=2;case 2:return[2,new Promise(function(c,f){a._walkErrorTree(t[r],r,pT.__spread([s],n)).then(c).then(null,function(){f()})})]}})})},e.id="LinkedErrors",e}();UM.LinkedErrors=ORt});var ihe=m(HM=>{Object.defineProperty(HM,"__esModule",{value:!0});var the=(Yn(),Et(Xn)),rhe=require("fs"),nhe=require("path"),WM;function IRt(){try{return require.cache?Object.keys(require.cache):[]}catch{return[]}}function NRt(){var e=require.main&&require.main.paths||[],t=IRt(),r={},n={};return t.forEach(function(i){var s=i,o=function(){var a=s;if(s=nhe.dirname(a),!(!s||a===s||n[a])){if(e.indexOf(s)<0)return o();var u=nhe.join(a,"package.json");if(n[a]=!0,!rhe.existsSync(u))return o();try{var c=JSON.parse(rhe.readFileSync(u,"utf8"));r[c.name]=c.version}catch{}}};o()}),r}var qRt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){var n=this;t(function(i){return r().getIntegration(e)?the.__assign(the.__assign({},i),{modules:n._getModules()}):i})},e.prototype._getModules=function(){return WM||(WM=NRt()),WM},e.id="Modules",e}();HM.Modules=qRt});var $M=m(Wu=>{Object.defineProperty(Wu,"__esModule",{value:!0});var kRt=Fde();Wu.Console=kRt.Console;var PRt=Gde();Wu.Http=PRt.Http;var DRt=Yde();Wu.OnUncaughtException=DRt.OnUncaughtException;var LRt=Jde();Wu.OnUnhandledRejection=LRt.OnUnhandledRejection;var FRt=ehe();Wu.LinkedErrors=FRt.LinkedErrors;var MRt=ihe();Wu.Modules=MRt.Modules;var jRt=jM();Wu.ContextLines=jRt.ContextLines});var GM=m(Na=>{Object.defineProperty(Na,"__esModule",{value:!0});var hy=(Yn(),Et(Xn)),_l=Sn(),she=Oa(),zM=Ut(),BRt=require("domain"),URt=CM(),ohe=vl(),bm=$M();Na.defaultIntegrations=[new _l.Integrations.InboundFilters,new _l.Integrations.FunctionToString,new bm.ContextLines,new bm.Console,new bm.Http,new bm.OnUncaughtException,new bm.OnUnhandledRejection,new bm.LinkedErrors];function WRt(e){e===void 0&&(e={});var t,r=she.getMainCarrier(),n=((t=r.__SENTRY__)===null||t===void 0?void 0:t.integrations)||[];if(e.defaultIntegrations=e.defaultIntegrations===!1?[]:hy.__spread(Array.isArray(e.defaultIntegrations)?e.defaultIntegrations:Na.defaultIntegrations,n),e.dsn===void 0&&process.env.SENTRY_DSN&&(e.dsn=process.env.SENTRY_DSN),e.tracesSampleRate===void 0&&process.env.SENTRY_TRACES_SAMPLE_RATE){var i=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(i)&&(e.tracesSampleRate=i)}if(e.release===void 0){var s=ahe();s!==void 0?e.release=s:e.autoSessionTracking=!1}e.environment===void 0&&process.env.SENTRY_ENVIRONMENT&&(e.environment=process.env.SENTRY_ENVIRONMENT),e.autoSessionTracking===void 0&&e.dsn!==void 0&&(e.autoSessionTracking=!0),BRt.active&&she.setHubOnCarrier(r,_l.getCurrentHub()),_l.initAndBind(URt.NodeClient,e),e.autoSessionTracking&&VRt()}Na.init=WRt;function HRt(){return _l.getCurrentHub().lastEventId()}Na.lastEventId=HRt;function $Rt(e){return hy.__awaiter(this,void 0,void 0,function(){var t;return hy.__generator(this,function(r){return t=_l.getCurrentHub().getClient(),t?[2,t.flush(e)]:(ohe.IS_DEBUG_BUILD&&zM.logger.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])})})}Na.flush=$Rt;function zRt(e){return hy.__awaiter(this,void 0,void 0,function(){var t;return hy.__generator(this,function(r){return t=_l.getCurrentHub().getClient(),t?[2,t.close(e)]:(ohe.IS_DEBUG_BUILD&&zM.logger.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])})})}Na.close=zRt;function GRt(e){if(e===void 0)return!1;var t=e&&e.getOptions();return t&&t.autoSessionTracking!==void 0?t.autoSessionTracking:!1}Na.isAutoSessionTrackingEnabled=GRt;function ahe(e){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;var t=zM.getGlobalObject();return t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id?t.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||e}Na.getSentryRelease=ahe;function VRt(){var e=_l.getCurrentHub();e.startSession(),process.on("beforeExit",function(){var t,r=(t=e.getScope())===null||t===void 0?void 0:t.getSession(),n=["exited","crashed"];r&&!n.includes(r.status)&&e.endSession()})}});var che=m(KM=>{Object.defineProperty(KM,"__esModule",{value:!0});var uhe=(Yn(),Et(Xn)),hT=require("fs"),VM=require("path");function KRt(e){var t=VM.resolve(e);if(!hT.existsSync(t))throw new Error("Cannot read contents of "+t+". Directory does not exist.");if(!hT.statSync(t).isDirectory())throw new Error("Cannot read contents of "+t+", because it is not a directory.");var r=function(n){return hT.readdirSync(n).reduce(function(i,s){var o=VM.join(n,s);return hT.statSync(o).isDirectory()?uhe.__spread(i,r(o)):uhe.__spread(i,[o])},[])};return r(t).map(function(n){return VM.relative(t,n)})}KM.deepReadDirSync=KRt});var lhe=m(XM=>{"use strict";XM.parse=ZRt;XM.serialize=JRt;var XRt=decodeURIComponent,YRt=encodeURIComponent,mT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function ZRt(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},i=e.split(";"),s=n.decode||XRt,o=0;o<i.length;o++){var a=i[o],u=a.indexOf("=");if(!(u<0)){var c=a.substring(0,u).trim();if(r[c]==null){var f=a.substring(u+1,a.length).trim();f[0]==='"'&&(f=f.slice(1,-1)),r[c]=QRt(f,s)}}}return r}function JRt(e,t,r){var n=r||{},i=n.encode||YRt;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!mT.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!mT.test(s))throw new TypeError("argument val is invalid");var o=e+"="+s;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(n.domain){if(!mT.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!mT.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function QRt(e,t){try{return t(e)}catch{return e}}});var phe=m(dp=>{Object.defineProperty(dp,"__esModule",{value:!0});var qa=(Yn(),Et(Xn)),fp=Sn(),pp=Ut(),eOt=lhe(),tOt=require("domain"),rOt=require("os"),nOt=require("url"),iOt=vl(),my=GM();function sOt(){return function(t,r,n){var i;t.headers&&pp.isString(t.headers["sentry-trace"])&&(i=pp.extractTraceparentData(t.headers["sentry-trace"]));var s=fp.startTransaction(qa.__assign({name:gT(t,{path:!0,method:!0}),op:"http.server"},i),{request:vT(t)});fp.getCurrentHub().configureScope(function(o){o.setSpan(s)}),r.__sentry_transaction=s,r.once("finish",function(){setImmediate(function(){oOt(s,t),s.setHttpStatus(r.statusCode),s.finish()})}),n()}}dp.tracingHandler=sOt;function oOt(e,t){e&&(e.name=gT(t,{path:!0,method:!0}),e.setData("url",t.originalUrl),e.setData("baseUrl",t.baseUrl),e.setData("query",t.query))}function gT(e,t){t===void 0&&(t={});var r,n=(r=e.method)===null||r===void 0?void 0:r.toUpperCase(),i="";e.route?i=""+(e.baseUrl||"")+e.route.path:(e.originalUrl||e.url)&&(i=pp.stripUrlQueryAndFragment(e.originalUrl||e.url||""));var s="";return t.method&&n&&(s+=n),t.method&&t.path&&(s+=" "),t.path&&i&&(s+=i),s}function aOt(e,t){var r;switch(t){case"path":return gT(e,{path:!0});case"handler":return((r=e.route)===null||r===void 0?void 0:r.stack[0].name)||"<anonymous>";case"methodPath":default:return gT(e,{path:!0,method:!0})}}var uOt=["id","username","email"];function cOt(e,t){var r={},n=Array.isArray(t)?t:uOt;return n.forEach(function(i){e&&i in e&&(r[i]=e[i])}),r}var lOt=["cookies","data","headers","method","query_string","url"];function vT(e,t){t===void 0&&(t=lOt);var r={},n=e.headers||e.header||{},i=e.method,s=e.hostname||e.host||n.host||"<no host>",o=e.protocol==="https"||e.secure||(e.socket||{}).encrypted?"https":"http",a=e.originalUrl||e.url||"",u=o+"://"+s+a;return t.forEach(function(c){switch(c){case"headers":r.headers=n;break;case"method":r.method=i;break;case"url":r.url=u;break;case"cookies":r.cookies=e.cookies||eOt.parse(n.cookie||"");break;case"query_string":r.query_string=e.query||nOt.parse(a||"",!1).query;break;case"data":if(i==="GET"||i==="HEAD")break;e.body!==void 0&&(r.data=pp.isString(e.body)?e.body:JSON.stringify(pp.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,c)&&(r[c]=e[c])}}),r}dp.extractRequestData=vT;function fhe(e,t,r){if(r=qa.__assign({ip:!1,request:!0,serverName:!0,transaction:!0,user:!0,version:!0},r),r.version&&(e.contexts=qa.__assign(qa.__assign({},e.contexts),{runtime:{name:"node",version:global.process.version}})),r.request){var n=Array.isArray(r.request)?vT(t,r.request):vT(t);e.request=qa.__assign(qa.__assign({},e.request),n)}if(r.serverName&&!e.server_name&&(e.server_name=global.process.env.SENTRY_NAME||rOt.hostname()),r.user){var i=t.user&&pp.isPlainObject(t.user)?cOt(t.user,r.user):{};Object.keys(i)&&(e.user=qa.__assign(qa.__assign({},e.user),i))}if(r.ip){var s=t.ip||t.connection&&t.connection.remoteAddress;s&&(e.user=qa.__assign(qa.__assign({},e.user),{ip_address:s}))}return r.transaction&&!e.transaction&&(e.transaction=aOt(t,r.transaction)),e}dp.parseRequest=fhe;function fOt(e){var t=fp.getCurrentHub(),r=t.getClient();if(r&&my.isAutoSessionTrackingEnabled(r)){r.initSessionFlusher();var n=t.getScope();n&&n.getSession()&&n.setSession()}return function(s,o,a){if(e&&e.flushTimeout&&e.flushTimeout>0){var u=o.end;o.end=function(f,p,h){var g=this;my.flush(e.flushTimeout).then(function(){u.call(g,f,p,h)}).then(null,function(v){iOt.IS_DEBUG_BUILD&&pp.logger.error(v),u.call(g,f,p,h)})}}var c=tOt.create();c.add(s),c.add(o),c.on("error",a),c.run(function(){var f=fp.getCurrentHub();f.configureScope(function(p){p.addEventProcessor(function(v){return fhe(v,s,e)});var h=f.getClient();if(my.isAutoSessionTrackingEnabled(h)){var g=f.getScope();g&&g.setRequestSession({status:"ok"})}}),o.once("finish",function(){var p=f.getClient();my.isAutoSessionTrackingEnabled(p)&&setImmediate(function(){p&&p._captureRequestSession&&p._captureRequestSession()})}),a()})}}dp.requestHandler=fOt;function pOt(e){var t=e.status||e.statusCode||e.status_code||e.output&&e.output.statusCode;return t?parseInt(t,10):500}function dOt(e){var t=pOt(e);return t>=500}function hOt(e){return function(r,n,i,s){var o=e&&e.shouldHandleError||dOt;if(o(r)){fp.withScope(function(a){var u=i.__sentry_transaction;u&&a.getSpan()===void 0&&a.setSpan(u);var c=fp.getCurrentHub().getClient();if(c&&my.isAutoSessionTrackingEnabled(c)){var f=c._sessionFlusher!==void 0;if(f){var p=a.getRequestSession();p&&p.status!==void 0&&(p.status="crashed")}}var h=fp.captureException(r);i.sentry=h,s(r)});return}s(r)}}dp.errorHandler=hOt});var hhe=m(bt=>{Object.defineProperty(bt,"__esModule",{value:!0});var dhe=(Yn(),Et(Xn)),mOt=rm();bt.Severity=mOt.Severity;var en=Sn();bt.addGlobalEventProcessor=en.addGlobalEventProcessor;bt.addBreadcrumb=en.addBreadcrumb;bt.captureException=en.captureException;bt.captureEvent=en.captureEvent;bt.captureMessage=en.captureMessage;bt.configureScope=en.configureScope;bt.getHubFromCarrier=en.getHubFromCarrier;bt.getCurrentHub=en.getCurrentHub;bt.Hub=en.Hub;bt.makeMain=en.makeMain;bt.Scope=en.Scope;bt.Session=en.Session;bt.startTransaction=en.startTransaction;bt.SDK_VERSION=en.SDK_VERSION;bt.setContext=en.setContext;bt.setExtra=en.setExtra;bt.setExtras=en.setExtras;bt.setTag=en.setTag;bt.setTags=en.setTags;bt.setUser=en.setUser;bt.withScope=en.withScope;var gOt=SM();bt.NodeBackend=gOt.NodeBackend;var vOt=CM();bt.NodeClient=vOt.NodeClient;var wm=GM();bt.defaultIntegrations=wm.defaultIntegrations;bt.init=wm.init;bt.lastEventId=wm.lastEventId;bt.flush=wm.flush;bt.close=wm.close;bt.getSentryRelease=wm.getSentryRelease;var yOt=che();bt.deepReadDirSync=yOt.deepReadDirSync;var xOt=sM();bt.SDK_NAME=xOt.SDK_NAME;var _Ot=Sn(),bOt=Oa(),wOt=require("domain"),EOt=phe();bt.Handlers=EOt;var SOt=$M(),TOt=xM();bt.Transports=TOt;var AOt=dhe.__assign(dhe.__assign({},_Ot.Integrations),SOt);bt.Integrations=AOt;var gy=bOt.getMainCarrier();gy.__SENTRY__&&(gy.__SENTRY__.extensions=gy.__SENTRY__.extensions||{},gy.__SENTRY__.extensions.domain=gy.__SENTRY__.extensions.domain||wOt)});var mhe,yy,ghe,vy,YM,zr,Hu=ye(()=>{"use strict";mhe=de(Sfe()),yy=de(hhe());Em();ghe=()=>{var e;return(process.env.AMPT_STAGE==="prod"||((e=process.env.AMPT_ENDPOINT)==null?void 0:e.endsWith("ampt.dev")))&&!process.env.JEST_WORKER_ID};ghe()&&yy.init({dsn:"https://5f27cbf3265a475abff6b7999ae73179@o1265020.ingest.sentry.io/6448443",tracesSampleRate:1});YM=class{constructor(){_n(this,"orgName");pv(this,vy,(0,mhe.ulid)());_n(this,"auth");_n(this,"captureException",t=>{xy.error({err:t},"captureException"),ghe()&&yy&&yy.captureException(t,{tags:{sessionId:Rd(this,vy)}})})}getSessionId(){return Rd(this,vy)}storeAuth(t){this.auth=t}};vy=new WeakMap;zr=new YM});var ZM,vhe,xT,JM,yT,COt,tt,xy,Em=ye(()=>{"use strict";ZM=de(mce()),vhe=de(require("path")),xT=de(tm());Hu();JM=process.env.AMPT_LOG_DIR||vhe.default.join(process.cwd(),".ampt","logs"),yT=!process.env.AMPT_DISABLE_LOGS,COt=process.env.AMPT_LOG_TO_CONSOLE==="true";if(yT)try{(0,xT.removeSync)(JM)}catch(e){process.env.AMPT_DEBUG&&console.log("remove log file err",e)}finally{try{(0,xT.ensureFileSync)(JM)}catch{yT=!1}}tt=(0,ZM.default)({enabled:yT,level:process.env.AMPT_LOG_LEVEL||"trace",mixin:()=>({sessionId:zr.getSessionId()}),redact:{remove:!0,paths:["credentials","accessKey","token","idToken","refreshToken","accessToken"]}},yT&&!COt?ZM.default.destination(JM):void 0),xy=tt});var Sm=m((E0r,ROt)=>{ROt.exports={name:"@ampt/cli",version:"0.0.1-beta.37",description:"Ampt command line interface",main:"./dist/index.js",types:"./types/index.d.ts",engines:{node:">=16.0.0"},publishConfig:{access:"public"},bin:{ampt:"./bin/bin"},scripts:{prepublishOnly:"npm run build",build:"node esbuild.mjs",watch:"node esbuild.mjs --watch",test:'LOG_LEVEL=silent AWS_REGION=us-east-1 NODE_OPTIONS="--no-warnings --experimental-vm-modules" jest --collect-coverage',eslint:"eslint .",prettier:"prettier --check ."},author:"Ampt Inc <hello@getampt.com>",license:"Apache-2.0",optionalDependencies:{fsevents:"~2.3.2"},babel:{presets:["@babel/preset-typescript"]},devDependencies:{"@sentry/node":"^6.16.1","@types/express":"^4.17.13","@types/http-proxy":"^1.17.8","@types/write-file-atomic":"^4.0.0","@types/ws":"^8.5.3","adm-zip":"^0.5.5","ansi-escapes":"^4.3.1",axios:"^0.26.1","axios-retry":"^3.2.0",chalk:"^4.1.0","child-process-ext":"^2.1.1",chokidar:"^3.5.0",chunk:"^0.0.3",dayjs:"^1.10.4",debounce:"^1.2.1",del:"^6.0.0",download:"^8.0.0","download-git-repo":"^3.0.2",figures:"^3.2.0","fs-extra":"^9.0.1","get-port":"^5.0.0","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.2.0","http-proxy":"^1.18.1",ignore:"^5.2.0","is-git-url":"^1.0.0","is-installed-globally":"^0.4.0","it-parallel":"^2.0.1","jwt-decode":"^3.1.2",keypress:"^0.2.1","lz4-wasm-nodejs":"^0.9.2",minimist:"^1.2.5","node-emoji":"^1.10.0","node-resolve":"^1.3.4","normalize-path":"^3.0.0",open:"^8.2.0","parse-packagejson-name":"^1.0.1",pluralize:"^8.0.0",ramda:"^0.27.2",semver:"^5.7.1","strip-ansi":"^6.0.0",terminate:"^2.5.0","tree-kill":"^1.2.2",ulid:"^2.3.0",which:"^2.0.2","write-file-atomic":"^4.0.2"},dependencies:{"source-map-support":"^0.5.21"}}});var xhe,_he,yhe,OOt,_y,Ve,bhe=ye(()=>{"use strict";xhe=de(require("https")),_he=de(WE());hte();Em();Hu();Hu();({version:yhe}=Sm()),OOt=new xhe.default.Agent({keepAlive:!0}),_y=_he.default.create({httpsAgent:OOt});ko(_y,{retries:10,retryDelay:ko.exponentialDelay,retryCondition:e=>{var i;let t=e.response&&e.response.status||"unknown",r=e.response&&e.response.data&&e.response.data.message||"unknown",n=ko.isNetworkOrIdempotentRequestError(e)&&t!==500||t===429||t===503;return n&&xy.debug({status:t,message:r,response:(i=e.response)==null?void 0:i.data},"retryable request error"),n}});_y.defaults.headers.common={};_y.defaults.headers.put={};_y.defaults.headers.get={};Ve=async(e={})=>{var g,v,_;let t=e.root||process.env.AMPT_ENDPOINT,r=process.env.AMPT_API_KEY,n=(g=zr.auth)==null?void 0:g.accessToken,{method:i="POST",params:s,headers:o={},body:a,endpoint:u}=e,{url:c=`${t}${u}`,responseType:f}=e;r&&c.startsWith(process.env.AMPT_ENDPOINT)?o.Authorization=`Basic ${r}`:n&&c.startsWith(process.env.AMPT_ENDPOINT)&&(o.Authorization=`Bearer ${n}`),a&&u&&(o["Content-Type"]="application/json");let p=zr.getSessionId();u&&(o["User-Agent"]=`ampt-cli/${yhe}`,o["ampt-version"]=yhe,o["ampt-session-id"]=p);let h={url:c,method:i,headers:o,params:s,data:a,maxContentLength:1/0,maxBodyLength:1/0};f&&(h.responseType=f);try{return xy.debug({method:i,url:c,sessionId:p},"request"),(await _y(h)).data}catch(w){if(w.response&&w.response.data){let y=new Error(w.response.data.message||w.response.data);throw(v=w.response.data.message)!=null&&v.includes("Request Entity Too Large")?(y.message="Your code size is too large. Try reducing it by adding to .serverlessignore.",y.name="EntityTooLargeError"):(_=w.response.data.message)!=null&&_.includes("User disabled")?(y.message=w.response.data.detail||"Ampt is currently in Private Beta. Please apply for access at https://getampt.com/",y.name="UserDisabledError"):y.name=w.response.data.name||null,y.statusCode=w.response.data.statusCode||w.response.status||null,y}throw w}}});var whe,Ehe=ye(()=>{"use strict";whe=async(e,t)=>{let r,n=new Promise(i=>{r=setTimeout(()=>i(null),t)});return Promise.race([e,n]).then(i=>(clearTimeout(r),i))}});var Tm,She=ye(()=>{"use strict";Tm=e=>e?e===0?"less than a second":e===1?"1 second":`${e} seconds`:"a few seconds"});var hp,The=ye(()=>{"use strict";hp=async e=>new Promise(t=>setTimeout(t,e).unref())});var dr,QM,e4=ye(()=>{"use strict";cn();Hu();dr=e=>{(async()=>{let{eventName:t,eventData:r={}}=e,n=zr.orgName;if(!n){tt.warn({eventName:t},"Could not send report - no org name found");return}try{await Ve({method:"POST",body:{eventName:t,eventData:{...r,shell:!0}},endpoint:`/orgs/${n}/analytics`})}catch(i){zr.captureException(i),process.env.AMPT_DEBUG&&console.error(i)}})()},QM=dr});async function t4(e){try{let t="https://raw.githubusercontent.com/getampt/templates/build/templates-manifest.json",{data:r}=await Ahe.default.get(t);return r}catch(t){return process.env.AMPT_DEBUG&&e.logError(t),[]}}var Ahe,r4=ye(()=>{"use strict";Ahe=de(WE())});var n4,Che,i4=ye(()=>{"use strict";n4=e=>{try{return process.kill(e,0)}catch(t){return t.code==="EPERM"}},Che=n4});async function _T(e,t){let r=e.eventNames(),n=new Map;for(let i of r)n.set(i,e.listeners(i));try{return await t()}finally{e.removeAllListeners();for(let i of r)for(let s of n.get(i))e.on(i,s)}}var Rhe=ye(()=>{"use strict"});function Ohe(e){e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}if(n===i){i=null;continue}else if((n==="'"||n==='"')&&!i){i=n;continue}s[t]||(s[t]=""),s[t]+=n}return s}var Ihe=ye(()=>{"use strict"});var Nhe=ye(()=>{"use strict"});var qhe=m((Am,by)=>{(function(){var e,t="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,u="__lodash_placeholder__",c=1,f=2,p=4,h=1,g=2,v=1,_=2,w=4,y=8,b=16,S=32,T=64,R=128,q=256,O=512,M=30,U="...",z=800,L=16,D=1,Z=2,le=3,B=1/0,V=9007199254740991,he=17976931348623157e292,fe=0/0,xe=4294967295,se=xe-1,Ge=xe>>>1,Le=[["ary",R],["bind",v],["bindKey",_],["curry",y],["curryRight",b],["flip",O],["partial",S],["partialRight",T],["rearg",q]],Ee="[object Arguments]",it="[object Array]",Vt="[object AsyncFunction]",Te="[object Boolean]",Ur="[object Date]",Ci="[object DOMException]",pe="[object Error]",k="[object Function]",A="[object GeneratorFunction]",H="[object Map]",K="[object Number]",He="[object Null]",Fe="[object Object]",rr="[object Promise]",Nr="[object Proxy]",on="[object RegExp]",Ae="[object Set]",sr="[object String]",Bn="[object Symbol]",fd="[object Undefined]",ia="[object WeakMap]",Kl="[object WeakSet]",sa="[object ArrayBuffer]",N="[object DataView]",W="[object Float32Array]",G="[object Float64Array]",ee="[object Int8Array]",ne="[object Int16Array]",_e="[object Int32Array]",Ke="[object Uint8Array]",mt="[object Uint8ClampedArray]",vn="[object Uint16Array]",ls="[object Uint32Array]",Xr=/\b__p \+= '';/g,je=/\b(__p \+=) '' \+/g,So=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tb=/&(?:amp|lt|gt|quot|#39);/g,pd=/[&<>"']/g,rb=RegExp(tb.source),nb=RegExp(pd.source),Gg=/<%-([\s\S]+?)%>/g,fs=/<%([\s\S]+?)%>/g,Vg=/<%=([\s\S]+?)%>/g,Kg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ib=/^\w*$/,Xg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xl=/[\\^$.*+?()[\]{}|]/g,dd=RegExp(Xl.source),Yl=/^\s+/,sb=/\s/,ob=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,VUe=/\{\n\/\* \[wrapped with (.+)\] \*/,KUe=/,? & /,XUe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,YUe=/[()=,{}\[\]\/\s]/,ZUe=/\\(\\)?/g,JUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,c7=/\w*$/,QUe=/^[-+]0x[0-9a-f]+$/i,e5e=/^0b[01]+$/i,t5e=/^\[object .+?Constructor\]$/,r5e=/^0o[0-7]+$/i,n5e=/^(?:0|[1-9]\d*)$/,i5e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ab=/($^)/,s5e=/['\n\r\u2028\u2029\\]/g,ub="\\ud800-\\udfff",o5e="\\u0300-\\u036f",a5e="\\ufe20-\\ufe2f",u5e="\\u20d0-\\u20ff",l7=o5e+a5e+u5e,f7="\\u2700-\\u27bf",p7="a-z\\xdf-\\xf6\\xf8-\\xff",c5e="\\xac\\xb1\\xd7\\xf7",l5e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f5e="\\u2000-\\u206f",p5e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d7="A-Z\\xc0-\\xd6\\xd8-\\xde",h7="\\ufe0e\\ufe0f",m7=c5e+l5e+f5e+p5e,EO="['\u2019]",d5e="["+ub+"]",g7="["+m7+"]",cb="["+l7+"]",v7="\\d+",h5e="["+f7+"]",y7="["+p7+"]",x7="[^"+ub+m7+v7+f7+p7+d7+"]",SO="\\ud83c[\\udffb-\\udfff]",m5e="(?:"+cb+"|"+SO+")",_7="[^"+ub+"]",TO="(?:\\ud83c[\\udde6-\\uddff]){2}",AO="[\\ud800-\\udbff][\\udc00-\\udfff]",hd="["+d7+"]",b7="\\u200d",w7="(?:"+y7+"|"+x7+")",g5e="(?:"+hd+"|"+x7+")",E7="(?:"+EO+"(?:d|ll|m|re|s|t|ve))?",S7="(?:"+EO+"(?:D|LL|M|RE|S|T|VE))?",T7=m5e+"?",A7="["+h7+"]?",v5e="(?:"+b7+"(?:"+[_7,TO,AO].join("|")+")"+A7+T7+")*",y5e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x5e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",C7=A7+T7+v5e,_5e="(?:"+[h5e,TO,AO].join("|")+")"+C7,b5e="(?:"+[_7+cb+"?",cb,TO,AO,d5e].join("|")+")",w5e=RegExp(EO,"g"),E5e=RegExp(cb,"g"),CO=RegExp(SO+"(?="+SO+")|"+b5e+C7,"g"),S5e=RegExp([hd+"?"+y7+"+"+E7+"(?="+[g7,hd,"$"].join("|")+")",g5e+"+"+S7+"(?="+[g7,hd+w7,"$"].join("|")+")",hd+"?"+w7+"+"+E7,hd+"+"+S7,x5e,y5e,v7,_5e].join("|"),"g"),T5e=RegExp("["+b7+ub+l7+h7+"]"),A5e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,C5e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],R5e=-1,mr={};mr[W]=mr[G]=mr[ee]=mr[ne]=mr[_e]=mr[Ke]=mr[mt]=mr[vn]=mr[ls]=!0,mr[Ee]=mr[it]=mr[sa]=mr[Te]=mr[N]=mr[Ur]=mr[pe]=mr[k]=mr[H]=mr[K]=mr[Fe]=mr[on]=mr[Ae]=mr[sr]=mr[ia]=!1;var pr={};pr[Ee]=pr[it]=pr[sa]=pr[N]=pr[Te]=pr[Ur]=pr[W]=pr[G]=pr[ee]=pr[ne]=pr[_e]=pr[H]=pr[K]=pr[Fe]=pr[on]=pr[Ae]=pr[sr]=pr[Bn]=pr[Ke]=pr[mt]=pr[vn]=pr[ls]=!0,pr[pe]=pr[k]=pr[ia]=!1;var O5e={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},I5e={"&":"&","<":"<",">":">",'"':""","'":"'"},N5e={"&":"&","<":"<",">":">",""":'"',"'":"'"},q5e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},k5e=parseFloat,P5e=parseInt,R7=typeof global=="object"&&global&&global.Object===Object&&global,D5e=typeof self=="object"&&self&&self.Object===Object&&self,Nn=R7||D5e||Function("return this")(),RO=typeof Am=="object"&&Am&&!Am.nodeType&&Am,Zl=RO&&typeof by=="object"&&by&&!by.nodeType&&by,O7=Zl&&Zl.exports===RO,OO=O7&&R7.process,js=function(){try{var X=Zl&&Zl.require&&Zl.require("util").types;return X||OO&&OO.binding&&OO.binding("util")}catch{}}(),I7=js&&js.isArrayBuffer,N7=js&&js.isDate,q7=js&&js.isMap,k7=js&&js.isRegExp,P7=js&&js.isSet,D7=js&&js.isTypedArray;function ps(X,te,Q){switch(Q.length){case 0:return X.call(te);case 1:return X.call(te,Q[0]);case 2:return X.call(te,Q[0],Q[1]);case 3:return X.call(te,Q[0],Q[1],Q[2])}return X.apply(te,Q)}function L5e(X,te,Q,we){for(var Ye=-1,jt=X==null?0:X.length;++Ye<jt;){var yn=X[Ye];te(we,yn,Q(yn),X)}return we}function Bs(X,te){for(var Q=-1,we=X==null?0:X.length;++Q<we&&te(X[Q],Q,X)!==!1;);return X}function F5e(X,te){for(var Q=X==null?0:X.length;Q--&&te(X[Q],Q,X)!==!1;);return X}function L7(X,te){for(var Q=-1,we=X==null?0:X.length;++Q<we;)if(!te(X[Q],Q,X))return!1;return!0}function Sc(X,te){for(var Q=-1,we=X==null?0:X.length,Ye=0,jt=[];++Q<we;){var yn=X[Q];te(yn,Q,X)&&(jt[Ye++]=yn)}return jt}function lb(X,te){var Q=X==null?0:X.length;return!!Q&&md(X,te,0)>-1}function IO(X,te,Q){for(var we=-1,Ye=X==null?0:X.length;++we<Ye;)if(Q(te,X[we]))return!0;return!1}function Er(X,te){for(var Q=-1,we=X==null?0:X.length,Ye=Array(we);++Q<we;)Ye[Q]=te(X[Q],Q,X);return Ye}function Tc(X,te){for(var Q=-1,we=te.length,Ye=X.length;++Q<we;)X[Ye+Q]=te[Q];return X}function NO(X,te,Q,we){var Ye=-1,jt=X==null?0:X.length;for(we&&jt&&(Q=X[++Ye]);++Ye<jt;)Q=te(Q,X[Ye],Ye,X);return Q}function M5e(X,te,Q,we){var Ye=X==null?0:X.length;for(we&&Ye&&(Q=X[--Ye]);Ye--;)Q=te(Q,X[Ye],Ye,X);return Q}function qO(X,te){for(var Q=-1,we=X==null?0:X.length;++Q<we;)if(te(X[Q],Q,X))return!0;return!1}var j5e=kO("length");function B5e(X){return X.split("")}function U5e(X){return X.match(XUe)||[]}function F7(X,te,Q){var we;return Q(X,function(Ye,jt,yn){if(te(Ye,jt,yn))return we=jt,!1}),we}function fb(X,te,Q,we){for(var Ye=X.length,jt=Q+(we?1:-1);we?jt--:++jt<Ye;)if(te(X[jt],jt,X))return jt;return-1}function md(X,te,Q){return te===te?Q5e(X,te,Q):fb(X,M7,Q)}function W5e(X,te,Q,we){for(var Ye=Q-1,jt=X.length;++Ye<jt;)if(we(X[Ye],te))return Ye;return-1}function M7(X){return X!==X}function j7(X,te){var Q=X==null?0:X.length;return Q?DO(X,te)/Q:fe}function kO(X){return function(te){return te==null?e:te[X]}}function PO(X){return function(te){return X==null?e:X[te]}}function B7(X,te,Q,we,Ye){return Ye(X,function(jt,yn,or){Q=we?(we=!1,jt):te(Q,jt,yn,or)}),Q}function H5e(X,te){var Q=X.length;for(X.sort(te);Q--;)X[Q]=X[Q].value;return X}function DO(X,te){for(var Q,we=-1,Ye=X.length;++we<Ye;){var jt=te(X[we]);jt!==e&&(Q=Q===e?jt:Q+jt)}return Q}function LO(X,te){for(var Q=-1,we=Array(X);++Q<X;)we[Q]=te(Q);return we}function $5e(X,te){return Er(te,function(Q){return[Q,X[Q]]})}function U7(X){return X&&X.slice(0,z7(X)+1).replace(Yl,"")}function ds(X){return function(te){return X(te)}}function FO(X,te){return Er(te,function(Q){return X[Q]})}function Yg(X,te){return X.has(te)}function W7(X,te){for(var Q=-1,we=X.length;++Q<we&&md(te,X[Q],0)>-1;);return Q}function H7(X,te){for(var Q=X.length;Q--&&md(te,X[Q],0)>-1;);return Q}function z5e(X,te){for(var Q=X.length,we=0;Q--;)X[Q]===te&&++we;return we}var G5e=PO(O5e),V5e=PO(I5e);function K5e(X){return"\\"+q5e[X]}function X5e(X,te){return X==null?e:X[te]}function gd(X){return T5e.test(X)}function Y5e(X){return A5e.test(X)}function Z5e(X){for(var te,Q=[];!(te=X.next()).done;)Q.push(te.value);return Q}function MO(X){var te=-1,Q=Array(X.size);return X.forEach(function(we,Ye){Q[++te]=[Ye,we]}),Q}function $7(X,te){return function(Q){return X(te(Q))}}function Ac(X,te){for(var Q=-1,we=X.length,Ye=0,jt=[];++Q<we;){var yn=X[Q];(yn===te||yn===u)&&(X[Q]=u,jt[Ye++]=Q)}return jt}function pb(X){var te=-1,Q=Array(X.size);return X.forEach(function(we){Q[++te]=we}),Q}function J5e(X){var te=-1,Q=Array(X.size);return X.forEach(function(we){Q[++te]=[we,we]}),Q}function Q5e(X,te,Q){for(var we=Q-1,Ye=X.length;++we<Ye;)if(X[we]===te)return we;return-1}function e8e(X,te,Q){for(var we=Q+1;we--;)if(X[we]===te)return we;return we}function vd(X){return gd(X)?r8e(X):j5e(X)}function To(X){return gd(X)?n8e(X):B5e(X)}function z7(X){for(var te=X.length;te--&&sb.test(X.charAt(te)););return te}var t8e=PO(N5e);function r8e(X){for(var te=CO.lastIndex=0;CO.test(X);)++te;return te}function n8e(X){return X.match(CO)||[]}function i8e(X){return X.match(S5e)||[]}var s8e=function X(te){te=te==null?Nn:Cc.defaults(Nn.Object(),te,Cc.pick(Nn,C5e));var Q=te.Array,we=te.Date,Ye=te.Error,jt=te.Function,yn=te.Math,or=te.Object,jO=te.RegExp,o8e=te.String,Us=te.TypeError,db=Q.prototype,a8e=jt.prototype,yd=or.prototype,hb=te["__core-js_shared__"],mb=a8e.toString,Kt=yd.hasOwnProperty,u8e=0,G7=function(){var l=/[^.]+$/.exec(hb&&hb.keys&&hb.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),gb=yd.toString,c8e=mb.call(or),l8e=Nn._,f8e=jO("^"+mb.call(Kt).replace(Xl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vb=O7?te.Buffer:e,Rc=te.Symbol,yb=te.Uint8Array,V7=vb?vb.allocUnsafe:e,xb=$7(or.getPrototypeOf,or),K7=or.create,X7=yd.propertyIsEnumerable,_b=db.splice,Y7=Rc?Rc.isConcatSpreadable:e,Zg=Rc?Rc.iterator:e,Jl=Rc?Rc.toStringTag:e,bb=function(){try{var l=nf(or,"defineProperty");return l({},"",{}),l}catch{}}(),p8e=te.clearTimeout!==Nn.clearTimeout&&te.clearTimeout,d8e=we&&we.now!==Nn.Date.now&&we.now,h8e=te.setTimeout!==Nn.setTimeout&&te.setTimeout,wb=yn.ceil,Eb=yn.floor,BO=or.getOwnPropertySymbols,m8e=vb?vb.isBuffer:e,Z7=te.isFinite,g8e=db.join,v8e=$7(or.keys,or),xn=yn.max,pi=yn.min,y8e=we.now,x8e=te.parseInt,J7=yn.random,_8e=db.reverse,UO=nf(te,"DataView"),Jg=nf(te,"Map"),WO=nf(te,"Promise"),xd=nf(te,"Set"),Qg=nf(te,"WeakMap"),ev=nf(or,"create"),Sb=Qg&&new Qg,_d={},b8e=sf(UO),w8e=sf(Jg),E8e=sf(WO),S8e=sf(xd),T8e=sf(Qg),Tb=Rc?Rc.prototype:e,tv=Tb?Tb.valueOf:e,Q7=Tb?Tb.toString:e;function I(l){if(Wr(l)&&!nt(l)&&!(l instanceof wt)){if(l instanceof Ws)return l;if(Kt.call(l,"__wrapped__"))return eW(l)}return new Ws(l)}var bd=function(){function l(){}return function(d){if(!qr(d))return{};if(K7)return K7(d);l.prototype=d;var x=new l;return l.prototype=e,x}}();function Ab(){}function Ws(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}I.templateSettings={escape:Gg,evaluate:fs,interpolate:Vg,variable:"",imports:{_:I}},I.prototype=Ab.prototype,I.prototype.constructor=I,Ws.prototype=bd(Ab.prototype),Ws.prototype.constructor=Ws;function wt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function A8e(){var l=new wt(this.__wrapped__);return l.__actions__=Gi(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Gi(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Gi(this.__views__),l}function C8e(){if(this.__filtered__){var l=new wt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function R8e(){var l=this.__wrapped__.value(),d=this.__dir__,x=nt(l),E=d<0,C=x?l.length:0,P=B7e(0,C,this.__views__),j=P.start,$=P.end,Y=$-j,re=E?$:j-1,ie=this.__iteratees__,oe=ie.length,ve=0,Ie=pi(Y,this.__takeCount__);if(!x||!E&&C==Y&&Ie==Y)return E9(l,this.__actions__);var Be=[];e:for(;Y--&&ve<Ie;){re+=d;for(var ct=-1,Ue=l[re];++ct<oe;){var gt=ie[ct],Nt=gt.iteratee,gs=gt.type,Ii=Nt(Ue);if(gs==Z)Ue=Ii;else if(!Ii){if(gs==D)continue e;break e}}Be[ve++]=Ue}return Be}wt.prototype=bd(Ab.prototype),wt.prototype.constructor=wt;function Ql(l){var d=-1,x=l==null?0:l.length;for(this.clear();++d<x;){var E=l[d];this.set(E[0],E[1])}}function O8e(){this.__data__=ev?ev(null):{},this.size=0}function I8e(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function N8e(l){var d=this.__data__;if(ev){var x=d[l];return x===o?e:x}return Kt.call(d,l)?d[l]:e}function q8e(l){var d=this.__data__;return ev?d[l]!==e:Kt.call(d,l)}function k8e(l,d){var x=this.__data__;return this.size+=this.has(l)?0:1,x[l]=ev&&d===e?o:d,this}Ql.prototype.clear=O8e,Ql.prototype.delete=I8e,Ql.prototype.get=N8e,Ql.prototype.has=q8e,Ql.prototype.set=k8e;function ou(l){var d=-1,x=l==null?0:l.length;for(this.clear();++d<x;){var E=l[d];this.set(E[0],E[1])}}function P8e(){this.__data__=[],this.size=0}function D8e(l){var d=this.__data__,x=Cb(d,l);if(x<0)return!1;var E=d.length-1;return x==E?d.pop():_b.call(d,x,1),--this.size,!0}function L8e(l){var d=this.__data__,x=Cb(d,l);return x<0?e:d[x][1]}function F8e(l){return Cb(this.__data__,l)>-1}function M8e(l,d){var x=this.__data__,E=Cb(x,l);return E<0?(++this.size,x.push([l,d])):x[E][1]=d,this}ou.prototype.clear=P8e,ou.prototype.delete=D8e,ou.prototype.get=L8e,ou.prototype.has=F8e,ou.prototype.set=M8e;function au(l){var d=-1,x=l==null?0:l.length;for(this.clear();++d<x;){var E=l[d];this.set(E[0],E[1])}}function j8e(){this.size=0,this.__data__={hash:new Ql,map:new(Jg||ou),string:new Ql}}function B8e(l){var d=jb(this,l).delete(l);return this.size-=d?1:0,d}function U8e(l){return jb(this,l).get(l)}function W8e(l){return jb(this,l).has(l)}function H8e(l,d){var x=jb(this,l),E=x.size;return x.set(l,d),this.size+=x.size==E?0:1,this}au.prototype.clear=j8e,au.prototype.delete=B8e,au.prototype.get=U8e,au.prototype.has=W8e,au.prototype.set=H8e;function ef(l){var d=-1,x=l==null?0:l.length;for(this.__data__=new au;++d<x;)this.add(l[d])}function $8e(l){return this.__data__.set(l,o),this}function z8e(l){return this.__data__.has(l)}ef.prototype.add=ef.prototype.push=$8e,ef.prototype.has=z8e;function Ao(l){var d=this.__data__=new ou(l);this.size=d.size}function G8e(){this.__data__=new ou,this.size=0}function V8e(l){var d=this.__data__,x=d.delete(l);return this.size=d.size,x}function K8e(l){return this.__data__.get(l)}function X8e(l){return this.__data__.has(l)}function Y8e(l,d){var x=this.__data__;if(x instanceof ou){var E=x.__data__;if(!Jg||E.length<r-1)return E.push([l,d]),this.size=++x.size,this;x=this.__data__=new au(E)}return x.set(l,d),this.size=x.size,this}Ao.prototype.clear=G8e,Ao.prototype.delete=V8e,Ao.prototype.get=K8e,Ao.prototype.has=X8e,Ao.prototype.set=Y8e;function e9(l,d){var x=nt(l),E=!x&&of(l),C=!x&&!E&&kc(l),P=!x&&!E&&!C&&Td(l),j=x||E||C||P,$=j?LO(l.length,o8e):[],Y=$.length;for(var re in l)(d||Kt.call(l,re))&&!(j&&(re=="length"||C&&(re=="offset"||re=="parent")||P&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||fu(re,Y)))&&$.push(re);return $}function t9(l){var d=l.length;return d?l[QO(0,d-1)]:e}function Z8e(l,d){return Bb(Gi(l),tf(d,0,l.length))}function J8e(l){return Bb(Gi(l))}function HO(l,d,x){(x!==e&&!Co(l[d],x)||x===e&&!(d in l))&&uu(l,d,x)}function rv(l,d,x){var E=l[d];(!(Kt.call(l,d)&&Co(E,x))||x===e&&!(d in l))&&uu(l,d,x)}function Cb(l,d){for(var x=l.length;x--;)if(Co(l[x][0],d))return x;return-1}function Q8e(l,d,x,E){return Oc(l,function(C,P,j){d(E,C,x(C),j)}),E}function r9(l,d){return l&&aa(d,qn(d),l)}function e7e(l,d){return l&&aa(d,Ki(d),l)}function uu(l,d,x){d=="__proto__"&&bb?bb(l,d,{configurable:!0,enumerable:!0,value:x,writable:!0}):l[d]=x}function $O(l,d){for(var x=-1,E=d.length,C=Q(E),P=l==null;++x<E;)C[x]=P?e:SI(l,d[x]);return C}function tf(l,d,x){return l===l&&(x!==e&&(l=l<=x?l:x),d!==e&&(l=l>=d?l:d)),l}function Hs(l,d,x,E,C,P){var j,$=d&c,Y=d&f,re=d&p;if(x&&(j=C?x(l,E,C,P):x(l)),j!==e)return j;if(!qr(l))return l;var ie=nt(l);if(ie){if(j=W7e(l),!$)return Gi(l,j)}else{var oe=di(l),ve=oe==k||oe==A;if(kc(l))return A9(l,$);if(oe==Fe||oe==Ee||ve&&!C){if(j=Y||ve?{}:z9(l),!$)return Y?N7e(l,e7e(j,l)):I7e(l,r9(j,l))}else{if(!pr[oe])return C?l:{};j=H7e(l,oe,$)}}P||(P=new Ao);var Ie=P.get(l);if(Ie)return Ie;P.set(l,j),_W(l)?l.forEach(function(Ue){j.add(Hs(Ue,d,x,Ue,l,P))}):yW(l)&&l.forEach(function(Ue,gt){j.set(gt,Hs(Ue,d,x,gt,l,P))});var Be=re?Y?lI:cI:Y?Ki:qn,ct=ie?e:Be(l);return Bs(ct||l,function(Ue,gt){ct&&(gt=Ue,Ue=l[gt]),rv(j,gt,Hs(Ue,d,x,gt,l,P))}),j}function t7e(l){var d=qn(l);return function(x){return n9(x,l,d)}}function n9(l,d,x){var E=x.length;if(l==null)return!E;for(l=or(l);E--;){var C=x[E],P=d[C],j=l[C];if(j===e&&!(C in l)||!P(j))return!1}return!0}function i9(l,d,x){if(typeof l!="function")throw new Us(i);return cv(function(){l.apply(e,x)},d)}function nv(l,d,x,E){var C=-1,P=lb,j=!0,$=l.length,Y=[],re=d.length;if(!$)return Y;x&&(d=Er(d,ds(x))),E?(P=IO,j=!1):d.length>=r&&(P=Yg,j=!1,d=new ef(d));e:for(;++C<$;){var ie=l[C],oe=x==null?ie:x(ie);if(ie=E||ie!==0?ie:0,j&&oe===oe){for(var ve=re;ve--;)if(d[ve]===oe)continue e;Y.push(ie)}else P(d,oe,E)||Y.push(ie)}return Y}var Oc=N9(oa),s9=N9(GO,!0);function r7e(l,d){var x=!0;return Oc(l,function(E,C,P){return x=!!d(E,C,P),x}),x}function Rb(l,d,x){for(var E=-1,C=l.length;++E<C;){var P=l[E],j=d(P);if(j!=null&&($===e?j===j&&!ms(j):x(j,$)))var $=j,Y=P}return Y}function n7e(l,d,x,E){var C=l.length;for(x=st(x),x<0&&(x=-x>C?0:C+x),E=E===e||E>C?C:st(E),E<0&&(E+=C),E=x>E?0:wW(E);x<E;)l[x++]=d;return l}function o9(l,d){var x=[];return Oc(l,function(E,C,P){d(E,C,P)&&x.push(E)}),x}function Un(l,d,x,E,C){var P=-1,j=l.length;for(x||(x=z7e),C||(C=[]);++P<j;){var $=l[P];d>0&&x($)?d>1?Un($,d-1,x,E,C):Tc(C,$):E||(C[C.length]=$)}return C}var zO=q9(),a9=q9(!0);function oa(l,d){return l&&zO(l,d,qn)}function GO(l,d){return l&&a9(l,d,qn)}function Ob(l,d){return Sc(d,function(x){return pu(l[x])})}function rf(l,d){d=Nc(d,l);for(var x=0,E=d.length;l!=null&&x<E;)l=l[ua(d[x++])];return x&&x==E?l:e}function u9(l,d,x){var E=d(l);return nt(l)?E:Tc(E,x(l))}function Ri(l){return l==null?l===e?fd:He:Jl&&Jl in or(l)?j7e(l):J7e(l)}function VO(l,d){return l>d}function i7e(l,d){return l!=null&&Kt.call(l,d)}function s7e(l,d){return l!=null&&d in or(l)}function o7e(l,d,x){return l>=pi(d,x)&&l<xn(d,x)}function KO(l,d,x){for(var E=x?IO:lb,C=l[0].length,P=l.length,j=P,$=Q(P),Y=1/0,re=[];j--;){var ie=l[j];j&&d&&(ie=Er(ie,ds(d))),Y=pi(ie.length,Y),$[j]=!x&&(d||C>=120&&ie.length>=120)?new ef(j&&ie):e}ie=l[0];var oe=-1,ve=$[0];e:for(;++oe<C&&re.length<Y;){var Ie=ie[oe],Be=d?d(Ie):Ie;if(Ie=x||Ie!==0?Ie:0,!(ve?Yg(ve,Be):E(re,Be,x))){for(j=P;--j;){var ct=$[j];if(!(ct?Yg(ct,Be):E(l[j],Be,x)))continue e}ve&&ve.push(Be),re.push(Ie)}}return re}function a7e(l,d,x,E){return oa(l,function(C,P,j){d(E,x(C),P,j)}),E}function iv(l,d,x){d=Nc(d,l),l=X9(l,d);var E=l==null?l:l[ua(zs(d))];return E==null?e:ps(E,l,x)}function c9(l){return Wr(l)&&Ri(l)==Ee}function u7e(l){return Wr(l)&&Ri(l)==sa}function c7e(l){return Wr(l)&&Ri(l)==Ur}function sv(l,d,x,E,C){return l===d?!0:l==null||d==null||!Wr(l)&&!Wr(d)?l!==l&&d!==d:l7e(l,d,x,E,sv,C)}function l7e(l,d,x,E,C,P){var j=nt(l),$=nt(d),Y=j?it:di(l),re=$?it:di(d);Y=Y==Ee?Fe:Y,re=re==Ee?Fe:re;var ie=Y==Fe,oe=re==Fe,ve=Y==re;if(ve&&kc(l)){if(!kc(d))return!1;j=!0,ie=!1}if(ve&&!ie)return P||(P=new Ao),j||Td(l)?W9(l,d,x,E,C,P):F7e(l,d,Y,x,E,C,P);if(!(x&h)){var Ie=ie&&Kt.call(l,"__wrapped__"),Be=oe&&Kt.call(d,"__wrapped__");if(Ie||Be){var ct=Ie?l.value():l,Ue=Be?d.value():d;return P||(P=new Ao),C(ct,Ue,x,E,P)}}return ve?(P||(P=new Ao),M7e(l,d,x,E,C,P)):!1}function f7e(l){return Wr(l)&&di(l)==H}function XO(l,d,x,E){var C=x.length,P=C,j=!E;if(l==null)return!P;for(l=or(l);C--;){var $=x[C];if(j&&$[2]?$[1]!==l[$[0]]:!($[0]in l))return!1}for(;++C<P;){$=x[C];var Y=$[0],re=l[Y],ie=$[1];if(j&&$[2]){if(re===e&&!(Y in l))return!1}else{var oe=new Ao;if(E)var ve=E(re,ie,Y,l,d,oe);if(!(ve===e?sv(ie,re,h|g,E,oe):ve))return!1}}return!0}function l9(l){if(!qr(l)||V7e(l))return!1;var d=pu(l)?f8e:t5e;return d.test(sf(l))}function p7e(l){return Wr(l)&&Ri(l)==on}function d7e(l){return Wr(l)&&di(l)==Ae}function h7e(l){return Wr(l)&&Gb(l.length)&&!!mr[Ri(l)]}function f9(l){return typeof l=="function"?l:l==null?Xi:typeof l=="object"?nt(l)?h9(l[0],l[1]):d9(l):kW(l)}function YO(l){if(!uv(l))return v8e(l);var d=[];for(var x in or(l))Kt.call(l,x)&&x!="constructor"&&d.push(x);return d}function m7e(l){if(!qr(l))return Z7e(l);var d=uv(l),x=[];for(var E in l)E=="constructor"&&(d||!Kt.call(l,E))||x.push(E);return x}function ZO(l,d){return l<d}function p9(l,d){var x=-1,E=Vi(l)?Q(l.length):[];return Oc(l,function(C,P,j){E[++x]=d(C,P,j)}),E}function d9(l){var d=pI(l);return d.length==1&&d[0][2]?V9(d[0][0],d[0][1]):function(x){return x===l||XO(x,l,d)}}function h9(l,d){return hI(l)&&G9(d)?V9(ua(l),d):function(x){var E=SI(x,l);return E===e&&E===d?TI(x,l):sv(d,E,h|g)}}function Ib(l,d,x,E,C){l!==d&&zO(d,function(P,j){if(C||(C=new Ao),qr(P))g7e(l,d,j,x,Ib,E,C);else{var $=E?E(gI(l,j),P,j+"",l,d,C):e;$===e&&($=P),HO(l,j,$)}},Ki)}function g7e(l,d,x,E,C,P,j){var $=gI(l,x),Y=gI(d,x),re=j.get(Y);if(re){HO(l,x,re);return}var ie=P?P($,Y,x+"",l,d,j):e,oe=ie===e;if(oe){var ve=nt(Y),Ie=!ve&&kc(Y),Be=!ve&&!Ie&&Td(Y);ie=Y,ve||Ie||Be?nt($)?ie=$:Yr($)?ie=Gi($):Ie?(oe=!1,ie=A9(Y,!0)):Be?(oe=!1,ie=C9(Y,!0)):ie=[]:lv(Y)||of(Y)?(ie=$,of($)?ie=EW($):(!qr($)||pu($))&&(ie=z9(Y))):oe=!1}oe&&(j.set(Y,ie),C(ie,Y,E,P,j),j.delete(Y)),HO(l,x,ie)}function m9(l,d){var x=l.length;if(x)return d+=d<0?x:0,fu(d,x)?l[d]:e}function g9(l,d,x){d.length?d=Er(d,function(P){return nt(P)?function(j){return rf(j,P.length===1?P[0]:P)}:P}):d=[Xi];var E=-1;d=Er(d,ds(Me()));var C=p9(l,function(P,j,$){var Y=Er(d,function(re){return re(P)});return{criteria:Y,index:++E,value:P}});return H5e(C,function(P,j){return O7e(P,j,x)})}function v7e(l,d){return v9(l,d,function(x,E){return TI(l,E)})}function v9(l,d,x){for(var E=-1,C=d.length,P={};++E<C;){var j=d[E],$=rf(l,j);x($,j)&&ov(P,Nc(j,l),$)}return P}function y7e(l){return function(d){return rf(d,l)}}function JO(l,d,x,E){var C=E?W5e:md,P=-1,j=d.length,$=l;for(l===d&&(d=Gi(d)),x&&($=Er(l,ds(x)));++P<j;)for(var Y=0,re=d[P],ie=x?x(re):re;(Y=C($,ie,Y,E))>-1;)$!==l&&_b.call($,Y,1),_b.call(l,Y,1);return l}function y9(l,d){for(var x=l?d.length:0,E=x-1;x--;){var C=d[x];if(x==E||C!==P){var P=C;fu(C)?_b.call(l,C,1):rI(l,C)}}return l}function QO(l,d){return l+Eb(J7()*(d-l+1))}function x7e(l,d,x,E){for(var C=-1,P=xn(wb((d-l)/(x||1)),0),j=Q(P);P--;)j[E?P:++C]=l,l+=x;return j}function eI(l,d){var x="";if(!l||d<1||d>V)return x;do d%2&&(x+=l),d=Eb(d/2),d&&(l+=l);while(d);return x}function lt(l,d){return vI(K9(l,d,Xi),l+"")}function _7e(l){return t9(Ad(l))}function b7e(l,d){var x=Ad(l);return Bb(x,tf(d,0,x.length))}function ov(l,d,x,E){if(!qr(l))return l;d=Nc(d,l);for(var C=-1,P=d.length,j=P-1,$=l;$!=null&&++C<P;){var Y=ua(d[C]),re=x;if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return l;if(C!=j){var ie=$[Y];re=E?E(ie,Y,$):e,re===e&&(re=qr(ie)?ie:fu(d[C+1])?[]:{})}rv($,Y,re),$=$[Y]}return l}var x9=Sb?function(l,d){return Sb.set(l,d),l}:Xi,w7e=bb?function(l,d){return bb(l,"toString",{configurable:!0,enumerable:!1,value:CI(d),writable:!0})}:Xi;function E7e(l){return Bb(Ad(l))}function $s(l,d,x){var E=-1,C=l.length;d<0&&(d=-d>C?0:C+d),x=x>C?C:x,x<0&&(x+=C),C=d>x?0:x-d>>>0,d>>>=0;for(var P=Q(C);++E<C;)P[E]=l[E+d];return P}function S7e(l,d){var x;return Oc(l,function(E,C,P){return x=d(E,C,P),!x}),!!x}function Nb(l,d,x){var E=0,C=l==null?E:l.length;if(typeof d=="number"&&d===d&&C<=Ge){for(;E<C;){var P=E+C>>>1,j=l[P];j!==null&&!ms(j)&&(x?j<=d:j<d)?E=P+1:C=P}return C}return tI(l,d,Xi,x)}function tI(l,d,x,E){var C=0,P=l==null?0:l.length;if(P===0)return 0;d=x(d);for(var j=d!==d,$=d===null,Y=ms(d),re=d===e;C<P;){var ie=Eb((C+P)/2),oe=x(l[ie]),ve=oe!==e,Ie=oe===null,Be=oe===oe,ct=ms(oe);if(j)var Ue=E||Be;else re?Ue=Be&&(E||ve):$?Ue=Be&&ve&&(E||!Ie):Y?Ue=Be&&ve&&!Ie&&(E||!ct):Ie||ct?Ue=!1:Ue=E?oe<=d:oe<d;Ue?C=ie+1:P=ie}return pi(P,se)}function _9(l,d){for(var x=-1,E=l.length,C=0,P=[];++x<E;){var j=l[x],$=d?d(j):j;if(!x||!Co($,Y)){var Y=$;P[C++]=j===0?0:j}}return P}function b9(l){return typeof l=="number"?l:ms(l)?fe:+l}function hs(l){if(typeof l=="string")return l;if(nt(l))return Er(l,hs)+"";if(ms(l))return Q7?Q7.call(l):"";var d=l+"";return d=="0"&&1/l==-B?"-0":d}function Ic(l,d,x){var E=-1,C=lb,P=l.length,j=!0,$=[],Y=$;if(x)j=!1,C=IO;else if(P>=r){var re=d?null:D7e(l);if(re)return pb(re);j=!1,C=Yg,Y=new ef}else Y=d?[]:$;e:for(;++E<P;){var ie=l[E],oe=d?d(ie):ie;if(ie=x||ie!==0?ie:0,j&&oe===oe){for(var ve=Y.length;ve--;)if(Y[ve]===oe)continue e;d&&Y.push(oe),$.push(ie)}else C(Y,oe,x)||(Y!==$&&Y.push(oe),$.push(ie))}return $}function rI(l,d){return d=Nc(d,l),l=X9(l,d),l==null||delete l[ua(zs(d))]}function w9(l,d,x,E){return ov(l,d,x(rf(l,d)),E)}function qb(l,d,x,E){for(var C=l.length,P=E?C:-1;(E?P--:++P<C)&&d(l[P],P,l););return x?$s(l,E?0:P,E?P+1:C):$s(l,E?P+1:0,E?C:P)}function E9(l,d){var x=l;return x instanceof wt&&(x=x.value()),NO(d,function(E,C){return C.func.apply(C.thisArg,Tc([E],C.args))},x)}function nI(l,d,x){var E=l.length;if(E<2)return E?Ic(l[0]):[];for(var C=-1,P=Q(E);++C<E;)for(var j=l[C],$=-1;++$<E;)$!=C&&(P[C]=nv(P[C]||j,l[$],d,x));return Ic(Un(P,1),d,x)}function S9(l,d,x){for(var E=-1,C=l.length,P=d.length,j={};++E<C;){var $=E<P?d[E]:e;x(j,l[E],$)}return j}function iI(l){return Yr(l)?l:[]}function sI(l){return typeof l=="function"?l:Xi}function Nc(l,d){return nt(l)?l:hI(l,d)?[l]:Q9($t(l))}var T7e=lt;function qc(l,d,x){var E=l.length;return x=x===e?E:x,!d&&x>=E?l:$s(l,d,x)}var T9=p8e||function(l){return Nn.clearTimeout(l)};function A9(l,d){if(d)return l.slice();var x=l.length,E=V7?V7(x):new l.constructor(x);return l.copy(E),E}function oI(l){var d=new l.constructor(l.byteLength);return new yb(d).set(new yb(l)),d}function A7e(l,d){var x=d?oI(l.buffer):l.buffer;return new l.constructor(x,l.byteOffset,l.byteLength)}function C7e(l){var d=new l.constructor(l.source,c7.exec(l));return d.lastIndex=l.lastIndex,d}function R7e(l){return tv?or(tv.call(l)):{}}function C9(l,d){var x=d?oI(l.buffer):l.buffer;return new l.constructor(x,l.byteOffset,l.length)}function R9(l,d){if(l!==d){var x=l!==e,E=l===null,C=l===l,P=ms(l),j=d!==e,$=d===null,Y=d===d,re=ms(d);if(!$&&!re&&!P&&l>d||P&&j&&Y&&!$&&!re||E&&j&&Y||!x&&Y||!C)return 1;if(!E&&!P&&!re&&l<d||re&&x&&C&&!E&&!P||$&&x&&C||!j&&C||!Y)return-1}return 0}function O7e(l,d,x){for(var E=-1,C=l.criteria,P=d.criteria,j=C.length,$=x.length;++E<j;){var Y=R9(C[E],P[E]);if(Y){if(E>=$)return Y;var re=x[E];return Y*(re=="desc"?-1:1)}}return l.index-d.index}function O9(l,d,x,E){for(var C=-1,P=l.length,j=x.length,$=-1,Y=d.length,re=xn(P-j,0),ie=Q(Y+re),oe=!E;++$<Y;)ie[$]=d[$];for(;++C<j;)(oe||C<P)&&(ie[x[C]]=l[C]);for(;re--;)ie[$++]=l[C++];return ie}function I9(l,d,x,E){for(var C=-1,P=l.length,j=-1,$=x.length,Y=-1,re=d.length,ie=xn(P-$,0),oe=Q(ie+re),ve=!E;++C<ie;)oe[C]=l[C];for(var Ie=C;++Y<re;)oe[Ie+Y]=d[Y];for(;++j<$;)(ve||C<P)&&(oe[Ie+x[j]]=l[C++]);return oe}function Gi(l,d){var x=-1,E=l.length;for(d||(d=Q(E));++x<E;)d[x]=l[x];return d}function aa(l,d,x,E){var C=!x;x||(x={});for(var P=-1,j=d.length;++P<j;){var $=d[P],Y=E?E(x[$],l[$],$,x,l):e;Y===e&&(Y=l[$]),C?uu(x,$,Y):rv(x,$,Y)}return x}function I7e(l,d){return aa(l,dI(l),d)}function N7e(l,d){return aa(l,H9(l),d)}function kb(l,d){return function(x,E){var C=nt(x)?L5e:Q8e,P=d?d():{};return C(x,l,Me(E,2),P)}}function wd(l){return lt(function(d,x){var E=-1,C=x.length,P=C>1?x[C-1]:e,j=C>2?x[2]:e;for(P=l.length>3&&typeof P=="function"?(C--,P):e,j&&Oi(x[0],x[1],j)&&(P=C<3?e:P,C=1),d=or(d);++E<C;){var $=x[E];$&&l(d,$,E,P)}return d})}function N9(l,d){return function(x,E){if(x==null)return x;if(!Vi(x))return l(x,E);for(var C=x.length,P=d?C:-1,j=or(x);(d?P--:++P<C)&&E(j[P],P,j)!==!1;);return x}}function q9(l){return function(d,x,E){for(var C=-1,P=or(d),j=E(d),$=j.length;$--;){var Y=j[l?$:++C];if(x(P[Y],Y,P)===!1)break}return d}}function q7e(l,d,x){var E=d&v,C=av(l);function P(){var j=this&&this!==Nn&&this instanceof P?C:l;return j.apply(E?x:this,arguments)}return P}function k9(l){return function(d){d=$t(d);var x=gd(d)?To(d):e,E=x?x[0]:d.charAt(0),C=x?qc(x,1).join(""):d.slice(1);return E[l]()+C}}function Ed(l){return function(d){return NO(NW(IW(d).replace(w5e,"")),l,"")}}function av(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var x=bd(l.prototype),E=l.apply(x,d);return qr(E)?E:x}}function k7e(l,d,x){var E=av(l);function C(){for(var P=arguments.length,j=Q(P),$=P,Y=Sd(C);$--;)j[$]=arguments[$];var re=P<3&&j[0]!==Y&&j[P-1]!==Y?[]:Ac(j,Y);if(P-=re.length,P<x)return M9(l,d,Pb,C.placeholder,e,j,re,e,e,x-P);var ie=this&&this!==Nn&&this instanceof C?E:l;return ps(ie,this,j)}return C}function P9(l){return function(d,x,E){var C=or(d);if(!Vi(d)){var P=Me(x,3);d=qn(d),x=function($){return P(C[$],$,C)}}var j=l(d,x,E);return j>-1?C[P?d[j]:j]:e}}function D9(l){return lu(function(d){var x=d.length,E=x,C=Ws.prototype.thru;for(l&&d.reverse();E--;){var P=d[E];if(typeof P!="function")throw new Us(i);if(C&&!j&&Mb(P)=="wrapper")var j=new Ws([],!0)}for(E=j?E:x;++E<x;){P=d[E];var $=Mb(P),Y=$=="wrapper"?fI(P):e;Y&&mI(Y[0])&&Y[1]==(R|y|S|q)&&!Y[4].length&&Y[9]==1?j=j[Mb(Y[0])].apply(j,Y[3]):j=P.length==1&&mI(P)?j[$]():j.thru(P)}return function(){var re=arguments,ie=re[0];if(j&&re.length==1&&nt(ie))return j.plant(ie).value();for(var oe=0,ve=x?d[oe].apply(this,re):ie;++oe<x;)ve=d[oe].call(this,ve);return ve}})}function Pb(l,d,x,E,C,P,j,$,Y,re){var ie=d&R,oe=d&v,ve=d&_,Ie=d&(y|b),Be=d&O,ct=ve?e:av(l);function Ue(){for(var gt=arguments.length,Nt=Q(gt),gs=gt;gs--;)Nt[gs]=arguments[gs];if(Ie)var Ii=Sd(Ue),vs=z5e(Nt,Ii);if(E&&(Nt=O9(Nt,E,C,Ie)),P&&(Nt=I9(Nt,P,j,Ie)),gt-=vs,Ie&><re){var Zr=Ac(Nt,Ii);return M9(l,d,Pb,Ue.placeholder,x,Nt,Zr,$,Y,re-gt)}var Ro=oe?x:this,hu=ve?Ro[l]:l;return gt=Nt.length,$?Nt=Q7e(Nt,$):Be&>>1&&Nt.reverse(),ie&&Y<gt&&(Nt.length=Y),this&&this!==Nn&&this instanceof Ue&&(hu=ct||av(hu)),hu.apply(Ro,Nt)}return Ue}function L9(l,d){return function(x,E){return a7e(x,l,d(E),{})}}function Db(l,d){return function(x,E){var C;if(x===e&&E===e)return d;if(x!==e&&(C=x),E!==e){if(C===e)return E;typeof x=="string"||typeof E=="string"?(x=hs(x),E=hs(E)):(x=b9(x),E=b9(E)),C=l(x,E)}return C}}function aI(l){return lu(function(d){return d=Er(d,ds(Me())),lt(function(x){var E=this;return l(d,function(C){return ps(C,E,x)})})})}function Lb(l,d){d=d===e?" ":hs(d);var x=d.length;if(x<2)return x?eI(d,l):d;var E=eI(d,wb(l/vd(d)));return gd(d)?qc(To(E),0,l).join(""):E.slice(0,l)}function P7e(l,d,x,E){var C=d&v,P=av(l);function j(){for(var $=-1,Y=arguments.length,re=-1,ie=E.length,oe=Q(ie+Y),ve=this&&this!==Nn&&this instanceof j?P:l;++re<ie;)oe[re]=E[re];for(;Y--;)oe[re++]=arguments[++$];return ps(ve,C?x:this,oe)}return j}function F9(l){return function(d,x,E){return E&&typeof E!="number"&&Oi(d,x,E)&&(x=E=e),d=du(d),x===e?(x=d,d=0):x=du(x),E=E===e?d<x?1:-1:du(E),x7e(d,x,E,l)}}function Fb(l){return function(d,x){return typeof d=="string"&&typeof x=="string"||(d=Gs(d),x=Gs(x)),l(d,x)}}function M9(l,d,x,E,C,P,j,$,Y,re){var ie=d&y,oe=ie?j:e,ve=ie?e:j,Ie=ie?P:e,Be=ie?e:P;d|=ie?S:T,d&=~(ie?T:S),d&w||(d&=~(v|_));var ct=[l,d,C,Ie,oe,Be,ve,$,Y,re],Ue=x.apply(e,ct);return mI(l)&&Y9(Ue,ct),Ue.placeholder=E,Z9(Ue,l,d)}function uI(l){var d=yn[l];return function(x,E){if(x=Gs(x),E=E==null?0:pi(st(E),292),E&&Z7(x)){var C=($t(x)+"e").split("e"),P=d(C[0]+"e"+(+C[1]+E));return C=($t(P)+"e").split("e"),+(C[0]+"e"+(+C[1]-E))}return d(x)}}var D7e=xd&&1/pb(new xd([,-0]))[1]==B?function(l){return new xd(l)}:II;function j9(l){return function(d){var x=di(d);return x==H?MO(d):x==Ae?J5e(d):$5e(d,l(d))}}function cu(l,d,x,E,C,P,j,$){var Y=d&_;if(!Y&&typeof l!="function")throw new Us(i);var re=E?E.length:0;if(re||(d&=~(S|T),E=C=e),j=j===e?j:xn(st(j),0),$=$===e?$:st($),re-=C?C.length:0,d&T){var ie=E,oe=C;E=C=e}var ve=Y?e:fI(l),Ie=[l,d,x,E,C,ie,oe,P,j,$];if(ve&&Y7e(Ie,ve),l=Ie[0],d=Ie[1],x=Ie[2],E=Ie[3],C=Ie[4],$=Ie[9]=Ie[9]===e?Y?0:l.length:xn(Ie[9]-re,0),!$&&d&(y|b)&&(d&=~(y|b)),!d||d==v)var Be=q7e(l,d,x);else d==y||d==b?Be=k7e(l,d,$):(d==S||d==(v|S))&&!C.length?Be=P7e(l,d,x,E):Be=Pb.apply(e,Ie);var ct=ve?x9:Y9;return Z9(ct(Be,Ie),l,d)}function B9(l,d,x,E){return l===e||Co(l,yd[x])&&!Kt.call(E,x)?d:l}function U9(l,d,x,E,C,P){return qr(l)&&qr(d)&&(P.set(d,l),Ib(l,d,e,U9,P),P.delete(d)),l}function L7e(l){return lv(l)?e:l}function W9(l,d,x,E,C,P){var j=x&h,$=l.length,Y=d.length;if($!=Y&&!(j&&Y>$))return!1;var re=P.get(l),ie=P.get(d);if(re&&ie)return re==d&&ie==l;var oe=-1,ve=!0,Ie=x&g?new ef:e;for(P.set(l,d),P.set(d,l);++oe<$;){var Be=l[oe],ct=d[oe];if(E)var Ue=j?E(ct,Be,oe,d,l,P):E(Be,ct,oe,l,d,P);if(Ue!==e){if(Ue)continue;ve=!1;break}if(Ie){if(!qO(d,function(gt,Nt){if(!Yg(Ie,Nt)&&(Be===gt||C(Be,gt,x,E,P)))return Ie.push(Nt)})){ve=!1;break}}else if(!(Be===ct||C(Be,ct,x,E,P))){ve=!1;break}}return P.delete(l),P.delete(d),ve}function F7e(l,d,x,E,C,P,j){switch(x){case N:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case sa:return!(l.byteLength!=d.byteLength||!P(new yb(l),new yb(d)));case Te:case Ur:case K:return Co(+l,+d);case pe:return l.name==d.name&&l.message==d.message;case on:case sr:return l==d+"";case H:var $=MO;case Ae:var Y=E&h;if($||($=pb),l.size!=d.size&&!Y)return!1;var re=j.get(l);if(re)return re==d;E|=g,j.set(l,d);var ie=W9($(l),$(d),E,C,P,j);return j.delete(l),ie;case Bn:if(tv)return tv.call(l)==tv.call(d)}return!1}function M7e(l,d,x,E,C,P){var j=x&h,$=cI(l),Y=$.length,re=cI(d),ie=re.length;if(Y!=ie&&!j)return!1;for(var oe=Y;oe--;){var ve=$[oe];if(!(j?ve in d:Kt.call(d,ve)))return!1}var Ie=P.get(l),Be=P.get(d);if(Ie&&Be)return Ie==d&&Be==l;var ct=!0;P.set(l,d),P.set(d,l);for(var Ue=j;++oe<Y;){ve=$[oe];var gt=l[ve],Nt=d[ve];if(E)var gs=j?E(Nt,gt,ve,d,l,P):E(gt,Nt,ve,l,d,P);if(!(gs===e?gt===Nt||C(gt,Nt,x,E,P):gs)){ct=!1;break}Ue||(Ue=ve=="constructor")}if(ct&&!Ue){var Ii=l.constructor,vs=d.constructor;Ii!=vs&&"constructor"in l&&"constructor"in d&&!(typeof Ii=="function"&&Ii instanceof Ii&&typeof vs=="function"&&vs instanceof vs)&&(ct=!1)}return P.delete(l),P.delete(d),ct}function lu(l){return vI(K9(l,e,nW),l+"")}function cI(l){return u9(l,qn,dI)}function lI(l){return u9(l,Ki,H9)}var fI=Sb?function(l){return Sb.get(l)}:II;function Mb(l){for(var d=l.name+"",x=_d[d],E=Kt.call(_d,d)?x.length:0;E--;){var C=x[E],P=C.func;if(P==null||P==l)return C.name}return d}function Sd(l){var d=Kt.call(I,"placeholder")?I:l;return d.placeholder}function Me(){var l=I.iteratee||RI;return l=l===RI?f9:l,arguments.length?l(arguments[0],arguments[1]):l}function jb(l,d){var x=l.__data__;return G7e(d)?x[typeof d=="string"?"string":"hash"]:x.map}function pI(l){for(var d=qn(l),x=d.length;x--;){var E=d[x],C=l[E];d[x]=[E,C,G9(C)]}return d}function nf(l,d){var x=X5e(l,d);return l9(x)?x:e}function j7e(l){var d=Kt.call(l,Jl),x=l[Jl];try{l[Jl]=e;var E=!0}catch{}var C=gb.call(l);return E&&(d?l[Jl]=x:delete l[Jl]),C}var dI=BO?function(l){return l==null?[]:(l=or(l),Sc(BO(l),function(d){return X7.call(l,d)}))}:NI,H9=BO?function(l){for(var d=[];l;)Tc(d,dI(l)),l=xb(l);return d}:NI,di=Ri;(UO&&di(new UO(new ArrayBuffer(1)))!=N||Jg&&di(new Jg)!=H||WO&&di(WO.resolve())!=rr||xd&&di(new xd)!=Ae||Qg&&di(new Qg)!=ia)&&(di=function(l){var d=Ri(l),x=d==Fe?l.constructor:e,E=x?sf(x):"";if(E)switch(E){case b8e:return N;case w8e:return H;case E8e:return rr;case S8e:return Ae;case T8e:return ia}return d});function B7e(l,d,x){for(var E=-1,C=x.length;++E<C;){var P=x[E],j=P.size;switch(P.type){case"drop":l+=j;break;case"dropRight":d-=j;break;case"take":d=pi(d,l+j);break;case"takeRight":l=xn(l,d-j);break}}return{start:l,end:d}}function U7e(l){var d=l.match(VUe);return d?d[1].split(KUe):[]}function $9(l,d,x){d=Nc(d,l);for(var E=-1,C=d.length,P=!1;++E<C;){var j=ua(d[E]);if(!(P=l!=null&&x(l,j)))break;l=l[j]}return P||++E!=C?P:(C=l==null?0:l.length,!!C&&Gb(C)&&fu(j,C)&&(nt(l)||of(l)))}function W7e(l){var d=l.length,x=new l.constructor(d);return d&&typeof l[0]=="string"&&Kt.call(l,"index")&&(x.index=l.index,x.input=l.input),x}function z9(l){return typeof l.constructor=="function"&&!uv(l)?bd(xb(l)):{}}function H7e(l,d,x){var E=l.constructor;switch(d){case sa:return oI(l);case Te:case Ur:return new E(+l);case N:return A7e(l,x);case W:case G:case ee:case ne:case _e:case Ke:case mt:case vn:case ls:return C9(l,x);case H:return new E;case K:case sr:return new E(l);case on:return C7e(l);case Ae:return new E;case Bn:return R7e(l)}}function $7e(l,d){var x=d.length;if(!x)return l;var E=x-1;return d[E]=(x>1?"& ":"")+d[E],d=d.join(x>2?", ":" "),l.replace(ob,`{
|
|
125
|
+
`),vRt.addContextToFrame(a,s,r)}catch{}p.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return u=p.sent(),c={error:u},[3,8];case 7:try{i&&!i.done&&(f=n.return)&&f.call(n)}finally{if(c)throw c.error}return[7];case 8:return[2]}})})},e.id="ContextLines",e}();fT.ContextLines=ERt;function SRt(e){return xl.__awaiter(this,void 0,void 0,function(){var t,r,n;return xl.__generator(this,function(i){switch(i.label){case 0:if(t=MM.get(e),t!==void 0)return[2,t];r=null,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,bRt(e)];case 2:return r=i.sent(),[3,4];case 3:return n=i.sent(),[3,4];case 4:return MM.set(e,r),[2,r]}})})}});var ehe=m(UM=>{Object.defineProperty(UM,"__esModule",{value:!0});var pT=(Yn(),Et(Xn)),BM=Sn(),dT=Ut(),TRt=rM(),ARt=jM(),CRt="cause",RRt=5,ORt=function(){function e(t){t===void 0&&(t={}),this.name=e.id,this._key=t.key||CRt,this._limit=t.limit||RRt}return e.prototype.setupOnce=function(){BM.addGlobalEventProcessor(function(t,r){var n=BM.getCurrentHub().getIntegration(e);if(n){var i=n._handler&&n._handler.bind(n);return typeof i=="function"?i(t,r):t}return t})},e.prototype._handler=function(t,r){var n=this;return!t.exception||!t.exception.values||!r||!dT.isInstanceOf(r.originalException,Error)?dT.resolvedSyncPromise(t):new dT.SyncPromise(function(i){n._walkErrorTree(r.originalException,n._key).then(function(s){t&&t.exception&&t.exception.values&&(t.exception.values=pT.__spread(s,t.exception.values)),i(t)}).then(null,function(){i(t)})})},e.prototype._walkErrorTree=function(t,r,n){n===void 0&&(n=[]);var i;return pT.__awaiter(this,void 0,void 0,function(){var s,o,a=this;return pT.__generator(this,function(u){switch(u.label){case 0:return!dT.isInstanceOf(t[r],Error)||n.length+1>=this._limit?[2,Promise.resolve(n)]:(s=TRt.exceptionFromError(t[r]),o=BM.getCurrentHub().getIntegration(ARt.ContextLines),o&&(!((i=s.stacktrace)===null||i===void 0)&&i.frames)?[4,o.addSourceContextToFrames(s.stacktrace.frames)]:[3,2]);case 1:u.sent(),u.label=2;case 2:return[2,new Promise(function(c,f){a._walkErrorTree(t[r],r,pT.__spread([s],n)).then(c).then(null,function(){f()})})]}})})},e.id="LinkedErrors",e}();UM.LinkedErrors=ORt});var ihe=m(HM=>{Object.defineProperty(HM,"__esModule",{value:!0});var the=(Yn(),Et(Xn)),rhe=require("fs"),nhe=require("path"),WM;function IRt(){try{return require.cache?Object.keys(require.cache):[]}catch{return[]}}function NRt(){var e=require.main&&require.main.paths||[],t=IRt(),r={},n={};return t.forEach(function(i){var s=i,o=function(){var a=s;if(s=nhe.dirname(a),!(!s||a===s||n[a])){if(e.indexOf(s)<0)return o();var u=nhe.join(a,"package.json");if(n[a]=!0,!rhe.existsSync(u))return o();try{var c=JSON.parse(rhe.readFileSync(u,"utf8"));r[c.name]=c.version}catch{}}};o()}),r}var qRt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){var n=this;t(function(i){return r().getIntegration(e)?the.__assign(the.__assign({},i),{modules:n._getModules()}):i})},e.prototype._getModules=function(){return WM||(WM=NRt()),WM},e.id="Modules",e}();HM.Modules=qRt});var $M=m(Wu=>{Object.defineProperty(Wu,"__esModule",{value:!0});var kRt=Fde();Wu.Console=kRt.Console;var PRt=Gde();Wu.Http=PRt.Http;var DRt=Yde();Wu.OnUncaughtException=DRt.OnUncaughtException;var LRt=Jde();Wu.OnUnhandledRejection=LRt.OnUnhandledRejection;var FRt=ehe();Wu.LinkedErrors=FRt.LinkedErrors;var MRt=ihe();Wu.Modules=MRt.Modules;var jRt=jM();Wu.ContextLines=jRt.ContextLines});var GM=m(Na=>{Object.defineProperty(Na,"__esModule",{value:!0});var hy=(Yn(),Et(Xn)),_l=Sn(),she=Oa(),zM=Ut(),BRt=require("domain"),URt=CM(),ohe=vl(),bm=$M();Na.defaultIntegrations=[new _l.Integrations.InboundFilters,new _l.Integrations.FunctionToString,new bm.ContextLines,new bm.Console,new bm.Http,new bm.OnUncaughtException,new bm.OnUnhandledRejection,new bm.LinkedErrors];function WRt(e){e===void 0&&(e={});var t,r=she.getMainCarrier(),n=((t=r.__SENTRY__)===null||t===void 0?void 0:t.integrations)||[];if(e.defaultIntegrations=e.defaultIntegrations===!1?[]:hy.__spread(Array.isArray(e.defaultIntegrations)?e.defaultIntegrations:Na.defaultIntegrations,n),e.dsn===void 0&&process.env.SENTRY_DSN&&(e.dsn=process.env.SENTRY_DSN),e.tracesSampleRate===void 0&&process.env.SENTRY_TRACES_SAMPLE_RATE){var i=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(i)&&(e.tracesSampleRate=i)}if(e.release===void 0){var s=ahe();s!==void 0?e.release=s:e.autoSessionTracking=!1}e.environment===void 0&&process.env.SENTRY_ENVIRONMENT&&(e.environment=process.env.SENTRY_ENVIRONMENT),e.autoSessionTracking===void 0&&e.dsn!==void 0&&(e.autoSessionTracking=!0),BRt.active&&she.setHubOnCarrier(r,_l.getCurrentHub()),_l.initAndBind(URt.NodeClient,e),e.autoSessionTracking&&VRt()}Na.init=WRt;function HRt(){return _l.getCurrentHub().lastEventId()}Na.lastEventId=HRt;function $Rt(e){return hy.__awaiter(this,void 0,void 0,function(){var t;return hy.__generator(this,function(r){return t=_l.getCurrentHub().getClient(),t?[2,t.flush(e)]:(ohe.IS_DEBUG_BUILD&&zM.logger.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])})})}Na.flush=$Rt;function zRt(e){return hy.__awaiter(this,void 0,void 0,function(){var t;return hy.__generator(this,function(r){return t=_l.getCurrentHub().getClient(),t?[2,t.close(e)]:(ohe.IS_DEBUG_BUILD&&zM.logger.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])})})}Na.close=zRt;function GRt(e){if(e===void 0)return!1;var t=e&&e.getOptions();return t&&t.autoSessionTracking!==void 0?t.autoSessionTracking:!1}Na.isAutoSessionTrackingEnabled=GRt;function ahe(e){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;var t=zM.getGlobalObject();return t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id?t.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||e}Na.getSentryRelease=ahe;function VRt(){var e=_l.getCurrentHub();e.startSession(),process.on("beforeExit",function(){var t,r=(t=e.getScope())===null||t===void 0?void 0:t.getSession(),n=["exited","crashed"];r&&!n.includes(r.status)&&e.endSession()})}});var che=m(KM=>{Object.defineProperty(KM,"__esModule",{value:!0});var uhe=(Yn(),Et(Xn)),hT=require("fs"),VM=require("path");function KRt(e){var t=VM.resolve(e);if(!hT.existsSync(t))throw new Error("Cannot read contents of "+t+". Directory does not exist.");if(!hT.statSync(t).isDirectory())throw new Error("Cannot read contents of "+t+", because it is not a directory.");var r=function(n){return hT.readdirSync(n).reduce(function(i,s){var o=VM.join(n,s);return hT.statSync(o).isDirectory()?uhe.__spread(i,r(o)):uhe.__spread(i,[o])},[])};return r(t).map(function(n){return VM.relative(t,n)})}KM.deepReadDirSync=KRt});var lhe=m(XM=>{"use strict";XM.parse=ZRt;XM.serialize=JRt;var XRt=decodeURIComponent,YRt=encodeURIComponent,mT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function ZRt(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var r={},n=t||{},i=e.split(";"),s=n.decode||XRt,o=0;o<i.length;o++){var a=i[o],u=a.indexOf("=");if(!(u<0)){var c=a.substring(0,u).trim();if(r[c]==null){var f=a.substring(u+1,a.length).trim();f[0]==='"'&&(f=f.slice(1,-1)),r[c]=QRt(f,s)}}}return r}function JRt(e,t,r){var n=r||{},i=n.encode||YRt;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!mT.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!mT.test(s))throw new TypeError("argument val is invalid");var o=e+"="+s;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(n.domain){if(!mT.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!mT.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function QRt(e,t){try{return t(e)}catch{return e}}});var phe=m(dp=>{Object.defineProperty(dp,"__esModule",{value:!0});var qa=(Yn(),Et(Xn)),fp=Sn(),pp=Ut(),eOt=lhe(),tOt=require("domain"),rOt=require("os"),nOt=require("url"),iOt=vl(),my=GM();function sOt(){return function(t,r,n){var i;t.headers&&pp.isString(t.headers["sentry-trace"])&&(i=pp.extractTraceparentData(t.headers["sentry-trace"]));var s=fp.startTransaction(qa.__assign({name:gT(t,{path:!0,method:!0}),op:"http.server"},i),{request:vT(t)});fp.getCurrentHub().configureScope(function(o){o.setSpan(s)}),r.__sentry_transaction=s,r.once("finish",function(){setImmediate(function(){oOt(s,t),s.setHttpStatus(r.statusCode),s.finish()})}),n()}}dp.tracingHandler=sOt;function oOt(e,t){e&&(e.name=gT(t,{path:!0,method:!0}),e.setData("url",t.originalUrl),e.setData("baseUrl",t.baseUrl),e.setData("query",t.query))}function gT(e,t){t===void 0&&(t={});var r,n=(r=e.method)===null||r===void 0?void 0:r.toUpperCase(),i="";e.route?i=""+(e.baseUrl||"")+e.route.path:(e.originalUrl||e.url)&&(i=pp.stripUrlQueryAndFragment(e.originalUrl||e.url||""));var s="";return t.method&&n&&(s+=n),t.method&&t.path&&(s+=" "),t.path&&i&&(s+=i),s}function aOt(e,t){var r;switch(t){case"path":return gT(e,{path:!0});case"handler":return((r=e.route)===null||r===void 0?void 0:r.stack[0].name)||"<anonymous>";case"methodPath":default:return gT(e,{path:!0,method:!0})}}var uOt=["id","username","email"];function cOt(e,t){var r={},n=Array.isArray(t)?t:uOt;return n.forEach(function(i){e&&i in e&&(r[i]=e[i])}),r}var lOt=["cookies","data","headers","method","query_string","url"];function vT(e,t){t===void 0&&(t=lOt);var r={},n=e.headers||e.header||{},i=e.method,s=e.hostname||e.host||n.host||"<no host>",o=e.protocol==="https"||e.secure||(e.socket||{}).encrypted?"https":"http",a=e.originalUrl||e.url||"",u=o+"://"+s+a;return t.forEach(function(c){switch(c){case"headers":r.headers=n;break;case"method":r.method=i;break;case"url":r.url=u;break;case"cookies":r.cookies=e.cookies||eOt.parse(n.cookie||"");break;case"query_string":r.query_string=e.query||nOt.parse(a||"",!1).query;break;case"data":if(i==="GET"||i==="HEAD")break;e.body!==void 0&&(r.data=pp.isString(e.body)?e.body:JSON.stringify(pp.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,c)&&(r[c]=e[c])}}),r}dp.extractRequestData=vT;function fhe(e,t,r){if(r=qa.__assign({ip:!1,request:!0,serverName:!0,transaction:!0,user:!0,version:!0},r),r.version&&(e.contexts=qa.__assign(qa.__assign({},e.contexts),{runtime:{name:"node",version:global.process.version}})),r.request){var n=Array.isArray(r.request)?vT(t,r.request):vT(t);e.request=qa.__assign(qa.__assign({},e.request),n)}if(r.serverName&&!e.server_name&&(e.server_name=global.process.env.SENTRY_NAME||rOt.hostname()),r.user){var i=t.user&&pp.isPlainObject(t.user)?cOt(t.user,r.user):{};Object.keys(i)&&(e.user=qa.__assign(qa.__assign({},e.user),i))}if(r.ip){var s=t.ip||t.connection&&t.connection.remoteAddress;s&&(e.user=qa.__assign(qa.__assign({},e.user),{ip_address:s}))}return r.transaction&&!e.transaction&&(e.transaction=aOt(t,r.transaction)),e}dp.parseRequest=fhe;function fOt(e){var t=fp.getCurrentHub(),r=t.getClient();if(r&&my.isAutoSessionTrackingEnabled(r)){r.initSessionFlusher();var n=t.getScope();n&&n.getSession()&&n.setSession()}return function(s,o,a){if(e&&e.flushTimeout&&e.flushTimeout>0){var u=o.end;o.end=function(f,p,h){var g=this;my.flush(e.flushTimeout).then(function(){u.call(g,f,p,h)}).then(null,function(v){iOt.IS_DEBUG_BUILD&&pp.logger.error(v),u.call(g,f,p,h)})}}var c=tOt.create();c.add(s),c.add(o),c.on("error",a),c.run(function(){var f=fp.getCurrentHub();f.configureScope(function(p){p.addEventProcessor(function(v){return fhe(v,s,e)});var h=f.getClient();if(my.isAutoSessionTrackingEnabled(h)){var g=f.getScope();g&&g.setRequestSession({status:"ok"})}}),o.once("finish",function(){var p=f.getClient();my.isAutoSessionTrackingEnabled(p)&&setImmediate(function(){p&&p._captureRequestSession&&p._captureRequestSession()})}),a()})}}dp.requestHandler=fOt;function pOt(e){var t=e.status||e.statusCode||e.status_code||e.output&&e.output.statusCode;return t?parseInt(t,10):500}function dOt(e){var t=pOt(e);return t>=500}function hOt(e){return function(r,n,i,s){var o=e&&e.shouldHandleError||dOt;if(o(r)){fp.withScope(function(a){var u=i.__sentry_transaction;u&&a.getSpan()===void 0&&a.setSpan(u);var c=fp.getCurrentHub().getClient();if(c&&my.isAutoSessionTrackingEnabled(c)){var f=c._sessionFlusher!==void 0;if(f){var p=a.getRequestSession();p&&p.status!==void 0&&(p.status="crashed")}}var h=fp.captureException(r);i.sentry=h,s(r)});return}s(r)}}dp.errorHandler=hOt});var hhe=m(bt=>{Object.defineProperty(bt,"__esModule",{value:!0});var dhe=(Yn(),Et(Xn)),mOt=rm();bt.Severity=mOt.Severity;var en=Sn();bt.addGlobalEventProcessor=en.addGlobalEventProcessor;bt.addBreadcrumb=en.addBreadcrumb;bt.captureException=en.captureException;bt.captureEvent=en.captureEvent;bt.captureMessage=en.captureMessage;bt.configureScope=en.configureScope;bt.getHubFromCarrier=en.getHubFromCarrier;bt.getCurrentHub=en.getCurrentHub;bt.Hub=en.Hub;bt.makeMain=en.makeMain;bt.Scope=en.Scope;bt.Session=en.Session;bt.startTransaction=en.startTransaction;bt.SDK_VERSION=en.SDK_VERSION;bt.setContext=en.setContext;bt.setExtra=en.setExtra;bt.setExtras=en.setExtras;bt.setTag=en.setTag;bt.setTags=en.setTags;bt.setUser=en.setUser;bt.withScope=en.withScope;var gOt=SM();bt.NodeBackend=gOt.NodeBackend;var vOt=CM();bt.NodeClient=vOt.NodeClient;var wm=GM();bt.defaultIntegrations=wm.defaultIntegrations;bt.init=wm.init;bt.lastEventId=wm.lastEventId;bt.flush=wm.flush;bt.close=wm.close;bt.getSentryRelease=wm.getSentryRelease;var yOt=che();bt.deepReadDirSync=yOt.deepReadDirSync;var xOt=sM();bt.SDK_NAME=xOt.SDK_NAME;var _Ot=Sn(),bOt=Oa(),wOt=require("domain"),EOt=phe();bt.Handlers=EOt;var SOt=$M(),TOt=xM();bt.Transports=TOt;var AOt=dhe.__assign(dhe.__assign({},_Ot.Integrations),SOt);bt.Integrations=AOt;var gy=bOt.getMainCarrier();gy.__SENTRY__&&(gy.__SENTRY__.extensions=gy.__SENTRY__.extensions||{},gy.__SENTRY__.extensions.domain=gy.__SENTRY__.extensions.domain||wOt)});var mhe,yy,ghe,vy,YM,zr,Hu=ye(()=>{"use strict";mhe=de(Sfe()),yy=de(hhe());Em();ghe=()=>{var e;return(process.env.AMPT_STAGE==="prod"||((e=process.env.AMPT_ENDPOINT)==null?void 0:e.endsWith("ampt.dev")))&&!process.env.JEST_WORKER_ID};ghe()&&yy.init({dsn:"https://5f27cbf3265a475abff6b7999ae73179@o1265020.ingest.sentry.io/6448443",tracesSampleRate:1});YM=class{constructor(){_n(this,"orgName");pv(this,vy,(0,mhe.ulid)());_n(this,"auth");_n(this,"captureException",t=>{xy.error({err:t},"captureException"),ghe()&&yy&&yy.captureException(t,{tags:{sessionId:Rd(this,vy)}})})}getSessionId(){return Rd(this,vy)}storeAuth(t){this.auth=t}};vy=new WeakMap;zr=new YM});var ZM,vhe,xT,JM,yT,COt,tt,xy,Em=ye(()=>{"use strict";ZM=de(mce()),vhe=de(require("path")),xT=de(tm());Hu();JM=process.env.AMPT_LOG_DIR||vhe.default.join(process.cwd(),".ampt","logs"),yT=!process.env.AMPT_DISABLE_LOGS,COt=process.env.AMPT_LOG_TO_CONSOLE==="true";if(yT)try{(0,xT.removeSync)(JM)}catch(e){process.env.AMPT_DEBUG&&console.log("remove log file err",e)}finally{try{(0,xT.ensureFileSync)(JM)}catch{yT=!1}}tt=(0,ZM.default)({enabled:yT,level:process.env.AMPT_LOG_LEVEL||"trace",mixin:()=>({sessionId:zr.getSessionId()}),redact:{remove:!0,paths:["credentials","accessKey","token","idToken","refreshToken","accessToken"]}},yT&&!COt?ZM.default.destination(JM):void 0),xy=tt});var Sm=m((E0r,ROt)=>{ROt.exports={name:"@ampt/cli",version:"0.0.1-beta.38",description:"Ampt command line interface",main:"./dist/index.js",types:"./types/index.d.ts",engines:{node:">=16.0.0"},publishConfig:{access:"public"},bin:{ampt:"./bin/bin"},scripts:{prepublishOnly:"npm run build",build:"node esbuild.mjs",watch:"node esbuild.mjs --watch",test:'LOG_LEVEL=silent AWS_REGION=us-east-1 NODE_OPTIONS="--no-warnings --experimental-vm-modules" jest --collect-coverage',eslint:"eslint .",prettier:"prettier --check ."},author:"Ampt Inc <hello@getampt.com>",license:"Apache-2.0",optionalDependencies:{fsevents:"~2.3.2"},babel:{presets:["@babel/preset-typescript"]},devDependencies:{"@sentry/node":"^6.16.1","@types/express":"^4.17.13","@types/http-proxy":"^1.17.8","@types/write-file-atomic":"^4.0.0","@types/ws":"^8.5.3","adm-zip":"^0.5.5","ansi-escapes":"^4.3.1",axios:"^0.26.1","axios-retry":"^3.2.0",chalk:"^4.1.0","child-process-ext":"^2.1.1",chokidar:"^3.5.0",chunk:"^0.0.3",dayjs:"^1.10.4",debounce:"^1.2.1",del:"^6.0.0",download:"^8.0.0","download-git-repo":"^3.0.2",figures:"^3.2.0","fs-extra":"^9.0.1","get-port":"^5.0.0","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.2.0","http-proxy":"^1.18.1",ignore:"^5.2.0","is-git-url":"^1.0.0","is-installed-globally":"^0.4.0","it-parallel":"^2.0.1","jwt-decode":"^3.1.2",keypress:"^0.2.1","lz4-wasm-nodejs":"^0.9.2",minimist:"^1.2.5","node-emoji":"^1.10.0","node-resolve":"^1.3.4","normalize-path":"^3.0.0",open:"^8.2.0","parse-packagejson-name":"^1.0.1",pluralize:"^8.0.0",ramda:"^0.27.2",semver:"^5.7.1","strip-ansi":"^6.0.0",terminate:"^2.5.0","tree-kill":"^1.2.2",ulid:"^2.3.0",which:"^2.0.2","write-file-atomic":"^4.0.2"},dependencies:{"source-map-support":"^0.5.21"}}});var xhe,_he,yhe,OOt,_y,Ge,bhe=ye(()=>{"use strict";xhe=de(require("https")),_he=de(WE());hte();Em();Hu();Hu();({version:yhe}=Sm()),OOt=new xhe.default.Agent({keepAlive:!0}),_y=_he.default.create({httpsAgent:OOt});ko(_y,{retries:10,retryDelay:ko.exponentialDelay,retryCondition:e=>{var i;let t=e.response&&e.response.status||"unknown",r=e.response&&e.response.data&&e.response.data.message||"unknown",n=ko.isNetworkOrIdempotentRequestError(e)&&t!==500||t===429||t===503;return n&&xy.debug({status:t,message:r,response:(i=e.response)==null?void 0:i.data},"retryable request error"),n}});_y.defaults.headers.common={};_y.defaults.headers.put={};_y.defaults.headers.get={};Ge=async(e={})=>{var g,v,_;let t=e.root||process.env.AMPT_ENDPOINT,r=process.env.AMPT_API_KEY,n=(g=zr.auth)==null?void 0:g.accessToken,{method:i="POST",params:s,headers:o={},body:a,endpoint:u}=e,{url:c=`${t}${u}`,responseType:f}=e;r&&c.startsWith(process.env.AMPT_ENDPOINT)?o.Authorization=`Basic ${r}`:n&&c.startsWith(process.env.AMPT_ENDPOINT)&&(o.Authorization=`Bearer ${n}`),a&&u&&(o["Content-Type"]="application/json");let p=zr.getSessionId();u&&(o["User-Agent"]=`ampt-cli/${yhe}`,o["ampt-version"]=yhe,o["ampt-session-id"]=p);let h={url:c,method:i,headers:o,params:s,data:a,maxContentLength:1/0,maxBodyLength:1/0};f&&(h.responseType=f);try{return xy.debug({method:i,url:c,sessionId:p},"request"),(await _y(h)).data}catch(w){if(w.response&&w.response.data){let y=new Error(w.response.data.message||w.response.data);throw(v=w.response.data.message)!=null&&v.includes("Request Entity Too Large")?(y.message="Your code size is too large. Try reducing it by adding to .serverlessignore.",y.name="EntityTooLargeError"):(_=w.response.data.message)!=null&&_.includes("User disabled")?(y.message=w.response.data.detail||"Ampt is currently in Private Beta. Please apply for access at https://getampt.com/",y.name="UserDisabledError"):y.name=w.response.data.name||null,y.statusCode=w.response.data.statusCode||w.response.status||null,y}throw w}}});var whe,Ehe=ye(()=>{"use strict";whe=async(e,t)=>{let r,n=new Promise(i=>{r=setTimeout(()=>i(null),t)});return Promise.race([e,n]).then(i=>(clearTimeout(r),i))}});var Tm,She=ye(()=>{"use strict";Tm=e=>e?e===0?"less than a second":e===1?"1 second":`${e} seconds`:"a few seconds"});var hp,The=ye(()=>{"use strict";hp=async e=>new Promise(t=>setTimeout(t,e).unref())});var dr,QM,e4=ye(()=>{"use strict";cn();Hu();dr=e=>{(async()=>{let{eventName:t,eventData:r={}}=e,n=zr.orgName;if(!n){tt.warn({eventName:t},"Could not send report - no org name found");return}try{await Ge({method:"POST",body:{eventName:t,eventData:{...r,shell:!0}},endpoint:`/orgs/${n}/analytics`})}catch(i){zr.captureException(i),process.env.AMPT_DEBUG&&console.error(i)}})()},QM=dr});async function t4(e){try{let t="https://raw.githubusercontent.com/getampt/templates/build/templates-manifest.json",{data:r}=await Ahe.default.get(t);return r}catch(t){return process.env.AMPT_DEBUG&&e.logError(t),[]}}var Ahe,r4=ye(()=>{"use strict";Ahe=de(WE())});var n4,Che,i4=ye(()=>{"use strict";n4=e=>{try{return process.kill(e,0)}catch(t){return t.code==="EPERM"}},Che=n4});async function _T(e,t){let r=e.eventNames(),n=new Map;for(let i of r)n.set(i,e.listeners(i));try{return await t()}finally{e.removeAllListeners();for(let i of r)for(let s of n.get(i))e.on(i,s)}}var Rhe=ye(()=>{"use strict"});function Ohe(e){e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}if(n===i){i=null;continue}else if((n==="'"||n==='"')&&!i){i=n;continue}s[t]||(s[t]=""),s[t]+=n}return s}var Ihe=ye(()=>{"use strict"});var Nhe=ye(()=>{"use strict"});var qhe=m((Am,by)=>{(function(){var e,t="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,u="__lodash_placeholder__",c=1,f=2,p=4,h=1,g=2,v=1,_=2,w=4,y=8,b=16,S=32,T=64,R=128,q=256,O=512,M=30,U="...",z=800,L=16,D=1,Z=2,le=3,B=1/0,V=9007199254740991,he=17976931348623157e292,fe=0/0,xe=4294967295,se=xe-1,Ve=xe>>>1,Le=[["ary",R],["bind",v],["bindKey",_],["curry",y],["curryRight",b],["flip",O],["partial",S],["partialRight",T],["rearg",q]],Ee="[object Arguments]",it="[object Array]",Vt="[object AsyncFunction]",Te="[object Boolean]",Ur="[object Date]",Ci="[object DOMException]",pe="[object Error]",k="[object Function]",A="[object GeneratorFunction]",H="[object Map]",K="[object Number]",He="[object Null]",Fe="[object Object]",rr="[object Promise]",Nr="[object Proxy]",on="[object RegExp]",Ae="[object Set]",sr="[object String]",Bn="[object Symbol]",fd="[object Undefined]",ia="[object WeakMap]",Kl="[object WeakSet]",sa="[object ArrayBuffer]",N="[object DataView]",W="[object Float32Array]",G="[object Float64Array]",ee="[object Int8Array]",ne="[object Int16Array]",_e="[object Int32Array]",Ke="[object Uint8Array]",mt="[object Uint8ClampedArray]",vn="[object Uint16Array]",ls="[object Uint32Array]",Xr=/\b__p \+= '';/g,je=/\b(__p \+=) '' \+/g,So=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tb=/&(?:amp|lt|gt|quot|#39);/g,pd=/[&<>"']/g,rb=RegExp(tb.source),nb=RegExp(pd.source),Gg=/<%-([\s\S]+?)%>/g,fs=/<%([\s\S]+?)%>/g,Vg=/<%=([\s\S]+?)%>/g,Kg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ib=/^\w*$/,Xg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xl=/[\\^$.*+?()[\]{}|]/g,dd=RegExp(Xl.source),Yl=/^\s+/,sb=/\s/,ob=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,VUe=/\{\n\/\* \[wrapped with (.+)\] \*/,KUe=/,? & /,XUe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,YUe=/[()=,{}\[\]\/\s]/,ZUe=/\\(\\)?/g,JUe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,c7=/\w*$/,QUe=/^[-+]0x[0-9a-f]+$/i,e5e=/^0b[01]+$/i,t5e=/^\[object .+?Constructor\]$/,r5e=/^0o[0-7]+$/i,n5e=/^(?:0|[1-9]\d*)$/,i5e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ab=/($^)/,s5e=/['\n\r\u2028\u2029\\]/g,ub="\\ud800-\\udfff",o5e="\\u0300-\\u036f",a5e="\\ufe20-\\ufe2f",u5e="\\u20d0-\\u20ff",l7=o5e+a5e+u5e,f7="\\u2700-\\u27bf",p7="a-z\\xdf-\\xf6\\xf8-\\xff",c5e="\\xac\\xb1\\xd7\\xf7",l5e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f5e="\\u2000-\\u206f",p5e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d7="A-Z\\xc0-\\xd6\\xd8-\\xde",h7="\\ufe0e\\ufe0f",m7=c5e+l5e+f5e+p5e,EO="['\u2019]",d5e="["+ub+"]",g7="["+m7+"]",cb="["+l7+"]",v7="\\d+",h5e="["+f7+"]",y7="["+p7+"]",x7="[^"+ub+m7+v7+f7+p7+d7+"]",SO="\\ud83c[\\udffb-\\udfff]",m5e="(?:"+cb+"|"+SO+")",_7="[^"+ub+"]",TO="(?:\\ud83c[\\udde6-\\uddff]){2}",AO="[\\ud800-\\udbff][\\udc00-\\udfff]",hd="["+d7+"]",b7="\\u200d",w7="(?:"+y7+"|"+x7+")",g5e="(?:"+hd+"|"+x7+")",E7="(?:"+EO+"(?:d|ll|m|re|s|t|ve))?",S7="(?:"+EO+"(?:D|LL|M|RE|S|T|VE))?",T7=m5e+"?",A7="["+h7+"]?",v5e="(?:"+b7+"(?:"+[_7,TO,AO].join("|")+")"+A7+T7+")*",y5e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x5e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",C7=A7+T7+v5e,_5e="(?:"+[h5e,TO,AO].join("|")+")"+C7,b5e="(?:"+[_7+cb+"?",cb,TO,AO,d5e].join("|")+")",w5e=RegExp(EO,"g"),E5e=RegExp(cb,"g"),CO=RegExp(SO+"(?="+SO+")|"+b5e+C7,"g"),S5e=RegExp([hd+"?"+y7+"+"+E7+"(?="+[g7,hd,"$"].join("|")+")",g5e+"+"+S7+"(?="+[g7,hd+w7,"$"].join("|")+")",hd+"?"+w7+"+"+E7,hd+"+"+S7,x5e,y5e,v7,_5e].join("|"),"g"),T5e=RegExp("["+b7+ub+l7+h7+"]"),A5e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,C5e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],R5e=-1,mr={};mr[W]=mr[G]=mr[ee]=mr[ne]=mr[_e]=mr[Ke]=mr[mt]=mr[vn]=mr[ls]=!0,mr[Ee]=mr[it]=mr[sa]=mr[Te]=mr[N]=mr[Ur]=mr[pe]=mr[k]=mr[H]=mr[K]=mr[Fe]=mr[on]=mr[Ae]=mr[sr]=mr[ia]=!1;var pr={};pr[Ee]=pr[it]=pr[sa]=pr[N]=pr[Te]=pr[Ur]=pr[W]=pr[G]=pr[ee]=pr[ne]=pr[_e]=pr[H]=pr[K]=pr[Fe]=pr[on]=pr[Ae]=pr[sr]=pr[Bn]=pr[Ke]=pr[mt]=pr[vn]=pr[ls]=!0,pr[pe]=pr[k]=pr[ia]=!1;var O5e={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},I5e={"&":"&","<":"<",">":">",'"':""","'":"'"},N5e={"&":"&","<":"<",">":">",""":'"',"'":"'"},q5e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},k5e=parseFloat,P5e=parseInt,R7=typeof global=="object"&&global&&global.Object===Object&&global,D5e=typeof self=="object"&&self&&self.Object===Object&&self,Nn=R7||D5e||Function("return this")(),RO=typeof Am=="object"&&Am&&!Am.nodeType&&Am,Zl=RO&&typeof by=="object"&&by&&!by.nodeType&&by,O7=Zl&&Zl.exports===RO,OO=O7&&R7.process,js=function(){try{var X=Zl&&Zl.require&&Zl.require("util").types;return X||OO&&OO.binding&&OO.binding("util")}catch{}}(),I7=js&&js.isArrayBuffer,N7=js&&js.isDate,q7=js&&js.isMap,k7=js&&js.isRegExp,P7=js&&js.isSet,D7=js&&js.isTypedArray;function ps(X,te,Q){switch(Q.length){case 0:return X.call(te);case 1:return X.call(te,Q[0]);case 2:return X.call(te,Q[0],Q[1]);case 3:return X.call(te,Q[0],Q[1],Q[2])}return X.apply(te,Q)}function L5e(X,te,Q,we){for(var Ye=-1,jt=X==null?0:X.length;++Ye<jt;){var yn=X[Ye];te(we,yn,Q(yn),X)}return we}function Bs(X,te){for(var Q=-1,we=X==null?0:X.length;++Q<we&&te(X[Q],Q,X)!==!1;);return X}function F5e(X,te){for(var Q=X==null?0:X.length;Q--&&te(X[Q],Q,X)!==!1;);return X}function L7(X,te){for(var Q=-1,we=X==null?0:X.length;++Q<we;)if(!te(X[Q],Q,X))return!1;return!0}function Sc(X,te){for(var Q=-1,we=X==null?0:X.length,Ye=0,jt=[];++Q<we;){var yn=X[Q];te(yn,Q,X)&&(jt[Ye++]=yn)}return jt}function lb(X,te){var Q=X==null?0:X.length;return!!Q&&md(X,te,0)>-1}function IO(X,te,Q){for(var we=-1,Ye=X==null?0:X.length;++we<Ye;)if(Q(te,X[we]))return!0;return!1}function Er(X,te){for(var Q=-1,we=X==null?0:X.length,Ye=Array(we);++Q<we;)Ye[Q]=te(X[Q],Q,X);return Ye}function Tc(X,te){for(var Q=-1,we=te.length,Ye=X.length;++Q<we;)X[Ye+Q]=te[Q];return X}function NO(X,te,Q,we){var Ye=-1,jt=X==null?0:X.length;for(we&&jt&&(Q=X[++Ye]);++Ye<jt;)Q=te(Q,X[Ye],Ye,X);return Q}function M5e(X,te,Q,we){var Ye=X==null?0:X.length;for(we&&Ye&&(Q=X[--Ye]);Ye--;)Q=te(Q,X[Ye],Ye,X);return Q}function qO(X,te){for(var Q=-1,we=X==null?0:X.length;++Q<we;)if(te(X[Q],Q,X))return!0;return!1}var j5e=kO("length");function B5e(X){return X.split("")}function U5e(X){return X.match(XUe)||[]}function F7(X,te,Q){var we;return Q(X,function(Ye,jt,yn){if(te(Ye,jt,yn))return we=jt,!1}),we}function fb(X,te,Q,we){for(var Ye=X.length,jt=Q+(we?1:-1);we?jt--:++jt<Ye;)if(te(X[jt],jt,X))return jt;return-1}function md(X,te,Q){return te===te?Q5e(X,te,Q):fb(X,M7,Q)}function W5e(X,te,Q,we){for(var Ye=Q-1,jt=X.length;++Ye<jt;)if(we(X[Ye],te))return Ye;return-1}function M7(X){return X!==X}function j7(X,te){var Q=X==null?0:X.length;return Q?DO(X,te)/Q:fe}function kO(X){return function(te){return te==null?e:te[X]}}function PO(X){return function(te){return X==null?e:X[te]}}function B7(X,te,Q,we,Ye){return Ye(X,function(jt,yn,or){Q=we?(we=!1,jt):te(Q,jt,yn,or)}),Q}function H5e(X,te){var Q=X.length;for(X.sort(te);Q--;)X[Q]=X[Q].value;return X}function DO(X,te){for(var Q,we=-1,Ye=X.length;++we<Ye;){var jt=te(X[we]);jt!==e&&(Q=Q===e?jt:Q+jt)}return Q}function LO(X,te){for(var Q=-1,we=Array(X);++Q<X;)we[Q]=te(Q);return we}function $5e(X,te){return Er(te,function(Q){return[Q,X[Q]]})}function U7(X){return X&&X.slice(0,z7(X)+1).replace(Yl,"")}function ds(X){return function(te){return X(te)}}function FO(X,te){return Er(te,function(Q){return X[Q]})}function Yg(X,te){return X.has(te)}function W7(X,te){for(var Q=-1,we=X.length;++Q<we&&md(te,X[Q],0)>-1;);return Q}function H7(X,te){for(var Q=X.length;Q--&&md(te,X[Q],0)>-1;);return Q}function z5e(X,te){for(var Q=X.length,we=0;Q--;)X[Q]===te&&++we;return we}var G5e=PO(O5e),V5e=PO(I5e);function K5e(X){return"\\"+q5e[X]}function X5e(X,te){return X==null?e:X[te]}function gd(X){return T5e.test(X)}function Y5e(X){return A5e.test(X)}function Z5e(X){for(var te,Q=[];!(te=X.next()).done;)Q.push(te.value);return Q}function MO(X){var te=-1,Q=Array(X.size);return X.forEach(function(we,Ye){Q[++te]=[Ye,we]}),Q}function $7(X,te){return function(Q){return X(te(Q))}}function Ac(X,te){for(var Q=-1,we=X.length,Ye=0,jt=[];++Q<we;){var yn=X[Q];(yn===te||yn===u)&&(X[Q]=u,jt[Ye++]=Q)}return jt}function pb(X){var te=-1,Q=Array(X.size);return X.forEach(function(we){Q[++te]=we}),Q}function J5e(X){var te=-1,Q=Array(X.size);return X.forEach(function(we){Q[++te]=[we,we]}),Q}function Q5e(X,te,Q){for(var we=Q-1,Ye=X.length;++we<Ye;)if(X[we]===te)return we;return-1}function e8e(X,te,Q){for(var we=Q+1;we--;)if(X[we]===te)return we;return we}function vd(X){return gd(X)?r8e(X):j5e(X)}function To(X){return gd(X)?n8e(X):B5e(X)}function z7(X){for(var te=X.length;te--&&sb.test(X.charAt(te)););return te}var t8e=PO(N5e);function r8e(X){for(var te=CO.lastIndex=0;CO.test(X);)++te;return te}function n8e(X){return X.match(CO)||[]}function i8e(X){return X.match(S5e)||[]}var s8e=function X(te){te=te==null?Nn:Cc.defaults(Nn.Object(),te,Cc.pick(Nn,C5e));var Q=te.Array,we=te.Date,Ye=te.Error,jt=te.Function,yn=te.Math,or=te.Object,jO=te.RegExp,o8e=te.String,Us=te.TypeError,db=Q.prototype,a8e=jt.prototype,yd=or.prototype,hb=te["__core-js_shared__"],mb=a8e.toString,Kt=yd.hasOwnProperty,u8e=0,G7=function(){var l=/[^.]+$/.exec(hb&&hb.keys&&hb.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),gb=yd.toString,c8e=mb.call(or),l8e=Nn._,f8e=jO("^"+mb.call(Kt).replace(Xl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vb=O7?te.Buffer:e,Rc=te.Symbol,yb=te.Uint8Array,V7=vb?vb.allocUnsafe:e,xb=$7(or.getPrototypeOf,or),K7=or.create,X7=yd.propertyIsEnumerable,_b=db.splice,Y7=Rc?Rc.isConcatSpreadable:e,Zg=Rc?Rc.iterator:e,Jl=Rc?Rc.toStringTag:e,bb=function(){try{var l=nf(or,"defineProperty");return l({},"",{}),l}catch{}}(),p8e=te.clearTimeout!==Nn.clearTimeout&&te.clearTimeout,d8e=we&&we.now!==Nn.Date.now&&we.now,h8e=te.setTimeout!==Nn.setTimeout&&te.setTimeout,wb=yn.ceil,Eb=yn.floor,BO=or.getOwnPropertySymbols,m8e=vb?vb.isBuffer:e,Z7=te.isFinite,g8e=db.join,v8e=$7(or.keys,or),xn=yn.max,pi=yn.min,y8e=we.now,x8e=te.parseInt,J7=yn.random,_8e=db.reverse,UO=nf(te,"DataView"),Jg=nf(te,"Map"),WO=nf(te,"Promise"),xd=nf(te,"Set"),Qg=nf(te,"WeakMap"),ev=nf(or,"create"),Sb=Qg&&new Qg,_d={},b8e=sf(UO),w8e=sf(Jg),E8e=sf(WO),S8e=sf(xd),T8e=sf(Qg),Tb=Rc?Rc.prototype:e,tv=Tb?Tb.valueOf:e,Q7=Tb?Tb.toString:e;function I(l){if(Wr(l)&&!nt(l)&&!(l instanceof wt)){if(l instanceof Ws)return l;if(Kt.call(l,"__wrapped__"))return eW(l)}return new Ws(l)}var bd=function(){function l(){}return function(d){if(!qr(d))return{};if(K7)return K7(d);l.prototype=d;var x=new l;return l.prototype=e,x}}();function Ab(){}function Ws(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}I.templateSettings={escape:Gg,evaluate:fs,interpolate:Vg,variable:"",imports:{_:I}},I.prototype=Ab.prototype,I.prototype.constructor=I,Ws.prototype=bd(Ab.prototype),Ws.prototype.constructor=Ws;function wt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function A8e(){var l=new wt(this.__wrapped__);return l.__actions__=Gi(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Gi(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Gi(this.__views__),l}function C8e(){if(this.__filtered__){var l=new wt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function R8e(){var l=this.__wrapped__.value(),d=this.__dir__,x=nt(l),E=d<0,C=x?l.length:0,P=B7e(0,C,this.__views__),j=P.start,$=P.end,Y=$-j,re=E?$:j-1,ie=this.__iteratees__,oe=ie.length,ve=0,Ie=pi(Y,this.__takeCount__);if(!x||!E&&C==Y&&Ie==Y)return E9(l,this.__actions__);var Be=[];e:for(;Y--&&ve<Ie;){re+=d;for(var ct=-1,Ue=l[re];++ct<oe;){var gt=ie[ct],Nt=gt.iteratee,gs=gt.type,Ii=Nt(Ue);if(gs==Z)Ue=Ii;else if(!Ii){if(gs==D)continue e;break e}}Be[ve++]=Ue}return Be}wt.prototype=bd(Ab.prototype),wt.prototype.constructor=wt;function Ql(l){var d=-1,x=l==null?0:l.length;for(this.clear();++d<x;){var E=l[d];this.set(E[0],E[1])}}function O8e(){this.__data__=ev?ev(null):{},this.size=0}function I8e(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function N8e(l){var d=this.__data__;if(ev){var x=d[l];return x===o?e:x}return Kt.call(d,l)?d[l]:e}function q8e(l){var d=this.__data__;return ev?d[l]!==e:Kt.call(d,l)}function k8e(l,d){var x=this.__data__;return this.size+=this.has(l)?0:1,x[l]=ev&&d===e?o:d,this}Ql.prototype.clear=O8e,Ql.prototype.delete=I8e,Ql.prototype.get=N8e,Ql.prototype.has=q8e,Ql.prototype.set=k8e;function ou(l){var d=-1,x=l==null?0:l.length;for(this.clear();++d<x;){var E=l[d];this.set(E[0],E[1])}}function P8e(){this.__data__=[],this.size=0}function D8e(l){var d=this.__data__,x=Cb(d,l);if(x<0)return!1;var E=d.length-1;return x==E?d.pop():_b.call(d,x,1),--this.size,!0}function L8e(l){var d=this.__data__,x=Cb(d,l);return x<0?e:d[x][1]}function F8e(l){return Cb(this.__data__,l)>-1}function M8e(l,d){var x=this.__data__,E=Cb(x,l);return E<0?(++this.size,x.push([l,d])):x[E][1]=d,this}ou.prototype.clear=P8e,ou.prototype.delete=D8e,ou.prototype.get=L8e,ou.prototype.has=F8e,ou.prototype.set=M8e;function au(l){var d=-1,x=l==null?0:l.length;for(this.clear();++d<x;){var E=l[d];this.set(E[0],E[1])}}function j8e(){this.size=0,this.__data__={hash:new Ql,map:new(Jg||ou),string:new Ql}}function B8e(l){var d=jb(this,l).delete(l);return this.size-=d?1:0,d}function U8e(l){return jb(this,l).get(l)}function W8e(l){return jb(this,l).has(l)}function H8e(l,d){var x=jb(this,l),E=x.size;return x.set(l,d),this.size+=x.size==E?0:1,this}au.prototype.clear=j8e,au.prototype.delete=B8e,au.prototype.get=U8e,au.prototype.has=W8e,au.prototype.set=H8e;function ef(l){var d=-1,x=l==null?0:l.length;for(this.__data__=new au;++d<x;)this.add(l[d])}function $8e(l){return this.__data__.set(l,o),this}function z8e(l){return this.__data__.has(l)}ef.prototype.add=ef.prototype.push=$8e,ef.prototype.has=z8e;function Ao(l){var d=this.__data__=new ou(l);this.size=d.size}function G8e(){this.__data__=new ou,this.size=0}function V8e(l){var d=this.__data__,x=d.delete(l);return this.size=d.size,x}function K8e(l){return this.__data__.get(l)}function X8e(l){return this.__data__.has(l)}function Y8e(l,d){var x=this.__data__;if(x instanceof ou){var E=x.__data__;if(!Jg||E.length<r-1)return E.push([l,d]),this.size=++x.size,this;x=this.__data__=new au(E)}return x.set(l,d),this.size=x.size,this}Ao.prototype.clear=G8e,Ao.prototype.delete=V8e,Ao.prototype.get=K8e,Ao.prototype.has=X8e,Ao.prototype.set=Y8e;function e9(l,d){var x=nt(l),E=!x&&of(l),C=!x&&!E&&kc(l),P=!x&&!E&&!C&&Td(l),j=x||E||C||P,$=j?LO(l.length,o8e):[],Y=$.length;for(var re in l)(d||Kt.call(l,re))&&!(j&&(re=="length"||C&&(re=="offset"||re=="parent")||P&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||fu(re,Y)))&&$.push(re);return $}function t9(l){var d=l.length;return d?l[QO(0,d-1)]:e}function Z8e(l,d){return Bb(Gi(l),tf(d,0,l.length))}function J8e(l){return Bb(Gi(l))}function HO(l,d,x){(x!==e&&!Co(l[d],x)||x===e&&!(d in l))&&uu(l,d,x)}function rv(l,d,x){var E=l[d];(!(Kt.call(l,d)&&Co(E,x))||x===e&&!(d in l))&&uu(l,d,x)}function Cb(l,d){for(var x=l.length;x--;)if(Co(l[x][0],d))return x;return-1}function Q8e(l,d,x,E){return Oc(l,function(C,P,j){d(E,C,x(C),j)}),E}function r9(l,d){return l&&aa(d,qn(d),l)}function e7e(l,d){return l&&aa(d,Ki(d),l)}function uu(l,d,x){d=="__proto__"&&bb?bb(l,d,{configurable:!0,enumerable:!0,value:x,writable:!0}):l[d]=x}function $O(l,d){for(var x=-1,E=d.length,C=Q(E),P=l==null;++x<E;)C[x]=P?e:SI(l,d[x]);return C}function tf(l,d,x){return l===l&&(x!==e&&(l=l<=x?l:x),d!==e&&(l=l>=d?l:d)),l}function Hs(l,d,x,E,C,P){var j,$=d&c,Y=d&f,re=d&p;if(x&&(j=C?x(l,E,C,P):x(l)),j!==e)return j;if(!qr(l))return l;var ie=nt(l);if(ie){if(j=W7e(l),!$)return Gi(l,j)}else{var oe=di(l),ve=oe==k||oe==A;if(kc(l))return A9(l,$);if(oe==Fe||oe==Ee||ve&&!C){if(j=Y||ve?{}:z9(l),!$)return Y?N7e(l,e7e(j,l)):I7e(l,r9(j,l))}else{if(!pr[oe])return C?l:{};j=H7e(l,oe,$)}}P||(P=new Ao);var Ie=P.get(l);if(Ie)return Ie;P.set(l,j),_W(l)?l.forEach(function(Ue){j.add(Hs(Ue,d,x,Ue,l,P))}):yW(l)&&l.forEach(function(Ue,gt){j.set(gt,Hs(Ue,d,x,gt,l,P))});var Be=re?Y?lI:cI:Y?Ki:qn,ct=ie?e:Be(l);return Bs(ct||l,function(Ue,gt){ct&&(gt=Ue,Ue=l[gt]),rv(j,gt,Hs(Ue,d,x,gt,l,P))}),j}function t7e(l){var d=qn(l);return function(x){return n9(x,l,d)}}function n9(l,d,x){var E=x.length;if(l==null)return!E;for(l=or(l);E--;){var C=x[E],P=d[C],j=l[C];if(j===e&&!(C in l)||!P(j))return!1}return!0}function i9(l,d,x){if(typeof l!="function")throw new Us(i);return cv(function(){l.apply(e,x)},d)}function nv(l,d,x,E){var C=-1,P=lb,j=!0,$=l.length,Y=[],re=d.length;if(!$)return Y;x&&(d=Er(d,ds(x))),E?(P=IO,j=!1):d.length>=r&&(P=Yg,j=!1,d=new ef(d));e:for(;++C<$;){var ie=l[C],oe=x==null?ie:x(ie);if(ie=E||ie!==0?ie:0,j&&oe===oe){for(var ve=re;ve--;)if(d[ve]===oe)continue e;Y.push(ie)}else P(d,oe,E)||Y.push(ie)}return Y}var Oc=N9(oa),s9=N9(GO,!0);function r7e(l,d){var x=!0;return Oc(l,function(E,C,P){return x=!!d(E,C,P),x}),x}function Rb(l,d,x){for(var E=-1,C=l.length;++E<C;){var P=l[E],j=d(P);if(j!=null&&($===e?j===j&&!ms(j):x(j,$)))var $=j,Y=P}return Y}function n7e(l,d,x,E){var C=l.length;for(x=st(x),x<0&&(x=-x>C?0:C+x),E=E===e||E>C?C:st(E),E<0&&(E+=C),E=x>E?0:wW(E);x<E;)l[x++]=d;return l}function o9(l,d){var x=[];return Oc(l,function(E,C,P){d(E,C,P)&&x.push(E)}),x}function Un(l,d,x,E,C){var P=-1,j=l.length;for(x||(x=z7e),C||(C=[]);++P<j;){var $=l[P];d>0&&x($)?d>1?Un($,d-1,x,E,C):Tc(C,$):E||(C[C.length]=$)}return C}var zO=q9(),a9=q9(!0);function oa(l,d){return l&&zO(l,d,qn)}function GO(l,d){return l&&a9(l,d,qn)}function Ob(l,d){return Sc(d,function(x){return pu(l[x])})}function rf(l,d){d=Nc(d,l);for(var x=0,E=d.length;l!=null&&x<E;)l=l[ua(d[x++])];return x&&x==E?l:e}function u9(l,d,x){var E=d(l);return nt(l)?E:Tc(E,x(l))}function Ri(l){return l==null?l===e?fd:He:Jl&&Jl in or(l)?j7e(l):J7e(l)}function VO(l,d){return l>d}function i7e(l,d){return l!=null&&Kt.call(l,d)}function s7e(l,d){return l!=null&&d in or(l)}function o7e(l,d,x){return l>=pi(d,x)&&l<xn(d,x)}function KO(l,d,x){for(var E=x?IO:lb,C=l[0].length,P=l.length,j=P,$=Q(P),Y=1/0,re=[];j--;){var ie=l[j];j&&d&&(ie=Er(ie,ds(d))),Y=pi(ie.length,Y),$[j]=!x&&(d||C>=120&&ie.length>=120)?new ef(j&&ie):e}ie=l[0];var oe=-1,ve=$[0];e:for(;++oe<C&&re.length<Y;){var Ie=ie[oe],Be=d?d(Ie):Ie;if(Ie=x||Ie!==0?Ie:0,!(ve?Yg(ve,Be):E(re,Be,x))){for(j=P;--j;){var ct=$[j];if(!(ct?Yg(ct,Be):E(l[j],Be,x)))continue e}ve&&ve.push(Be),re.push(Ie)}}return re}function a7e(l,d,x,E){return oa(l,function(C,P,j){d(E,x(C),P,j)}),E}function iv(l,d,x){d=Nc(d,l),l=X9(l,d);var E=l==null?l:l[ua(zs(d))];return E==null?e:ps(E,l,x)}function c9(l){return Wr(l)&&Ri(l)==Ee}function u7e(l){return Wr(l)&&Ri(l)==sa}function c7e(l){return Wr(l)&&Ri(l)==Ur}function sv(l,d,x,E,C){return l===d?!0:l==null||d==null||!Wr(l)&&!Wr(d)?l!==l&&d!==d:l7e(l,d,x,E,sv,C)}function l7e(l,d,x,E,C,P){var j=nt(l),$=nt(d),Y=j?it:di(l),re=$?it:di(d);Y=Y==Ee?Fe:Y,re=re==Ee?Fe:re;var ie=Y==Fe,oe=re==Fe,ve=Y==re;if(ve&&kc(l)){if(!kc(d))return!1;j=!0,ie=!1}if(ve&&!ie)return P||(P=new Ao),j||Td(l)?W9(l,d,x,E,C,P):F7e(l,d,Y,x,E,C,P);if(!(x&h)){var Ie=ie&&Kt.call(l,"__wrapped__"),Be=oe&&Kt.call(d,"__wrapped__");if(Ie||Be){var ct=Ie?l.value():l,Ue=Be?d.value():d;return P||(P=new Ao),C(ct,Ue,x,E,P)}}return ve?(P||(P=new Ao),M7e(l,d,x,E,C,P)):!1}function f7e(l){return Wr(l)&&di(l)==H}function XO(l,d,x,E){var C=x.length,P=C,j=!E;if(l==null)return!P;for(l=or(l);C--;){var $=x[C];if(j&&$[2]?$[1]!==l[$[0]]:!($[0]in l))return!1}for(;++C<P;){$=x[C];var Y=$[0],re=l[Y],ie=$[1];if(j&&$[2]){if(re===e&&!(Y in l))return!1}else{var oe=new Ao;if(E)var ve=E(re,ie,Y,l,d,oe);if(!(ve===e?sv(ie,re,h|g,E,oe):ve))return!1}}return!0}function l9(l){if(!qr(l)||V7e(l))return!1;var d=pu(l)?f8e:t5e;return d.test(sf(l))}function p7e(l){return Wr(l)&&Ri(l)==on}function d7e(l){return Wr(l)&&di(l)==Ae}function h7e(l){return Wr(l)&&Gb(l.length)&&!!mr[Ri(l)]}function f9(l){return typeof l=="function"?l:l==null?Xi:typeof l=="object"?nt(l)?h9(l[0],l[1]):d9(l):kW(l)}function YO(l){if(!uv(l))return v8e(l);var d=[];for(var x in or(l))Kt.call(l,x)&&x!="constructor"&&d.push(x);return d}function m7e(l){if(!qr(l))return Z7e(l);var d=uv(l),x=[];for(var E in l)E=="constructor"&&(d||!Kt.call(l,E))||x.push(E);return x}function ZO(l,d){return l<d}function p9(l,d){var x=-1,E=Vi(l)?Q(l.length):[];return Oc(l,function(C,P,j){E[++x]=d(C,P,j)}),E}function d9(l){var d=pI(l);return d.length==1&&d[0][2]?V9(d[0][0],d[0][1]):function(x){return x===l||XO(x,l,d)}}function h9(l,d){return hI(l)&&G9(d)?V9(ua(l),d):function(x){var E=SI(x,l);return E===e&&E===d?TI(x,l):sv(d,E,h|g)}}function Ib(l,d,x,E,C){l!==d&&zO(d,function(P,j){if(C||(C=new Ao),qr(P))g7e(l,d,j,x,Ib,E,C);else{var $=E?E(gI(l,j),P,j+"",l,d,C):e;$===e&&($=P),HO(l,j,$)}},Ki)}function g7e(l,d,x,E,C,P,j){var $=gI(l,x),Y=gI(d,x),re=j.get(Y);if(re){HO(l,x,re);return}var ie=P?P($,Y,x+"",l,d,j):e,oe=ie===e;if(oe){var ve=nt(Y),Ie=!ve&&kc(Y),Be=!ve&&!Ie&&Td(Y);ie=Y,ve||Ie||Be?nt($)?ie=$:Yr($)?ie=Gi($):Ie?(oe=!1,ie=A9(Y,!0)):Be?(oe=!1,ie=C9(Y,!0)):ie=[]:lv(Y)||of(Y)?(ie=$,of($)?ie=EW($):(!qr($)||pu($))&&(ie=z9(Y))):oe=!1}oe&&(j.set(Y,ie),C(ie,Y,E,P,j),j.delete(Y)),HO(l,x,ie)}function m9(l,d){var x=l.length;if(x)return d+=d<0?x:0,fu(d,x)?l[d]:e}function g9(l,d,x){d.length?d=Er(d,function(P){return nt(P)?function(j){return rf(j,P.length===1?P[0]:P)}:P}):d=[Xi];var E=-1;d=Er(d,ds(Me()));var C=p9(l,function(P,j,$){var Y=Er(d,function(re){return re(P)});return{criteria:Y,index:++E,value:P}});return H5e(C,function(P,j){return O7e(P,j,x)})}function v7e(l,d){return v9(l,d,function(x,E){return TI(l,E)})}function v9(l,d,x){for(var E=-1,C=d.length,P={};++E<C;){var j=d[E],$=rf(l,j);x($,j)&&ov(P,Nc(j,l),$)}return P}function y7e(l){return function(d){return rf(d,l)}}function JO(l,d,x,E){var C=E?W5e:md,P=-1,j=d.length,$=l;for(l===d&&(d=Gi(d)),x&&($=Er(l,ds(x)));++P<j;)for(var Y=0,re=d[P],ie=x?x(re):re;(Y=C($,ie,Y,E))>-1;)$!==l&&_b.call($,Y,1),_b.call(l,Y,1);return l}function y9(l,d){for(var x=l?d.length:0,E=x-1;x--;){var C=d[x];if(x==E||C!==P){var P=C;fu(C)?_b.call(l,C,1):rI(l,C)}}return l}function QO(l,d){return l+Eb(J7()*(d-l+1))}function x7e(l,d,x,E){for(var C=-1,P=xn(wb((d-l)/(x||1)),0),j=Q(P);P--;)j[E?P:++C]=l,l+=x;return j}function eI(l,d){var x="";if(!l||d<1||d>V)return x;do d%2&&(x+=l),d=Eb(d/2),d&&(l+=l);while(d);return x}function lt(l,d){return vI(K9(l,d,Xi),l+"")}function _7e(l){return t9(Ad(l))}function b7e(l,d){var x=Ad(l);return Bb(x,tf(d,0,x.length))}function ov(l,d,x,E){if(!qr(l))return l;d=Nc(d,l);for(var C=-1,P=d.length,j=P-1,$=l;$!=null&&++C<P;){var Y=ua(d[C]),re=x;if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return l;if(C!=j){var ie=$[Y];re=E?E(ie,Y,$):e,re===e&&(re=qr(ie)?ie:fu(d[C+1])?[]:{})}rv($,Y,re),$=$[Y]}return l}var x9=Sb?function(l,d){return Sb.set(l,d),l}:Xi,w7e=bb?function(l,d){return bb(l,"toString",{configurable:!0,enumerable:!1,value:CI(d),writable:!0})}:Xi;function E7e(l){return Bb(Ad(l))}function $s(l,d,x){var E=-1,C=l.length;d<0&&(d=-d>C?0:C+d),x=x>C?C:x,x<0&&(x+=C),C=d>x?0:x-d>>>0,d>>>=0;for(var P=Q(C);++E<C;)P[E]=l[E+d];return P}function S7e(l,d){var x;return Oc(l,function(E,C,P){return x=d(E,C,P),!x}),!!x}function Nb(l,d,x){var E=0,C=l==null?E:l.length;if(typeof d=="number"&&d===d&&C<=Ve){for(;E<C;){var P=E+C>>>1,j=l[P];j!==null&&!ms(j)&&(x?j<=d:j<d)?E=P+1:C=P}return C}return tI(l,d,Xi,x)}function tI(l,d,x,E){var C=0,P=l==null?0:l.length;if(P===0)return 0;d=x(d);for(var j=d!==d,$=d===null,Y=ms(d),re=d===e;C<P;){var ie=Eb((C+P)/2),oe=x(l[ie]),ve=oe!==e,Ie=oe===null,Be=oe===oe,ct=ms(oe);if(j)var Ue=E||Be;else re?Ue=Be&&(E||ve):$?Ue=Be&&ve&&(E||!Ie):Y?Ue=Be&&ve&&!Ie&&(E||!ct):Ie||ct?Ue=!1:Ue=E?oe<=d:oe<d;Ue?C=ie+1:P=ie}return pi(P,se)}function _9(l,d){for(var x=-1,E=l.length,C=0,P=[];++x<E;){var j=l[x],$=d?d(j):j;if(!x||!Co($,Y)){var Y=$;P[C++]=j===0?0:j}}return P}function b9(l){return typeof l=="number"?l:ms(l)?fe:+l}function hs(l){if(typeof l=="string")return l;if(nt(l))return Er(l,hs)+"";if(ms(l))return Q7?Q7.call(l):"";var d=l+"";return d=="0"&&1/l==-B?"-0":d}function Ic(l,d,x){var E=-1,C=lb,P=l.length,j=!0,$=[],Y=$;if(x)j=!1,C=IO;else if(P>=r){var re=d?null:D7e(l);if(re)return pb(re);j=!1,C=Yg,Y=new ef}else Y=d?[]:$;e:for(;++E<P;){var ie=l[E],oe=d?d(ie):ie;if(ie=x||ie!==0?ie:0,j&&oe===oe){for(var ve=Y.length;ve--;)if(Y[ve]===oe)continue e;d&&Y.push(oe),$.push(ie)}else C(Y,oe,x)||(Y!==$&&Y.push(oe),$.push(ie))}return $}function rI(l,d){return d=Nc(d,l),l=X9(l,d),l==null||delete l[ua(zs(d))]}function w9(l,d,x,E){return ov(l,d,x(rf(l,d)),E)}function qb(l,d,x,E){for(var C=l.length,P=E?C:-1;(E?P--:++P<C)&&d(l[P],P,l););return x?$s(l,E?0:P,E?P+1:C):$s(l,E?P+1:0,E?C:P)}function E9(l,d){var x=l;return x instanceof wt&&(x=x.value()),NO(d,function(E,C){return C.func.apply(C.thisArg,Tc([E],C.args))},x)}function nI(l,d,x){var E=l.length;if(E<2)return E?Ic(l[0]):[];for(var C=-1,P=Q(E);++C<E;)for(var j=l[C],$=-1;++$<E;)$!=C&&(P[C]=nv(P[C]||j,l[$],d,x));return Ic(Un(P,1),d,x)}function S9(l,d,x){for(var E=-1,C=l.length,P=d.length,j={};++E<C;){var $=E<P?d[E]:e;x(j,l[E],$)}return j}function iI(l){return Yr(l)?l:[]}function sI(l){return typeof l=="function"?l:Xi}function Nc(l,d){return nt(l)?l:hI(l,d)?[l]:Q9($t(l))}var T7e=lt;function qc(l,d,x){var E=l.length;return x=x===e?E:x,!d&&x>=E?l:$s(l,d,x)}var T9=p8e||function(l){return Nn.clearTimeout(l)};function A9(l,d){if(d)return l.slice();var x=l.length,E=V7?V7(x):new l.constructor(x);return l.copy(E),E}function oI(l){var d=new l.constructor(l.byteLength);return new yb(d).set(new yb(l)),d}function A7e(l,d){var x=d?oI(l.buffer):l.buffer;return new l.constructor(x,l.byteOffset,l.byteLength)}function C7e(l){var d=new l.constructor(l.source,c7.exec(l));return d.lastIndex=l.lastIndex,d}function R7e(l){return tv?or(tv.call(l)):{}}function C9(l,d){var x=d?oI(l.buffer):l.buffer;return new l.constructor(x,l.byteOffset,l.length)}function R9(l,d){if(l!==d){var x=l!==e,E=l===null,C=l===l,P=ms(l),j=d!==e,$=d===null,Y=d===d,re=ms(d);if(!$&&!re&&!P&&l>d||P&&j&&Y&&!$&&!re||E&&j&&Y||!x&&Y||!C)return 1;if(!E&&!P&&!re&&l<d||re&&x&&C&&!E&&!P||$&&x&&C||!j&&C||!Y)return-1}return 0}function O7e(l,d,x){for(var E=-1,C=l.criteria,P=d.criteria,j=C.length,$=x.length;++E<j;){var Y=R9(C[E],P[E]);if(Y){if(E>=$)return Y;var re=x[E];return Y*(re=="desc"?-1:1)}}return l.index-d.index}function O9(l,d,x,E){for(var C=-1,P=l.length,j=x.length,$=-1,Y=d.length,re=xn(P-j,0),ie=Q(Y+re),oe=!E;++$<Y;)ie[$]=d[$];for(;++C<j;)(oe||C<P)&&(ie[x[C]]=l[C]);for(;re--;)ie[$++]=l[C++];return ie}function I9(l,d,x,E){for(var C=-1,P=l.length,j=-1,$=x.length,Y=-1,re=d.length,ie=xn(P-$,0),oe=Q(ie+re),ve=!E;++C<ie;)oe[C]=l[C];for(var Ie=C;++Y<re;)oe[Ie+Y]=d[Y];for(;++j<$;)(ve||C<P)&&(oe[Ie+x[j]]=l[C++]);return oe}function Gi(l,d){var x=-1,E=l.length;for(d||(d=Q(E));++x<E;)d[x]=l[x];return d}function aa(l,d,x,E){var C=!x;x||(x={});for(var P=-1,j=d.length;++P<j;){var $=d[P],Y=E?E(x[$],l[$],$,x,l):e;Y===e&&(Y=l[$]),C?uu(x,$,Y):rv(x,$,Y)}return x}function I7e(l,d){return aa(l,dI(l),d)}function N7e(l,d){return aa(l,H9(l),d)}function kb(l,d){return function(x,E){var C=nt(x)?L5e:Q8e,P=d?d():{};return C(x,l,Me(E,2),P)}}function wd(l){return lt(function(d,x){var E=-1,C=x.length,P=C>1?x[C-1]:e,j=C>2?x[2]:e;for(P=l.length>3&&typeof P=="function"?(C--,P):e,j&&Oi(x[0],x[1],j)&&(P=C<3?e:P,C=1),d=or(d);++E<C;){var $=x[E];$&&l(d,$,E,P)}return d})}function N9(l,d){return function(x,E){if(x==null)return x;if(!Vi(x))return l(x,E);for(var C=x.length,P=d?C:-1,j=or(x);(d?P--:++P<C)&&E(j[P],P,j)!==!1;);return x}}function q9(l){return function(d,x,E){for(var C=-1,P=or(d),j=E(d),$=j.length;$--;){var Y=j[l?$:++C];if(x(P[Y],Y,P)===!1)break}return d}}function q7e(l,d,x){var E=d&v,C=av(l);function P(){var j=this&&this!==Nn&&this instanceof P?C:l;return j.apply(E?x:this,arguments)}return P}function k9(l){return function(d){d=$t(d);var x=gd(d)?To(d):e,E=x?x[0]:d.charAt(0),C=x?qc(x,1).join(""):d.slice(1);return E[l]()+C}}function Ed(l){return function(d){return NO(NW(IW(d).replace(w5e,"")),l,"")}}function av(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var x=bd(l.prototype),E=l.apply(x,d);return qr(E)?E:x}}function k7e(l,d,x){var E=av(l);function C(){for(var P=arguments.length,j=Q(P),$=P,Y=Sd(C);$--;)j[$]=arguments[$];var re=P<3&&j[0]!==Y&&j[P-1]!==Y?[]:Ac(j,Y);if(P-=re.length,P<x)return M9(l,d,Pb,C.placeholder,e,j,re,e,e,x-P);var ie=this&&this!==Nn&&this instanceof C?E:l;return ps(ie,this,j)}return C}function P9(l){return function(d,x,E){var C=or(d);if(!Vi(d)){var P=Me(x,3);d=qn(d),x=function($){return P(C[$],$,C)}}var j=l(d,x,E);return j>-1?C[P?d[j]:j]:e}}function D9(l){return lu(function(d){var x=d.length,E=x,C=Ws.prototype.thru;for(l&&d.reverse();E--;){var P=d[E];if(typeof P!="function")throw new Us(i);if(C&&!j&&Mb(P)=="wrapper")var j=new Ws([],!0)}for(E=j?E:x;++E<x;){P=d[E];var $=Mb(P),Y=$=="wrapper"?fI(P):e;Y&&mI(Y[0])&&Y[1]==(R|y|S|q)&&!Y[4].length&&Y[9]==1?j=j[Mb(Y[0])].apply(j,Y[3]):j=P.length==1&&mI(P)?j[$]():j.thru(P)}return function(){var re=arguments,ie=re[0];if(j&&re.length==1&&nt(ie))return j.plant(ie).value();for(var oe=0,ve=x?d[oe].apply(this,re):ie;++oe<x;)ve=d[oe].call(this,ve);return ve}})}function Pb(l,d,x,E,C,P,j,$,Y,re){var ie=d&R,oe=d&v,ve=d&_,Ie=d&(y|b),Be=d&O,ct=ve?e:av(l);function Ue(){for(var gt=arguments.length,Nt=Q(gt),gs=gt;gs--;)Nt[gs]=arguments[gs];if(Ie)var Ii=Sd(Ue),vs=z5e(Nt,Ii);if(E&&(Nt=O9(Nt,E,C,Ie)),P&&(Nt=I9(Nt,P,j,Ie)),gt-=vs,Ie&><re){var Zr=Ac(Nt,Ii);return M9(l,d,Pb,Ue.placeholder,x,Nt,Zr,$,Y,re-gt)}var Ro=oe?x:this,hu=ve?Ro[l]:l;return gt=Nt.length,$?Nt=Q7e(Nt,$):Be&>>1&&Nt.reverse(),ie&&Y<gt&&(Nt.length=Y),this&&this!==Nn&&this instanceof Ue&&(hu=ct||av(hu)),hu.apply(Ro,Nt)}return Ue}function L9(l,d){return function(x,E){return a7e(x,l,d(E),{})}}function Db(l,d){return function(x,E){var C;if(x===e&&E===e)return d;if(x!==e&&(C=x),E!==e){if(C===e)return E;typeof x=="string"||typeof E=="string"?(x=hs(x),E=hs(E)):(x=b9(x),E=b9(E)),C=l(x,E)}return C}}function aI(l){return lu(function(d){return d=Er(d,ds(Me())),lt(function(x){var E=this;return l(d,function(C){return ps(C,E,x)})})})}function Lb(l,d){d=d===e?" ":hs(d);var x=d.length;if(x<2)return x?eI(d,l):d;var E=eI(d,wb(l/vd(d)));return gd(d)?qc(To(E),0,l).join(""):E.slice(0,l)}function P7e(l,d,x,E){var C=d&v,P=av(l);function j(){for(var $=-1,Y=arguments.length,re=-1,ie=E.length,oe=Q(ie+Y),ve=this&&this!==Nn&&this instanceof j?P:l;++re<ie;)oe[re]=E[re];for(;Y--;)oe[re++]=arguments[++$];return ps(ve,C?x:this,oe)}return j}function F9(l){return function(d,x,E){return E&&typeof E!="number"&&Oi(d,x,E)&&(x=E=e),d=du(d),x===e?(x=d,d=0):x=du(x),E=E===e?d<x?1:-1:du(E),x7e(d,x,E,l)}}function Fb(l){return function(d,x){return typeof d=="string"&&typeof x=="string"||(d=Gs(d),x=Gs(x)),l(d,x)}}function M9(l,d,x,E,C,P,j,$,Y,re){var ie=d&y,oe=ie?j:e,ve=ie?e:j,Ie=ie?P:e,Be=ie?e:P;d|=ie?S:T,d&=~(ie?T:S),d&w||(d&=~(v|_));var ct=[l,d,C,Ie,oe,Be,ve,$,Y,re],Ue=x.apply(e,ct);return mI(l)&&Y9(Ue,ct),Ue.placeholder=E,Z9(Ue,l,d)}function uI(l){var d=yn[l];return function(x,E){if(x=Gs(x),E=E==null?0:pi(st(E),292),E&&Z7(x)){var C=($t(x)+"e").split("e"),P=d(C[0]+"e"+(+C[1]+E));return C=($t(P)+"e").split("e"),+(C[0]+"e"+(+C[1]-E))}return d(x)}}var D7e=xd&&1/pb(new xd([,-0]))[1]==B?function(l){return new xd(l)}:II;function j9(l){return function(d){var x=di(d);return x==H?MO(d):x==Ae?J5e(d):$5e(d,l(d))}}function cu(l,d,x,E,C,P,j,$){var Y=d&_;if(!Y&&typeof l!="function")throw new Us(i);var re=E?E.length:0;if(re||(d&=~(S|T),E=C=e),j=j===e?j:xn(st(j),0),$=$===e?$:st($),re-=C?C.length:0,d&T){var ie=E,oe=C;E=C=e}var ve=Y?e:fI(l),Ie=[l,d,x,E,C,ie,oe,P,j,$];if(ve&&Y7e(Ie,ve),l=Ie[0],d=Ie[1],x=Ie[2],E=Ie[3],C=Ie[4],$=Ie[9]=Ie[9]===e?Y?0:l.length:xn(Ie[9]-re,0),!$&&d&(y|b)&&(d&=~(y|b)),!d||d==v)var Be=q7e(l,d,x);else d==y||d==b?Be=k7e(l,d,$):(d==S||d==(v|S))&&!C.length?Be=P7e(l,d,x,E):Be=Pb.apply(e,Ie);var ct=ve?x9:Y9;return Z9(ct(Be,Ie),l,d)}function B9(l,d,x,E){return l===e||Co(l,yd[x])&&!Kt.call(E,x)?d:l}function U9(l,d,x,E,C,P){return qr(l)&&qr(d)&&(P.set(d,l),Ib(l,d,e,U9,P),P.delete(d)),l}function L7e(l){return lv(l)?e:l}function W9(l,d,x,E,C,P){var j=x&h,$=l.length,Y=d.length;if($!=Y&&!(j&&Y>$))return!1;var re=P.get(l),ie=P.get(d);if(re&&ie)return re==d&&ie==l;var oe=-1,ve=!0,Ie=x&g?new ef:e;for(P.set(l,d),P.set(d,l);++oe<$;){var Be=l[oe],ct=d[oe];if(E)var Ue=j?E(ct,Be,oe,d,l,P):E(Be,ct,oe,l,d,P);if(Ue!==e){if(Ue)continue;ve=!1;break}if(Ie){if(!qO(d,function(gt,Nt){if(!Yg(Ie,Nt)&&(Be===gt||C(Be,gt,x,E,P)))return Ie.push(Nt)})){ve=!1;break}}else if(!(Be===ct||C(Be,ct,x,E,P))){ve=!1;break}}return P.delete(l),P.delete(d),ve}function F7e(l,d,x,E,C,P,j){switch(x){case N:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case sa:return!(l.byteLength!=d.byteLength||!P(new yb(l),new yb(d)));case Te:case Ur:case K:return Co(+l,+d);case pe:return l.name==d.name&&l.message==d.message;case on:case sr:return l==d+"";case H:var $=MO;case Ae:var Y=E&h;if($||($=pb),l.size!=d.size&&!Y)return!1;var re=j.get(l);if(re)return re==d;E|=g,j.set(l,d);var ie=W9($(l),$(d),E,C,P,j);return j.delete(l),ie;case Bn:if(tv)return tv.call(l)==tv.call(d)}return!1}function M7e(l,d,x,E,C,P){var j=x&h,$=cI(l),Y=$.length,re=cI(d),ie=re.length;if(Y!=ie&&!j)return!1;for(var oe=Y;oe--;){var ve=$[oe];if(!(j?ve in d:Kt.call(d,ve)))return!1}var Ie=P.get(l),Be=P.get(d);if(Ie&&Be)return Ie==d&&Be==l;var ct=!0;P.set(l,d),P.set(d,l);for(var Ue=j;++oe<Y;){ve=$[oe];var gt=l[ve],Nt=d[ve];if(E)var gs=j?E(Nt,gt,ve,d,l,P):E(gt,Nt,ve,l,d,P);if(!(gs===e?gt===Nt||C(gt,Nt,x,E,P):gs)){ct=!1;break}Ue||(Ue=ve=="constructor")}if(ct&&!Ue){var Ii=l.constructor,vs=d.constructor;Ii!=vs&&"constructor"in l&&"constructor"in d&&!(typeof Ii=="function"&&Ii instanceof Ii&&typeof vs=="function"&&vs instanceof vs)&&(ct=!1)}return P.delete(l),P.delete(d),ct}function lu(l){return vI(K9(l,e,nW),l+"")}function cI(l){return u9(l,qn,dI)}function lI(l){return u9(l,Ki,H9)}var fI=Sb?function(l){return Sb.get(l)}:II;function Mb(l){for(var d=l.name+"",x=_d[d],E=Kt.call(_d,d)?x.length:0;E--;){var C=x[E],P=C.func;if(P==null||P==l)return C.name}return d}function Sd(l){var d=Kt.call(I,"placeholder")?I:l;return d.placeholder}function Me(){var l=I.iteratee||RI;return l=l===RI?f9:l,arguments.length?l(arguments[0],arguments[1]):l}function jb(l,d){var x=l.__data__;return G7e(d)?x[typeof d=="string"?"string":"hash"]:x.map}function pI(l){for(var d=qn(l),x=d.length;x--;){var E=d[x],C=l[E];d[x]=[E,C,G9(C)]}return d}function nf(l,d){var x=X5e(l,d);return l9(x)?x:e}function j7e(l){var d=Kt.call(l,Jl),x=l[Jl];try{l[Jl]=e;var E=!0}catch{}var C=gb.call(l);return E&&(d?l[Jl]=x:delete l[Jl]),C}var dI=BO?function(l){return l==null?[]:(l=or(l),Sc(BO(l),function(d){return X7.call(l,d)}))}:NI,H9=BO?function(l){for(var d=[];l;)Tc(d,dI(l)),l=xb(l);return d}:NI,di=Ri;(UO&&di(new UO(new ArrayBuffer(1)))!=N||Jg&&di(new Jg)!=H||WO&&di(WO.resolve())!=rr||xd&&di(new xd)!=Ae||Qg&&di(new Qg)!=ia)&&(di=function(l){var d=Ri(l),x=d==Fe?l.constructor:e,E=x?sf(x):"";if(E)switch(E){case b8e:return N;case w8e:return H;case E8e:return rr;case S8e:return Ae;case T8e:return ia}return d});function B7e(l,d,x){for(var E=-1,C=x.length;++E<C;){var P=x[E],j=P.size;switch(P.type){case"drop":l+=j;break;case"dropRight":d-=j;break;case"take":d=pi(d,l+j);break;case"takeRight":l=xn(l,d-j);break}}return{start:l,end:d}}function U7e(l){var d=l.match(VUe);return d?d[1].split(KUe):[]}function $9(l,d,x){d=Nc(d,l);for(var E=-1,C=d.length,P=!1;++E<C;){var j=ua(d[E]);if(!(P=l!=null&&x(l,j)))break;l=l[j]}return P||++E!=C?P:(C=l==null?0:l.length,!!C&&Gb(C)&&fu(j,C)&&(nt(l)||of(l)))}function W7e(l){var d=l.length,x=new l.constructor(d);return d&&typeof l[0]=="string"&&Kt.call(l,"index")&&(x.index=l.index,x.input=l.input),x}function z9(l){return typeof l.constructor=="function"&&!uv(l)?bd(xb(l)):{}}function H7e(l,d,x){var E=l.constructor;switch(d){case sa:return oI(l);case Te:case Ur:return new E(+l);case N:return A7e(l,x);case W:case G:case ee:case ne:case _e:case Ke:case mt:case vn:case ls:return C9(l,x);case H:return new E;case K:case sr:return new E(l);case on:return C7e(l);case Ae:return new E;case Bn:return R7e(l)}}function $7e(l,d){var x=d.length;if(!x)return l;var E=x-1;return d[E]=(x>1?"& ":"")+d[E],d=d.join(x>2?", ":" "),l.replace(ob,`{
|
|
126
126
|
/* [wrapped with `+d+`] */
|
|
127
127
|
`)}function z7e(l){return nt(l)||of(l)||!!(Y7&&l&&l[Y7])}function fu(l,d){var x=typeof l;return d=d??V,!!d&&(x=="number"||x!="symbol"&&n5e.test(l))&&l>-1&&l%1==0&&l<d}function Oi(l,d,x){if(!qr(x))return!1;var E=typeof d;return(E=="number"?Vi(x)&&fu(d,x.length):E=="string"&&d in x)?Co(x[d],l):!1}function hI(l,d){if(nt(l))return!1;var x=typeof l;return x=="number"||x=="symbol"||x=="boolean"||l==null||ms(l)?!0:ib.test(l)||!Kg.test(l)||d!=null&&l in or(d)}function G7e(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function mI(l){var d=Mb(l),x=I[d];if(typeof x!="function"||!(d in wt.prototype))return!1;if(l===x)return!0;var E=fI(x);return!!E&&l===E[0]}function V7e(l){return!!G7&&G7 in l}var K7e=hb?pu:qI;function uv(l){var d=l&&l.constructor,x=typeof d=="function"&&d.prototype||yd;return l===x}function G9(l){return l===l&&!qr(l)}function V9(l,d){return function(x){return x==null?!1:x[l]===d&&(d!==e||l in or(x))}}function X7e(l){var d=$b(l,function(E){return x.size===a&&x.clear(),E}),x=d.cache;return d}function Y7e(l,d){var x=l[1],E=d[1],C=x|E,P=C<(v|_|R),j=E==R&&x==y||E==R&&x==q&&l[7].length<=d[8]||E==(R|q)&&d[7].length<=d[8]&&x==y;if(!(P||j))return l;E&v&&(l[2]=d[2],C|=x&v?0:w);var $=d[3];if($){var Y=l[3];l[3]=Y?O9(Y,$,d[4]):$,l[4]=Y?Ac(l[3],u):d[4]}return $=d[5],$&&(Y=l[5],l[5]=Y?I9(Y,$,d[6]):$,l[6]=Y?Ac(l[5],u):d[6]),$=d[7],$&&(l[7]=$),E&R&&(l[8]=l[8]==null?d[8]:pi(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=C,l}function Z7e(l){var d=[];if(l!=null)for(var x in or(l))d.push(x);return d}function J7e(l){return gb.call(l)}function K9(l,d,x){return d=xn(d===e?l.length-1:d,0),function(){for(var E=arguments,C=-1,P=xn(E.length-d,0),j=Q(P);++C<P;)j[C]=E[d+C];C=-1;for(var $=Q(d+1);++C<d;)$[C]=E[C];return $[d]=x(j),ps(l,this,$)}}function X9(l,d){return d.length<2?l:rf(l,$s(d,0,-1))}function Q7e(l,d){for(var x=l.length,E=pi(d.length,x),C=Gi(l);E--;){var P=d[E];l[E]=fu(P,x)?C[P]:e}return l}function gI(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var Y9=J9(x9),cv=h8e||function(l,d){return Nn.setTimeout(l,d)},vI=J9(w7e);function Z9(l,d,x){var E=d+"";return vI(l,$7e(E,e9e(U7e(E),x)))}function J9(l){var d=0,x=0;return function(){var E=y8e(),C=L-(E-x);if(x=E,C>0){if(++d>=z)return arguments[0]}else d=0;return l.apply(e,arguments)}}function Bb(l,d){var x=-1,E=l.length,C=E-1;for(d=d===e?E:d;++x<d;){var P=QO(x,C),j=l[P];l[P]=l[x],l[x]=j}return l.length=d,l}var Q9=X7e(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(Xg,function(x,E,C,P){d.push(C?P.replace(ZUe,"$1"):E||x)}),d});function ua(l){if(typeof l=="string"||ms(l))return l;var d=l+"";return d=="0"&&1/l==-B?"-0":d}function sf(l){if(l!=null){try{return mb.call(l)}catch{}try{return l+""}catch{}}return""}function e9e(l,d){return Bs(Le,function(x){var E="_."+x[0];d&x[1]&&!lb(l,E)&&l.push(E)}),l.sort()}function eW(l){if(l instanceof wt)return l.clone();var d=new Ws(l.__wrapped__,l.__chain__);return d.__actions__=Gi(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function t9e(l,d,x){(x?Oi(l,d,x):d===e)?d=1:d=xn(st(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var C=0,P=0,j=Q(wb(E/d));C<E;)j[P++]=$s(l,C,C+=d);return j}function r9e(l){for(var d=-1,x=l==null?0:l.length,E=0,C=[];++d<x;){var P=l[d];P&&(C[E++]=P)}return C}function n9e(){var l=arguments.length;if(!l)return[];for(var d=Q(l-1),x=arguments[0],E=l;E--;)d[E-1]=arguments[E];return Tc(nt(x)?Gi(x):[x],Un(d,1))}var i9e=lt(function(l,d){return Yr(l)?nv(l,Un(d,1,Yr,!0)):[]}),s9e=lt(function(l,d){var x=zs(d);return Yr(x)&&(x=e),Yr(l)?nv(l,Un(d,1,Yr,!0),Me(x,2)):[]}),o9e=lt(function(l,d){var x=zs(d);return Yr(x)&&(x=e),Yr(l)?nv(l,Un(d,1,Yr,!0),e,x):[]});function a9e(l,d,x){var E=l==null?0:l.length;return E?(d=x||d===e?1:st(d),$s(l,d<0?0:d,E)):[]}function u9e(l,d,x){var E=l==null?0:l.length;return E?(d=x||d===e?1:st(d),d=E-d,$s(l,0,d<0?0:d)):[]}function c9e(l,d){return l&&l.length?qb(l,Me(d,3),!0,!0):[]}function l9e(l,d){return l&&l.length?qb(l,Me(d,3),!0):[]}function f9e(l,d,x,E){var C=l==null?0:l.length;return C?(x&&typeof x!="number"&&Oi(l,d,x)&&(x=0,E=C),n7e(l,d,x,E)):[]}function tW(l,d,x){var E=l==null?0:l.length;if(!E)return-1;var C=x==null?0:st(x);return C<0&&(C=xn(E+C,0)),fb(l,Me(d,3),C)}function rW(l,d,x){var E=l==null?0:l.length;if(!E)return-1;var C=E-1;return x!==e&&(C=st(x),C=x<0?xn(E+C,0):pi(C,E-1)),fb(l,Me(d,3),C,!0)}function nW(l){var d=l==null?0:l.length;return d?Un(l,1):[]}function p9e(l){var d=l==null?0:l.length;return d?Un(l,B):[]}function d9e(l,d){var x=l==null?0:l.length;return x?(d=d===e?1:st(d),Un(l,d)):[]}function h9e(l){for(var d=-1,x=l==null?0:l.length,E={};++d<x;){var C=l[d];E[C[0]]=C[1]}return E}function iW(l){return l&&l.length?l[0]:e}function m9e(l,d,x){var E=l==null?0:l.length;if(!E)return-1;var C=x==null?0:st(x);return C<0&&(C=xn(E+C,0)),md(l,d,C)}function g9e(l){var d=l==null?0:l.length;return d?$s(l,0,-1):[]}var v9e=lt(function(l){var d=Er(l,iI);return d.length&&d[0]===l[0]?KO(d):[]}),y9e=lt(function(l){var d=zs(l),x=Er(l,iI);return d===zs(x)?d=e:x.pop(),x.length&&x[0]===l[0]?KO(x,Me(d,2)):[]}),x9e=lt(function(l){var d=zs(l),x=Er(l,iI);return d=typeof d=="function"?d:e,d&&x.pop(),x.length&&x[0]===l[0]?KO(x,e,d):[]});function _9e(l,d){return l==null?"":g8e.call(l,d)}function zs(l){var d=l==null?0:l.length;return d?l[d-1]:e}function b9e(l,d,x){var E=l==null?0:l.length;if(!E)return-1;var C=E;return x!==e&&(C=st(x),C=C<0?xn(E+C,0):pi(C,E-1)),d===d?e8e(l,d,C):fb(l,M7,C,!0)}function w9e(l,d){return l&&l.length?m9(l,st(d)):e}var E9e=lt(sW);function sW(l,d){return l&&l.length&&d&&d.length?JO(l,d):l}function S9e(l,d,x){return l&&l.length&&d&&d.length?JO(l,d,Me(x,2)):l}function T9e(l,d,x){return l&&l.length&&d&&d.length?JO(l,d,e,x):l}var A9e=lu(function(l,d){var x=l==null?0:l.length,E=$O(l,d);return y9(l,Er(d,function(C){return fu(C,x)?+C:C}).sort(R9)),E});function C9e(l,d){var x=[];if(!(l&&l.length))return x;var E=-1,C=[],P=l.length;for(d=Me(d,3);++E<P;){var j=l[E];d(j,E,l)&&(x.push(j),C.push(E))}return y9(l,C),x}function yI(l){return l==null?l:_8e.call(l)}function R9e(l,d,x){var E=l==null?0:l.length;return E?(x&&typeof x!="number"&&Oi(l,d,x)?(d=0,x=E):(d=d==null?0:st(d),x=x===e?E:st(x)),$s(l,d,x)):[]}function O9e(l,d){return Nb(l,d)}function I9e(l,d,x){return tI(l,d,Me(x,2))}function N9e(l,d){var x=l==null?0:l.length;if(x){var E=Nb(l,d);if(E<x&&Co(l[E],d))return E}return-1}function q9e(l,d){return Nb(l,d,!0)}function k9e(l,d,x){return tI(l,d,Me(x,2),!0)}function P9e(l,d){var x=l==null?0:l.length;if(x){var E=Nb(l,d,!0)-1;if(Co(l[E],d))return E}return-1}function D9e(l){return l&&l.length?_9(l):[]}function L9e(l,d){return l&&l.length?_9(l,Me(d,2)):[]}function F9e(l){var d=l==null?0:l.length;return d?$s(l,1,d):[]}function M9e(l,d,x){return l&&l.length?(d=x||d===e?1:st(d),$s(l,0,d<0?0:d)):[]}function j9e(l,d,x){var E=l==null?0:l.length;return E?(d=x||d===e?1:st(d),d=E-d,$s(l,d<0?0:d,E)):[]}function B9e(l,d){return l&&l.length?qb(l,Me(d,3),!1,!0):[]}function U9e(l,d){return l&&l.length?qb(l,Me(d,3)):[]}var W9e=lt(function(l){return Ic(Un(l,1,Yr,!0))}),H9e=lt(function(l){var d=zs(l);return Yr(d)&&(d=e),Ic(Un(l,1,Yr,!0),Me(d,2))}),$9e=lt(function(l){var d=zs(l);return d=typeof d=="function"?d:e,Ic(Un(l,1,Yr,!0),e,d)});function z9e(l){return l&&l.length?Ic(l):[]}function G9e(l,d){return l&&l.length?Ic(l,Me(d,2)):[]}function V9e(l,d){return d=typeof d=="function"?d:e,l&&l.length?Ic(l,e,d):[]}function xI(l){if(!(l&&l.length))return[];var d=0;return l=Sc(l,function(x){if(Yr(x))return d=xn(x.length,d),!0}),LO(d,function(x){return Er(l,kO(x))})}function oW(l,d){if(!(l&&l.length))return[];var x=xI(l);return d==null?x:Er(x,function(E){return ps(d,e,E)})}var K9e=lt(function(l,d){return Yr(l)?nv(l,d):[]}),X9e=lt(function(l){return nI(Sc(l,Yr))}),Y9e=lt(function(l){var d=zs(l);return Yr(d)&&(d=e),nI(Sc(l,Yr),Me(d,2))}),Z9e=lt(function(l){var d=zs(l);return d=typeof d=="function"?d:e,nI(Sc(l,Yr),e,d)}),J9e=lt(xI);function Q9e(l,d){return S9(l||[],d||[],rv)}function eWe(l,d){return S9(l||[],d||[],ov)}var tWe=lt(function(l){var d=l.length,x=d>1?l[d-1]:e;return x=typeof x=="function"?(l.pop(),x):e,oW(l,x)});function aW(l){var d=I(l);return d.__chain__=!0,d}function rWe(l,d){return d(l),l}function Ub(l,d){return d(l)}var nWe=lu(function(l){var d=l.length,x=d?l[0]:0,E=this.__wrapped__,C=function(P){return $O(P,l)};return d>1||this.__actions__.length||!(E instanceof wt)||!fu(x)?this.thru(C):(E=E.slice(x,+x+(d?1:0)),E.__actions__.push({func:Ub,args:[C],thisArg:e}),new Ws(E,this.__chain__).thru(function(P){return d&&!P.length&&P.push(e),P}))});function iWe(){return aW(this)}function sWe(){return new Ws(this.value(),this.__chain__)}function oWe(){this.__values__===e&&(this.__values__=bW(this.value()));var l=this.__index__>=this.__values__.length,d=l?e:this.__values__[this.__index__++];return{done:l,value:d}}function aWe(){return this}function uWe(l){for(var d,x=this;x instanceof Ab;){var E=eW(x);E.__index__=0,E.__values__=e,d?C.__wrapped__=E:d=E;var C=E;x=x.__wrapped__}return C.__wrapped__=l,d}function cWe(){var l=this.__wrapped__;if(l instanceof wt){var d=l;return this.__actions__.length&&(d=new wt(this)),d=d.reverse(),d.__actions__.push({func:Ub,args:[yI],thisArg:e}),new Ws(d,this.__chain__)}return this.thru(yI)}function lWe(){return E9(this.__wrapped__,this.__actions__)}var fWe=kb(function(l,d,x){Kt.call(l,x)?++l[x]:uu(l,x,1)});function pWe(l,d,x){var E=nt(l)?L7:r7e;return x&&Oi(l,d,x)&&(d=e),E(l,Me(d,3))}function dWe(l,d){var x=nt(l)?Sc:o9;return x(l,Me(d,3))}var hWe=P9(tW),mWe=P9(rW);function gWe(l,d){return Un(Wb(l,d),1)}function vWe(l,d){return Un(Wb(l,d),B)}function yWe(l,d,x){return x=x===e?1:st(x),Un(Wb(l,d),x)}function uW(l,d){var x=nt(l)?Bs:Oc;return x(l,Me(d,3))}function cW(l,d){var x=nt(l)?F5e:s9;return x(l,Me(d,3))}var xWe=kb(function(l,d,x){Kt.call(l,x)?l[x].push(d):uu(l,x,[d])});function _We(l,d,x,E){l=Vi(l)?l:Ad(l),x=x&&!E?st(x):0;var C=l.length;return x<0&&(x=xn(C+x,0)),Vb(l)?x<=C&&l.indexOf(d,x)>-1:!!C&&md(l,d,x)>-1}var bWe=lt(function(l,d,x){var E=-1,C=typeof d=="function",P=Vi(l)?Q(l.length):[];return Oc(l,function(j){P[++E]=C?ps(d,j,x):iv(j,d,x)}),P}),wWe=kb(function(l,d,x){uu(l,x,d)});function Wb(l,d){var x=nt(l)?Er:p9;return x(l,Me(d,3))}function EWe(l,d,x,E){return l==null?[]:(nt(d)||(d=d==null?[]:[d]),x=E?e:x,nt(x)||(x=x==null?[]:[x]),g9(l,d,x))}var SWe=kb(function(l,d,x){l[x?0:1].push(d)},function(){return[[],[]]});function TWe(l,d,x){var E=nt(l)?NO:B7,C=arguments.length<3;return E(l,Me(d,4),x,C,Oc)}function AWe(l,d,x){var E=nt(l)?M5e:B7,C=arguments.length<3;return E(l,Me(d,4),x,C,s9)}function CWe(l,d){var x=nt(l)?Sc:o9;return x(l,zb(Me(d,3)))}function RWe(l){var d=nt(l)?t9:_7e;return d(l)}function OWe(l,d,x){(x?Oi(l,d,x):d===e)?d=1:d=st(d);var E=nt(l)?Z8e:b7e;return E(l,d)}function IWe(l){var d=nt(l)?J8e:E7e;return d(l)}function NWe(l){if(l==null)return 0;if(Vi(l))return Vb(l)?vd(l):l.length;var d=di(l);return d==H||d==Ae?l.size:YO(l).length}function qWe(l,d,x){var E=nt(l)?qO:S7e;return x&&Oi(l,d,x)&&(d=e),E(l,Me(d,3))}var kWe=lt(function(l,d){if(l==null)return[];var x=d.length;return x>1&&Oi(l,d[0],d[1])?d=[]:x>2&&Oi(d[0],d[1],d[2])&&(d=[d[0]]),g9(l,Un(d,1),[])}),Hb=d8e||function(){return Nn.Date.now()};function PWe(l,d){if(typeof d!="function")throw new Us(i);return l=st(l),function(){if(--l<1)return d.apply(this,arguments)}}function lW(l,d,x){return d=x?e:d,d=l&&d==null?l.length:d,cu(l,R,e,e,e,e,d)}function fW(l,d){var x;if(typeof d!="function")throw new Us(i);return l=st(l),function(){return--l>0&&(x=d.apply(this,arguments)),l<=1&&(d=e),x}}var _I=lt(function(l,d,x){var E=v;if(x.length){var C=Ac(x,Sd(_I));E|=S}return cu(l,E,d,x,C)}),pW=lt(function(l,d,x){var E=v|_;if(x.length){var C=Ac(x,Sd(pW));E|=S}return cu(d,E,l,x,C)});function dW(l,d,x){d=x?e:d;var E=cu(l,y,e,e,e,e,e,d);return E.placeholder=dW.placeholder,E}function hW(l,d,x){d=x?e:d;var E=cu(l,b,e,e,e,e,e,d);return E.placeholder=hW.placeholder,E}function mW(l,d,x){var E,C,P,j,$,Y,re=0,ie=!1,oe=!1,ve=!0;if(typeof l!="function")throw new Us(i);d=Gs(d)||0,qr(x)&&(ie=!!x.leading,oe="maxWait"in x,P=oe?xn(Gs(x.maxWait)||0,d):P,ve="trailing"in x?!!x.trailing:ve);function Ie(Zr){var Ro=E,hu=C;return E=C=e,re=Zr,j=l.apply(hu,Ro),j}function Be(Zr){return re=Zr,$=cv(gt,d),ie?Ie(Zr):j}function ct(Zr){var Ro=Zr-Y,hu=Zr-re,PW=d-Ro;return oe?pi(PW,P-hu):PW}function Ue(Zr){var Ro=Zr-Y,hu=Zr-re;return Y===e||Ro>=d||Ro<0||oe&&hu>=P}function gt(){var Zr=Hb();if(Ue(Zr))return Nt(Zr);$=cv(gt,ct(Zr))}function Nt(Zr){return $=e,ve&&E?Ie(Zr):(E=C=e,j)}function gs(){$!==e&&T9($),re=0,E=Y=C=$=e}function Ii(){return $===e?j:Nt(Hb())}function vs(){var Zr=Hb(),Ro=Ue(Zr);if(E=arguments,C=this,Y=Zr,Ro){if($===e)return Be(Y);if(oe)return T9($),$=cv(gt,d),Ie(Y)}return $===e&&($=cv(gt,d)),j}return vs.cancel=gs,vs.flush=Ii,vs}var DWe=lt(function(l,d){return i9(l,1,d)}),LWe=lt(function(l,d,x){return i9(l,Gs(d)||0,x)});function FWe(l){return cu(l,O)}function $b(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Us(i);var x=function(){var E=arguments,C=d?d.apply(this,E):E[0],P=x.cache;if(P.has(C))return P.get(C);var j=l.apply(this,E);return x.cache=P.set(C,j)||P,j};return x.cache=new($b.Cache||au),x}$b.Cache=au;function zb(l){if(typeof l!="function")throw new Us(i);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function MWe(l){return fW(2,l)}var jWe=T7e(function(l,d){d=d.length==1&&nt(d[0])?Er(d[0],ds(Me())):Er(Un(d,1),ds(Me()));var x=d.length;return lt(function(E){for(var C=-1,P=pi(E.length,x);++C<P;)E[C]=d[C].call(this,E[C]);return ps(l,this,E)})}),bI=lt(function(l,d){var x=Ac(d,Sd(bI));return cu(l,S,e,d,x)}),gW=lt(function(l,d){var x=Ac(d,Sd(gW));return cu(l,T,e,d,x)}),BWe=lu(function(l,d){return cu(l,q,e,e,e,d)});function UWe(l,d){if(typeof l!="function")throw new Us(i);return d=d===e?d:st(d),lt(l,d)}function WWe(l,d){if(typeof l!="function")throw new Us(i);return d=d==null?0:xn(st(d),0),lt(function(x){var E=x[d],C=qc(x,0,d);return E&&Tc(C,E),ps(l,this,C)})}function HWe(l,d,x){var E=!0,C=!0;if(typeof l!="function")throw new Us(i);return qr(x)&&(E="leading"in x?!!x.leading:E,C="trailing"in x?!!x.trailing:C),mW(l,d,{leading:E,maxWait:d,trailing:C})}function $We(l){return lW(l,1)}function zWe(l,d){return bI(sI(d),l)}function GWe(){if(!arguments.length)return[];var l=arguments[0];return nt(l)?l:[l]}function VWe(l){return Hs(l,p)}function KWe(l,d){return d=typeof d=="function"?d:e,Hs(l,p,d)}function XWe(l){return Hs(l,c|p)}function YWe(l,d){return d=typeof d=="function"?d:e,Hs(l,c|p,d)}function ZWe(l,d){return d==null||n9(l,d,qn(d))}function Co(l,d){return l===d||l!==l&&d!==d}var JWe=Fb(VO),QWe=Fb(function(l,d){return l>=d}),of=c9(function(){return arguments}())?c9:function(l){return Wr(l)&&Kt.call(l,"callee")&&!X7.call(l,"callee")},nt=Q.isArray,eHe=I7?ds(I7):u7e;function Vi(l){return l!=null&&Gb(l.length)&&!pu(l)}function Yr(l){return Wr(l)&&Vi(l)}function tHe(l){return l===!0||l===!1||Wr(l)&&Ri(l)==Te}var kc=m8e||qI,rHe=N7?ds(N7):c7e;function nHe(l){return Wr(l)&&l.nodeType===1&&!lv(l)}function iHe(l){if(l==null)return!0;if(Vi(l)&&(nt(l)||typeof l=="string"||typeof l.splice=="function"||kc(l)||Td(l)||of(l)))return!l.length;var d=di(l);if(d==H||d==Ae)return!l.size;if(uv(l))return!YO(l).length;for(var x in l)if(Kt.call(l,x))return!1;return!0}function sHe(l,d){return sv(l,d)}function oHe(l,d,x){x=typeof x=="function"?x:e;var E=x?x(l,d):e;return E===e?sv(l,d,e,x):!!E}function wI(l){if(!Wr(l))return!1;var d=Ri(l);return d==pe||d==Ci||typeof l.message=="string"&&typeof l.name=="string"&&!lv(l)}function aHe(l){return typeof l=="number"&&Z7(l)}function pu(l){if(!qr(l))return!1;var d=Ri(l);return d==k||d==A||d==Vt||d==Nr}function vW(l){return typeof l=="number"&&l==st(l)}function Gb(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=V}function qr(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Wr(l){return l!=null&&typeof l=="object"}var yW=q7?ds(q7):f7e;function uHe(l,d){return l===d||XO(l,d,pI(d))}function cHe(l,d,x){return x=typeof x=="function"?x:e,XO(l,d,pI(d),x)}function lHe(l){return xW(l)&&l!=+l}function fHe(l){if(K7e(l))throw new Ye(n);return l9(l)}function pHe(l){return l===null}function dHe(l){return l==null}function xW(l){return typeof l=="number"||Wr(l)&&Ri(l)==K}function lv(l){if(!Wr(l)||Ri(l)!=Fe)return!1;var d=xb(l);if(d===null)return!0;var x=Kt.call(d,"constructor")&&d.constructor;return typeof x=="function"&&x instanceof x&&mb.call(x)==c8e}var EI=k7?ds(k7):p7e;function hHe(l){return vW(l)&&l>=-V&&l<=V}var _W=P7?ds(P7):d7e;function Vb(l){return typeof l=="string"||!nt(l)&&Wr(l)&&Ri(l)==sr}function ms(l){return typeof l=="symbol"||Wr(l)&&Ri(l)==Bn}var Td=D7?ds(D7):h7e;function mHe(l){return l===e}function gHe(l){return Wr(l)&&di(l)==ia}function vHe(l){return Wr(l)&&Ri(l)==Kl}var yHe=Fb(ZO),xHe=Fb(function(l,d){return l<=d});function bW(l){if(!l)return[];if(Vi(l))return Vb(l)?To(l):Gi(l);if(Zg&&l[Zg])return Z5e(l[Zg]());var d=di(l),x=d==H?MO:d==Ae?pb:Ad;return x(l)}function du(l){if(!l)return l===0?l:0;if(l=Gs(l),l===B||l===-B){var d=l<0?-1:1;return d*he}return l===l?l:0}function st(l){var d=du(l),x=d%1;return d===d?x?d-x:d:0}function wW(l){return l?tf(st(l),0,xe):0}function Gs(l){if(typeof l=="number")return l;if(ms(l))return fe;if(qr(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=qr(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=U7(l);var x=e5e.test(l);return x||r5e.test(l)?P5e(l.slice(2),x?2:8):QUe.test(l)?fe:+l}function EW(l){return aa(l,Ki(l))}function _He(l){return l?tf(st(l),-V,V):l===0?l:0}function $t(l){return l==null?"":hs(l)}var bHe=wd(function(l,d){if(uv(d)||Vi(d)){aa(d,qn(d),l);return}for(var x in d)Kt.call(d,x)&&rv(l,x,d[x])}),SW=wd(function(l,d){aa(d,Ki(d),l)}),Kb=wd(function(l,d,x,E){aa(d,Ki(d),l,E)}),wHe=wd(function(l,d,x,E){aa(d,qn(d),l,E)}),EHe=lu($O);function SHe(l,d){var x=bd(l);return d==null?x:r9(x,d)}var THe=lt(function(l,d){l=or(l);var x=-1,E=d.length,C=E>2?d[2]:e;for(C&&Oi(d[0],d[1],C)&&(E=1);++x<E;)for(var P=d[x],j=Ki(P),$=-1,Y=j.length;++$<Y;){var re=j[$],ie=l[re];(ie===e||Co(ie,yd[re])&&!Kt.call(l,re))&&(l[re]=P[re])}return l}),AHe=lt(function(l){return l.push(e,U9),ps(TW,e,l)});function CHe(l,d){return F7(l,Me(d,3),oa)}function RHe(l,d){return F7(l,Me(d,3),GO)}function OHe(l,d){return l==null?l:zO(l,Me(d,3),Ki)}function IHe(l,d){return l==null?l:a9(l,Me(d,3),Ki)}function NHe(l,d){return l&&oa(l,Me(d,3))}function qHe(l,d){return l&&GO(l,Me(d,3))}function kHe(l){return l==null?[]:Ob(l,qn(l))}function PHe(l){return l==null?[]:Ob(l,Ki(l))}function SI(l,d,x){var E=l==null?e:rf(l,d);return E===e?x:E}function DHe(l,d){return l!=null&&$9(l,d,i7e)}function TI(l,d){return l!=null&&$9(l,d,s7e)}var LHe=L9(function(l,d,x){d!=null&&typeof d.toString!="function"&&(d=gb.call(d)),l[d]=x},CI(Xi)),FHe=L9(function(l,d,x){d!=null&&typeof d.toString!="function"&&(d=gb.call(d)),Kt.call(l,d)?l[d].push(x):l[d]=[x]},Me),MHe=lt(iv);function qn(l){return Vi(l)?e9(l):YO(l)}function Ki(l){return Vi(l)?e9(l,!0):m7e(l)}function jHe(l,d){var x={};return d=Me(d,3),oa(l,function(E,C,P){uu(x,d(E,C,P),E)}),x}function BHe(l,d){var x={};return d=Me(d,3),oa(l,function(E,C,P){uu(x,C,d(E,C,P))}),x}var UHe=wd(function(l,d,x){Ib(l,d,x)}),TW=wd(function(l,d,x,E){Ib(l,d,x,E)}),WHe=lu(function(l,d){var x={};if(l==null)return x;var E=!1;d=Er(d,function(P){return P=Nc(P,l),E||(E=P.length>1),P}),aa(l,lI(l),x),E&&(x=Hs(x,c|f|p,L7e));for(var C=d.length;C--;)rI(x,d[C]);return x});function HHe(l,d){return AW(l,zb(Me(d)))}var $He=lu(function(l,d){return l==null?{}:v7e(l,d)});function AW(l,d){if(l==null)return{};var x=Er(lI(l),function(E){return[E]});return d=Me(d),v9(l,x,function(E,C){return d(E,C[0])})}function zHe(l,d,x){d=Nc(d,l);var E=-1,C=d.length;for(C||(C=1,l=e);++E<C;){var P=l==null?e:l[ua(d[E])];P===e&&(E=C,P=x),l=pu(P)?P.call(l):P}return l}function GHe(l,d,x){return l==null?l:ov(l,d,x)}function VHe(l,d,x,E){return E=typeof E=="function"?E:e,l==null?l:ov(l,d,x,E)}var CW=j9(qn),RW=j9(Ki);function KHe(l,d,x){var E=nt(l),C=E||kc(l)||Td(l);if(d=Me(d,4),x==null){var P=l&&l.constructor;C?x=E?new P:[]:qr(l)?x=pu(P)?bd(xb(l)):{}:x={}}return(C?Bs:oa)(l,function(j,$,Y){return d(x,j,$,Y)}),x}function XHe(l,d){return l==null?!0:rI(l,d)}function YHe(l,d,x){return l==null?l:w9(l,d,sI(x))}function ZHe(l,d,x,E){return E=typeof E=="function"?E:e,l==null?l:w9(l,d,sI(x),E)}function Ad(l){return l==null?[]:FO(l,qn(l))}function JHe(l){return l==null?[]:FO(l,Ki(l))}function QHe(l,d,x){return x===e&&(x=d,d=e),x!==e&&(x=Gs(x),x=x===x?x:0),d!==e&&(d=Gs(d),d=d===d?d:0),tf(Gs(l),d,x)}function e$e(l,d,x){return d=du(d),x===e?(x=d,d=0):x=du(x),l=Gs(l),o7e(l,d,x)}function t$e(l,d,x){if(x&&typeof x!="boolean"&&Oi(l,d,x)&&(d=x=e),x===e&&(typeof d=="boolean"?(x=d,d=e):typeof l=="boolean"&&(x=l,l=e)),l===e&&d===e?(l=0,d=1):(l=du(l),d===e?(d=l,l=0):d=du(d)),l>d){var E=l;l=d,d=E}if(x||l%1||d%1){var C=J7();return pi(l+C*(d-l+k5e("1e-"+((C+"").length-1))),d)}return QO(l,d)}var r$e=Ed(function(l,d,x){return d=d.toLowerCase(),l+(x?OW(d):d)});function OW(l){return AI($t(l).toLowerCase())}function IW(l){return l=$t(l),l&&l.replace(i5e,G5e).replace(E5e,"")}function n$e(l,d,x){l=$t(l),d=hs(d);var E=l.length;x=x===e?E:tf(st(x),0,E);var C=x;return x-=d.length,x>=0&&l.slice(x,C)==d}function i$e(l){return l=$t(l),l&&nb.test(l)?l.replace(pd,V5e):l}function s$e(l){return l=$t(l),l&&dd.test(l)?l.replace(Xl,"\\$&"):l}var o$e=Ed(function(l,d,x){return l+(x?"-":"")+d.toLowerCase()}),a$e=Ed(function(l,d,x){return l+(x?" ":"")+d.toLowerCase()}),u$e=k9("toLowerCase");function c$e(l,d,x){l=$t(l),d=st(d);var E=d?vd(l):0;if(!d||E>=d)return l;var C=(d-E)/2;return Lb(Eb(C),x)+l+Lb(wb(C),x)}function l$e(l,d,x){l=$t(l),d=st(d);var E=d?vd(l):0;return d&&E<d?l+Lb(d-E,x):l}function f$e(l,d,x){l=$t(l),d=st(d);var E=d?vd(l):0;return d&&E<d?Lb(d-E,x)+l:l}function p$e(l,d,x){return x||d==null?d=0:d&&(d=+d),x8e($t(l).replace(Yl,""),d||0)}function d$e(l,d,x){return(x?Oi(l,d,x):d===e)?d=1:d=st(d),eI($t(l),d)}function h$e(){var l=arguments,d=$t(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var m$e=Ed(function(l,d,x){return l+(x?"_":"")+d.toLowerCase()});function g$e(l,d,x){return x&&typeof x!="number"&&Oi(l,d,x)&&(d=x=e),x=x===e?xe:x>>>0,x?(l=$t(l),l&&(typeof d=="string"||d!=null&&!EI(d))&&(d=hs(d),!d&&gd(l))?qc(To(l),0,x):l.split(d,x)):[]}var v$e=Ed(function(l,d,x){return l+(x?" ":"")+AI(d)});function y$e(l,d,x){return l=$t(l),x=x==null?0:tf(st(x),0,l.length),d=hs(d),l.slice(x,x+d.length)==d}function x$e(l,d,x){var E=I.templateSettings;x&&Oi(l,d,x)&&(d=e),l=$t(l),d=Kb({},d,E,B9);var C=Kb({},d.imports,E.imports,B9),P=qn(C),j=FO(C,P),$,Y,re=0,ie=d.interpolate||ab,oe="__p += '",ve=jO((d.escape||ab).source+"|"+ie.source+"|"+(ie===Vg?JUe:ab).source+"|"+(d.evaluate||ab).source+"|$","g"),Ie="//# sourceURL="+(Kt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++R5e+"]")+`
|
|
128
128
|
`;l.replace(ve,function(Ue,gt,Nt,gs,Ii,vs){return Nt||(Nt=gs),oe+=l.slice(re,vs).replace(s5e,K5e),gt&&($=!0,oe+=`' +
|
|
@@ -144,7 +144,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
144
144
|
}`;var ct=qW(function(){return jt(P,Ie+"return "+oe).apply(e,j)});if(ct.source=oe,wI(ct))throw ct;return ct}function _$e(l){return $t(l).toLowerCase()}function b$e(l){return $t(l).toUpperCase()}function w$e(l,d,x){if(l=$t(l),l&&(x||d===e))return U7(l);if(!l||!(d=hs(d)))return l;var E=To(l),C=To(d),P=W7(E,C),j=H7(E,C)+1;return qc(E,P,j).join("")}function E$e(l,d,x){if(l=$t(l),l&&(x||d===e))return l.slice(0,z7(l)+1);if(!l||!(d=hs(d)))return l;var E=To(l),C=H7(E,To(d))+1;return qc(E,0,C).join("")}function S$e(l,d,x){if(l=$t(l),l&&(x||d===e))return l.replace(Yl,"");if(!l||!(d=hs(d)))return l;var E=To(l),C=W7(E,To(d));return qc(E,C).join("")}function T$e(l,d){var x=M,E=U;if(qr(d)){var C="separator"in d?d.separator:C;x="length"in d?st(d.length):x,E="omission"in d?hs(d.omission):E}l=$t(l);var P=l.length;if(gd(l)){var j=To(l);P=j.length}if(x>=P)return l;var $=x-vd(E);if($<1)return E;var Y=j?qc(j,0,$).join(""):l.slice(0,$);if(C===e)return Y+E;if(j&&($+=Y.length-$),EI(C)){if(l.slice($).search(C)){var re,ie=Y;for(C.global||(C=jO(C.source,$t(c7.exec(C))+"g")),C.lastIndex=0;re=C.exec(ie);)var oe=re.index;Y=Y.slice(0,oe===e?$:oe)}}else if(l.indexOf(hs(C),$)!=$){var ve=Y.lastIndexOf(C);ve>-1&&(Y=Y.slice(0,ve))}return Y+E}function A$e(l){return l=$t(l),l&&rb.test(l)?l.replace(tb,t8e):l}var C$e=Ed(function(l,d,x){return l+(x?" ":"")+d.toUpperCase()}),AI=k9("toUpperCase");function NW(l,d,x){return l=$t(l),d=x?e:d,d===e?Y5e(l)?i8e(l):U5e(l):l.match(d)||[]}var qW=lt(function(l,d){try{return ps(l,e,d)}catch(x){return wI(x)?x:new Ye(x)}}),R$e=lu(function(l,d){return Bs(d,function(x){x=ua(x),uu(l,x,_I(l[x],l))}),l});function O$e(l){var d=l==null?0:l.length,x=Me();return l=d?Er(l,function(E){if(typeof E[1]!="function")throw new Us(i);return[x(E[0]),E[1]]}):[],lt(function(E){for(var C=-1;++C<d;){var P=l[C];if(ps(P[0],this,E))return ps(P[1],this,E)}})}function I$e(l){return t7e(Hs(l,c))}function CI(l){return function(){return l}}function N$e(l,d){return l==null||l!==l?d:l}var q$e=D9(),k$e=D9(!0);function Xi(l){return l}function RI(l){return f9(typeof l=="function"?l:Hs(l,c))}function P$e(l){return d9(Hs(l,c))}function D$e(l,d){return h9(l,Hs(d,c))}var L$e=lt(function(l,d){return function(x){return iv(x,l,d)}}),F$e=lt(function(l,d){return function(x){return iv(l,x,d)}});function OI(l,d,x){var E=qn(d),C=Ob(d,E);x==null&&!(qr(d)&&(C.length||!E.length))&&(x=d,d=l,l=this,C=Ob(d,qn(d)));var P=!(qr(x)&&"chain"in x)||!!x.chain,j=pu(l);return Bs(C,function($){var Y=d[$];l[$]=Y,j&&(l.prototype[$]=function(){var re=this.__chain__;if(P||re){var ie=l(this.__wrapped__),oe=ie.__actions__=Gi(this.__actions__);return oe.push({func:Y,args:arguments,thisArg:l}),ie.__chain__=re,ie}return Y.apply(l,Tc([this.value()],arguments))})}),l}function M$e(){return Nn._===this&&(Nn._=l8e),this}function II(){}function j$e(l){return l=st(l),lt(function(d){return m9(d,l)})}var B$e=aI(Er),U$e=aI(L7),W$e=aI(qO);function kW(l){return hI(l)?kO(ua(l)):y7e(l)}function H$e(l){return function(d){return l==null?e:rf(l,d)}}var $$e=F9(),z$e=F9(!0);function NI(){return[]}function qI(){return!1}function G$e(){return{}}function V$e(){return""}function K$e(){return!0}function X$e(l,d){if(l=st(l),l<1||l>V)return[];var x=xe,E=pi(l,xe);d=Me(d),l-=xe;for(var C=LO(E,d);++x<l;)d(x);return C}function Y$e(l){return nt(l)?Er(l,ua):ms(l)?[l]:Gi(Q9($t(l)))}function Z$e(l){var d=++u8e;return $t(l)+d}var J$e=Db(function(l,d){return l+d},0),Q$e=uI("ceil"),eze=Db(function(l,d){return l/d},1),tze=uI("floor");function rze(l){return l&&l.length?Rb(l,Xi,VO):e}function nze(l,d){return l&&l.length?Rb(l,Me(d,2),VO):e}function ize(l){return j7(l,Xi)}function sze(l,d){return j7(l,Me(d,2))}function oze(l){return l&&l.length?Rb(l,Xi,ZO):e}function aze(l,d){return l&&l.length?Rb(l,Me(d,2),ZO):e}var uze=Db(function(l,d){return l*d},1),cze=uI("round"),lze=Db(function(l,d){return l-d},0);function fze(l){return l&&l.length?DO(l,Xi):0}function pze(l,d){return l&&l.length?DO(l,Me(d,2)):0}return I.after=PWe,I.ary=lW,I.assign=bHe,I.assignIn=SW,I.assignInWith=Kb,I.assignWith=wHe,I.at=EHe,I.before=fW,I.bind=_I,I.bindAll=R$e,I.bindKey=pW,I.castArray=GWe,I.chain=aW,I.chunk=t9e,I.compact=r9e,I.concat=n9e,I.cond=O$e,I.conforms=I$e,I.constant=CI,I.countBy=fWe,I.create=SHe,I.curry=dW,I.curryRight=hW,I.debounce=mW,I.defaults=THe,I.defaultsDeep=AHe,I.defer=DWe,I.delay=LWe,I.difference=i9e,I.differenceBy=s9e,I.differenceWith=o9e,I.drop=a9e,I.dropRight=u9e,I.dropRightWhile=c9e,I.dropWhile=l9e,I.fill=f9e,I.filter=dWe,I.flatMap=gWe,I.flatMapDeep=vWe,I.flatMapDepth=yWe,I.flatten=nW,I.flattenDeep=p9e,I.flattenDepth=d9e,I.flip=FWe,I.flow=q$e,I.flowRight=k$e,I.fromPairs=h9e,I.functions=kHe,I.functionsIn=PHe,I.groupBy=xWe,I.initial=g9e,I.intersection=v9e,I.intersectionBy=y9e,I.intersectionWith=x9e,I.invert=LHe,I.invertBy=FHe,I.invokeMap=bWe,I.iteratee=RI,I.keyBy=wWe,I.keys=qn,I.keysIn=Ki,I.map=Wb,I.mapKeys=jHe,I.mapValues=BHe,I.matches=P$e,I.matchesProperty=D$e,I.memoize=$b,I.merge=UHe,I.mergeWith=TW,I.method=L$e,I.methodOf=F$e,I.mixin=OI,I.negate=zb,I.nthArg=j$e,I.omit=WHe,I.omitBy=HHe,I.once=MWe,I.orderBy=EWe,I.over=B$e,I.overArgs=jWe,I.overEvery=U$e,I.overSome=W$e,I.partial=bI,I.partialRight=gW,I.partition=SWe,I.pick=$He,I.pickBy=AW,I.property=kW,I.propertyOf=H$e,I.pull=E9e,I.pullAll=sW,I.pullAllBy=S9e,I.pullAllWith=T9e,I.pullAt=A9e,I.range=$$e,I.rangeRight=z$e,I.rearg=BWe,I.reject=CWe,I.remove=C9e,I.rest=UWe,I.reverse=yI,I.sampleSize=OWe,I.set=GHe,I.setWith=VHe,I.shuffle=IWe,I.slice=R9e,I.sortBy=kWe,I.sortedUniq=D9e,I.sortedUniqBy=L9e,I.split=g$e,I.spread=WWe,I.tail=F9e,I.take=M9e,I.takeRight=j9e,I.takeRightWhile=B9e,I.takeWhile=U9e,I.tap=rWe,I.throttle=HWe,I.thru=Ub,I.toArray=bW,I.toPairs=CW,I.toPairsIn=RW,I.toPath=Y$e,I.toPlainObject=EW,I.transform=KHe,I.unary=$We,I.union=W9e,I.unionBy=H9e,I.unionWith=$9e,I.uniq=z9e,I.uniqBy=G9e,I.uniqWith=V9e,I.unset=XHe,I.unzip=xI,I.unzipWith=oW,I.update=YHe,I.updateWith=ZHe,I.values=Ad,I.valuesIn=JHe,I.without=K9e,I.words=NW,I.wrap=zWe,I.xor=X9e,I.xorBy=Y9e,I.xorWith=Z9e,I.zip=J9e,I.zipObject=Q9e,I.zipObjectDeep=eWe,I.zipWith=tWe,I.entries=CW,I.entriesIn=RW,I.extend=SW,I.extendWith=Kb,OI(I,I),I.add=J$e,I.attempt=qW,I.camelCase=r$e,I.capitalize=OW,I.ceil=Q$e,I.clamp=QHe,I.clone=VWe,I.cloneDeep=XWe,I.cloneDeepWith=YWe,I.cloneWith=KWe,I.conformsTo=ZWe,I.deburr=IW,I.defaultTo=N$e,I.divide=eze,I.endsWith=n$e,I.eq=Co,I.escape=i$e,I.escapeRegExp=s$e,I.every=pWe,I.find=hWe,I.findIndex=tW,I.findKey=CHe,I.findLast=mWe,I.findLastIndex=rW,I.findLastKey=RHe,I.floor=tze,I.forEach=uW,I.forEachRight=cW,I.forIn=OHe,I.forInRight=IHe,I.forOwn=NHe,I.forOwnRight=qHe,I.get=SI,I.gt=JWe,I.gte=QWe,I.has=DHe,I.hasIn=TI,I.head=iW,I.identity=Xi,I.includes=_We,I.indexOf=m9e,I.inRange=e$e,I.invoke=MHe,I.isArguments=of,I.isArray=nt,I.isArrayBuffer=eHe,I.isArrayLike=Vi,I.isArrayLikeObject=Yr,I.isBoolean=tHe,I.isBuffer=kc,I.isDate=rHe,I.isElement=nHe,I.isEmpty=iHe,I.isEqual=sHe,I.isEqualWith=oHe,I.isError=wI,I.isFinite=aHe,I.isFunction=pu,I.isInteger=vW,I.isLength=Gb,I.isMap=yW,I.isMatch=uHe,I.isMatchWith=cHe,I.isNaN=lHe,I.isNative=fHe,I.isNil=dHe,I.isNull=pHe,I.isNumber=xW,I.isObject=qr,I.isObjectLike=Wr,I.isPlainObject=lv,I.isRegExp=EI,I.isSafeInteger=hHe,I.isSet=_W,I.isString=Vb,I.isSymbol=ms,I.isTypedArray=Td,I.isUndefined=mHe,I.isWeakMap=gHe,I.isWeakSet=vHe,I.join=_9e,I.kebabCase=o$e,I.last=zs,I.lastIndexOf=b9e,I.lowerCase=a$e,I.lowerFirst=u$e,I.lt=yHe,I.lte=xHe,I.max=rze,I.maxBy=nze,I.mean=ize,I.meanBy=sze,I.min=oze,I.minBy=aze,I.stubArray=NI,I.stubFalse=qI,I.stubObject=G$e,I.stubString=V$e,I.stubTrue=K$e,I.multiply=uze,I.nth=w9e,I.noConflict=M$e,I.noop=II,I.now=Hb,I.pad=c$e,I.padEnd=l$e,I.padStart=f$e,I.parseInt=p$e,I.random=t$e,I.reduce=TWe,I.reduceRight=AWe,I.repeat=d$e,I.replace=h$e,I.result=zHe,I.round=cze,I.runInContext=X,I.sample=RWe,I.size=NWe,I.snakeCase=m$e,I.some=qWe,I.sortedIndex=O9e,I.sortedIndexBy=I9e,I.sortedIndexOf=N9e,I.sortedLastIndex=q9e,I.sortedLastIndexBy=k9e,I.sortedLastIndexOf=P9e,I.startCase=v$e,I.startsWith=y$e,I.subtract=lze,I.sum=fze,I.sumBy=pze,I.template=x$e,I.times=X$e,I.toFinite=du,I.toInteger=st,I.toLength=wW,I.toLower=_$e,I.toNumber=Gs,I.toSafeInteger=_He,I.toString=$t,I.toUpper=b$e,I.trim=w$e,I.trimEnd=E$e,I.trimStart=S$e,I.truncate=T$e,I.unescape=A$e,I.uniqueId=Z$e,I.upperCase=C$e,I.upperFirst=AI,I.each=uW,I.eachRight=cW,I.first=iW,OI(I,function(){var l={};return oa(I,function(d,x){Kt.call(I.prototype,x)||(l[x]=d)}),l}(),{chain:!1}),I.VERSION=t,Bs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){I[l].placeholder=I}),Bs(["drop","take"],function(l,d){wt.prototype[l]=function(x){x=x===e?1:xn(st(x),0);var E=this.__filtered__&&!d?new wt(this):this.clone();return E.__filtered__?E.__takeCount__=pi(x,E.__takeCount__):E.__views__.push({size:pi(x,xe),type:l+(E.__dir__<0?"Right":"")}),E},wt.prototype[l+"Right"]=function(x){return this.reverse()[l](x).reverse()}}),Bs(["filter","map","takeWhile"],function(l,d){var x=d+1,E=x==D||x==le;wt.prototype[l]=function(C){var P=this.clone();return P.__iteratees__.push({iteratee:Me(C,3),type:x}),P.__filtered__=P.__filtered__||E,P}}),Bs(["head","last"],function(l,d){var x="take"+(d?"Right":"");wt.prototype[l]=function(){return this[x](1).value()[0]}}),Bs(["initial","tail"],function(l,d){var x="drop"+(d?"":"Right");wt.prototype[l]=function(){return this.__filtered__?new wt(this):this[x](1)}}),wt.prototype.compact=function(){return this.filter(Xi)},wt.prototype.find=function(l){return this.filter(l).head()},wt.prototype.findLast=function(l){return this.reverse().find(l)},wt.prototype.invokeMap=lt(function(l,d){return typeof l=="function"?new wt(this):this.map(function(x){return iv(x,l,d)})}),wt.prototype.reject=function(l){return this.filter(zb(Me(l)))},wt.prototype.slice=function(l,d){l=st(l);var x=this;return x.__filtered__&&(l>0||d<0)?new wt(x):(l<0?x=x.takeRight(-l):l&&(x=x.drop(l)),d!==e&&(d=st(d),x=d<0?x.dropRight(-d):x.take(d-l)),x)},wt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},wt.prototype.toArray=function(){return this.take(xe)},oa(wt.prototype,function(l,d){var x=/^(?:filter|find|map|reject)|While$/.test(d),E=/^(?:head|last)$/.test(d),C=I[E?"take"+(d=="last"?"Right":""):d],P=E||/^find/.test(d);C&&(I.prototype[d]=function(){var j=this.__wrapped__,$=E?[1]:arguments,Y=j instanceof wt,re=$[0],ie=Y||nt(j),oe=function(gt){var Nt=C.apply(I,Tc([gt],$));return E&&ve?Nt[0]:Nt};ie&&x&&typeof re=="function"&&re.length!=1&&(Y=ie=!1);var ve=this.__chain__,Ie=!!this.__actions__.length,Be=P&&!ve,ct=Y&&!Ie;if(!P&&ie){j=ct?j:new wt(this);var Ue=l.apply(j,$);return Ue.__actions__.push({func:Ub,args:[oe],thisArg:e}),new Ws(Ue,ve)}return Be&&ct?l.apply(this,$):(Ue=this.thru(oe),Be?E?Ue.value()[0]:Ue.value():Ue)})}),Bs(["pop","push","shift","sort","splice","unshift"],function(l){var d=db[l],x=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);I.prototype[l]=function(){var C=arguments;if(E&&!this.__chain__){var P=this.value();return d.apply(nt(P)?P:[],C)}return this[x](function(j){return d.apply(nt(j)?j:[],C)})}}),oa(wt.prototype,function(l,d){var x=I[d];if(x){var E=x.name+"";Kt.call(_d,E)||(_d[E]=[]),_d[E].push({name:d,func:x})}}),_d[Pb(e,_).name]=[{name:"wrapper",func:e}],wt.prototype.clone=A8e,wt.prototype.reverse=C8e,wt.prototype.value=R8e,I.prototype.at=nWe,I.prototype.chain=iWe,I.prototype.commit=sWe,I.prototype.next=oWe,I.prototype.plant=uWe,I.prototype.reverse=cWe,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=lWe,I.prototype.first=I.prototype.head,Zg&&(I.prototype[Zg]=aWe),I},Cc=s8e();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Nn._=Cc,define(function(){return Cc})):Zl?((Zl.exports=Cc)._=Cc,RO._=Cc):Nn._=Cc}).call(Am)});var khe=m((j0r,s4)=>{(function(){var e;function t(r,n){var i=this instanceof t?this:e;if(i.reset(n),typeof r=="string"&&r.length>0&&i.hash(r),i!==this)return i}t.prototype.hash=function(r){var n,i,s,o,a;switch(a=r.length,this.len+=a,i=this.k1,s=0,this.rem){case 0:i^=a>s?r.charCodeAt(s++)&65535:0;case 1:i^=a>s?(r.charCodeAt(s++)&65535)<<8:0;case 2:i^=a>s?(r.charCodeAt(s++)&65535)<<16:0;case 3:i^=a>s?(r.charCodeAt(s)&255)<<24:0,i^=a>s?(r.charCodeAt(s++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(n=this.h1;i=i*11601+(i&65535)*3432906752&4294967295,i=i<<15|i>>>17,i=i*13715+(i&65535)*461832192&4294967295,n^=i,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(s>=a);)i=r.charCodeAt(s++)&65535^(r.charCodeAt(s++)&65535)<<8^(r.charCodeAt(s++)&65535)<<16,o=r.charCodeAt(s++),i^=(o&255)<<24^(o&65280)>>8;switch(i=0,this.rem){case 3:i^=(r.charCodeAt(s+2)&65535)<<16;case 2:i^=(r.charCodeAt(s+1)&65535)<<8;case 1:i^=r.charCodeAt(s)&65535}this.h1=n}return this.k1=i,this},t.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},t.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},e=new t,typeof s4<"u"?s4.exports=t:this.MurmurHash3=t})()});var Phe=m((B0r,bT)=>{bT.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&bT.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&bT.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var jhe=m((U0r,Om)=>{var Tr=global.process,mp=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};mp(Tr)?(Dhe=require("assert"),Cm=Phe(),Lhe=/^win/i.test(Tr.platform),wy=require("events"),typeof wy!="function"&&(wy=wy.EventEmitter),Tr.__signal_exit_emitter__?Dn=Tr.__signal_exit_emitter__:(Dn=Tr.__signal_exit_emitter__=new wy,Dn.count=0,Dn.emitted={}),Dn.infinite||(Dn.setMaxListeners(1/0),Dn.infinite=!0),Om.exports=function(e,t){if(!mp(global.process))return function(){};Dhe.equal(typeof e,"function","a callback must be provided for exit handler"),Rm===!1&&o4();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Dn.removeListener(r,e),Dn.listeners("exit").length===0&&Dn.listeners("afterexit").length===0&&wT()};return Dn.on(r,e),n},wT=function(){!Rm||!mp(global.process)||(Rm=!1,Cm.forEach(function(t){try{Tr.removeListener(t,ET[t])}catch{}}),Tr.emit=ST,Tr.reallyExit=a4,Dn.count-=1)},Om.exports.unload=wT,gp=function(t,r,n){Dn.emitted[t]||(Dn.emitted[t]=!0,Dn.emit(t,r,n))},ET={},Cm.forEach(function(e){ET[e]=function(){if(mp(global.process)){var r=Tr.listeners(e);r.length===Dn.count&&(wT(),gp("exit",null,e),gp("afterexit",null,e),Lhe&&e==="SIGHUP"&&(e="SIGINT"),Tr.kill(Tr.pid,e))}}}),Om.exports.signals=function(){return Cm},Rm=!1,o4=function(){Rm||!mp(global.process)||(Rm=!0,Dn.count+=1,Cm=Cm.filter(function(t){try{return Tr.on(t,ET[t]),!0}catch{return!1}}),Tr.emit=Mhe,Tr.reallyExit=Fhe)},Om.exports.load=o4,a4=Tr.reallyExit,Fhe=function(t){mp(global.process)&&(Tr.exitCode=t||0,gp("exit",Tr.exitCode,null),gp("afterexit",Tr.exitCode,null),a4.call(Tr,Tr.exitCode))},ST=Tr.emit,Mhe=function(t,r){if(t==="exit"&&mp(global.process)){r!==void 0&&(Tr.exitCode=r);var n=ST.apply(this,arguments);return gp("exit",Tr.exitCode,null),gp("afterexit",Tr.exitCode,null),n}else return ST.apply(this,arguments)}):Om.exports=function(){return function(){}};var Dhe,Cm,Lhe,wy,Dn,wT,gp,ET,Rm,o4,a4,Fhe,ST,Mhe});var Uhe=m((W0r,Ey)=>{"use strict";Ey.exports=LOt;Ey.exports.sync=FOt;Ey.exports._getTmpname=u4;Ey.exports._cleanupOnExit=c4;var Ar=require("fs"),IOt=khe(),Bhe=jhe(),NOt=require("path"),{promisify:uo}=require("util"),bl={},qOt=function(){try{return require("worker_threads").threadId}catch{return 0}}(),kOt=0;function u4(e){return e+"."+IOt(__filename).hash(String(process.pid)).hash(String(qOt)).hash(String(++kOt)).result()}function c4(e){return()=>{try{Ar.unlinkSync(typeof e=="function"?e():e)}catch{}}}function POt(e){return new Promise(t=>{bl[e]||(bl[e]=[]),bl[e].push(t),bl[e].length===1&&t()})}function TT(e){return e.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(e.code==="EINVAL"||e.code==="EPERM")}async function DOt(e,t,r={}){typeof r=="string"&&(r={encoding:r});let n,i,s=Bhe(c4(()=>i)),o=NOt.resolve(e);try{await POt(o);let a=await uo(Ar.realpath)(e).catch(()=>e);if(i=u4(a),!r.mode||!r.chown){let u=await uo(Ar.stat)(a).catch(()=>{});u&&(r.mode==null&&(r.mode=u.mode),r.chown==null&&process.getuid&&(r.chown={uid:u.uid,gid:u.gid}))}n=await uo(Ar.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),ArrayBuffer.isView(t)?await uo(Ar.write)(n,t,0,t.length,0):t!=null&&await uo(Ar.write)(n,String(t),0,String(r.encoding||"utf8")),r.fsync!==!1&&await uo(Ar.fsync)(n),await uo(Ar.close)(n),n=null,r.chown&&await uo(Ar.chown)(i,r.chown.uid,r.chown.gid).catch(u=>{if(!TT(u))throw u}),r.mode&&await uo(Ar.chmod)(i,r.mode).catch(u=>{if(!TT(u))throw u}),await uo(Ar.rename)(i,a)}finally{n&&await uo(Ar.close)(n).catch(()=>{}),s(),await uo(Ar.unlink)(i).catch(()=>{}),bl[o].shift(),bl[o].length>0?bl[o][0]():delete bl[o]}}async function LOt(e,t,r,n){r instanceof Function&&(n=r,r={});let i=DOt(e,t,r);if(n)try{let s=await i;return n(s)}catch(s){return n(s)}return i}function FOt(e,t,r){typeof r=="string"?r={encoding:r}:r||(r={});try{e=Ar.realpathSync(e)}catch{}let n=u4(e);if(!r.mode||!r.chown)try{let u=Ar.statSync(e);r=Object.assign({},r),r.mode||(r.mode=u.mode),!r.chown&&process.getuid&&(r.chown={uid:u.uid,gid:u.gid})}catch{}let i,s=c4(n),o=Bhe(s),a=!0;try{if(i=Ar.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),ArrayBuffer.isView(t)?Ar.writeSync(i,t,0,t.length,0):t!=null&&Ar.writeSync(i,String(t),0,String(r.encoding||"utf8")),r.fsync!==!1&&Ar.fsyncSync(i),Ar.closeSync(i),i=null,r.chown)try{Ar.chownSync(n,r.chown.uid,r.chown.gid)}catch(u){if(!TT(u))throw u}if(r.mode)try{Ar.chmodSync(n,r.mode)}catch(u){if(!TT(u))throw u}Ar.renameSync(n,e),a=!1}finally{if(i)try{Ar.closeSync(i)}catch{}o(),a&&s()}}});function Ghe(e,t){e.meta=e.meta||{},e.meta.updated_at=Math.round(Date.now()/1e3);let r=JSON.stringify(e,null,2);try{Hhe.default.sync(t,r),tt.debug("Config file updated")}catch(n){throw tt.error({err:n},"Error writing config file"),n}}function BOt(){let e={userId:null,meta:{created_at:Math.round(Date.now()/1e3),updated_at:null}};return Ghe(e,p4()),e}function Vhe(){let e=$he();try{return JSON.parse(Buffer.from(wl.default.readFileSync(e)).toString())}catch(t){if(t.code==="ENOENT")return{};tt.warning(`Cannot resolve local config file.
|
|
145
145
|
Error: ${t.message}`);try{let r=`${e}.bak`;wl.default.renameSync(e,r),tt.warning(`Your previous local config was renamed to ${r} for debugging.`)}catch{}}return{}}function Khe(){let e=zhe();try{return JSON.parse(Buffer.from(wl.default.readFileSync(e)).toString())}catch(t){if(t.code!=="ENOENT"){tt.warning(`Cannot resolve global config file: ${e}
|
|
146
146
|
Error: ${t.message}`);try{let r=`${e}.bak`;wl.default.renameSync(e,r),tt.warning(`Your previous global config was renamed to ${r} for debugging. Default global config will be recreated under ${p4()}`)}catch{}}}return BOt()}function Xhe(){let e=Vhe(),t=Khe();return Im.default.merge(t,e)}function UOt(){let e=$he();return wl.default.existsSync(e)?{config:Vhe(),configPath:e}:{config:Khe(),configPath:zhe()}}function Yhe(e,t){let r=UOt(),{config:n}=r,{configPath:i}=r;return e&&typeof e=="string"&&typeof t<"u"?n=Im.default.set(n,e,t):Im.default.isObject(e)?n=Im.default.merge(n,e):typeof t<"u"&&(n=Im.default.merge(n,t)),tt.info({config:n,configPath:i},"Saving Config"),Ghe(n,i),Xhe()}function Zhe(e){Yhe(e)}function d4(){let e=Xhe();if(!e.userId)return null;let{sessions:t}=e,r=t==null?void 0:t[e.userId];return!r||!r.username||!r.refreshToken?null:{userId:e.userId,username:r.username,refreshToken:r.refreshToken}}function Jhe(){let e=d4(),t={userId:null};e&&(t.sessions={[e.userId]:{userId:null,username:null,name:null,email:null,refreshToken:null},[e.username]:{userId:null,username:null,name:null,email:null,refreshToken:null}}),Yhe(t)}var AT,l4,wl,Im,Hhe,Whe,MOt,f4,$he,p4,jOt,zhe,Qhe=ye(()=>{"use strict";AT=de(require("path")),l4=de(require("os")),wl=de(require("fs")),Im=de(qhe()),Hhe=de(Uhe());Em();Whe=process.env.AMPT_STAGE||"prod",MOt=Whe==="prod"?"":Whe.toLowerCase().trim(),f4=`.ampt${MOt}rc`,$he=()=>AT.default.join(process.cwd(),f4),p4=()=>AT.default.join(l4.default.homedir(),f4),jOt=()=>AT.default.join(l4.default.homedir(),".config",f4),zhe=()=>{let e=jOt(),t=p4(),r=wl.default.existsSync(e),n=wl.default.existsSync(t);return r&&n?t:r?e:t}});var cn=ye(()=>{"use strict";EQ();TQ();F2();CQ();bhe();Ehe();She();The();e4();Em();r4();i4();Rhe();Ihe();Nhe();Qhe()});async function*eme(e,t){let r=Buffer.alloc(Nm),n=Buffer.from(JSON.stringify({entries:e})),i=n.length;r.writeInt32BE(i,0);let s=[r,n],o=r.length+n.length,a=new Set(Object.values(e).map(u=>u.hash));for await(let u of t)for(let{hash:c,data:f}of u)if(a.has(c)){a.delete(c);let p=Buffer.alloc(CT);p.writeInt32BE(f.length,0);let h=Buffer.from(c,"hex");if(h.length!==tme)throw new Error("Bad hash");h.copy(p,Nm),s.push(p),s.push(f),o+=p.length+f.length,o>256*1024&&(yield Buffer.concat(s),s=[],o=0)}if(a.size>0)throw new Error(`Missing ${a.size} records: ${Array.from(a).slice(0,10).join(", ")}`);s.length&&(yield Buffer.concat(s))}var RT,Nm,tme,CT,El,rme=ye(()=>{RT=require("stream"),Nm=4,tme=16,CT=Nm+tme;El=class{constructor(){this.entries={};this.contents={}}static async from(t){let r=new El;for await(let n of t)for(let{name:i,hash:s,mode:o,data:a}of n)r.entries[i]={hash:s,mode:o},r.contents[s]=a;return r}static parse(t,r=1e3){let n={},i=[],s=[],o=0,a=0,u=0,c={},f,p="";function h(v){let _=Buffer.alloc(v);for(let w=v;w>0;){let y=s.shift();if(y)w>=y.length?(y.copy(_,v-w),w-=y.length):(y.copy(_,v-w,0,w),s.unshift(y.subarray(w)),w=0);else throw new Error("Not enough data")}return a-=v,_}let g=new RT.Transform({objectMode:!0,transform(v,_,w){s.push(v),a+=v.length;try{if(o===0&&a>=Nm&&(u=h(Nm).readInt32BE(0),o=1),o===1&&a>=u){let b=h(u).toString("utf8");c=JSON.parse(b).entries;for(let[T,{hash:R}]of Object.entries(c))n[R]=n[R]||[],n[R].push(T);o=2}if(o===2){let y=a>=(f===void 0?CT:f);for(;y;)if(f===void 0){let b=h(CT);f=b.readInt32BE(0),p=b.toString("hex",Nm),y=a>=f}else{let b=h(f),S=n[p];if(S)for(let T of S){let{hash:R,mode:q}=c[T];i.push({name:T,hash:R,mode:q,data:b})}else throw new Error("Unexpected content with no entry pointing to it");f=void 0,p="",y=a>=CT}}for(;i.length>=r;)this.push(i.splice(0,r));w()}catch(y){w(y)}},flush(v){i.length?v(null,i):v()}});return t.on("error",v=>{v.code==="NoSuchKey"?(g.push(null),g.destroy()):g.destroy(v)}),t.pipe(g)}static concat(t,r){let n=new El;n.entries=t;let i=RT.Readable.from(eme(t,async function*(){for(let s of r)for await(let o of s){for(let{hash:a,data:u}of o)n.contents[a]=u;yield o}}()),{objectMode:!1});return Object.assign(i,{result:n}),i}getEntries(){return this.entries}getContents(){return this.contents}*content(t=1e3){let r=[];for(let[n,i]of Object.entries(this.contents))r.push({hash:n,data:i}),r.length===t&&(yield r,r=[]);r.length&&(yield r)}async toBuffer(){let t=[];for await(let r of eme(this.entries,this.content()))t.push(r);return Buffer.concat(t)}}});var IT=m((cyr,ime)=>{var h4=tn();function nme(){}nme.prototype.build=function(e,t){return JSON.stringify(OT(e,t))};function OT(e,t){if(!(!t||e===void 0||e===null))switch(t.type){case"structure":return WOt(e,t);case"map":return $Ot(e,t);case"list":return HOt(e,t);default:return zOt(e,t)}}function WOt(e,t){if(t.isDocument)return e;var r={};return h4.each(e,function(n,i){var s=t.members[n];if(s){if(s.location!=="body")return;var o=s.isLocationName?s.name:n,a=OT(i,s);a!==void 0&&(r[o]=a)}}),r}function HOt(e,t){var r=[];return h4.arrayEach(e,function(n){var i=OT(n,t.member);i!==void 0&&r.push(i)}),r}function $Ot(e,t){var r={};return h4.each(e,function(n,i){var s=OT(i,t.value);s!==void 0&&(r[n]=s)}),r}function zOt(e,t){return t.toWireFormat(e)}ime.exports=nme});var qT=m((lyr,ome)=>{var m4=tn();function sme(){}sme.prototype.parse=function(e,t){return NT(JSON.parse(e),t)};function NT(e,t){if(!(!t||e===void 0))switch(t.type){case"structure":return GOt(e,t);case"map":return KOt(e,t);case"list":return VOt(e,t);default:return XOt(e,t)}}function GOt(e,t){if(e!=null){if(t.isDocument)return e;var r={},n=t.members;return m4.each(n,function(i,s){var o=s.isLocationName?s.name:i;if(Object.prototype.hasOwnProperty.call(e,o)){var a=e[o],u=NT(a,s);u!==void 0&&(r[i]=u)}}),r}}function VOt(e,t){if(e!=null){var r=[];return m4.arrayEach(e,function(n){var i=NT(n,t.member);i===void 0?r.push(null):r.push(i)}),r}}function KOt(e,t){if(e!=null){var r={};return m4.each(e,function(n,i){var s=NT(i,t.value);s===void 0?r[n]=null:r[n]=s}),r}}function XOt(e,t){return t.toType(e)}ome.exports=sme});var kT=m((fyr,ame)=>{var Sy=tn(),YOt=Oe();function ZOt(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var r=e.service.api.operations[e.operation];if(JOt(e))return e;if(r.endpoint&&r.endpoint.hostPrefix){var n=r.endpoint.hostPrefix,i=QOt(n,e.params,r.input);eIt(e.httpRequest.endpoint,i),tIt(e.httpRequest.endpoint.hostname)}return e}function JOt(e){var t=e.service.api,r=t.operations[e.operation],n=t.endpointOperation&&t.endpointOperation===Sy.string.lowerFirst(r.name);return r.endpointDiscoveryRequired!=="NULL"||n===!0}function QOt(e,t,r){return Sy.each(r.members,function(n,i){if(i.hostLabel===!0){if(typeof t[n]!="string"||t[n]==="")throw Sy.error(new Error,{message:"Parameter "+n+" should be a non-empty string.",code:"InvalidParameter"});var s=new RegExp("\\{"+n+"\\}","g");e=e.replace(s,t[n])}}),e}function eIt(e,t){e.host&&(e.host=t+e.host),e.hostname&&(e.hostname=t+e.hostname)}function tIt(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;Sy.arrayEach(t,function(n){if(!n.length||n.length<1||n.length>63)throw Sy.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(n))throw YOt.util.error(new Error,{code:"ValidationError",message:n+" is not hostname compatible."})})}ame.exports={populateHostPrefix:ZOt}});var PT=m((pyr,ume)=>{var rIt=tn(),nIt=IT(),iIt=qT(),sIt=kT().populateHostPrefix;function oIt(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",s=r.operations[e.operation].input,o=new nIt;i===1&&(i="1.0"),t.body=o.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=n,sIt(e)}function aIt(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError",typeof t.code=="string"&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var n=JSON.parse(r.body.toString()),i=n.__type||n.code||n.Code;i&&(t.code=i.split("#").pop()),t.code==="RequestEntityTooLarge"?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch{t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=rIt.error(new Error,t)}function uIt(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===!1)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],n=r.output||{},i=new iIt;e.data=i.parse(t,n)}}ume.exports={buildRequest:oIt,extractError:aIt,extractData:uIt}});var dme=m((dyr,pme)=>{var g4=tn();function cme(){}cme.prototype.serialize=function(e,t,r){fme("",e,t,r)};function lme(e){return e.isQueryName||e.api.protocol!=="ec2"?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function fme(e,t,r,n){g4.each(r.members,function(i,s){var o=t[i];if(o!=null){var a=lme(s);a=e?e+"."+a:a,DT(a,o,s,n)}})}function cIt(e,t,r,n){var i=1;g4.each(t,function(s,o){var a=r.flattened?".":".entry.",u=a+i+++".",c=u+(r.key.name||"key"),f=u+(r.value.name||"value");DT(e+c,s,r.key,n),DT(e+f,o,r.value,n)})}function lIt(e,t,r,n){var i=r.member||{};if(t.length===0){n.call(this,e,null);return}g4.arrayEach(t,function(s,o){var a="."+(o+1);if(r.api.protocol==="ec2")a=a+"";else if(r.flattened){if(i.name){var u=e.split(".");u.pop(),u.push(lme(i)),e=u.join(".")}}else a="."+(i.name?i.name:"member")+a;DT(e+a,s,i,n)})}function DT(e,t,r,n){t!=null&&(r.type==="structure"?fme(e,t,r,n):r.type==="list"?lIt(e,t,r,n):r.type==="map"?cIt(e,t,r,n):n(e,r.toWireFormat(t).toString()))}pme.exports=cme});var v4=m((hyr,hme)=>{var fIt=tn().memoizedProperty;function pIt(e,t,r,n){fIt(this,n(e),function(){return r(e,t)})}function dIt(e,t,r,n,i){n=n||String;var s=this;for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(pIt.call(s,o,e[o],r,n),i&&i(o,e[o]))}hme.exports=dIt});var Ty=m((myr,wme)=>{var hIt=v4(),$u=tn();function De(e,t,r){r!=null&&$u.property.apply(this,arguments)}function vp(e,t){e.constructor.prototype[t]||$u.memoizedProperty.apply(this,arguments)}function Cr(e,t,r){t=t||{},De(this,"shape",e.shape),De(this,"api",t.api,!1),De(this,"type",e.type),De(this,"enum",e.enum),De(this,"min",e.min),De(this,"max",e.max),De(this,"pattern",e.pattern),De(this,"location",e.location||this.location||"body"),De(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),De(this,"isStreaming",e.streaming||this.isStreaming||!1),De(this,"requiresLength",e.requiresLength,!1),De(this,"isComposite",e.isComposite||!1),De(this,"isShape",!0,!1),De(this,"isQueryName",!!e.queryName,!1),De(this,"isLocationName",!!e.locationName,!1),De(this,"isIdempotent",e.idempotencyToken===!0),De(this,"isJsonValue",e.jsonvalue===!0),De(this,"isSensitive",e.sensitive===!0||e.prototype&&e.prototype.sensitive===!0),De(this,"isEventStream",!!e.eventstream,!1),De(this,"isEvent",!!e.event,!1),De(this,"isEventPayload",!!e.eventpayload,!1),De(this,"isEventHeader",!!e.eventheader,!1),De(this,"isTimestampFormatSet",!!e.timestampFormat||e.prototype&&e.prototype.isTimestampFormatSet===!0,!1),De(this,"endpointDiscoveryId",!!e.endpointdiscoveryid,!1),De(this,"hostLabel",!!e.hostLabel,!1),t.documentation&&(De(this,"documentation",e.documentation),De(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&De(this,"isXmlAttribute",e.xmlAttribute||!1),De(this,"defaultValue",null),this.toWireFormat=function(n){return n??""},this.toType=function(n){return n}}Cr.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Cr.types={structure:mme,list:gme,map:vme,boolean:bme,timestamp:mIt,float:gIt,integer:vIt,string:yme,base64:_me,binary:xme};Cr.resolve=function(t,r){if(t.shape){var n=r.api.shapes[t.shape];if(!n)throw new Error("Cannot find shape reference: "+t.shape);return n}else return null};Cr.create=function(t,r,n){if(t.isShape)return t;var i=Cr.resolve(t,r);if(i){var s=Object.keys(t);r.documentation||(s=s.filter(function(u){return!u.match(/documentation/)}));var o=function(){i.constructor.call(this,t,r,n)};return o.prototype=i,new o}else{t.type||(t.members?t.type="structure":t.member?t.type="list":t.key?t.type="map":t.type="string");var a=t.type;if(Cr.normalizedTypes[t.type]&&(t.type=Cr.normalizedTypes[t.type]),Cr.types[t.type])return new Cr.types[t.type](t,r,n);throw new Error("Unrecognized shape type: "+a)}};function y4(e){Cr.apply(this,arguments),De(this,"isComposite",!0),e.flattened&&De(this,"flattened",e.flattened||!1)}function mme(e,t){var r=this,n=null,i=!this.isShape;y4.apply(this,arguments),i&&(De(this,"defaultValue",function(){return{}}),De(this,"members",{}),De(this,"memberNames",[]),De(this,"required",[]),De(this,"isRequired",function(){return!1}),De(this,"isDocument",!!e.document)),e.members&&(De(this,"members",new hIt(e.members,t,function(s,o){return Cr.create(o,t,s)})),vp(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(vp(this,"eventPayloadMemberName",function(){for(var s=r.members,o=r.memberNames,a=0,u=o.length;a<u;a++)if(s[o[a]].isEventPayload)return o[a]}),vp(this,"eventHeaderMemberNames",function(){for(var s=r.members,o=r.memberNames,a=[],u=0,c=o.length;u<c;u++)s[o[u]].isEventHeader&&a.push(o[u]);return a}))),e.required&&(De(this,"required",e.required),De(this,"isRequired",function(s){if(!n){n={};for(var o=0;o<e.required.length;o++)n[e.required[o]]=!0}return n[s]},!1,!0)),De(this,"resultWrapper",e.resultWrapper||null),e.payload&&De(this,"payload",e.payload),typeof e.xmlNamespace=="string"?De(this,"xmlNamespaceUri",e.xmlNamespace):typeof e.xmlNamespace=="object"&&(De(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),De(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function gme(e,t){var r=this,n=!this.isShape;if(y4.apply(this,arguments),n&&De(this,"defaultValue",function(){return[]}),e.member&&vp(this,"member",function(){return Cr.create(e.member,t)}),this.flattened){var i=this.name;vp(this,"name",function(){return r.member.name||i})}}function vme(e,t){var r=!this.isShape;y4.apply(this,arguments),r&&(De(this,"defaultValue",function(){return{}}),De(this,"key",Cr.create({type:"string"},t)),De(this,"value",Cr.create({type:"string"},t))),e.key&&vp(this,"key",function(){return Cr.create(e.key,t)}),e.value&&vp(this,"value",function(){return Cr.create(e.value,t)})}function mIt(e){var t=this;if(Cr.apply(this,arguments),e.timestampFormat)De(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)De(this,"timestampFormat",this.timestampFormat);else if(this.location==="header")De(this,"timestampFormat","rfc822");else if(this.location==="querystring")De(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":De(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":De(this,"timestampFormat","iso8601");break}this.toType=function(r){return r==null?null:typeof r.toUTCString=="function"?r:typeof r=="string"||typeof r=="number"?$u.date.parseTimestamp(r):null},this.toWireFormat=function(r){return $u.date.format(r,t.timestampFormat)}}function yme(){Cr.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&typeof t.toString=="function"?t.toString():t},this.toWireFormat=function(t){return this.isJsonValue?JSON.stringify(t):t}}function gIt(){Cr.apply(this,arguments),this.toType=function(e){return e==null?null:parseFloat(e)},this.toWireFormat=this.toType}function vIt(){Cr.apply(this,arguments),this.toType=function(e){return e==null?null:parseInt(e,10)},this.toWireFormat=this.toType}function xme(){Cr.apply(this,arguments),this.toType=function(e){var t=$u.base64.decode(e);if(this.isSensitive&&$u.isNode()&&typeof $u.Buffer.alloc=="function"){var r=$u.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=$u.base64.encode}function _me(){xme.apply(this,arguments)}function bme(){Cr.apply(this,arguments),this.toType=function(e){return typeof e=="boolean"?e:e==null?null:e==="true"}}Cr.shapes={StructureShape:mme,ListShape:gme,MapShape:vme,StringShape:yme,BooleanShape:bme,Base64Shape:_me};wme.exports=Cr});var x4=m((gyr,Tme)=>{var Sme=Oe(),Ay=tn(),yIt=dme(),Eme=Ty(),xIt=kT().populateHostPrefix;function _It(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name};var n=new yIt;n.serialize(e.params,t.input,function(i,s){r.params[i]=s}),r.body=Ay.queryParamsToString(r.params),xIt(e)}function bIt(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=new Sme.XML.Parser().parse(r)}catch{t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=Ay.error(new Error,{code:t.Code,message:t.Message}):e.error=Ay.error(new Error,{code:e.httpResponse.statusCode,message:null})}function wIt(e){var t=e.request,r=t.service.api.operations[t.operation],n=r.output||{},i=n;if(i.resultWrapper){var s=Eme.create({type:"structure"});s.members[i.resultWrapper]=n,s.memberNames=[i.resultWrapper],Ay.property(n,"name",n.resultWrapper),n=s}var o=new Sme.XML.Parser;if(n&&n.members&&!n.members._XAMZRequestId){var a=Eme.create({type:"string"},{api:{protocol:"query"}},"requestId");n.members._XAMZRequestId=a}var u=o.parse(e.httpResponse.body.toString(),n);e.requestId=u._XAMZRequestId||u.requestId,u._XAMZRequestId&&delete u._XAMZRequestId,i.resultWrapper&&u[i.resultWrapper]&&(Ay.update(u,u[i.resultWrapper]),delete u[i.resultWrapper]),e.data=u}Tme.exports={buildRequest:_It,extractError:bIt,extractData:wIt}});var Cy=m((vyr,Cme)=>{var Jn=tn(),EIt=kT().populateHostPrefix;function SIt(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function Ame(e,t,r,n){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var s={},o=!1;if(Jn.each(r.members,function(u,c){var f=n[u];if(f!=null)if(c.location==="uri"){var p=new RegExp("\\{"+c.name+"(\\+)?\\}");i=i.replace(p,function(h,g){var v=g?Jn.uriEscapePath:Jn.uriEscape;return v(String(f))})}else c.location==="querystring"&&(o=!0,c.type==="list"?s[c.name]=f.map(function(h){return Jn.uriEscape(c.member.toWireFormat(h).toString())}):c.type==="map"?Jn.each(f,function(h,g){Array.isArray(g)?s[h]=g.map(function(v){return Jn.uriEscape(String(v))}):s[h]=Jn.uriEscape(String(g))}):s[c.name]=Jn.uriEscape(c.toWireFormat(f).toString()))}),o){i+=i.indexOf("?")>=0?"&":"?";var a=[];Jn.arrayEach(Object.keys(s).sort(),function(u){Array.isArray(s[u])||(s[u]=[s[u]]);for(var c=0;c<s[u].length;c++)a.push(Jn.uriEscape(String(u))+"="+s[u][c])}),i+=a.join("&")}return i}function TIt(e){var t=e.service.api.operations[e.operation],r=t.input,n=Ame(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=n}function AIt(e){var t=e.service.api.operations[e.operation];Jn.each(t.input.members,function(r,n){var i=e.params[r];i!=null&&(n.location==="headers"&&n.type==="map"?Jn.each(i,function(s,o){e.httpRequest.headers[n.name+s]=o}):n.location==="header"&&(i=n.toWireFormat(i).toString(),n.isJsonValue&&(i=Jn.base64.encode(i)),e.httpRequest.headers[n.name]=i))})}function CIt(e){SIt(e),TIt(e),AIt(e),EIt(e)}function RIt(){}function OIt(e){var t=e.request,r={},n=e.httpResponse,i=t.service.api.operations[t.operation],s=i.output,o={};Jn.each(n.headers,function(a,u){o[a.toLowerCase()]=u}),Jn.each(s.members,function(a,u){var c=(u.name||a).toLowerCase();if(u.location==="headers"&&u.type==="map"){r[a]={};var f=u.isLocationName?u.name:"",p=new RegExp("^"+f+"(.+)","i");Jn.each(n.headers,function(g,v){var _=g.match(p);_!==null&&(r[a][_[1]]=v)})}else if(u.location==="header"){if(o[c]!==void 0){var h=u.isJsonValue?Jn.base64.decode(o[c]):o[c];r[a]=u.toType(h)}}else u.location==="statusCode"&&(r[a]=parseInt(n.statusCode,10))}),e.data=r}Cme.exports={buildRequest:CIt,extractError:RIt,extractData:OIt,generateURI:Ame}});var w4=m((yyr,qme)=>{var b4=tn(),Ome=Cy(),Ime=PT(),IIt=IT(),Rme=qT(),Nme=["GET","HEAD","DELETE"];function NIt(e){var t=b4.getRequestPayloadShape(e);t===void 0&&Nme.indexOf(e.httpRequest.method)>=0&&delete e.httpRequest.headers["Content-Length"]}function qIt(e){var t=new IIt,r=e.service.api.operations[e.operation].input;if(r.payload){var n={},i=r.members[r.payload];n=e.params[r.payload],i.type==="structure"?(e.httpRequest.body=t.build(n||{},i),_4(e)):n!==void 0&&(e.httpRequest.body=n,(i.type==="binary"||i.isStreaming)&&_4(e,!0))}else e.httpRequest.body=t.build(e.params,r),_4(e)}function _4(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}function kIt(e){Ome.buildRequest(e),Nme.indexOf(e.httpRequest.method)<0&&qIt(e)}function PIt(e){Ime.extractError(e)}function DIt(e){Ome.extractData(e);var t=e.request,r=t.service.api.operations[t.operation],n=t.service.api.operations[t.operation].output||{},i,s=r.hasEventOutput;if(n.payload){var o=n.members[n.payload],a=e.httpResponse.body;if(o.isEventStream)i=new Rme,e.data[payload]=b4.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:a,i,o);else if(o.type==="structure"||o.type==="list"){var i=new Rme;e.data[n.payload]=i.parse(a,o)}else o.type==="binary"||o.isStreaming?e.data[n.payload]=a:e.data[n.payload]=o.toType(a)}else{var u=e.data;Ime.extractData(e),e.data=b4.merge(u,e.data)}}qme.exports={buildRequest:kIt,extractError:PIt,extractData:DIt,unsetContentLength:NIt}});var S4=m((xyr,kme)=>{var qm=Oe(),Ry=tn(),E4=Cy();function LIt(e){var t=e.service.api.operations[e.operation].input,r=new qm.XML.Builder,n=e.params,i=t.payload;if(i){var s=t.members[i];if(n=n[i],n===void 0)return;if(s.type==="structure"){var o=s.name;e.httpRequest.body=r.toXML(n,s,o,!0)}else e.httpRequest.body=n}else e.httpRequest.body=r.toXML(n,t,t.name||t.shape||Ry.string.upperFirst(e.operation)+"Request")}function FIt(e){E4.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&LIt(e)}function MIt(e){E4.extractError(e);var t;try{t=new qm.XML.Parser().parse(e.httpResponse.body.toString())}catch{t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=Ry.error(new Error,{code:t.Code,message:t.Message}):e.error=Ry.error(new Error,{code:e.httpResponse.statusCode,message:null})}function jIt(e){E4.extractData(e);var t,r=e.request,n=e.httpResponse.body,i=r.service.api.operations[r.operation],s=i.output,o=i.hasEventOutput,a=s.payload;if(a){var u=s.members[a];u.isEventStream?(t=new qm.XML.Parser,e.data[a]=Ry.createEventStream(qm.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,u)):u.type==="structure"?(t=new qm.XML.Parser,e.data[a]=t.parse(n.toString(),u)):u.type==="binary"||u.isStreaming?e.data[a]=n:e.data[a]=u.toType(n)}else if(n.length>0){t=new qm.XML.Parser;var c=t.parse(n.toString(),s);Ry.update(e.data,c)}}kme.exports={buildRequest:FIt,extractError:MIt,extractData:jIt}});var Dme=m((_yr,Pme)=>{function BIt(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}Pme.exports={escapeAttribute:BIt}});var Fme=m((byr,Lme)=>{var UIt=Dme().escapeAttribute;function Oy(e,t){t===void 0&&(t=[]),this.name=e,this.children=t,this.attributes={}}Oy.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this};Oy.prototype.addChildNode=function(e){return this.children.push(e),this};Oy.prototype.removeAttribute=function(e){return delete this.attributes[e],this};Oy.prototype.toString=function(){for(var e=!!this.children.length,t="<"+this.name,r=this.attributes,n=0,i=Object.keys(r);n<i.length;n++){var s=i[n],o=r[s];typeof o<"u"&&o!==null&&(t+=" "+s+'="'+UIt(""+o)+'"')}return t+=e?">"+this.children.map(function(a){return a.toString()}).join("")+"</"+this.name+">":"/>"};Lme.exports={XmlNode:Oy}});var jme=m((wyr,Mme)=>{function WIt(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}Mme.exports={escapeElement:WIt}});var Wme=m((Eyr,Ume)=>{var HIt=jme().escapeElement;function Bme(e){this.value=e}Bme.prototype.toString=function(){return HIt(""+this.value)};Ume.exports={XmlText:Bme}});var Gme=m((Syr,zme)=>{var LT=tn(),yp=Fme().XmlNode,$It=Wme().XmlText;function Hme(){}Hme.prototype.toXML=function(e,t,r,n){var i=new yp(r);return $me(i,t,!0),xp(i,e,t),i.children.length>0||n?i.toString():""};function xp(e,t,r){switch(r.type){case"structure":return zIt(e,t,r);case"map":return GIt(e,t,r);case"list":return VIt(e,t,r);default:return KIt(e,t,r)}}function zIt(e,t,r){LT.arrayEach(r.memberNames,function(n){var i=r.members[n];if(i.location==="body"){var s=t[n],o=i.name;if(s!=null)if(i.isXmlAttribute)e.addAttribute(o,s);else if(i.flattened)xp(e,s,i);else{var a=new yp(o);e.addChildNode(a),$me(a,i),xp(a,s,i)}}})}function GIt(e,t,r){var n=r.key.name||"key",i=r.value.name||"value";LT.each(t,function(s,o){var a=new yp(r.flattened?r.name:"entry");e.addChildNode(a);var u=new yp(n),c=new yp(i);a.addChildNode(u),a.addChildNode(c),xp(u,s,r.key),xp(c,o,r.value)})}function VIt(e,t,r){r.flattened?LT.arrayEach(t,function(n){var i=r.member.name||r.name,s=new yp(i);e.addChildNode(s),xp(s,n,r.member)}):LT.arrayEach(t,function(n){var i=r.member.name||"member",s=new yp(i);e.addChildNode(s),xp(s,n,r.member)})}function KIt(e,t,r){e.addChildNode(new $It(r.toWireFormat(t)))}function $me(e,t,r){var n,i="xmlns";t.xmlNamespaceUri?(n=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(i+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(n=t.api.xmlNamespaceUri),n&&e.addAttribute(i,n)}zme.exports=Hme});var T4=m((Tyr,Kme)=>{var Iy=Ty(),Vme=tn(),ka=Vme.property,km=Vme.memoizedProperty;function XIt(e,t,r){var n=this;r=r||{},ka(this,"name",t.name||e),ka(this,"api",r.api,!1),t.http=t.http||{},ka(this,"endpoint",t.endpoint),ka(this,"httpMethod",t.http.method||"POST"),ka(this,"httpPath",t.http.requestUri||"/"),ka(this,"authtype",t.authtype||""),ka(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var i=t.httpChecksumRequired||t.httpChecksum&&t.httpChecksum.requestChecksumRequired;ka(this,"httpChecksumRequired",i,!1),km(this,"input",function(){return t.input?Iy.create(t.input,r):new Iy.create({type:"structure"},r)}),km(this,"output",function(){return t.output?Iy.create(t.output,r):new Iy.create({type:"structure"},r)}),km(this,"errors",function(){var s=[];if(!t.errors)return null;for(var o=0;o<t.errors.length;o++)s.push(Iy.create(t.errors[o],r));return s}),km(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(ka(this,"documentation",t.documentation),ka(this,"documentationUrl",t.documentationUrl)),km(this,"idempotentMembers",function(){var s=[],o=n.input,a=o.members;if(!o.members)return s;for(var u in a)a.hasOwnProperty(u)&&a[u].isIdempotent===!0&&s.push(u);return s}),km(this,"hasEventOutput",function(){var s=n.output;return YIt(s)})}function YIt(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r){var n=t[r];return n.isEventStream}for(var i in t)if(!t.hasOwnProperty(i)&&t[i].isEventStream===!0)return!0;return!1}Kme.exports=XIt});var A4=m((Ayr,Xme)=>{var Ny=tn().property;function ZIt(e,t){Ny(this,"inputToken",t.input_token),Ny(this,"limitKey",t.limit_key),Ny(this,"moreResults",t.more_results),Ny(this,"outputToken",t.output_token),Ny(this,"resultKey",t.result_key)}Xme.exports=ZIt});var C4=m((Cyr,Zme)=>{var Yme=tn(),FT=Yme.property;function JIt(e,t,r){r=r||{},FT(this,"name",e),FT(this,"api",r.api,!1),t.operation&&FT(this,"operation",Yme.string.lowerFirst(t.operation));var n=this,i=["type","description","delay","maxAttempts","acceptors"];i.forEach(function(s){var o=t[s];o&&FT(n,s,o)})}Zme.exports=JIt});var R4=m((Ryr,QIt)=>{QIt.exports={acm:{name:"ACM",cors:!0},apigateway:{name:"APIGateway",cors:!0},applicationautoscaling:{prefix:"application-autoscaling",name:"ApplicationAutoScaling",cors:!0},appstream:{name:"AppStream"},autoscaling:{name:"AutoScaling",cors:!0},batch:{name:"Batch"},budgets:{name:"Budgets"},clouddirectory:{name:"CloudDirectory",versions:["2016-05-10*"]},cloudformation:{name:"CloudFormation",cors:!0},cloudfront:{name:"CloudFront",versions:["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],cors:!0},cloudhsm:{name:"CloudHSM",cors:!0},cloudsearch:{name:"CloudSearch"},cloudsearchdomain:{name:"CloudSearchDomain"},cloudtrail:{name:"CloudTrail",cors:!0},cloudwatch:{prefix:"monitoring",name:"CloudWatch",cors:!0},cloudwatchevents:{prefix:"events",name:"CloudWatchEvents",versions:["2014-02-03*"],cors:!0},cloudwatchlogs:{prefix:"logs",name:"CloudWatchLogs",cors:!0},codebuild:{name:"CodeBuild",cors:!0},codecommit:{name:"CodeCommit",cors:!0},codedeploy:{name:"CodeDeploy",cors:!0},codepipeline:{name:"CodePipeline",cors:!0},cognitoidentity:{prefix:"cognito-identity",name:"CognitoIdentity",cors:!0},cognitoidentityserviceprovider:{prefix:"cognito-idp",name:"CognitoIdentityServiceProvider",cors:!0},cognitosync:{prefix:"cognito-sync",name:"CognitoSync",cors:!0},configservice:{prefix:"config",name:"ConfigService",cors:!0},cur:{name:"CUR",cors:!0},datapipeline:{name:"DataPipeline"},devicefarm:{name:"DeviceFarm",cors:!0},directconnect:{name:"DirectConnect",cors:!0},directoryservice:{prefix:"ds",name:"DirectoryService"},discovery:{name:"Discovery"},dms:{name:"DMS"},dynamodb:{name:"DynamoDB",cors:!0},dynamodbstreams:{prefix:"streams.dynamodb",name:"DynamoDBStreams",cors:!0},ec2:{name:"EC2",versions:["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],cors:!0},ecr:{name:"ECR",cors:!0},ecs:{name:"ECS",cors:!0},efs:{prefix:"elasticfilesystem",name:"EFS",cors:!0},elasticache:{name:"ElastiCache",versions:["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],cors:!0},elasticbeanstalk:{name:"ElasticBeanstalk",cors:!0},elb:{prefix:"elasticloadbalancing",name:"ELB",cors:!0},elbv2:{prefix:"elasticloadbalancingv2",name:"ELBv2",cors:!0},emr:{prefix:"elasticmapreduce",name:"EMR",cors:!0},es:{name:"ES"},elastictranscoder:{name:"ElasticTranscoder",cors:!0},firehose:{name:"Firehose",cors:!0},gamelift:{name:"GameLift",cors:!0},glacier:{name:"Glacier"},health:{name:"Health"},iam:{name:"IAM",cors:!0},importexport:{name:"ImportExport"},inspector:{name:"Inspector",versions:["2015-08-18*"],cors:!0},iot:{name:"Iot",cors:!0},iotdata:{prefix:"iot-data",name:"IotData",cors:!0},kinesis:{name:"Kinesis",cors:!0},kinesisanalytics:{name:"KinesisAnalytics"},kms:{name:"KMS",cors:!0},lambda:{name:"Lambda",cors:!0},lexruntime:{prefix:"runtime.lex",name:"LexRuntime",cors:!0},lightsail:{name:"Lightsail"},machinelearning:{name:"MachineLearning",cors:!0},marketplacecommerceanalytics:{name:"MarketplaceCommerceAnalytics",cors:!0},marketplacemetering:{prefix:"meteringmarketplace",name:"MarketplaceMetering"},mturk:{prefix:"mturk-requester",name:"MTurk",cors:!0},mobileanalytics:{name:"MobileAnalytics",cors:!0},opsworks:{name:"OpsWorks",cors:!0},opsworkscm:{name:"OpsWorksCM"},organizations:{name:"Organizations"},pinpoint:{name:"Pinpoint"},polly:{name:"Polly",cors:!0},rds:{name:"RDS",versions:["2014-09-01*"],cors:!0},redshift:{name:"Redshift",cors:!0},rekognition:{name:"Rekognition",cors:!0},resourcegroupstaggingapi:{name:"ResourceGroupsTaggingAPI"},route53:{name:"Route53",cors:!0},route53domains:{name:"Route53Domains",cors:!0},s3:{name:"S3",dualstackAvailable:!0,cors:!0},s3control:{name:"S3Control",dualstackAvailable:!0,xmlNoDefaultLists:!0},servicecatalog:{name:"ServiceCatalog",cors:!0},ses:{prefix:"email",name:"SES",cors:!0},shield:{name:"Shield"},simpledb:{prefix:"sdb",name:"SimpleDB"},sms:{name:"SMS"},snowball:{name:"Snowball"},sns:{name:"SNS",cors:!0},sqs:{name:"SQS",cors:!0},ssm:{name:"SSM",cors:!0},storagegateway:{name:"StorageGateway",cors:!0},stepfunctions:{prefix:"states",name:"StepFunctions"},sts:{name:"STS",cors:!0},support:{name:"Support"},swf:{name:"SWF"},xray:{name:"XRay",cors:!0},waf:{name:"WAF",cors:!0},wafregional:{prefix:"waf-regional",name:"WAFRegional"},workdocs:{name:"WorkDocs",cors:!0},workspaces:{name:"WorkSpaces"},codestar:{name:"CodeStar"},lexmodelbuildingservice:{prefix:"lex-models",name:"LexModelBuildingService",cors:!0},marketplaceentitlementservice:{prefix:"entitlement.marketplace",name:"MarketplaceEntitlementService"},athena:{name:"Athena",cors:!0},greengrass:{name:"Greengrass"},dax:{name:"DAX"},migrationhub:{prefix:"AWSMigrationHub",name:"MigrationHub"},cloudhsmv2:{name:"CloudHSMV2",cors:!0},glue:{name:"Glue"},mobile:{name:"Mobile"},pricing:{name:"Pricing",cors:!0},costexplorer:{prefix:"ce",name:"CostExplorer",cors:!0},mediaconvert:{name:"MediaConvert"},medialive:{name:"MediaLive"},mediapackage:{name:"MediaPackage"},mediastore:{name:"MediaStore"},mediastoredata:{prefix:"mediastore-data",name:"MediaStoreData",cors:!0},appsync:{name:"AppSync"},guardduty:{name:"GuardDuty"},mq:{name:"MQ"},comprehend:{name:"Comprehend",cors:!0},iotjobsdataplane:{prefix:"iot-jobs-data",name:"IoTJobsDataPlane"},kinesisvideoarchivedmedia:{prefix:"kinesis-video-archived-media",name:"KinesisVideoArchivedMedia",cors:!0},kinesisvideomedia:{prefix:"kinesis-video-media",name:"KinesisVideoMedia",cors:!0},kinesisvideo:{name:"KinesisVideo",cors:!0},sagemakerruntime:{prefix:"runtime.sagemaker",name:"SageMakerRuntime"},sagemaker:{name:"SageMaker"},translate:{name:"Translate",cors:!0},resourcegroups:{prefix:"resource-groups",name:"ResourceGroups",cors:!0},alexaforbusiness:{name:"AlexaForBusiness"},cloud9:{name:"Cloud9"},serverlessapplicationrepository:{prefix:"serverlessrepo",name:"ServerlessApplicationRepository"},servicediscovery:{name:"ServiceDiscovery"},workmail:{name:"WorkMail"},autoscalingplans:{prefix:"autoscaling-plans",name:"AutoScalingPlans"},transcribeservice:{prefix:"transcribe",name:"TranscribeService"},connect:{name:"Connect",cors:!0},acmpca:{prefix:"acm-pca",name:"ACMPCA"},fms:{name:"FMS"},secretsmanager:{name:"SecretsManager",cors:!0},iotanalytics:{name:"IoTAnalytics",cors:!0},iot1clickdevicesservice:{prefix:"iot1click-devices",name:"IoT1ClickDevicesService"},iot1clickprojects:{prefix:"iot1click-projects",name:"IoT1ClickProjects"},pi:{name:"PI"},neptune:{name:"Neptune"},mediatailor:{name:"MediaTailor"},eks:{name:"EKS"},macie:{name:"Macie"},dlm:{name:"DLM"},signer:{name:"Signer"},chime:{name:"Chime"},pinpointemail:{prefix:"pinpoint-email",name:"PinpointEmail"},ram:{name:"RAM"},route53resolver:{name:"Route53Resolver"},pinpointsmsvoice:{prefix:"sms-voice",name:"PinpointSMSVoice"},quicksight:{name:"QuickSight"},rdsdataservice:{prefix:"rds-data",name:"RDSDataService"},amplify:{name:"Amplify"},datasync:{name:"DataSync"},robomaker:{name:"RoboMaker"},transfer:{name:"Transfer"},globalaccelerator:{name:"GlobalAccelerator"},comprehendmedical:{name:"ComprehendMedical",cors:!0},kinesisanalyticsv2:{name:"KinesisAnalyticsV2"},mediaconnect:{name:"MediaConnect"},fsx:{name:"FSx"},securityhub:{name:"SecurityHub"},appmesh:{name:"AppMesh",versions:["2018-10-01*"]},licensemanager:{prefix:"license-manager",name:"LicenseManager"},kafka:{name:"Kafka"},apigatewaymanagementapi:{name:"ApiGatewayManagementApi"},apigatewayv2:{name:"ApiGatewayV2"},docdb:{name:"DocDB"},backup:{name:"Backup"},worklink:{name:"WorkLink"},textract:{name:"Textract"},managedblockchain:{name:"ManagedBlockchain"},mediapackagevod:{prefix:"mediapackage-vod",name:"MediaPackageVod"},groundstation:{name:"GroundStation"},iotthingsgraph:{name:"IoTThingsGraph"},iotevents:{name:"IoTEvents"},ioteventsdata:{prefix:"iotevents-data",name:"IoTEventsData"},personalize:{name:"Personalize",cors:!0},personalizeevents:{prefix:"personalize-events",name:"PersonalizeEvents",cors:!0},personalizeruntime:{prefix:"personalize-runtime",name:"PersonalizeRuntime",cors:!0},applicationinsights:{prefix:"application-insights",name:"ApplicationInsights"},servicequotas:{prefix:"service-quotas",name:"ServiceQuotas"},ec2instanceconnect:{prefix:"ec2-instance-connect",name:"EC2InstanceConnect"},eventbridge:{name:"EventBridge"},lakeformation:{name:"LakeFormation"},forecastservice:{prefix:"forecast",name:"ForecastService",cors:!0},forecastqueryservice:{prefix:"forecastquery",name:"ForecastQueryService",cors:!0},qldb:{name:"QLDB"},qldbsession:{prefix:"qldb-session",name:"QLDBSession"},workmailmessageflow:{name:"WorkMailMessageFlow"},codestarnotifications:{prefix:"codestar-notifications",name:"CodeStarNotifications"},savingsplans:{name:"SavingsPlans"},sso:{name:"SSO"},ssooidc:{prefix:"sso-oidc",name:"SSOOIDC"},marketplacecatalog:{prefix:"marketplace-catalog",name:"MarketplaceCatalog",cors:!0},dataexchange:{name:"DataExchange"},sesv2:{name:"SESV2"},migrationhubconfig:{prefix:"migrationhub-config",name:"MigrationHubConfig"},connectparticipant:{name:"ConnectParticipant"},appconfig:{name:"AppConfig"},iotsecuretunneling:{name:"IoTSecureTunneling"},wafv2:{name:"WAFV2"},elasticinference:{prefix:"elastic-inference",name:"ElasticInference"},imagebuilder:{name:"Imagebuilder"},schemas:{name:"Schemas"},accessanalyzer:{name:"AccessAnalyzer"},codegurureviewer:{prefix:"codeguru-reviewer",name:"CodeGuruReviewer"},codeguruprofiler:{name:"CodeGuruProfiler"},computeoptimizer:{prefix:"compute-optimizer",name:"ComputeOptimizer"},frauddetector:{name:"FraudDetector"},kendra:{name:"Kendra"},networkmanager:{name:"NetworkManager"},outposts:{name:"Outposts"},augmentedairuntime:{prefix:"sagemaker-a2i-runtime",name:"AugmentedAIRuntime"},ebs:{name:"EBS"},kinesisvideosignalingchannels:{prefix:"kinesis-video-signaling",name:"KinesisVideoSignalingChannels",cors:!0},detective:{name:"Detective"},codestarconnections:{prefix:"codestar-connections",name:"CodeStarconnections"},synthetics:{name:"Synthetics"},iotsitewise:{name:"IoTSiteWise"},macie2:{name:"Macie2"},codeartifact:{name:"CodeArtifact"},honeycode:{name:"Honeycode"},ivs:{name:"IVS"},braket:{name:"Braket"},identitystore:{name:"IdentityStore"},appflow:{name:"Appflow"},redshiftdata:{prefix:"redshift-data",name:"RedshiftData"},ssoadmin:{prefix:"sso-admin",name:"SSOAdmin"},timestreamquery:{prefix:"timestream-query",name:"TimestreamQuery"},timestreamwrite:{prefix:"timestream-write",name:"TimestreamWrite"},s3outposts:{name:"S3Outposts"},databrew:{name:"DataBrew"},servicecatalogappregistry:{prefix:"servicecatalog-appregistry",name:"ServiceCatalogAppRegistry"},networkfirewall:{prefix:"network-firewall",name:"NetworkFirewall"},mwaa:{name:"MWAA"},amplifybackend:{name:"AmplifyBackend"},appintegrations:{name:"AppIntegrations"},connectcontactlens:{prefix:"connect-contact-lens",name:"ConnectContactLens"},devopsguru:{prefix:"devops-guru",name:"DevOpsGuru"},ecrpublic:{prefix:"ecr-public",name:"ECRPUBLIC"},lookoutvision:{name:"LookoutVision"},sagemakerfeaturestoreruntime:{prefix:"sagemaker-featurestore-runtime",name:"SageMakerFeatureStoreRuntime"},customerprofiles:{prefix:"customer-profiles",name:"CustomerProfiles"},auditmanager:{name:"AuditManager"},emrcontainers:{prefix:"emr-containers",name:"EMRcontainers"},healthlake:{name:"HealthLake"},sagemakeredge:{prefix:"sagemaker-edge",name:"SagemakerEdge"},amp:{name:"Amp"},greengrassv2:{name:"GreengrassV2"},iotdeviceadvisor:{name:"IotDeviceAdvisor"},iotfleethub:{name:"IoTFleetHub"},iotwireless:{name:"IoTWireless"},location:{name:"Location",cors:!0},wellarchitected:{name:"WellArchitected"},lexmodelsv2:{prefix:"models.lex.v2",name:"LexModelsV2"},lexruntimev2:{prefix:"runtime.lex.v2",name:"LexRuntimeV2",cors:!0},fis:{name:"Fis"},lookoutmetrics:{name:"LookoutMetrics"},mgn:{name:"Mgn"},lookoutequipment:{name:"LookoutEquipment"},nimble:{name:"Nimble"},finspace:{name:"Finspace"},finspacedata:{prefix:"finspace-data",name:"Finspacedata"},ssmcontacts:{prefix:"ssm-contacts",name:"SSMContacts"},ssmincidents:{prefix:"ssm-incidents",name:"SSMIncidents"},applicationcostprofiler:{name:"ApplicationCostProfiler"},apprunner:{name:"AppRunner"},proton:{name:"Proton"},route53recoverycluster:{prefix:"route53-recovery-cluster",name:"Route53RecoveryCluster"},route53recoverycontrolconfig:{prefix:"route53-recovery-control-config",name:"Route53RecoveryControlConfig"},route53recoveryreadiness:{prefix:"route53-recovery-readiness",name:"Route53RecoveryReadiness"},chimesdkidentity:{prefix:"chime-sdk-identity",name:"ChimeSDKIdentity"},chimesdkmessaging:{prefix:"chime-sdk-messaging",name:"ChimeSDKMessaging"},snowdevicemanagement:{prefix:"snow-device-management",name:"SnowDeviceManagement"},memorydb:{name:"MemoryDB"},opensearch:{name:"OpenSearch"},kafkaconnect:{name:"KafkaConnect"},voiceid:{prefix:"voice-id",name:"VoiceID"},wisdom:{name:"Wisdom"},account:{name:"Account"},cloudcontrol:{name:"CloudControl"},grafana:{name:"Grafana"},panorama:{name:"Panorama"},chimesdkmeetings:{prefix:"chime-sdk-meetings",name:"ChimeSDKMeetings"},resiliencehub:{name:"Resiliencehub"},migrationhubstrategy:{name:"MigrationHubStrategy"},appconfigdata:{name:"AppConfigData"},drs:{name:"Drs"},migrationhubrefactorspaces:{prefix:"migration-hub-refactor-spaces",name:"MigrationHubRefactorSpaces"},evidently:{name:"Evidently"},inspector2:{name:"Inspector2"},rbin:{name:"Rbin"},rum:{name:"RUM"},backupgateway:{prefix:"backup-gateway",name:"BackupGateway"},iottwinmaker:{name:"IoTTwinMaker"},workspacesweb:{prefix:"workspaces-web",name:"WorkSpacesWeb"},amplifyuibuilder:{name:"AmplifyUIBuilder"},keyspaces:{name:"Keyspaces"},billingconductor:{name:"Billingconductor"},gamesparks:{name:"GameSparks"},pinpointsmsvoicev2:{prefix:"pinpoint-sms-voice-v2",name:"PinpointSMSVoiceV2"},ivschat:{name:"Ivschat"},chimesdkmediapipelines:{prefix:"chime-sdk-media-pipelines",name:"ChimeSDKMediaPipelines"},emrserverless:{prefix:"emr-serverless",name:"EMRServerless"},m2:{name:"M2"},connectcampaigns:{name:"ConnectCampaigns"},redshiftserverless:{prefix:"redshift-serverless",name:"RedshiftServerless"},rolesanywhere:{name:"RolesAnywhere"},licensemanagerusersubscriptions:{prefix:"license-manager-user-subscriptions",name:"LicenseManagerUserSubscriptions"},backupstorage:{name:"BackupStorage"},privatenetworks:{name:"PrivateNetworks"},supportapp:{prefix:"support-app",name:"SupportApp"},controltower:{name:"ControlTower"},iotfleetwise:{name:"IoTFleetWise"},migrationhuborchestrator:{name:"MigrationHubOrchestrator"},connectcases:{name:"ConnectCases"},resourceexplorer2:{prefix:"resource-explorer-2",name:"ResourceExplorer2"},scheduler:{name:"Scheduler"},chimesdkvoice:{prefix:"chime-sdk-voice",name:"ChimeSDKVoice"},iotroborunner:{prefix:"iot-roborunner",name:"IoTRoboRunner"},ssmsap:{prefix:"ssm-sap",name:"SsmSap"},oam:{name:"OAM"},arczonalshift:{prefix:"arc-zonal-shift",name:"ARCZonalShift"},omics:{name:"Omics"},opensearchserverless:{name:"OpenSearchServerless"},securitylake:{name:"SecurityLake"},simspaceweaver:{name:"SimSpaceWeaver"},docdbelastic:{prefix:"docdb-elastic",name:"DocDBElastic"},sagemakergeospatial:{prefix:"sagemaker-geospatial",name:"SageMakerGeospatial"},codecatalyst:{name:"CodeCatalyst"},pipes:{name:"Pipes"},sagemakermetrics:{prefix:"sagemaker-metrics",name:"SageMakerMetrics"},kinesisvideowebrtcstorage:{prefix:"kinesis-video-webrtc-storage",name:"KinesisVideoWebRTCStorage"},licensemanagerlinuxsubscriptions:{prefix:"license-manager-linux-subscriptions",name:"LicenseManagerLinuxSubscriptions"},kendraranking:{prefix:"kendra-ranking",name:"KendraRanking"},cleanrooms:{name:"CleanRooms"},cloudtraildata:{prefix:"cloudtrail-data",name:"CloudTrailData"},tnb:{name:"Tnb"},internetmonitor:{name:"InternetMonitor"}}});var O4=m((Oyr,Qme)=>{var MT=v4(),eNt=T4(),tNt=Ty(),rNt=A4(),nNt=C4(),Jme=R4(),qy=tn(),Rr=qy.property,iNt=qy.memoizedProperty;function sNt(e,t){var r=this;e=e||{},t=t||{},t.api=this,e.metadata=e.metadata||{};var n=t.serviceIdentifier;delete t.serviceIdentifier,Rr(this,"isApi",!0,!1),Rr(this,"apiVersion",e.metadata.apiVersion),Rr(this,"endpointPrefix",e.metadata.endpointPrefix),Rr(this,"signingName",e.metadata.signingName),Rr(this,"globalEndpoint",e.metadata.globalEndpoint),Rr(this,"signatureVersion",e.metadata.signatureVersion),Rr(this,"jsonVersion",e.metadata.jsonVersion),Rr(this,"targetPrefix",e.metadata.targetPrefix),Rr(this,"protocol",e.metadata.protocol),Rr(this,"timestampFormat",e.metadata.timestampFormat),Rr(this,"xmlNamespaceUri",e.metadata.xmlNamespace),Rr(this,"abbreviation",e.metadata.serviceAbbreviation),Rr(this,"fullName",e.metadata.serviceFullName),Rr(this,"serviceId",e.metadata.serviceId),n&&Jme[n]&&Rr(this,"xmlNoDefaultLists",Jme[n].xmlNoDefaultLists,!1),iNt(this,"className",function(){var s=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return s?(s=s.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),s==="ElasticLoadBalancing"&&(s="ELB"),s):null});function i(s,o){o.endpointoperation===!0&&Rr(r,"endpointOperation",qy.string.lowerFirst(s)),o.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&Rr(r,"hasRequiredEndpointDiscovery",o.endpointdiscovery.required===!0)}Rr(this,"operations",new MT(e.operations,t,function(s,o){return new eNt(s,o,t)},qy.string.lowerFirst,i)),Rr(this,"shapes",new MT(e.shapes,t,function(s,o){return tNt.create(o,t)})),Rr(this,"paginators",new MT(e.paginators,t,function(s,o){return new rNt(s,o,t)})),Rr(this,"waiters",new MT(e.waiters,t,function(s,o){return new nNt(s,o,t)},qy.string.lowerFirst)),t.documentation&&(Rr(this,"documentation",e.documentation),Rr(this,"documentationUrl",e.documentationUrl)),Rr(this,"awsQueryCompatible",e.metadata.awsQueryCompatible)}Qme.exports=sNt});var tge=m((Iyr,ege)=>{function jT(e,t){if(!jT.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return jT.services[e][t]}jT.services={};ege.exports=jT});var rge=m(I4=>{"use strict";Object.defineProperty(I4,"__esModule",{value:!0});var oNt=function(){function e(t,r){this.key=t,this.value=r}return e}(),aNt=function(){function e(t){if(this.nodeMap={},this.size=0,typeof t!="number"||t<1)throw new Error("Cache size can only be positive number");this.sizeLimit=t}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(t){this.headerNode?(this.headerNode.prev=t,t.next=this.headerNode):this.tailNode=t,this.headerNode=t,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var t=this.tailNode,r=t.prev;return r&&(r.next=void 0),t.prev=void 0,this.tailNode=r,this.size--,t}},e.prototype.detachFromList=function(t){this.headerNode===t&&(this.headerNode=t.next),this.tailNode===t&&(this.tailNode=t.prev),t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.next=void 0,t.prev=void 0,this.size--},e.prototype.get=function(t){if(this.nodeMap[t]){var r=this.nodeMap[t];return this.detachFromList(r),this.prependToList(r),r.value}},e.prototype.remove=function(t){if(this.nodeMap[t]){var r=this.nodeMap[t];this.detachFromList(r),delete this.nodeMap[t]}},e.prototype.put=function(t,r){if(this.nodeMap[t])this.remove(t);else if(this.size===this.sizeLimit){var n=this.removeFromTail(),i=n.key;delete this.nodeMap[i]}var s=new oNt(t,r);this.nodeMap[t]=s,this.prependToList(s)},e.prototype.empty=function(){for(var t=Object.keys(this.nodeMap),r=0;r<t.length;r++){var n=t[r],i=this.nodeMap[n];this.detachFromList(i),delete this.nodeMap[n]}},e}();I4.LRUCache=aNt});var nge=m(N4=>{"use strict";Object.defineProperty(N4,"__esModule",{value:!0});var uNt=rge(),cNt=1e3,lNt=function(){function e(t){t===void 0&&(t=cNt),this.maxSize=t,this.cache=new uNt.LRUCache(t)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n=typeof t!="string"?e.getKeyString(t):t,i=this.populateValue(r);this.cache.put(n,i)},e.prototype.get=function(t){var r=typeof t!="string"?e.getKeyString(t):t,n=Date.now(),i=this.cache.get(r);if(i){for(var s=i.length-1;s>=0;s--){var o=i[s];o.Expire<n&&i.splice(s,1)}if(i.length===0){this.cache.remove(r);return}}return i},e.getKeyString=function(t){for(var r=[],n=Object.keys(t).sort(),i=0;i<n.length;i++){var s=n[i];t[s]!==void 0&&r.push(t[s])}return r.join(" ")},e.prototype.populateValue=function(t){var r=Date.now();return t.map(function(n){return{Address:n.Address||"",Expire:r+(n.CachePeriodInMinutes||1)*60*1e3}})},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r=typeof t!="string"?e.getKeyString(t):t;this.cache.remove(r)},e}();N4.EndpointCache=lNt});var q4=m((kyr,ige)=>{var zu=Oe();zu.SequentialExecutor=zu.util.inherit({constructor:function(){this._events={}},listeners:function(t){return this._events[t]?this._events[t].slice(0):[]},on:function(t,r,n){return this._events[t]?n?this._events[t].unshift(r):this._events[t].push(r):this._events[t]=[r],this},onAsync:function(t,r,n){return r._isAsync=!0,this.on(t,r,n)},removeListener:function(t,r){var n=this._events[t];if(n){for(var i=n.length,s=-1,o=0;o<i;++o)n[o]===r&&(s=o);s>-1&&n.splice(s,1)}return this},removeAllListeners:function(t){return t?delete this._events[t]:this._events={},this},emit:function(t,r,n){n||(n=function(){});var i=this.listeners(t),s=i.length;return this.callListeners(i,r,n),s>0},callListeners:function(t,r,n,i){var s=this,o=i||null;function a(c){if(c&&(o=zu.util.error(o||new Error,c),s._haltHandlersOnError))return n.call(s,o);s.callListeners(t,r,n,o)}for(;t.length>0;){var u=t.shift();if(u._isAsync){u.apply(s,r.concat([a]));return}else{try{u.apply(s,r)}catch(c){o=zu.util.error(o||new Error,c)}if(o&&s._haltHandlersOnError){n.call(s,o);return}}}n.call(s,o)},addListeners:function(t){var r=this;return t._events&&(t=t._events),zu.util.each(t,function(n,i){typeof i=="function"&&(i=[i]),zu.util.arrayEach(i,function(s){r.on(n,s)})}),r},addNamedListener:function(t,r,n,i){return this[t]=n,this.addListener(r,n,i),this},addNamedAsyncListener:function(t,r,n,i){return n._isAsync=!0,this.addNamedListener(t,r,n,i)},addNamedListeners:function(t){var r=this;return t(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this}});zu.SequentialExecutor.prototype.addListener=zu.SequentialExecutor.prototype.on;ige.exports=zu.SequentialExecutor});var sge=m((Pyr,fNt)=>{fNt.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":"globalSSL","cn-*/route53":{endpoint:"{service}.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{endpoint:"{service}.c2s.ic.gov",globalEndpoint:!0,signingRegion:"us-iso-east-1"},"us-isob-*/route53":{endpoint:"{service}.sc2s.sgov.gov",globalEndpoint:!0,signingRegion:"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{endpoint:"{service}.cn-north-1.amazonaws.com.cn",globalEndpoint:!0,signingRegion:"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"},"*/resource-explorer-2":"dualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"globalDualstackByDefault"},fipsRules:{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{endpoint:"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{endpoint:"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{endpoint:"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{endpoint:"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/cloudformation":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{endpoint:"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{endpoint:"route53.us-gov.amazonaws.com"},"*/resource-explorer-2":"fipsDualstackByDefault","*/kendra-ranking":"dualstackByDefault","*/internetmonitor":"dualstackByDefault","*/codecatalyst":"fipsGlobalDualstackByDefault"},dualstackRules:{"*/*":{endpoint:"{service}.{region}.api.aws"},"cn-*/*":{endpoint:"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},dualstackFipsRules:{"*/*":{endpoint:"{service}-fips.{region}.api.aws"},"cn-*/*":{endpoint:"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0,signingRegion:"us-east-1"},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com",globalEndpoint:!0,signingRegion:"us-gov-west-1"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"},usIso:{endpoint:"{service}.{region}.c2s.ic.gov"},usIsob:{endpoint:"{service}.{region}.sc2s.sgov.gov"},fipsStandard:{endpoint:"{service}-fips.{region}.amazonaws.com"},fipsDotPrefix:{endpoint:"fips.{service}.{region}.amazonaws.com"},fipsWithoutRegion:{endpoint:"{service}-fips.amazonaws.com"},"fips.api.ecr":{endpoint:"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{endpoint:"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{endpoint:"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{endpoint:"runtime-fips.lex.{region}.amazonaws.com"},fipsWithServiceOnly:{endpoint:"{service}.{region}.amazonaws.com"},dualstackLegacy:{endpoint:"{service}.dualstack.{region}.amazonaws.com"},dualstackLegacyCn:{endpoint:"{service}.dualstack.{region}.amazonaws.com.cn"},dualstackFipsLegacy:{endpoint:"{service}-fips.dualstack.{region}.amazonaws.com"},dualstackFipsLegacyCn:{endpoint:"{service}-fips.dualstack.{region}.amazonaws.com.cn"},dualstackLegacyEc2:{endpoint:"api.ec2.{region}.aws"},dualstackByDefault:{endpoint:"{service}.{region}.api.aws"},fipsDualstackByDefault:{endpoint:"{service}-fips.{region}.api.aws"},globalDualstackByDefault:{endpoint:"{service}.global.api.aws"},fipsGlobalDualstackByDefault:{endpoint:"{service}-fips.global.api.aws"}}}});var age=m((Dyr,oge)=>{var pNt=tn(),ky=sge();function dNt(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function hNt(e){var t=e.config.region,r=dNt(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],["*","*"]].map(function(i){return i[0]&&i[1]?i.join("/"):null})}function mNt(e,t){pNt.each(t,function(r,n){r!=="globalEndpoint"&&(e.config[r]===void 0||e.config[r]===null)&&(e.config[r]=n)})}function gNt(e){for(var t=hNt(e),r=e.config.useFipsEndpoint,n=e.config.useDualstackEndpoint,i=0;i<t.length;i++){var s=t[i];if(s){var o=r?n?ky.dualstackFipsRules:ky.fipsRules:n?ky.dualstackRules:ky.rules;if(Object.prototype.hasOwnProperty.call(o,s)){var a=o[s];typeof a=="string"&&(a=ky.patterns[a]),e.isGlobalEndpoint=!!a.globalEndpoint,a.signingRegion&&(e.signingRegion=a.signingRegion),a.signatureVersion||(a.signatureVersion="v4");var u=(e.api&&e.api.signatureVersion)==="bearer";mNt(e,Object.assign({},a,{signatureVersion:u?"bearer":a.signatureVersion}));return}}}}function vNt(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r="amazonaws.com",n=Object.keys(t),i=0;i<n.length;i++){var s=RegExp(n[i]),o=t[n[i]];if(s.test(e))return o}return r}oge.exports={configureEndpoint:gNt,getEndpointSuffix:vNt}});var k4=m((Lyr,uge)=>{function yNt(e){return typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"))}function xNt(e){return typeof e=="string"&&["aws-global","aws-us-gov-global"].includes(e)}function _Nt(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}uge.exports={isFipsRegion:yNt,isGlobalRegion:xNt,getRealRegion:_Nt}});var lge=m((Fyr,cge)=>{var Ce=Oe(),bNt=O4(),wNt=age(),P4=Ce.util.inherit,ENt=0,BT=k4();Ce.Service=P4({constructor:function(t){if(!this.loadServiceClass)throw Ce.util.error(new Error,"Service must be constructed with `new' operator");if(t){if(t.region){var r=t.region;BT.isFipsRegion(r)&&(t.region=BT.getRealRegion(r),t.useFipsEndpoint=!0),BT.isGlobalRegion(r)&&(t.region=BT.getRealRegion(r))}typeof t.useDualstack=="boolean"&&typeof t.useDualstackEndpoint!="boolean"&&(t.useDualstackEndpoint=t.useDualstack)}var n=this.loadServiceClass(t||{});if(n){var i=Ce.util.copy(t),s=new n(t);return Object.defineProperty(s,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),s._clientId=++ENt,s}this.initialize(t)},initialize:function(t){var r=Ce.config[this.serviceIdentifier];if(this.config=new Ce.Config(Ce.config),r&&this.config.update(r,!0),t&&this.config.update(t,!0),this.validateService(),this.config.endpoint||wNt.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),Ce.SequentialExecutor.call(this),Ce.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||Ce.Service._clientSideMonitoring)&&this.publisher){var n=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(s){process.nextTick(function(){n.eventHandler(s)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(s){process.nextTick(function(){n.eventHandler(s)})})}},validateService:function(){},loadServiceClass:function(t){var r=t;if(Ce.util.isEmpty(this.api)){if(r.apiConfig)return Ce.Service.defineServiceApi(this.constructor,r.apiConfig);if(this.constructor.services){r=new Ce.Config(Ce.config),r.update(t,!0);var n=r.apiVersions[this.constructor.serviceIdentifier];return n=n||r.apiVersion,this.getLatestServiceClass(n)}else return null}else return null},getLatestServiceClass:function(t){return t=this.getLatestServiceVersion(t),this.constructor.services[t]===null&&Ce.Service.defineServiceApi(this.constructor,t),this.constructor.services[t]},getLatestServiceVersion:function(t){if(!this.constructor.services||this.constructor.services.length===0)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(t?Ce.util.isType(t,Date)&&(t=Ce.util.date.iso8601(t).split("T")[0]):t="latest",Object.hasOwnProperty(this.constructor.services,t))return t;for(var r=Object.keys(this.constructor.services).sort(),n=null,i=r.length-1;i>=0;i--)if(r[i][r[i].length-1]!=="*"&&(n=r[i]),r[i].substr(0,10)<=t)return n;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+t+"'")},api:{},defaultRetryCount:3,customizeRequests:function(t){if(!t)this.customRequestHandler=null;else if(typeof t=="function")this.customRequestHandler=t;else throw new Error("Invalid callback type '"+typeof t+"' provided in customizeRequests")},makeRequest:function(t,r,n){if(typeof r=="function"&&(n=r,r=null),r=r||{},this.config.params){var i=this.api.operations[t];i&&(r=Ce.util.copy(r),Ce.util.each(this.config.params,function(o,a){i.input.members[o]&&(r[o]===void 0||r[o]===null)&&(r[o]=a)}))}var s=new Ce.Request(this,t,r);return this.addAllRequestListeners(s),this.attachMonitoringEmitter(s),n&&s.send(n),s},makeUnauthenticatedRequest:function(t,r,n){typeof r=="function"&&(n=r,r={});var i=this.makeRequest(t,r).toUnauthenticated();return n?i.send(n):i},waitFor:function(t,r,n){var i=new Ce.ResourceWaiter(this,t);return i.wait(r,n)},addAllRequestListeners:function(t){for(var r=[Ce.events,Ce.EventListeners.Core,this.serviceInterface(),Ce.EventListeners.CorePost],n=0;n<r.length;n++)r[n]&&t.addListeners(r[n]);this.config.paramValidation||t.removeListener("validate",Ce.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&t.addListeners(Ce.EventListeners.Logger),this.setupRequestListeners(t),typeof this.constructor.prototype.customRequestHandler=="function"&&this.constructor.prototype.customRequestHandler(t),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&typeof this.customRequestHandler=="function"&&this.customRequestHandler(t)},apiCallEvent:function(t){var r=t.service.api.operations[t.operation],n={Type:"ApiCall",Api:r?r.name:t.operation,Version:1,Service:t.service.api.serviceId||t.service.api.endpointPrefix,Region:t.httpRequest.region,MaxRetriesExceeded:0,UserAgent:t.httpRequest.getUserAgent()},i=t.response;if(i.httpResponse.statusCode&&(n.FinalHttpStatusCode=i.httpResponse.statusCode),i.error){var s=i.error,o=i.httpResponse.statusCode;o>299?(s.code&&(n.FinalAwsException=s.code),s.message&&(n.FinalAwsExceptionMessage=s.message)):((s.code||s.name)&&(n.FinalSdkException=s.code||s.name),s.message&&(n.FinalSdkExceptionMessage=s.message))}return n},apiAttemptEvent:function(t){var r=t.service.api.operations[t.operation],n={Type:"ApiCallAttempt",Api:r?r.name:t.operation,Version:1,Service:t.service.api.serviceId||t.service.api.endpointPrefix,Fqdn:t.httpRequest.endpoint.hostname,UserAgent:t.httpRequest.getUserAgent()},i=t.response;return i.httpResponse.statusCode&&(n.HttpStatusCode=i.httpResponse.statusCode),!t._unAuthenticated&&t.service.config.credentials&&t.service.config.credentials.accessKeyId&&(n.AccessKey=t.service.config.credentials.accessKeyId),i.httpResponse.headers&&(t.httpRequest.headers["x-amz-security-token"]&&(n.SessionToken=t.httpRequest.headers["x-amz-security-token"]),i.httpResponse.headers["x-amzn-requestid"]&&(n.XAmznRequestId=i.httpResponse.headers["x-amzn-requestid"]),i.httpResponse.headers["x-amz-request-id"]&&(n.XAmzRequestId=i.httpResponse.headers["x-amz-request-id"]),i.httpResponse.headers["x-amz-id-2"]&&(n.XAmzId2=i.httpResponse.headers["x-amz-id-2"])),n},attemptFailEvent:function(t){var r=this.apiAttemptEvent(t),n=t.response,i=n.error;return n.httpResponse.statusCode>299?(i.code&&(r.AwsException=i.code),i.message&&(r.AwsExceptionMessage=i.message)):((i.code||i.name)&&(r.SdkException=i.code||i.name),i.message&&(r.SdkExceptionMessage=i.message)),r},attachMonitoringEmitter:function(t){var r,n,i,s,o=0,a,u,c=this,f=!0;t.on("validate",function(){s=Ce.util.realClock.now(),u=Date.now()},f),t.on("sign",function(){n=Ce.util.realClock.now(),r=Date.now(),a=t.httpRequest.region,o++},f),t.on("validateResponse",function(){i=Math.round(Ce.util.realClock.now()-n)}),t.addNamedListener("API_CALL_ATTEMPT","success",function(){var h=c.apiAttemptEvent(t);h.Timestamp=r,h.AttemptLatency=i>=0?i:0,h.Region=a,c.emit("apiCallAttempt",[h])}),t.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var h=c.attemptFailEvent(t);h.Timestamp=r,i=i||Math.round(Ce.util.realClock.now()-n),h.AttemptLatency=i>=0?i:0,h.Region=a,c.emit("apiCallAttempt",[h])}),t.addNamedListener("API_CALL","complete",function(){var h=c.apiCallEvent(t);if(h.AttemptCount=o,!(h.AttemptCount<=0)){h.Timestamp=u;var g=Math.round(Ce.util.realClock.now()-s);h.Latency=g>=0?g:0;var v=t.response;v.error&&v.error.retryable&&typeof v.retryCount=="number"&&typeof v.maxRetries=="number"&&v.retryCount>=v.maxRetries&&(h.MaxRetriesExceeded=1),c.emit("apiCall",[h])}})},setupRequestListeners:function(t){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(t){var r,n=null,i="";if(t){var s=t.service.api.operations||{};n=s[t.operation]||null,i=n?n.authtype:""}return this.config.signatureVersion?r=this.config.signatureVersion:i==="v4"||i==="v4-unsigned-body"?r="v4":i==="bearer"?r="bearer":r=this.api.signatureVersion,Ce.Signers.RequestSigner.getVersion(r)},serviceInterface:function(){switch(this.api.protocol){case"ec2":return Ce.EventListeners.Query;case"query":return Ce.EventListeners.Query;case"json":return Ce.EventListeners.Json;case"rest-json":return Ce.EventListeners.RestJson;case"rest-xml":return Ce.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(t){return t.httpResponse.statusCode<300},numRetries:function(){return this.config.maxRetries!==void 0?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(t,r){return Ce.util.calculateRetryDelay(t,this.config.retryDelayOptions,r)},retryableError:function(t){return!!(this.timeoutError(t)||this.networkingError(t)||this.expiredCredentialsError(t)||this.throttledError(t)||t.statusCode>=500)},networkingError:function(t){return t.code==="NetworkingError"},timeoutError:function(t){return t.code==="TimeoutError"},expiredCredentialsError:function(t){return t.code==="ExpiredTokenException"},clockSkewError:function(t){switch(t.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(t){t&&(this.config.systemClockOffset=t-Date.now())},isClockSkewed:function(t){if(t)return Math.abs(this.getSkewCorrectedDate().getTime()-t)>=3e5},throttledError:function(t){if(t.statusCode===429)return!0;switch(t.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(t){if(typeof t!="string")return t;var r=t;return r=r.replace(/\{service\}/g,this.api.endpointPrefix),r=r.replace(/\{region\}/g,this.config.region),r=r.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http"),r},setEndpoint:function(t){this.endpoint=new Ce.Endpoint(t,this.config)},paginationConfig:function(t,r){var n=this.api.operations[t].paginator;if(!n){if(r){var i=new Error;throw Ce.util.error(i,"No pagination configuration for "+t)}return null}return n}});Ce.util.update(Ce.Service,{defineMethods:function(t){Ce.util.each(t.prototype.api.operations,function(n){if(!t.prototype[n]){var i=t.prototype.api.operations[n];i.authtype==="none"?t.prototype[n]=function(s,o){return this.makeUnauthenticatedRequest(n,s,o)}:t.prototype[n]=function(s,o){return this.makeRequest(n,s,o)}}})},defineService:function(t,r,n){Ce.Service._serviceMap[t]=!0,Array.isArray(r)||(n=r,r=[]);var i=P4(Ce.Service,n||{});if(typeof t=="string"){Ce.Service.addVersions(i,r);var s=i.serviceIdentifier||t;i.serviceIdentifier=s}else i.prototype.api=t,Ce.Service.defineMethods(i);if(Ce.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&Ce.util.clientSideMonitoring){var o=Ce.util.clientSideMonitoring.Publisher,a=Ce.util.clientSideMonitoring.configProvider,u=a();this.prototype.publisher=new o(u),u.enabled&&(Ce.Service._clientSideMonitoring=!0)}return Ce.SequentialExecutor.call(i.prototype),Ce.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(t,r){Array.isArray(r)||(r=[r]),t.services=t.services||{};for(var n=0;n<r.length;n++)t.services[r[n]]===void 0&&(t.services[r[n]]=null);t.apiVersions=Object.keys(t.services).sort()},defineServiceApi:function(t,r,n){var i=P4(t,{serviceIdentifier:t.serviceIdentifier});function s(o){o.isApi?i.prototype.api=o:i.prototype.api=new bNt(o,{serviceIdentifier:t.serviceIdentifier})}if(typeof r=="string"){if(n)s(n);else try{s(Ce.apiLoader(t.serviceIdentifier,r))}catch(o){throw Ce.util.error(o,{message:"Could not find API configuration "+t.serviceIdentifier+"-"+r})}Object.prototype.hasOwnProperty.call(t.services,r)||(t.apiVersions=t.apiVersions.concat(r).sort()),t.services[r]=i}else s(r);return Ce.Service.defineMethods(i),i},hasService:function(e){return Object.prototype.hasOwnProperty.call(Ce.Service._serviceMap,e)},addDefaultMonitoringListeners:function(t){t.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(n){var i=Object.getPrototypeOf(t);i._events&&i.emit("apiCallAttempt",[n])}),t.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(n){var i=Object.getPrototypeOf(t);i._events&&i.emit("apiCall",[n])})},_serviceMap:{}});Ce.util.mixin(Ce.Service,Ce.SequentialExecutor);cge.exports=Ce.Service});var D4=m(()=>{var co=Oe();co.Credentials=co.util.inherit({constructor:function(){if(co.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],arguments.length===1&&typeof arguments[0]=="object"){var t=arguments[0].credentials||arguments[0];this.accessKeyId=t.accessKeyId,this.secretAccessKey=t.secretAccessKey,this.sessionToken=t.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var t=co.util.date.getDate().getTime(),r=new Date(t+this.expiryWindow*1e3);return this.expireTime&&r>this.expireTime?!0:this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(t){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),t&&t(n)}):t&&t()},refresh:function(t){this.expired=!1,t()},coalesceRefresh:function(t,r){var n=this;n.refreshCallbacks.push(t)===1&&n.load(function(s){co.util.arrayEach(n.refreshCallbacks,function(o){r?o(s):co.util.defer(function(){o(s)})}),n.refreshCallbacks.length=0})},load:function(t){t()}});co.Credentials.addPromisesToClass=function(t){this.prototype.getPromise=co.util.promisifyMethod("get",t),this.prototype.refreshPromise=co.util.promisifyMethod("refresh",t)};co.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise};co.util.addPromises(co.Credentials)});var L4=m(()=>{var Vo=Oe();Vo.CredentialProviderChain=Vo.util.inherit(Vo.Credentials,{constructor:function(t){t?this.providers=t:this.providers=Vo.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(t){var r=this;if(r.providers.length===0)return t(new Error("No providers")),r;if(r.resolveCallbacks.push(t)===1){let o=function(a,u){if(!a&&u||n===i.length){Vo.util.arrayEach(r.resolveCallbacks,function(f){f(a,u)}),r.resolveCallbacks.length=0;return}var c=i[n++];typeof c=="function"?u=c.call():u=c,u.get?u.get(function(f){o(f,f?null:u)}):o(null,u)};var s=o,n=0,i=r.providers.slice(0);o()}return r}});Vo.CredentialProviderChain.defaultProviders=[];Vo.CredentialProviderChain.addPromisesToClass=function(t){this.prototype.resolvePromise=Vo.util.promisifyMethod("resolve",t)};Vo.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise};Vo.util.addPromises(Vo.CredentialProviderChain)});var fge=m(()=>{var Or=Oe();D4();L4();var UT;Or.Config=Or.util.inherit({constructor:function(t){t===void 0&&(t={}),t=this.extractCredentials(t),Or.util.each.call(this,this.keys,function(r,n){this.set(r,t[r],n)})},getCredentials:function(t){var r=this;function n(a){t(a,a?null:r.credentials)}function i(a,u){return new Or.util.error(u||new Error,{code:"CredentialsError",message:a,name:"CredentialsError"})}function s(){r.credentials.get(function(a){if(a){var u="Could not load credentials from "+r.credentials.constructor.name;a=i(u,a)}n(a)})}function o(){var a=null;(!r.credentials.accessKeyId||!r.credentials.secretAccessKey)&&(a=i("Missing credentials")),n(a)}r.credentials?typeof r.credentials.get=="function"?s():o():r.credentialProvider?r.credentialProvider.resolve(function(a,u){a&&(a=i("Could not load credentials from any providers",a)),r.credentials=u,n(a)}):n(i("No credentials to load"))},getToken:function(t){var r=this;function n(a){t(a,a?null:r.token)}function i(a,u){return new Or.util.error(u||new Error,{code:"TokenError",message:a,name:"TokenError"})}function s(){r.token.get(function(a){if(a){var u="Could not load token from "+r.token.constructor.name;a=i(u,a)}n(a)})}function o(){var a=null;r.token.token||(a=i("Missing token")),n(a)}r.token?typeof r.token.get=="function"?s():o():r.tokenProvider?r.tokenProvider.resolve(function(a,u){a&&(a=i("Could not load token from any providers",a)),r.token=u,n(a)}):n(i("No token to load"))},update:function(t,r){r=r||!1,t=this.extractCredentials(t),Or.util.each.call(this,t,function(n,i){(r||Object.prototype.hasOwnProperty.call(this.keys,n)||Or.Service.hasService(n))&&this.set(n,i)})},loadFromPath:function(t){this.clear();var r=JSON.parse(Or.util.readFileSync(t)),n=new Or.FileSystemCredentials(t),i=new Or.CredentialProviderChain;return i.providers.unshift(n),i.resolve(function(s,o){if(s)throw s;r.credentials=o}),this.constructor(r),this},clear:function(){Or.util.each.call(this,this.keys,function(t){delete this[t]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(t,r,n){r===void 0?(n===void 0&&(n=this.keys[t]),typeof n=="function"?this[t]=n.call(this):this[t]=n):t==="httpOptions"&&this[t]?this[t]=Or.util.merge(this[t],r):this[t]=r},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(t){return t.accessKeyId&&t.secretAccessKey&&(t=Or.util.copy(t),t.credentials=new Or.Credentials(t)),t},setPromisesDependency:function(t){UT=t,t===null&&typeof Promise=="function"&&(UT=Promise);var r=[Or.Request,Or.Credentials,Or.CredentialProviderChain];Or.S3&&(r.push(Or.S3),Or.S3.ManagedUpload&&r.push(Or.S3.ManagedUpload)),Or.util.addPromises(r,UT)},getPromisesDependency:function(){return UT}});Or.config=new Or.Config});var HT=m(()=>{var Qn=Oe(),WT=Qn.util.inherit;Qn.Endpoint=WT({constructor:function(t,r){if(Qn.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof t>"u"||t===null)throw new Error("Invalid endpoint: "+t);if(typeof t!="string")return Qn.util.copy(t);if(!t.match(/^http/)){var n=r&&r.sslEnabled!==void 0?r.sslEnabled:Qn.config.sslEnabled;t=(n?"https":"http")+"://"+t}Qn.util.update(this,Qn.util.urlParse(t)),this.port?this.port=parseInt(this.port,10):this.port=this.protocol==="https:"?443:80}});Qn.HttpRequest=WT({constructor:function(t,r){t=new Qn.Endpoint(t),this.method="POST",this.path=t.path||"/",this.headers={},this.body="",this.endpoint=t,this.region=r,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=Qn.util.userAgent()},getUserAgentHeaderName:function(){var t=Qn.util.isBrowser()?"X-Amz-":"";return t+"User-Agent"},appendToUserAgent:function(t){typeof t=="string"&&t&&(this._userAgent+=" "+t),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var t=this.path.split("?",2)[1];return t?(t=Qn.util.queryStringParse(t),Qn.util.queryParamsToString(t)):""},updateEndpoint:function(t){var r=new Qn.Endpoint(t);this.endpoint=r,this.path=r.path||"/",this.headers.Host&&(this.headers.Host=r.host)}});Qn.HttpResponse=WT({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}});Qn.HttpClient=WT({});Qn.HttpClient.getInstance=function(){return this.singleton===void 0&&(this.singleton=new this),this.singleton}});var xge=m((Gyr,yge)=>{var Tn=Oe(),As=tn(),pge=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function $T(e){var t=e.service,r=t.api||{},n=r.operations,i={};return t.config.region&&(i.region=t.config.region),r.serviceId&&(i.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(i.accessKeyId=t.config.credentials.accessKeyId),i}function hge(e,t,r){!r||t===void 0||t===null||r.type==="structure"&&r.required&&r.required.length>0&&As.arrayEach(r.required,function(n){var i=r.members[n];if(i.endpointDiscoveryId===!0){var s=i.isLocationName?i.name:n;e[s]=String(t[n])}else hge(e,t[n],i)})}function zT(e,t){var r={};return hge(r,e.params,t),r}function mge(e){var t=e.service,r=t.api,n=r.operations?r.operations[e.operation]:void 0,i=n?n.input:void 0,s=zT(e,i),o=$T(e);Object.keys(s).length>0&&(o=As.update(o,s),n&&(o.operation=n.name));var a=Tn.endpointCache.get(o);if(!(a&&a.length===1&&a[0].Address===""))if(a&&a.length>0)e.httpRequest.updateEndpoint(a[0].Address);else{var u=t.makeRequest(r.endpointOperation,{Operation:n.name,Identifiers:s});vge(u),u.removeListener("validate",Tn.EventListeners.Core.VALIDATE_PARAMETERS),u.removeListener("retry",Tn.EventListeners.Core.RETRY_CHECK),Tn.endpointCache.put(o,[{Address:"",CachePeriodInMinutes:1}]),u.send(function(c,f){f&&f.Endpoints?Tn.endpointCache.put(o,f.Endpoints):c&&Tn.endpointCache.put(o,[{Address:"",CachePeriodInMinutes:1}])})}}var Gu={};function gge(e,t){var r=e.service,n=r.api,i=n.operations?n.operations[e.operation]:void 0,s=i?i.input:void 0,o=zT(e,s),a=$T(e);Object.keys(o).length>0&&(a=As.update(a,o),i&&(a.operation=i.name));var u=Tn.EndpointCache.getKeyString(a),c=Tn.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){Gu[u]||(Gu[u]=[]),Gu[u].push({request:e,callback:t});return}else if(c&&c.length>0)e.httpRequest.updateEndpoint(c[0].Address),t();else{var f=r.makeRequest(n.endpointOperation,{Operation:i.name,Identifiers:o});f.removeListener("validate",Tn.EventListeners.Core.VALIDATE_PARAMETERS),vge(f),Tn.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:60}]),f.send(function(p,h){if(p){if(e.response.error=As.error(p,{retryable:!1}),Tn.endpointCache.remove(a),Gu[u]){var g=Gu[u];As.arrayEach(g,function(v){v.request.response.error=As.error(p,{retryable:!1}),v.callback()}),delete Gu[u]}}else if(h&&(Tn.endpointCache.put(u,h.Endpoints),e.httpRequest.updateEndpoint(h.Endpoints[0].Address),Gu[u])){var g=Gu[u];As.arrayEach(g,function(_){_.request.httpRequest.updateEndpoint(h.Endpoints[0].Address),_.callback()}),delete Gu[u]}t()})}}function vge(e){var t=e.service.api,r=t.apiVersion;r&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=r)}function F4(e){var t=e.error,r=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||r.statusCode===421)){var n=e.request,i=n.service.api.operations||{},s=i[n.operation]?i[n.operation].input:void 0,o=zT(n,s),a=$T(n);Object.keys(o).length>0&&(a=As.update(a,o),i[n.operation]&&(a.operation=i[n.operation].name)),Tn.endpointCache.remove(a)}}function SNt(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===!0)throw As.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=Tn.config[e.serviceIdentifier]||{};return!!(Tn.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function dge(e){return["false","0"].indexOf(e)>=0}function TNt(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled!==void 0)return t.config.endpointDiscoveryEnabled;if(!As.isBrowser()){for(var r=0;r<pge.length;r++){var n=pge[r];if(Object.prototype.hasOwnProperty.call(process.env,n)){if(process.env[n]===""||process.env[n]===void 0)throw As.error(new Error,{code:"ConfigurationException",message:"environmental variable "+n+" cannot be set to nothing"});return!dge(process.env[n])}}var i={};try{i=Tn.util.iniLoader?Tn.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[Tn.util.sharedConfigFileEnv]}):{}}catch{}var s=i[process.env.AWS_PROFILE||Tn.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(s,"endpoint_discovery_enabled")){if(s.endpoint_discovery_enabled===void 0)throw As.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!dge(s.endpoint_discovery_enabled)}}}function ANt(e,t){var r=e.service||{};if(SNt(r)||e.isPresigned())return t();var n=r.api.operations||{},i=n[e.operation],s=i?i.endpointDiscoveryRequired:"NULL",o=TNt(e),a=r.api.hasRequiredEndpointDiscovery;switch((o||a)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),s){case"OPTIONAL":(o||a)&&(mge(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",F4)),t();break;case"REQUIRED":if(o===!1){e.response.error=As.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",F4),gge(e,t);break;case"NULL":default:t();break}}yge.exports={discoverEndpoint:ANt,requiredDiscoverEndpoint:gge,optionalDiscoverEndpoint:mge,marshallCustomIdentifiers:zT,getCacheKey:$T,invalidateCachedEndpoint:F4}});var wge=m(()=>{var Ot=Oe(),Sl=q4(),CNt=xge().discoverEndpoint;Ot.EventListeners={Core:{}};function bge(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}function _ge(e){var t=e.service;return t.config.signatureVersion?t.config.signatureVersion:t.api.signatureVersion?t.api.signatureVersion:bge(e)}Ot.EventListeners={Core:new Sl().addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(i,s){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return s();var o=_ge(i);if(o==="bearer"){i.service.config.getToken(function(a){a&&(i.response.error=Ot.util.error(a,{code:"TokenError"})),s()});return}i.service.config.getCredentials(function(a){a&&(i.response.error=Ot.util.error(a,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),s()})}),e("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var s=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?s.test(i.service.config.region)||(i.response.error=Ot.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=Ot.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation];if(s){var o=s.idempotentMembers;if(o.length){for(var a=Ot.util.copy(i.params),u=0,c=o.length;u<c;u++)a[o[u]]||(a[o[u]]=Ot.util.uuid.v4());i.params=a}}}}),e("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation].input,o=i.service.config.paramValidation;new Ot.ParamValidator(o).validate(s,i.params)}}),e("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation];if(s){var o=i.httpRequest.body,a=o&&(Ot.util.Buffer.isBuffer(o)||typeof o=="string"),u=i.httpRequest.headers;if(s.httpChecksumRequired&&i.service.config.computeChecksums&&a&&!u["Content-MD5"]){var c=Ot.util.crypto.md5(o,"base64");u["Content-MD5"]=c}}}}),t("COMPUTE_SHA256","afterBuild",function(i,s){if(i.haltHandlersOnError(),!!i.service.api.operations){var o=i.service.api.operations[i.operation],a=o?o.authtype:"";if(!i.service.api.signatureVersion&&!a&&!i.service.config.signatureVersion)return s();if(i.service.getSignerClass(i)===Ot.Signers.V4){var u=i.httpRequest.body||"";if(a.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",s();Ot.util.computeSha256(u,function(c,f){c?s(c):(i.httpRequest.headers["X-Amz-Content-Sha256"]=f,s())})}else s()}}),e("SET_CONTENT_LENGTH","afterBuild",function(i){var s=bge(i),o=Ot.util.getRequestPayloadShape(i);if(i.httpRequest.headers["Content-Length"]===void 0)try{var a=Ot.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=a}catch(u){if(o&&o.isStreaming){if(o.requiresLength)throw u;if(s.indexOf("unsigned-body")>=0){i.httpRequest.headers["Transfer-Encoding"]="chunked";return}else throw u}throw u}}),e("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),e("SET_TRACE_ID","afterBuild",function(i){var s="X-Amzn-Trace-Id";if(Ot.util.isNode()&&!Object.hasOwnProperty.call(i.httpRequest.headers,s)){var o="AWS_LAMBDA_FUNCTION_NAME",a="_X_AMZN_TRACE_ID",u=process.env[o],c=process.env[a];typeof u=="string"&&u.length>0&&typeof c=="string"&&c.length>0&&(i.httpRequest.headers[s]=c)}}),e("RESTART","restart",function(){var i=this.response.error;!i||!i.retryable||(this.httpRequest=new Ot.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)});var r=!0;t("DISCOVER_ENDPOINT","sign",CNt,r),t("SIGN","sign",function(i,s){var o=i.service,a=_ge(i);if(!a||a.length===0)return s();a==="bearer"?o.config.getToken(function(u,c){if(u)return i.response.error=u,s();try{var f=o.getSignerClass(i),p=new f(i.httpRequest);p.addAuthorization(c)}catch(h){i.response.error=h}s()}):o.config.getCredentials(function(u,c){if(u)return i.response.error=u,s();try{var f=o.getSkewCorrectedDate(),p=o.getSignerClass(i),h=i.service.api.operations||{},g=h[i.operation],v=new p(i.httpRequest,o.getSigningName(i),{signatureCache:o.config.signatureCache,operation:g,signatureVersion:o.api.signatureVersion});v.setServiceClientId(o._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],v.addAuthorization(c,f),i.signedAt=f}catch(_){i.response.error=_}s()})}),e("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=Ot.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),e("ERROR","error",function(i,s){var o=s.request.service.api.awsQueryCompatible;if(o){var a=s.httpResponse.headers,u=a?a["x-amzn-query-error"]:void 0;u&&u.includes(";")&&(s.error.code=u.split(";")[0])}},!0),t("SEND","send",function(i,s){i.httpResponse._abortCallback=s,i.error=null,i.data=null;function o(p){i.httpResponse.stream=p;var h=i.request.httpRequest.stream,g=i.request.service,v=g.api,_=i.request.operation,w=v.operations[_]||{};p.on("headers",function(b,S,T){if(i.request.emit("httpHeaders",[b,S,i,T]),!i.httpResponse.streaming)if(Ot.HttpClient.streamsApiVersion===2){if(w.hasEventOutput&&g.successfulResponse(i)){i.request.emit("httpDone"),s();return}p.on("readable",function(){var q=p.read();q!==null&&i.request.emit("httpData",[q,i])})}else p.on("data",function(q){i.request.emit("httpData",[q,i])})}),p.on("end",function(){if(!h||!h.didCallback){if(Ot.HttpClient.streamsApiVersion===2&&w.hasEventOutput&&g.successfulResponse(i))return;i.request.emit("httpDone"),s()}})}function a(p){p.on("sendProgress",function(g){i.request.emit("httpUploadProgress",[g,i])}),p.on("receiveProgress",function(g){i.request.emit("httpDownloadProgress",[g,i])})}function u(p){if(p.code!=="RequestAbortedError"){var h=p.code==="TimeoutError"?p.code:"NetworkingError";p=Ot.util.error(p,{code:h,region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})}i.error=p,i.request.emit("httpError",[i.error,i],function(){s()})}function c(){var p=Ot.HttpClient.getInstance(),h=i.request.service.config.httpOptions||{};try{var g=p.handleRequest(i.request.httpRequest,h,o,u);a(g)}catch(v){u(v)}}var f=(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3;f>=60*10?this.emit("sign",[this],function(p){p?s(p):c()}):c()}),e("HTTP_HEADERS","httpHeaders",function(i,s,o,a){o.httpResponse.statusCode=i,o.httpResponse.statusMessage=a,o.httpResponse.headers=s,o.httpResponse.body=Ot.util.buffer.toBuffer(""),o.httpResponse.buffers=[],o.httpResponse.numBytes=0;var u=s.date||s.Date,c=o.request.service;if(u){var f=Date.parse(u);c.config.correctClockSkew&&c.isClockSkewed(f)&&c.applyClockOffset(f)}}),e("HTTP_DATA","httpData",function(i,s){if(i){if(Ot.util.isNode()){s.httpResponse.numBytes+=i.length;var o=s.httpResponse.headers["content-length"],a={loaded:s.httpResponse.numBytes,total:o};s.request.emit("httpDownloadProgress",[a,s])}s.httpResponse.buffers.push(Ot.util.buffer.toBuffer(i))}}),e("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var s=Ot.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=s}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(i){i.httpResponse.statusCode&&(i.error.statusCode=i.httpResponse.statusCode,i.error.retryable===void 0&&(i.error.retryable=this.service.retryableError(i.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(i){if(i.error)switch(i.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":i.error.retryable=!0,i.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(i){var s=i.error;s&&typeof s.code=="string"&&typeof s.message=="string"&&s.code.match(/Signature/)&&s.message.match(/expired/)&&(i.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(i){i.error&&this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),e("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new Ot.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),e("RETRY_CHECK","retry",function(i){i.error&&(i.error.redirect&&i.redirectCount<i.maxRedirects?i.error.retryDelay=0:i.retryCount<i.maxRetries&&(i.error.retryDelay=this.service.retryDelays(i.retryCount,i.error)||0))}),t("RESET_RETRY_STATE","afterRetry",function(i,s){var o,a=!1;i.error&&(o=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,a=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,a=!0)),a&&o>=0?(i.error=null,setTimeout(s,o)):s()})}),CorePost:new Sl().addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",Ot.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",Ot.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(r){function n(s){return s.errno==="ENOTFOUND"||typeof s.errno=="number"&&typeof Ot.util.getSystemErrorName=="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(Ot.util.getSystemErrorName(s.errno)>=0)}if(r.code==="NetworkingError"&&n(r)){var i="Inaccessible host: `"+r.hostname+"' at port `"+r.port+"'. This service may not be available in the `"+r.region+"' region.";this.response.error=Ot.util.error(new Error(i),{code:"UnknownEndpoint",region:r.region,hostname:r.hostname,retryable:!0,originalError:r})}})}),Logger:new Sl().addNamedListeners(function(e){e("LOG_REQUEST","complete",function(r){var n=r.request,i=n.service.config.logger;if(!i)return;function s(u,c){if(!c)return c;if(u.isSensitive)return"***SensitiveInformation***";switch(u.type){case"structure":var f={};return Ot.util.each(c,function(g,v){Object.prototype.hasOwnProperty.call(u.members,g)?f[g]=s(u.members[g],v):f[g]=v}),f;case"list":var p=[];return Ot.util.arrayEach(c,function(g,v){p.push(s(u.member,g))}),p;case"map":var h={};return Ot.util.each(c,function(g,v){h[g]=s(u.value,v)}),h;default:return c}}function o(){var u=r.request.service.getSkewCorrectedDate().getTime(),c=(u-n.startTime.getTime())/1e3,f=!!i.isTTY,p=r.httpResponse.statusCode,h=n.params;if(n.service.api.operations&&n.service.api.operations[n.operation]&&n.service.api.operations[n.operation].input){var g=n.service.api.operations[n.operation].input;h=s(g,n.params)}var v=require("util").inspect(h,!0,null),_="";return f&&(_+="\x1B[33m"),_+="[AWS "+n.service.serviceIdentifier+" "+p,_+=" "+c.toString()+"s "+r.retryCount+" retries]",f&&(_+="\x1B[0;1m"),_+=" "+Ot.util.string.lowerFirst(n.operation),_+="("+v+")",f&&(_+="\x1B[0m"),_}var a=o();typeof i.log=="function"?i.log(a):typeof i.write=="function"&&i.write(a+`
|
|
147
|
-
`)})}),Json:new Sl().addNamedListeners(function(e){var t=PT();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:new Sl().addNamedListeners(function(e){var t=Cy();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:new Sl().addNamedListeners(function(e){var t=w4();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError),e("UNSET_CONTENT_LENGTH","afterBuild",t.unsetContentLength)}),RestXml:new Sl().addNamedListeners(function(e){var t=S4();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Query:new Sl().addNamedListeners(function(e){var t=x4();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})}});var Sge=m((Xyr,Ege)=>{function M4(e,t){this.currentState=t||null,this.states=e||{}}M4.prototype.runTo=function(t,r,n,i){typeof t=="function"&&(i=n,n=r,r=t,t=null);var s=this,o=s.states[s.currentState];o.fn.call(n||s,i,function(a){if(a)if(o.fail)s.currentState=o.fail;else return r?r.call(n,a):null;else if(o.accept)s.currentState=o.accept;else return r?r.call(n):null;if(s.currentState===t)return r?r.call(n,a):null;s.runTo(t,r,n,a)})};M4.prototype.addState=function(t,r,n,i){return typeof r=="function"?(i=r,r=null,n=null):typeof n=="function"&&(i=n,n=null),this.currentState||(this.currentState=t),this.states[t]={accept:r,fail:n,fn:i},this};Ege.exports=M4});var VT=m(GT=>{(function(e){"use strict";function t(N){return N!==null?Object.prototype.toString.call(N)==="[object Array]":!1}function r(N){return N!==null?Object.prototype.toString.call(N)==="[object Object]":!1}function n(N,W){if(N===W)return!0;var G=Object.prototype.toString.call(N);if(G!==Object.prototype.toString.call(W))return!1;if(t(N)===!0){if(N.length!==W.length)return!1;for(var ee=0;ee<N.length;ee++)if(n(N[ee],W[ee])===!1)return!1;return!0}if(r(N)===!0){var ne={};for(var _e in N)if(hasOwnProperty.call(N,_e)){if(n(N[_e],W[_e])===!1)return!1;ne[_e]=!0}for(var Ke in W)if(hasOwnProperty.call(W,Ke)&&ne[Ke]!==!0)return!1;return!0}return!1}function i(N){if(N===""||N===!1||N===null)return!0;if(t(N)&&N.length===0)return!0;if(r(N)){for(var W in N)if(N.hasOwnProperty(W))return!1;return!0}else return!1}function s(N){for(var W=Object.keys(N),G=[],ee=0;ee<W.length;ee++)G.push(N[W[ee]]);return G}function o(N,W){var G={};for(var ee in N)G[ee]=N[ee];for(var ne in W)G[ne]=W[ne];return G}var a;typeof String.prototype.trimLeft=="function"?a=function(N){return N.trimLeft()}:a=function(N){return N.match(/^\s*(.*)/)[1]};var u=0,c=1,f=2,p=3,h=4,g=5,v=6,_=7,w=8,y=9,b={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},S="EOF",T="UnquotedIdentifier",R="QuotedIdentifier",q="Rbracket",O="Rparen",M="Comma",U="Colon",z="Rbrace",L="Number",D="Current",Z="Expref",le="Pipe",B="Or",V="And",he="EQ",fe="GT",xe="LT",se="GTE",Ge="LTE",Le="NE",Ee="Flatten",it="Star",Vt="Filter",Te="Dot",Ur="Not",Ci="Lbrace",pe="Lbracket",k="Lparen",A="Literal",H={".":Te,"*":it,",":M,":":U,"{":Ci,"}":z,"]":q,"(":k,")":O,"@":D},K={"<":!0,">":!0,"=":!0,"!":!0},He={" ":!0," ":!0,"\n":!0};function Fe(N){return N>="a"&&N<="z"||N>="A"&&N<="Z"||N==="_"}function rr(N){return N>="0"&&N<="9"||N==="-"}function Nr(N){return N>="a"&&N<="z"||N>="A"&&N<="Z"||N>="0"&&N<="9"||N==="_"}function on(){}on.prototype={tokenize:function(N){var W=[];this._current=0;for(var G,ee,ne;this._current<N.length;)if(Fe(N[this._current]))G=this._current,ee=this._consumeUnquotedIdentifier(N),W.push({type:T,value:ee,start:G});else if(H[N[this._current]]!==void 0)W.push({type:H[N[this._current]],value:N[this._current],start:this._current}),this._current++;else if(rr(N[this._current]))ne=this._consumeNumber(N),W.push(ne);else if(N[this._current]==="[")ne=this._consumeLBracket(N),W.push(ne);else if(N[this._current]==='"')G=this._current,ee=this._consumeQuotedIdentifier(N),W.push({type:R,value:ee,start:G});else if(N[this._current]==="'")G=this._current,ee=this._consumeRawStringLiteral(N),W.push({type:A,value:ee,start:G});else if(N[this._current]==="`"){G=this._current;var _e=this._consumeLiteral(N);W.push({type:A,value:_e,start:G})}else if(K[N[this._current]]!==void 0)W.push(this._consumeOperator(N));else if(He[N[this._current]]!==void 0)this._current++;else if(N[this._current]==="&")G=this._current,this._current++,N[this._current]==="&"?(this._current++,W.push({type:V,value:"&&",start:G})):W.push({type:Z,value:"&",start:G});else if(N[this._current]==="|")G=this._current,this._current++,N[this._current]==="|"?(this._current++,W.push({type:B,value:"||",start:G})):W.push({type:le,value:"|",start:G});else{var Ke=new Error("Unknown character:"+N[this._current]);throw Ke.name="LexerError",Ke}return W},_consumeUnquotedIdentifier:function(N){var W=this._current;for(this._current++;this._current<N.length&&Nr(N[this._current]);)this._current++;return N.slice(W,this._current)},_consumeQuotedIdentifier:function(N){var W=this._current;this._current++;for(var G=N.length;N[this._current]!=='"'&&this._current<G;){var ee=this._current;N[ee]==="\\"&&(N[ee+1]==="\\"||N[ee+1]==='"')?ee+=2:ee++,this._current=ee}return this._current++,JSON.parse(N.slice(W,this._current))},_consumeRawStringLiteral:function(N){var W=this._current;this._current++;for(var G=N.length;N[this._current]!=="'"&&this._current<G;){var ee=this._current;N[ee]==="\\"&&(N[ee+1]==="\\"||N[ee+1]==="'")?ee+=2:ee++,this._current=ee}this._current++;var ne=N.slice(W+1,this._current-1);return ne.replace("\\'","'")},_consumeNumber:function(N){var W=this._current;this._current++;for(var G=N.length;rr(N[this._current])&&this._current<G;)this._current++;var ee=parseInt(N.slice(W,this._current));return{type:L,value:ee,start:W}},_consumeLBracket:function(N){var W=this._current;return this._current++,N[this._current]==="?"?(this._current++,{type:Vt,value:"[?",start:W}):N[this._current]==="]"?(this._current++,{type:Ee,value:"[]",start:W}):{type:pe,value:"[",start:W}},_consumeOperator:function(N){var W=this._current,G=N[W];if(this._current++,G==="!")return N[this._current]==="="?(this._current++,{type:Le,value:"!=",start:W}):{type:Ur,value:"!",start:W};if(G==="<")return N[this._current]==="="?(this._current++,{type:Ge,value:"<=",start:W}):{type:xe,value:"<",start:W};if(G===">")return N[this._current]==="="?(this._current++,{type:se,value:">=",start:W}):{type:fe,value:">",start:W};if(G==="="&&N[this._current]==="=")return this._current++,{type:he,value:"==",start:W}},_consumeLiteral:function(N){this._current++;for(var W=this._current,G=N.length,ee;N[this._current]!=="`"&&this._current<G;){var ne=this._current;N[ne]==="\\"&&(N[ne+1]==="\\"||N[ne+1]==="`")?ne+=2:ne++,this._current=ne}var _e=a(N.slice(W,this._current));return _e=_e.replace("\\`","`"),this._looksLikeJSON(_e)?ee=JSON.parse(_e):ee=JSON.parse('"'+_e+'"'),this._current++,ee},_looksLikeJSON:function(N){var W='[{"',G=["true","false","null"],ee="-0123456789";if(N==="")return!1;if(W.indexOf(N[0])>=0)return!0;if(G.indexOf(N)>=0)return!0;if(ee.indexOf(N[0])>=0)try{return JSON.parse(N),!0}catch{return!1}else return!1}};var Ae={};Ae[S]=0,Ae[T]=0,Ae[R]=0,Ae[q]=0,Ae[O]=0,Ae[M]=0,Ae[z]=0,Ae[L]=0,Ae[D]=0,Ae[Z]=0,Ae[le]=1,Ae[B]=2,Ae[V]=3,Ae[he]=5,Ae[fe]=5,Ae[xe]=5,Ae[se]=5,Ae[Ge]=5,Ae[Le]=5,Ae[Ee]=9,Ae[it]=20,Ae[Vt]=21,Ae[Te]=40,Ae[Ur]=45,Ae[Ci]=50,Ae[pe]=55,Ae[k]=60;function sr(){}sr.prototype={parse:function(N){this._loadTokens(N),this.index=0;var W=this.expression(0);if(this._lookahead(0)!==S){var G=this._lookaheadToken(0),ee=new Error("Unexpected token type: "+G.type+", value: "+G.value);throw ee.name="ParserError",ee}return W},_loadTokens:function(N){var W=new on,G=W.tokenize(N);G.push({type:S,value:"",start:N.length}),this.tokens=G},expression:function(N){var W=this._lookaheadToken(0);this._advance();for(var G=this.nud(W),ee=this._lookahead(0);N<Ae[ee];)this._advance(),G=this.led(ee,G),ee=this._lookahead(0);return G},_lookahead:function(N){return this.tokens[this.index+N].type},_lookaheadToken:function(N){return this.tokens[this.index+N]},_advance:function(){this.index++},nud:function(N){var W,G,ee;switch(N.type){case A:return{type:"Literal",value:N.value};case T:return{type:"Field",name:N.value};case R:var ne={type:"Field",name:N.value};if(this._lookahead(0)===k)throw new Error("Quoted identifier not allowed for function names.");return ne;case Ur:return G=this.expression(Ae.Not),{type:"NotExpression",children:[G]};case it:return W={type:"Identity"},G=null,this._lookahead(0)===q?G={type:"Identity"}:G=this._parseProjectionRHS(Ae.Star),{type:"ValueProjection",children:[W,G]};case Vt:return this.led(N.type,{type:"Identity"});case Ci:return this._parseMultiselectHash();case Ee:return W={type:Ee,children:[{type:"Identity"}]},G=this._parseProjectionRHS(Ae.Flatten),{type:"Projection",children:[W,G]};case pe:return this._lookahead(0)===L||this._lookahead(0)===U?(G=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},G)):this._lookahead(0)===it&&this._lookahead(1)===q?(this._advance(),this._advance(),G=this._parseProjectionRHS(Ae.Star),{type:"Projection",children:[{type:"Identity"},G]}):this._parseMultiselectList();case D:return{type:D};case Z:return ee=this.expression(Ae.Expref),{type:"ExpressionReference",children:[ee]};case k:for(var _e=[];this._lookahead(0)!==O;)this._lookahead(0)===D?(ee={type:D},this._advance()):ee=this.expression(0),_e.push(ee);return this._match(O),_e[0];default:this._errorToken(N)}},led:function(N,W){var G;switch(N){case Te:var ee=Ae.Dot;return this._lookahead(0)!==it?(G=this._parseDotRHS(ee),{type:"Subexpression",children:[W,G]}):(this._advance(),G=this._parseProjectionRHS(ee),{type:"ValueProjection",children:[W,G]});case le:return G=this.expression(Ae.Pipe),{type:le,children:[W,G]};case B:return G=this.expression(Ae.Or),{type:"OrExpression",children:[W,G]};case V:return G=this.expression(Ae.And),{type:"AndExpression",children:[W,G]};case k:for(var ne=W.name,_e=[],Ke,mt;this._lookahead(0)!==O;)this._lookahead(0)===D?(Ke={type:D},this._advance()):Ke=this.expression(0),this._lookahead(0)===M&&this._match(M),_e.push(Ke);return this._match(O),mt={type:"Function",name:ne,children:_e},mt;case Vt:var vn=this.expression(0);return this._match(q),this._lookahead(0)===Ee?G={type:"Identity"}:G=this._parseProjectionRHS(Ae.Filter),{type:"FilterProjection",children:[W,G,vn]};case Ee:var ls={type:Ee,children:[W]},Xr=this._parseProjectionRHS(Ae.Flatten);return{type:"Projection",children:[ls,Xr]};case he:case Le:case fe:case se:case xe:case Ge:return this._parseComparator(W,N);case pe:var je=this._lookaheadToken(0);return je.type===L||je.type===U?(G=this._parseIndexExpression(),this._projectIfSlice(W,G)):(this._match(it),this._match(q),G=this._parseProjectionRHS(Ae.Star),{type:"Projection",children:[W,G]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(N){if(this._lookahead(0)===N)this._advance();else{var W=this._lookaheadToken(0),G=new Error("Expected "+N+", got: "+W.type);throw G.name="ParserError",G}},_errorToken:function(N){var W=new Error("Invalid token ("+N.type+'): "'+N.value+'"');throw W.name="ParserError",W},_parseIndexExpression:function(){if(this._lookahead(0)===U||this._lookahead(1)===U)return this._parseSliceExpression();var N={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(q),N},_projectIfSlice:function(N,W){var G={type:"IndexExpression",children:[N,W]};return W.type==="Slice"?{type:"Projection",children:[G,this._parseProjectionRHS(Ae.Star)]}:G},_parseSliceExpression:function(){for(var N=[null,null,null],W=0,G=this._lookahead(0);G!==q&&W<3;){if(G===U)W++,this._advance();else if(G===L)N[W]=this._lookaheadToken(0).value,this._advance();else{var ee=this._lookahead(0),ne=new Error("Syntax error, unexpected token: "+ee.value+"("+ee.type+")");throw ne.name="Parsererror",ne}G=this._lookahead(0)}return this._match(q),{type:"Slice",children:N}},_parseComparator:function(N,W){var G=this.expression(Ae[W]);return{type:"Comparator",name:W,children:[N,G]}},_parseDotRHS:function(N){var W=this._lookahead(0),G=[T,R,it];if(G.indexOf(W)>=0)return this.expression(N);if(W===pe)return this._match(pe),this._parseMultiselectList();if(W===Ci)return this._match(Ci),this._parseMultiselectHash()},_parseProjectionRHS:function(N){var W;if(Ae[this._lookahead(0)]<10)W={type:"Identity"};else if(this._lookahead(0)===pe)W=this.expression(N);else if(this._lookahead(0)===Vt)W=this.expression(N);else if(this._lookahead(0)===Te)this._match(Te),W=this._parseDotRHS(N);else{var G=this._lookaheadToken(0),ee=new Error("Sytanx error, unexpected token: "+G.value+"("+G.type+")");throw ee.name="ParserError",ee}return W},_parseMultiselectList:function(){for(var N=[];this._lookahead(0)!==q;){var W=this.expression(0);if(N.push(W),this._lookahead(0)===M&&(this._match(M),this._lookahead(0)===q))throw new Error("Unexpected token Rbracket")}return this._match(q),{type:"MultiSelectList",children:N}},_parseMultiselectHash:function(){for(var N=[],W=[T,R],G,ee,ne,_e;;){if(G=this._lookaheadToken(0),W.indexOf(G.type)<0)throw new Error("Expecting an identifier token, got: "+G.type);if(ee=G.value,this._advance(),this._match(U),ne=this.expression(0),_e={type:"KeyValuePair",name:ee,value:ne},N.push(_e),this._lookahead(0)===M)this._match(M);else if(this._lookahead(0)===z){this._match(z);break}}return{type:"MultiSelectHash",children:N}}};function Bn(N){this.runtime=N}Bn.prototype={search:function(N,W){return this.visit(N,W)},visit:function(N,W){var G,ee,ne,_e,Ke,mt,vn,ls,Xr,je;switch(N.type){case"Field":return W!==null&&r(W)?(mt=W[N.name],mt===void 0?null:mt):null;case"Subexpression":for(ne=this.visit(N.children[0],W),je=1;je<N.children.length;je++)if(ne=this.visit(N.children[1],ne),ne===null)return null;return ne;case"IndexExpression":return vn=this.visit(N.children[0],W),ls=this.visit(N.children[1],vn),ls;case"Index":if(!t(W))return null;var So=N.value;return So<0&&(So=W.length+So),ne=W[So],ne===void 0&&(ne=null),ne;case"Slice":if(!t(W))return null;var tb=N.children.slice(0),pd=this.computeSliceParams(W.length,tb),rb=pd[0],nb=pd[1],Gg=pd[2];if(ne=[],Gg>0)for(je=rb;je<nb;je+=Gg)ne.push(W[je]);else for(je=rb;je>nb;je+=Gg)ne.push(W[je]);return ne;case"Projection":var fs=this.visit(N.children[0],W);if(!t(fs))return null;for(Xr=[],je=0;je<fs.length;je++)ee=this.visit(N.children[1],fs[je]),ee!==null&&Xr.push(ee);return Xr;case"ValueProjection":if(fs=this.visit(N.children[0],W),!r(fs))return null;Xr=[];var Vg=s(fs);for(je=0;je<Vg.length;je++)ee=this.visit(N.children[1],Vg[je]),ee!==null&&Xr.push(ee);return Xr;case"FilterProjection":if(fs=this.visit(N.children[0],W),!t(fs))return null;var Kg=[],ib=[];for(je=0;je<fs.length;je++)G=this.visit(N.children[2],fs[je]),i(G)||Kg.push(fs[je]);for(var Xg=0;Xg<Kg.length;Xg++)ee=this.visit(N.children[1],Kg[Xg]),ee!==null&&ib.push(ee);return ib;case"Comparator":switch(_e=this.visit(N.children[0],W),Ke=this.visit(N.children[1],W),N.name){case he:ne=n(_e,Ke);break;case Le:ne=!n(_e,Ke);break;case fe:ne=_e>Ke;break;case se:ne=_e>=Ke;break;case xe:ne=_e<Ke;break;case Ge:ne=_e<=Ke;break;default:throw new Error("Unknown comparator: "+N.name)}return ne;case Ee:var Xl=this.visit(N.children[0],W);if(!t(Xl))return null;var dd=[];for(je=0;je<Xl.length;je++)ee=Xl[je],t(ee)?dd.push.apply(dd,ee):dd.push(ee);return dd;case"Identity":return W;case"MultiSelectList":if(W===null)return null;for(Xr=[],je=0;je<N.children.length;je++)Xr.push(this.visit(N.children[je],W));return Xr;case"MultiSelectHash":if(W===null)return null;Xr={};var Yl;for(je=0;je<N.children.length;je++)Yl=N.children[je],Xr[Yl.name]=this.visit(Yl.value,W);return Xr;case"OrExpression":return G=this.visit(N.children[0],W),i(G)&&(G=this.visit(N.children[1],W)),G;case"AndExpression":return _e=this.visit(N.children[0],W),i(_e)===!0?_e:this.visit(N.children[1],W);case"NotExpression":return _e=this.visit(N.children[0],W),i(_e);case"Literal":return N.value;case le:return vn=this.visit(N.children[0],W),this.visit(N.children[1],vn);case D:return W;case"Function":var sb=[];for(je=0;je<N.children.length;je++)sb.push(this.visit(N.children[je],W));return this.runtime.callFunction(N.name,sb);case"ExpressionReference":var ob=N.children[0];return ob.jmespathType=Z,ob;default:throw new Error("Unknown node type: "+N.type)}},computeSliceParams:function(N,W){var G=W[0],ee=W[1],ne=W[2],_e=[null,null,null];if(ne===null)ne=1;else if(ne===0){var Ke=new Error("Invalid slice, step cannot be 0");throw Ke.name="RuntimeError",Ke}var mt=ne<0;return G===null?G=mt?N-1:0:G=this.capSliceRange(N,G,ne),ee===null?ee=mt?-1:N:ee=this.capSliceRange(N,ee,ne),_e[0]=G,_e[1]=ee,_e[2]=ne,_e},capSliceRange:function(N,W,G){return W<0?(W+=N,W<0&&(W=G<0?-1:0)):W>=N&&(W=G<0?N-1:N),W}};function fd(N){this._interpreter=N,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[w]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[f,p]},{types:[c]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[f]},{types:[f]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[f,p,h]}]},map:{_func:this._functionMap,_signature:[{types:[v]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[w,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[h],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[v]}]},sum:{_func:this._functionSum,_signature:[{types:[w]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[f]},{types:[f]}]},min:{_func:this._functionMin,_signature:[{types:[w,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[v]}]},type:{_func:this._functionType,_signature:[{types:[c]}]},keys:{_func:this._functionKeys,_signature:[{types:[h]}]},values:{_func:this._functionValues,_signature:[{types:[h]}]},sort:{_func:this._functionSort,_signature:[{types:[y,w]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[v]}]},join:{_func:this._functionJoin,_signature:[{types:[f]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[f,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[c]}]},to_string:{_func:this._functionToString,_signature:[{types:[c]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[c]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[c],variadic:!0}]}}}fd.prototype={callFunction:function(N,W){var G=this.functionTable[N];if(G===void 0)throw new Error("Unknown function: "+N+"()");return this._validateArgs(N,W,G._signature),G._func.call(this,W)},_validateArgs:function(N,W,G){var ee;if(G[G.length-1].variadic){if(W.length<G.length)throw ee=G.length===1?" argument":" arguments",new Error("ArgumentError: "+N+"() takes at least"+G.length+ee+" but received "+W.length)}else if(W.length!==G.length)throw ee=G.length===1?" argument":" arguments",new Error("ArgumentError: "+N+"() takes "+G.length+ee+" but received "+W.length);for(var ne,_e,Ke,mt=0;mt<G.length;mt++){Ke=!1,ne=G[mt].types,_e=this._getTypeName(W[mt]);for(var vn=0;vn<ne.length;vn++)if(this._typeMatches(_e,ne[vn],W[mt])){Ke=!0;break}if(!Ke){var ls=ne.map(function(Xr){return b[Xr]}).join(",");throw new Error("TypeError: "+N+"() expected argument "+(mt+1)+" to be type "+ls+" but received type "+b[_e]+" instead.")}}},_typeMatches:function(N,W,G){if(W===c)return!0;if(W===y||W===w||W===p){if(W===p)return N===p;if(N===p){var ee;W===w?ee=u:W===y&&(ee=f);for(var ne=0;ne<G.length;ne++)if(!this._typeMatches(this._getTypeName(G[ne]),ee,G[ne]))return!1;return!0}}else return N===W},_getTypeName:function(N){switch(Object.prototype.toString.call(N)){case"[object String]":return f;case"[object Number]":return u;case"[object Array]":return p;case"[object Boolean]":return g;case"[object Null]":return _;case"[object Object]":return N.jmespathType===Z?v:h}},_functionStartsWith:function(N){return N[0].lastIndexOf(N[1])===0},_functionEndsWith:function(N){var W=N[0],G=N[1];return W.indexOf(G,W.length-G.length)!==-1},_functionReverse:function(N){var W=this._getTypeName(N[0]);if(W===f){for(var G=N[0],ee="",ne=G.length-1;ne>=0;ne--)ee+=G[ne];return ee}else{var _e=N[0].slice(0);return _e.reverse(),_e}},_functionAbs:function(N){return Math.abs(N[0])},_functionCeil:function(N){return Math.ceil(N[0])},_functionAvg:function(N){for(var W=0,G=N[0],ee=0;ee<G.length;ee++)W+=G[ee];return W/G.length},_functionContains:function(N){return N[0].indexOf(N[1])>=0},_functionFloor:function(N){return Math.floor(N[0])},_functionLength:function(N){return r(N[0])?Object.keys(N[0]).length:N[0].length},_functionMap:function(N){for(var W=[],G=this._interpreter,ee=N[0],ne=N[1],_e=0;_e<ne.length;_e++)W.push(G.visit(ee,ne[_e]));return W},_functionMerge:function(N){for(var W={},G=0;G<N.length;G++){var ee=N[G];for(var ne in ee)W[ne]=ee[ne]}return W},_functionMax:function(N){if(N[0].length>0){var W=this._getTypeName(N[0][0]);if(W===u)return Math.max.apply(Math,N[0]);for(var G=N[0],ee=G[0],ne=1;ne<G.length;ne++)ee.localeCompare(G[ne])<0&&(ee=G[ne]);return ee}else return null},_functionMin:function(N){if(N[0].length>0){var W=this._getTypeName(N[0][0]);if(W===u)return Math.min.apply(Math,N[0]);for(var G=N[0],ee=G[0],ne=1;ne<G.length;ne++)G[ne].localeCompare(ee)<0&&(ee=G[ne]);return ee}else return null},_functionSum:function(N){for(var W=0,G=N[0],ee=0;ee<G.length;ee++)W+=G[ee];return W},_functionType:function(N){switch(this._getTypeName(N[0])){case u:return"number";case f:return"string";case p:return"array";case h:return"object";case g:return"boolean";case v:return"expref";case _:return"null"}},_functionKeys:function(N){return Object.keys(N[0])},_functionValues:function(N){for(var W=N[0],G=Object.keys(W),ee=[],ne=0;ne<G.length;ne++)ee.push(W[G[ne]]);return ee},_functionJoin:function(N){var W=N[0],G=N[1];return G.join(W)},_functionToArray:function(N){return this._getTypeName(N[0])===p?N[0]:[N[0]]},_functionToString:function(N){return this._getTypeName(N[0])===f?N[0]:JSON.stringify(N[0])},_functionToNumber:function(N){var W=this._getTypeName(N[0]),G;return W===u?N[0]:W===f&&(G=+N[0],!isNaN(G))?G:null},_functionNotNull:function(N){for(var W=0;W<N.length;W++)if(this._getTypeName(N[W])!==_)return N[W];return null},_functionSort:function(N){var W=N[0].slice(0);return W.sort(),W},_functionSortBy:function(N){var W=N[0].slice(0);if(W.length===0)return W;var G=this._interpreter,ee=N[1],ne=this._getTypeName(G.visit(ee,W[0]));if([u,f].indexOf(ne)<0)throw new Error("TypeError");for(var _e=this,Ke=[],mt=0;mt<W.length;mt++)Ke.push([mt,W[mt]]);Ke.sort(function(ls,Xr){var je=G.visit(ee,ls[1]),So=G.visit(ee,Xr[1]);if(_e._getTypeName(je)!==ne)throw new Error("TypeError: expected "+ne+", received "+_e._getTypeName(je));if(_e._getTypeName(So)!==ne)throw new Error("TypeError: expected "+ne+", received "+_e._getTypeName(So));return je>So?1:je<So?-1:ls[0]-Xr[0]});for(var vn=0;vn<Ke.length;vn++)W[vn]=Ke[vn][1];return W},_functionMaxBy:function(N){for(var W=N[1],G=N[0],ee=this.createKeyFunction(W,[u,f]),ne=-1/0,_e,Ke,mt=0;mt<G.length;mt++)Ke=ee(G[mt]),Ke>ne&&(ne=Ke,_e=G[mt]);return _e},_functionMinBy:function(N){for(var W=N[1],G=N[0],ee=this.createKeyFunction(W,[u,f]),ne=1/0,_e,Ke,mt=0;mt<G.length;mt++)Ke=ee(G[mt]),Ke<ne&&(ne=Ke,_e=G[mt]);return _e},createKeyFunction:function(N,W){var G=this,ee=this._interpreter,ne=function(_e){var Ke=ee.visit(N,_e);if(W.indexOf(G._getTypeName(Ke))<0){var mt="TypeError: expected one of "+W+", received "+G._getTypeName(Ke);throw new Error(mt)}return Ke};return ne}};function ia(N){var W=new sr,G=W.parse(N);return G}function Kl(N){var W=new on;return W.tokenize(N)}function sa(N,W){var G=new sr,ee=new fd,ne=new Bn(ee);ee._interpreter=ne;var _e=G.parse(W);return ne.search(_e,N)}e.tokenize=Kl,e.compile=ia,e.search=sa,e.strictDeepEqual=n})(typeof GT>"u"?GT.jmespath={}:GT)});var Age=m(()=>{var Qt=Oe(),Tge=Sge(),RNt=Qt.util.inherit,KT=Qt.util.domain,ONt=VT(),INt={success:1,error:1,complete:1};function NNt(e){return Object.prototype.hasOwnProperty.call(INt,e._asm.currentState)}var j4=new Tge;j4.setupStates=function(){var e=function(t,r){var n=this;n._haltHandlersOnError=!1,n.emit(n._asm.currentState,function(i){if(i)if(NNt(n))if(KT&&n.domain instanceof KT.Domain)i.domainEmitter=n,i.domain=n.domain,i.domainThrown=!1,n.domain.emit("error",i);else throw i;else n.response.error=i,r(i);else r(n.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)};j4.setupStates();Qt.Request=RNt({constructor:function(t,r,n){var i=t.endpoint,s=t.config.region,o=t.config.customUserAgent;t.signingRegion?s=t.signingRegion:t.isGlobalEndpoint&&(s="us-east-1"),this.domain=KT&&KT.active,this.service=t,this.operation=r,this.params=n||{},this.httpRequest=new Qt.HttpRequest(i,s),this.httpRequest.appendToUserAgent(o),this.startTime=t.getSkewCorrectedDate(),this.response=new Qt.Response(this),this._asm=new Tge(j4.states,"validate"),this._haltHandlersOnError=!1,Qt.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(t){return t&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(r){t.call(r,r.error,r.data)})),this.runTo(),this.response},build:function(t){return this.runTo("send",t)},runTo:function(t,r){return this._asm.runTo(t,r,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(r){r.error=Qt.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(t){t=Qt.util.fn.makeAsync(t,3);function r(n){t.call(n,n.error,n.data,function(i){i!==!1&&(n.hasNextPage()?n.nextPage().on("complete",r).send():t.call(n,null,null,Qt.util.fn.noop))})}this.on("complete",r).send()},eachItem:function(t){var r=this;function n(i,s){if(i)return t(i,null);if(s===null)return t(null,null);var o=r.service.paginationConfig(r.operation),a=o.resultKey;Array.isArray(a)&&(a=a[0]);var u=ONt.search(s,a),c=!0;return Qt.util.arrayEach(u,function(f){if(c=t(null,f),c===!1)return Qt.util.abort}),c}this.eachPage(n)},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var t=Qt.util.stream,r=this,n=null;return Qt.HttpClient.streamsApiVersion===2?(n=new t.PassThrough,process.nextTick(function(){r.send()})):(n=new t.Stream,n.readable=!0,n.sent=!1,n.on("newListener",function(i){!n.sent&&i==="data"&&(n.sent=!0,process.nextTick(function(){r.send()}))})),this.on("error",function(i){n.emit("error",i)}),this.on("httpHeaders",function(s,o,a){if(s<300){r.removeListener("httpData",Qt.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",Qt.EventListeners.Core.HTTP_ERROR),r.on("httpError",function(_){a.error=_,a.error.retryable=!1});var u=!1,c;if(r.httpRequest.method!=="HEAD"&&(c=parseInt(o["content-length"],10)),c!==void 0&&!isNaN(c)&&c>=0){u=!0;var f=0}var p=function(){u&&f!==c?n.emit("error",Qt.util.error(new Error("Stream content length mismatch. Received "+f+" of "+c+" bytes."),{code:"StreamContentLengthMismatch"})):Qt.HttpClient.streamsApiVersion===2?n.end():n.emit("end")},h=a.httpResponse.createUnbufferedStream();if(Qt.HttpClient.streamsApiVersion===2)if(u){var g=new t.PassThrough;g._write=function(v){return v&&v.length&&(f+=v.length),t.PassThrough.prototype._write.apply(this,arguments)},g.on("end",p),n.on("error",function(v){u=!1,h.unpipe(g),g.emit("end"),g.end()}),h.pipe(g).pipe(n,{end:!1})}else h.pipe(n);else u&&h.on("data",function(v){v&&v.length&&(f+=v.length)}),h.on("data",function(v){n.emit("data",v)}),h.on("end",p);h.on("error",function(v){u=!1,n.emit("error",v)})}}),n},emitEvent:function(t,r,n){typeof r=="function"&&(n=r,r=null),n||(n=function(){}),r||(r=this.eventParameters(t,this.response));var i=Qt.SequentialExecutor.prototype.emit;i.call(this,t,r,function(s){s&&(this.response.error=s),n.call(this,s)})},eventParameters:function(t){switch(t){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(t,r){return!r&&typeof t=="function"&&(r=t,t=null),new Qt.Signers.Presign().sign(this.toGet(),t,r)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",Qt.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",Qt.EventListeners.Core.SIGN),this},toGet:function(){return(this.service.api.protocol==="query"||this.service.api.protocol==="ec2")&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(t){t.httpRequest.method="GET",t.httpRequest.path=t.service.endpoint.path+"?"+t.httpRequest.body,t.httpRequest.body="",delete t.httpRequest.headers["Content-Length"],delete t.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}});Qt.Request.addPromisesToClass=function(t){this.prototype.promise=function(){var n=this;return this.httpRequest.appendToUserAgent("promise"),new t(function(i,s){n.on("complete",function(o){o.error?s(o.error):i(Object.defineProperty(o.data||{},"$response",{value:o}))}),n.runTo()})}};Qt.Request.deletePromisesFromClass=function(){delete this.prototype.promise};Qt.util.addPromises(Qt.Request);Qt.util.mixin(Qt.Request,Qt.SequentialExecutor)});var Rge=m(()=>{var Py=Oe(),qNt=Py.util.inherit,Cge=VT();Py.Response=qNt({constructor:function(t){this.request=t,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new Py.HttpResponse,t&&(this.maxRetries=t.service.numRetries(),this.maxRedirects=t.service.config.maxRedirects)},nextPage:function(t){var r,n=this.request.service,i=this.request.operation;try{r=n.paginationConfig(i,!0)}catch(u){this.error=u}if(!this.hasNextPage()){if(t)t(this.error,null);else if(this.error)throw this.error;return null}var s=Py.util.copy(this.request.params);if(this.nextPageTokens){var o=r.inputToken;typeof o=="string"&&(o=[o]);for(var a=0;a<o.length;a++)s[o[a]]=this.nextPageTokens[a];return n.makeRequest(this.request.operation,s,t)}else return t?t(null,null):null},hasNextPage:function(){if(this.cacheNextPageTokens(),this.nextPageTokens)return!0;if(this.nextPageTokens!==void 0)return!1},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var t=this.request.service.paginationConfig(this.request.operation);if(!t)return this.nextPageTokens;if(this.nextPageTokens=null,t.moreResults&&!Cge.search(this.data,t.moreResults))return this.nextPageTokens;var r=t.outputToken;return typeof r=="string"&&(r=[r]),Py.util.arrayEach.call(this,r,function(n){var i=Cge.search(this.data,n);i&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(i))}),this.nextPageTokens}})});var Ige=m(()=>{var _p=Oe(),kNt=_p.util.inherit,Pm=VT();function Oge(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,i="retry";r.forEach(function(s){if(!n){var o=t.matchers[s.matcher];o&&o(e,s.expected,s.argument)&&(n=!0,i=s.state)}}),!n&&e.error&&(i="failure"),i==="success"?t.setSuccess(e):t.setError(e,i==="retry")}_p.ResourceWaiter=kNt({constructor:function(t,r){this.service=t,this.state=r,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=Pm.search(e.data,r)}catch{return!1}return Pm.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=Pm.search(e.data,r)}catch{return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var s=0;s<i;s++)if(!Pm.strictDeepEqual(n[s],t))return!1;return!0},pathAny:function(e,t,r){try{var n=Pm.search(e.data,r)}catch{return!1}Array.isArray(n)||(n=[n]);for(var i=n.length,s=0;s<i;s++)if(Pm.strictDeepEqual(n[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return typeof r=="number"&&r===t},error:function(e,t){return typeof t=="string"&&e.error?t===e.error.code:t===!!e.error}},listeners:new _p.SequentialExecutor().addNamedListeners(function(e){e("RETRY_CHECK","retry",function(t){var r=t.request._waiter;t.error&&t.error.code==="ResourceNotReady"&&(t.error.retryDelay=(r.config.delay||0)*1e3)}),e("CHECK_OUTPUT","extractData",Oge),e("CHECK_ERROR","extractError",Oge)}),wait:function(t,r){typeof t=="function"&&(r=t,t=void 0),t&&t.$waiter&&(t=_p.util.copy(t),typeof t.$waiter.delay=="number"&&(this.config.delay=t.$waiter.delay),typeof t.$waiter.maxAttempts=="number"&&(this.config.maxAttempts=t.$waiter.maxAttempts),delete t.$waiter);var n=this.service.makeRequest(this.config.operation,t);return n._waiter=this,n.response.maxRetries=this.config.maxAttempts,n.addListeners(this.listeners),r&&n.send(r),n},setSuccess:function(t){t.error=null,t.data=t.data||{},t.request.removeAllListeners("extractData")},setError:function(t,r){t.data=null,t.error=_p.util.error(t.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:r})},loadWaiterConfig:function(t){if(!this.service.api.waiters[t])throw new _p.util.error(new Error,{code:"StateNotFoundError",message:"State "+t+" not found."});this.config=_p.util.copy(this.service.api.waiters[t])}})});var qge=m((nxr,Nge)=>{var Vu=Oe(),PNt=Vu.util.inherit;Vu.Signers.V2=PNt(Vu.Signers.RequestSigner,{addAuthorization:function(t,r){r||(r=Vu.util.date.getDate());var n=this.request;n.params.Timestamp=Vu.util.date.iso8601(r),n.params.SignatureVersion="2",n.params.SignatureMethod="HmacSHA256",n.params.AWSAccessKeyId=t.accessKeyId,t.sessionToken&&(n.params.SecurityToken=t.sessionToken),delete n.params.Signature,n.params.Signature=this.signature(t),n.body=Vu.util.queryParamsToString(n.params),n.headers["Content-Length"]=n.body.length},signature:function(t){return Vu.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push(this.request.endpoint.host.toLowerCase()),t.push(this.request.pathname()),t.push(Vu.util.queryParamsToString(this.request.params)),t.join(`
|
|
147
|
+
`)})}),Json:new Sl().addNamedListeners(function(e){var t=PT();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:new Sl().addNamedListeners(function(e){var t=Cy();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:new Sl().addNamedListeners(function(e){var t=w4();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError),e("UNSET_CONTENT_LENGTH","afterBuild",t.unsetContentLength)}),RestXml:new Sl().addNamedListeners(function(e){var t=S4();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Query:new Sl().addNamedListeners(function(e){var t=x4();e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})}});var Sge=m((Xyr,Ege)=>{function M4(e,t){this.currentState=t||null,this.states=e||{}}M4.prototype.runTo=function(t,r,n,i){typeof t=="function"&&(i=n,n=r,r=t,t=null);var s=this,o=s.states[s.currentState];o.fn.call(n||s,i,function(a){if(a)if(o.fail)s.currentState=o.fail;else return r?r.call(n,a):null;else if(o.accept)s.currentState=o.accept;else return r?r.call(n):null;if(s.currentState===t)return r?r.call(n,a):null;s.runTo(t,r,n,a)})};M4.prototype.addState=function(t,r,n,i){return typeof r=="function"?(i=r,r=null,n=null):typeof n=="function"&&(i=n,n=null),this.currentState||(this.currentState=t),this.states[t]={accept:r,fail:n,fn:i},this};Ege.exports=M4});var VT=m(GT=>{(function(e){"use strict";function t(N){return N!==null?Object.prototype.toString.call(N)==="[object Array]":!1}function r(N){return N!==null?Object.prototype.toString.call(N)==="[object Object]":!1}function n(N,W){if(N===W)return!0;var G=Object.prototype.toString.call(N);if(G!==Object.prototype.toString.call(W))return!1;if(t(N)===!0){if(N.length!==W.length)return!1;for(var ee=0;ee<N.length;ee++)if(n(N[ee],W[ee])===!1)return!1;return!0}if(r(N)===!0){var ne={};for(var _e in N)if(hasOwnProperty.call(N,_e)){if(n(N[_e],W[_e])===!1)return!1;ne[_e]=!0}for(var Ke in W)if(hasOwnProperty.call(W,Ke)&&ne[Ke]!==!0)return!1;return!0}return!1}function i(N){if(N===""||N===!1||N===null)return!0;if(t(N)&&N.length===0)return!0;if(r(N)){for(var W in N)if(N.hasOwnProperty(W))return!1;return!0}else return!1}function s(N){for(var W=Object.keys(N),G=[],ee=0;ee<W.length;ee++)G.push(N[W[ee]]);return G}function o(N,W){var G={};for(var ee in N)G[ee]=N[ee];for(var ne in W)G[ne]=W[ne];return G}var a;typeof String.prototype.trimLeft=="function"?a=function(N){return N.trimLeft()}:a=function(N){return N.match(/^\s*(.*)/)[1]};var u=0,c=1,f=2,p=3,h=4,g=5,v=6,_=7,w=8,y=9,b={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},S="EOF",T="UnquotedIdentifier",R="QuotedIdentifier",q="Rbracket",O="Rparen",M="Comma",U="Colon",z="Rbrace",L="Number",D="Current",Z="Expref",le="Pipe",B="Or",V="And",he="EQ",fe="GT",xe="LT",se="GTE",Ve="LTE",Le="NE",Ee="Flatten",it="Star",Vt="Filter",Te="Dot",Ur="Not",Ci="Lbrace",pe="Lbracket",k="Lparen",A="Literal",H={".":Te,"*":it,",":M,":":U,"{":Ci,"}":z,"]":q,"(":k,")":O,"@":D},K={"<":!0,">":!0,"=":!0,"!":!0},He={" ":!0," ":!0,"\n":!0};function Fe(N){return N>="a"&&N<="z"||N>="A"&&N<="Z"||N==="_"}function rr(N){return N>="0"&&N<="9"||N==="-"}function Nr(N){return N>="a"&&N<="z"||N>="A"&&N<="Z"||N>="0"&&N<="9"||N==="_"}function on(){}on.prototype={tokenize:function(N){var W=[];this._current=0;for(var G,ee,ne;this._current<N.length;)if(Fe(N[this._current]))G=this._current,ee=this._consumeUnquotedIdentifier(N),W.push({type:T,value:ee,start:G});else if(H[N[this._current]]!==void 0)W.push({type:H[N[this._current]],value:N[this._current],start:this._current}),this._current++;else if(rr(N[this._current]))ne=this._consumeNumber(N),W.push(ne);else if(N[this._current]==="[")ne=this._consumeLBracket(N),W.push(ne);else if(N[this._current]==='"')G=this._current,ee=this._consumeQuotedIdentifier(N),W.push({type:R,value:ee,start:G});else if(N[this._current]==="'")G=this._current,ee=this._consumeRawStringLiteral(N),W.push({type:A,value:ee,start:G});else if(N[this._current]==="`"){G=this._current;var _e=this._consumeLiteral(N);W.push({type:A,value:_e,start:G})}else if(K[N[this._current]]!==void 0)W.push(this._consumeOperator(N));else if(He[N[this._current]]!==void 0)this._current++;else if(N[this._current]==="&")G=this._current,this._current++,N[this._current]==="&"?(this._current++,W.push({type:V,value:"&&",start:G})):W.push({type:Z,value:"&",start:G});else if(N[this._current]==="|")G=this._current,this._current++,N[this._current]==="|"?(this._current++,W.push({type:B,value:"||",start:G})):W.push({type:le,value:"|",start:G});else{var Ke=new Error("Unknown character:"+N[this._current]);throw Ke.name="LexerError",Ke}return W},_consumeUnquotedIdentifier:function(N){var W=this._current;for(this._current++;this._current<N.length&&Nr(N[this._current]);)this._current++;return N.slice(W,this._current)},_consumeQuotedIdentifier:function(N){var W=this._current;this._current++;for(var G=N.length;N[this._current]!=='"'&&this._current<G;){var ee=this._current;N[ee]==="\\"&&(N[ee+1]==="\\"||N[ee+1]==='"')?ee+=2:ee++,this._current=ee}return this._current++,JSON.parse(N.slice(W,this._current))},_consumeRawStringLiteral:function(N){var W=this._current;this._current++;for(var G=N.length;N[this._current]!=="'"&&this._current<G;){var ee=this._current;N[ee]==="\\"&&(N[ee+1]==="\\"||N[ee+1]==="'")?ee+=2:ee++,this._current=ee}this._current++;var ne=N.slice(W+1,this._current-1);return ne.replace("\\'","'")},_consumeNumber:function(N){var W=this._current;this._current++;for(var G=N.length;rr(N[this._current])&&this._current<G;)this._current++;var ee=parseInt(N.slice(W,this._current));return{type:L,value:ee,start:W}},_consumeLBracket:function(N){var W=this._current;return this._current++,N[this._current]==="?"?(this._current++,{type:Vt,value:"[?",start:W}):N[this._current]==="]"?(this._current++,{type:Ee,value:"[]",start:W}):{type:pe,value:"[",start:W}},_consumeOperator:function(N){var W=this._current,G=N[W];if(this._current++,G==="!")return N[this._current]==="="?(this._current++,{type:Le,value:"!=",start:W}):{type:Ur,value:"!",start:W};if(G==="<")return N[this._current]==="="?(this._current++,{type:Ve,value:"<=",start:W}):{type:xe,value:"<",start:W};if(G===">")return N[this._current]==="="?(this._current++,{type:se,value:">=",start:W}):{type:fe,value:">",start:W};if(G==="="&&N[this._current]==="=")return this._current++,{type:he,value:"==",start:W}},_consumeLiteral:function(N){this._current++;for(var W=this._current,G=N.length,ee;N[this._current]!=="`"&&this._current<G;){var ne=this._current;N[ne]==="\\"&&(N[ne+1]==="\\"||N[ne+1]==="`")?ne+=2:ne++,this._current=ne}var _e=a(N.slice(W,this._current));return _e=_e.replace("\\`","`"),this._looksLikeJSON(_e)?ee=JSON.parse(_e):ee=JSON.parse('"'+_e+'"'),this._current++,ee},_looksLikeJSON:function(N){var W='[{"',G=["true","false","null"],ee="-0123456789";if(N==="")return!1;if(W.indexOf(N[0])>=0)return!0;if(G.indexOf(N)>=0)return!0;if(ee.indexOf(N[0])>=0)try{return JSON.parse(N),!0}catch{return!1}else return!1}};var Ae={};Ae[S]=0,Ae[T]=0,Ae[R]=0,Ae[q]=0,Ae[O]=0,Ae[M]=0,Ae[z]=0,Ae[L]=0,Ae[D]=0,Ae[Z]=0,Ae[le]=1,Ae[B]=2,Ae[V]=3,Ae[he]=5,Ae[fe]=5,Ae[xe]=5,Ae[se]=5,Ae[Ve]=5,Ae[Le]=5,Ae[Ee]=9,Ae[it]=20,Ae[Vt]=21,Ae[Te]=40,Ae[Ur]=45,Ae[Ci]=50,Ae[pe]=55,Ae[k]=60;function sr(){}sr.prototype={parse:function(N){this._loadTokens(N),this.index=0;var W=this.expression(0);if(this._lookahead(0)!==S){var G=this._lookaheadToken(0),ee=new Error("Unexpected token type: "+G.type+", value: "+G.value);throw ee.name="ParserError",ee}return W},_loadTokens:function(N){var W=new on,G=W.tokenize(N);G.push({type:S,value:"",start:N.length}),this.tokens=G},expression:function(N){var W=this._lookaheadToken(0);this._advance();for(var G=this.nud(W),ee=this._lookahead(0);N<Ae[ee];)this._advance(),G=this.led(ee,G),ee=this._lookahead(0);return G},_lookahead:function(N){return this.tokens[this.index+N].type},_lookaheadToken:function(N){return this.tokens[this.index+N]},_advance:function(){this.index++},nud:function(N){var W,G,ee;switch(N.type){case A:return{type:"Literal",value:N.value};case T:return{type:"Field",name:N.value};case R:var ne={type:"Field",name:N.value};if(this._lookahead(0)===k)throw new Error("Quoted identifier not allowed for function names.");return ne;case Ur:return G=this.expression(Ae.Not),{type:"NotExpression",children:[G]};case it:return W={type:"Identity"},G=null,this._lookahead(0)===q?G={type:"Identity"}:G=this._parseProjectionRHS(Ae.Star),{type:"ValueProjection",children:[W,G]};case Vt:return this.led(N.type,{type:"Identity"});case Ci:return this._parseMultiselectHash();case Ee:return W={type:Ee,children:[{type:"Identity"}]},G=this._parseProjectionRHS(Ae.Flatten),{type:"Projection",children:[W,G]};case pe:return this._lookahead(0)===L||this._lookahead(0)===U?(G=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},G)):this._lookahead(0)===it&&this._lookahead(1)===q?(this._advance(),this._advance(),G=this._parseProjectionRHS(Ae.Star),{type:"Projection",children:[{type:"Identity"},G]}):this._parseMultiselectList();case D:return{type:D};case Z:return ee=this.expression(Ae.Expref),{type:"ExpressionReference",children:[ee]};case k:for(var _e=[];this._lookahead(0)!==O;)this._lookahead(0)===D?(ee={type:D},this._advance()):ee=this.expression(0),_e.push(ee);return this._match(O),_e[0];default:this._errorToken(N)}},led:function(N,W){var G;switch(N){case Te:var ee=Ae.Dot;return this._lookahead(0)!==it?(G=this._parseDotRHS(ee),{type:"Subexpression",children:[W,G]}):(this._advance(),G=this._parseProjectionRHS(ee),{type:"ValueProjection",children:[W,G]});case le:return G=this.expression(Ae.Pipe),{type:le,children:[W,G]};case B:return G=this.expression(Ae.Or),{type:"OrExpression",children:[W,G]};case V:return G=this.expression(Ae.And),{type:"AndExpression",children:[W,G]};case k:for(var ne=W.name,_e=[],Ke,mt;this._lookahead(0)!==O;)this._lookahead(0)===D?(Ke={type:D},this._advance()):Ke=this.expression(0),this._lookahead(0)===M&&this._match(M),_e.push(Ke);return this._match(O),mt={type:"Function",name:ne,children:_e},mt;case Vt:var vn=this.expression(0);return this._match(q),this._lookahead(0)===Ee?G={type:"Identity"}:G=this._parseProjectionRHS(Ae.Filter),{type:"FilterProjection",children:[W,G,vn]};case Ee:var ls={type:Ee,children:[W]},Xr=this._parseProjectionRHS(Ae.Flatten);return{type:"Projection",children:[ls,Xr]};case he:case Le:case fe:case se:case xe:case Ve:return this._parseComparator(W,N);case pe:var je=this._lookaheadToken(0);return je.type===L||je.type===U?(G=this._parseIndexExpression(),this._projectIfSlice(W,G)):(this._match(it),this._match(q),G=this._parseProjectionRHS(Ae.Star),{type:"Projection",children:[W,G]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(N){if(this._lookahead(0)===N)this._advance();else{var W=this._lookaheadToken(0),G=new Error("Expected "+N+", got: "+W.type);throw G.name="ParserError",G}},_errorToken:function(N){var W=new Error("Invalid token ("+N.type+'): "'+N.value+'"');throw W.name="ParserError",W},_parseIndexExpression:function(){if(this._lookahead(0)===U||this._lookahead(1)===U)return this._parseSliceExpression();var N={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(q),N},_projectIfSlice:function(N,W){var G={type:"IndexExpression",children:[N,W]};return W.type==="Slice"?{type:"Projection",children:[G,this._parseProjectionRHS(Ae.Star)]}:G},_parseSliceExpression:function(){for(var N=[null,null,null],W=0,G=this._lookahead(0);G!==q&&W<3;){if(G===U)W++,this._advance();else if(G===L)N[W]=this._lookaheadToken(0).value,this._advance();else{var ee=this._lookahead(0),ne=new Error("Syntax error, unexpected token: "+ee.value+"("+ee.type+")");throw ne.name="Parsererror",ne}G=this._lookahead(0)}return this._match(q),{type:"Slice",children:N}},_parseComparator:function(N,W){var G=this.expression(Ae[W]);return{type:"Comparator",name:W,children:[N,G]}},_parseDotRHS:function(N){var W=this._lookahead(0),G=[T,R,it];if(G.indexOf(W)>=0)return this.expression(N);if(W===pe)return this._match(pe),this._parseMultiselectList();if(W===Ci)return this._match(Ci),this._parseMultiselectHash()},_parseProjectionRHS:function(N){var W;if(Ae[this._lookahead(0)]<10)W={type:"Identity"};else if(this._lookahead(0)===pe)W=this.expression(N);else if(this._lookahead(0)===Vt)W=this.expression(N);else if(this._lookahead(0)===Te)this._match(Te),W=this._parseDotRHS(N);else{var G=this._lookaheadToken(0),ee=new Error("Sytanx error, unexpected token: "+G.value+"("+G.type+")");throw ee.name="ParserError",ee}return W},_parseMultiselectList:function(){for(var N=[];this._lookahead(0)!==q;){var W=this.expression(0);if(N.push(W),this._lookahead(0)===M&&(this._match(M),this._lookahead(0)===q))throw new Error("Unexpected token Rbracket")}return this._match(q),{type:"MultiSelectList",children:N}},_parseMultiselectHash:function(){for(var N=[],W=[T,R],G,ee,ne,_e;;){if(G=this._lookaheadToken(0),W.indexOf(G.type)<0)throw new Error("Expecting an identifier token, got: "+G.type);if(ee=G.value,this._advance(),this._match(U),ne=this.expression(0),_e={type:"KeyValuePair",name:ee,value:ne},N.push(_e),this._lookahead(0)===M)this._match(M);else if(this._lookahead(0)===z){this._match(z);break}}return{type:"MultiSelectHash",children:N}}};function Bn(N){this.runtime=N}Bn.prototype={search:function(N,W){return this.visit(N,W)},visit:function(N,W){var G,ee,ne,_e,Ke,mt,vn,ls,Xr,je;switch(N.type){case"Field":return W!==null&&r(W)?(mt=W[N.name],mt===void 0?null:mt):null;case"Subexpression":for(ne=this.visit(N.children[0],W),je=1;je<N.children.length;je++)if(ne=this.visit(N.children[1],ne),ne===null)return null;return ne;case"IndexExpression":return vn=this.visit(N.children[0],W),ls=this.visit(N.children[1],vn),ls;case"Index":if(!t(W))return null;var So=N.value;return So<0&&(So=W.length+So),ne=W[So],ne===void 0&&(ne=null),ne;case"Slice":if(!t(W))return null;var tb=N.children.slice(0),pd=this.computeSliceParams(W.length,tb),rb=pd[0],nb=pd[1],Gg=pd[2];if(ne=[],Gg>0)for(je=rb;je<nb;je+=Gg)ne.push(W[je]);else for(je=rb;je>nb;je+=Gg)ne.push(W[je]);return ne;case"Projection":var fs=this.visit(N.children[0],W);if(!t(fs))return null;for(Xr=[],je=0;je<fs.length;je++)ee=this.visit(N.children[1],fs[je]),ee!==null&&Xr.push(ee);return Xr;case"ValueProjection":if(fs=this.visit(N.children[0],W),!r(fs))return null;Xr=[];var Vg=s(fs);for(je=0;je<Vg.length;je++)ee=this.visit(N.children[1],Vg[je]),ee!==null&&Xr.push(ee);return Xr;case"FilterProjection":if(fs=this.visit(N.children[0],W),!t(fs))return null;var Kg=[],ib=[];for(je=0;je<fs.length;je++)G=this.visit(N.children[2],fs[je]),i(G)||Kg.push(fs[je]);for(var Xg=0;Xg<Kg.length;Xg++)ee=this.visit(N.children[1],Kg[Xg]),ee!==null&&ib.push(ee);return ib;case"Comparator":switch(_e=this.visit(N.children[0],W),Ke=this.visit(N.children[1],W),N.name){case he:ne=n(_e,Ke);break;case Le:ne=!n(_e,Ke);break;case fe:ne=_e>Ke;break;case se:ne=_e>=Ke;break;case xe:ne=_e<Ke;break;case Ve:ne=_e<=Ke;break;default:throw new Error("Unknown comparator: "+N.name)}return ne;case Ee:var Xl=this.visit(N.children[0],W);if(!t(Xl))return null;var dd=[];for(je=0;je<Xl.length;je++)ee=Xl[je],t(ee)?dd.push.apply(dd,ee):dd.push(ee);return dd;case"Identity":return W;case"MultiSelectList":if(W===null)return null;for(Xr=[],je=0;je<N.children.length;je++)Xr.push(this.visit(N.children[je],W));return Xr;case"MultiSelectHash":if(W===null)return null;Xr={};var Yl;for(je=0;je<N.children.length;je++)Yl=N.children[je],Xr[Yl.name]=this.visit(Yl.value,W);return Xr;case"OrExpression":return G=this.visit(N.children[0],W),i(G)&&(G=this.visit(N.children[1],W)),G;case"AndExpression":return _e=this.visit(N.children[0],W),i(_e)===!0?_e:this.visit(N.children[1],W);case"NotExpression":return _e=this.visit(N.children[0],W),i(_e);case"Literal":return N.value;case le:return vn=this.visit(N.children[0],W),this.visit(N.children[1],vn);case D:return W;case"Function":var sb=[];for(je=0;je<N.children.length;je++)sb.push(this.visit(N.children[je],W));return this.runtime.callFunction(N.name,sb);case"ExpressionReference":var ob=N.children[0];return ob.jmespathType=Z,ob;default:throw new Error("Unknown node type: "+N.type)}},computeSliceParams:function(N,W){var G=W[0],ee=W[1],ne=W[2],_e=[null,null,null];if(ne===null)ne=1;else if(ne===0){var Ke=new Error("Invalid slice, step cannot be 0");throw Ke.name="RuntimeError",Ke}var mt=ne<0;return G===null?G=mt?N-1:0:G=this.capSliceRange(N,G,ne),ee===null?ee=mt?-1:N:ee=this.capSliceRange(N,ee,ne),_e[0]=G,_e[1]=ee,_e[2]=ne,_e},capSliceRange:function(N,W,G){return W<0?(W+=N,W<0&&(W=G<0?-1:0)):W>=N&&(W=G<0?N-1:N),W}};function fd(N){this._interpreter=N,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[w]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[f,p]},{types:[c]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[f]},{types:[f]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[f,p,h]}]},map:{_func:this._functionMap,_signature:[{types:[v]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[w,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[h],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[v]}]},sum:{_func:this._functionSum,_signature:[{types:[w]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[f]},{types:[f]}]},min:{_func:this._functionMin,_signature:[{types:[w,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[v]}]},type:{_func:this._functionType,_signature:[{types:[c]}]},keys:{_func:this._functionKeys,_signature:[{types:[h]}]},values:{_func:this._functionValues,_signature:[{types:[h]}]},sort:{_func:this._functionSort,_signature:[{types:[y,w]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[v]}]},join:{_func:this._functionJoin,_signature:[{types:[f]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[f,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[c]}]},to_string:{_func:this._functionToString,_signature:[{types:[c]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[c]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[c],variadic:!0}]}}}fd.prototype={callFunction:function(N,W){var G=this.functionTable[N];if(G===void 0)throw new Error("Unknown function: "+N+"()");return this._validateArgs(N,W,G._signature),G._func.call(this,W)},_validateArgs:function(N,W,G){var ee;if(G[G.length-1].variadic){if(W.length<G.length)throw ee=G.length===1?" argument":" arguments",new Error("ArgumentError: "+N+"() takes at least"+G.length+ee+" but received "+W.length)}else if(W.length!==G.length)throw ee=G.length===1?" argument":" arguments",new Error("ArgumentError: "+N+"() takes "+G.length+ee+" but received "+W.length);for(var ne,_e,Ke,mt=0;mt<G.length;mt++){Ke=!1,ne=G[mt].types,_e=this._getTypeName(W[mt]);for(var vn=0;vn<ne.length;vn++)if(this._typeMatches(_e,ne[vn],W[mt])){Ke=!0;break}if(!Ke){var ls=ne.map(function(Xr){return b[Xr]}).join(",");throw new Error("TypeError: "+N+"() expected argument "+(mt+1)+" to be type "+ls+" but received type "+b[_e]+" instead.")}}},_typeMatches:function(N,W,G){if(W===c)return!0;if(W===y||W===w||W===p){if(W===p)return N===p;if(N===p){var ee;W===w?ee=u:W===y&&(ee=f);for(var ne=0;ne<G.length;ne++)if(!this._typeMatches(this._getTypeName(G[ne]),ee,G[ne]))return!1;return!0}}else return N===W},_getTypeName:function(N){switch(Object.prototype.toString.call(N)){case"[object String]":return f;case"[object Number]":return u;case"[object Array]":return p;case"[object Boolean]":return g;case"[object Null]":return _;case"[object Object]":return N.jmespathType===Z?v:h}},_functionStartsWith:function(N){return N[0].lastIndexOf(N[1])===0},_functionEndsWith:function(N){var W=N[0],G=N[1];return W.indexOf(G,W.length-G.length)!==-1},_functionReverse:function(N){var W=this._getTypeName(N[0]);if(W===f){for(var G=N[0],ee="",ne=G.length-1;ne>=0;ne--)ee+=G[ne];return ee}else{var _e=N[0].slice(0);return _e.reverse(),_e}},_functionAbs:function(N){return Math.abs(N[0])},_functionCeil:function(N){return Math.ceil(N[0])},_functionAvg:function(N){for(var W=0,G=N[0],ee=0;ee<G.length;ee++)W+=G[ee];return W/G.length},_functionContains:function(N){return N[0].indexOf(N[1])>=0},_functionFloor:function(N){return Math.floor(N[0])},_functionLength:function(N){return r(N[0])?Object.keys(N[0]).length:N[0].length},_functionMap:function(N){for(var W=[],G=this._interpreter,ee=N[0],ne=N[1],_e=0;_e<ne.length;_e++)W.push(G.visit(ee,ne[_e]));return W},_functionMerge:function(N){for(var W={},G=0;G<N.length;G++){var ee=N[G];for(var ne in ee)W[ne]=ee[ne]}return W},_functionMax:function(N){if(N[0].length>0){var W=this._getTypeName(N[0][0]);if(W===u)return Math.max.apply(Math,N[0]);for(var G=N[0],ee=G[0],ne=1;ne<G.length;ne++)ee.localeCompare(G[ne])<0&&(ee=G[ne]);return ee}else return null},_functionMin:function(N){if(N[0].length>0){var W=this._getTypeName(N[0][0]);if(W===u)return Math.min.apply(Math,N[0]);for(var G=N[0],ee=G[0],ne=1;ne<G.length;ne++)G[ne].localeCompare(ee)<0&&(ee=G[ne]);return ee}else return null},_functionSum:function(N){for(var W=0,G=N[0],ee=0;ee<G.length;ee++)W+=G[ee];return W},_functionType:function(N){switch(this._getTypeName(N[0])){case u:return"number";case f:return"string";case p:return"array";case h:return"object";case g:return"boolean";case v:return"expref";case _:return"null"}},_functionKeys:function(N){return Object.keys(N[0])},_functionValues:function(N){for(var W=N[0],G=Object.keys(W),ee=[],ne=0;ne<G.length;ne++)ee.push(W[G[ne]]);return ee},_functionJoin:function(N){var W=N[0],G=N[1];return G.join(W)},_functionToArray:function(N){return this._getTypeName(N[0])===p?N[0]:[N[0]]},_functionToString:function(N){return this._getTypeName(N[0])===f?N[0]:JSON.stringify(N[0])},_functionToNumber:function(N){var W=this._getTypeName(N[0]),G;return W===u?N[0]:W===f&&(G=+N[0],!isNaN(G))?G:null},_functionNotNull:function(N){for(var W=0;W<N.length;W++)if(this._getTypeName(N[W])!==_)return N[W];return null},_functionSort:function(N){var W=N[0].slice(0);return W.sort(),W},_functionSortBy:function(N){var W=N[0].slice(0);if(W.length===0)return W;var G=this._interpreter,ee=N[1],ne=this._getTypeName(G.visit(ee,W[0]));if([u,f].indexOf(ne)<0)throw new Error("TypeError");for(var _e=this,Ke=[],mt=0;mt<W.length;mt++)Ke.push([mt,W[mt]]);Ke.sort(function(ls,Xr){var je=G.visit(ee,ls[1]),So=G.visit(ee,Xr[1]);if(_e._getTypeName(je)!==ne)throw new Error("TypeError: expected "+ne+", received "+_e._getTypeName(je));if(_e._getTypeName(So)!==ne)throw new Error("TypeError: expected "+ne+", received "+_e._getTypeName(So));return je>So?1:je<So?-1:ls[0]-Xr[0]});for(var vn=0;vn<Ke.length;vn++)W[vn]=Ke[vn][1];return W},_functionMaxBy:function(N){for(var W=N[1],G=N[0],ee=this.createKeyFunction(W,[u,f]),ne=-1/0,_e,Ke,mt=0;mt<G.length;mt++)Ke=ee(G[mt]),Ke>ne&&(ne=Ke,_e=G[mt]);return _e},_functionMinBy:function(N){for(var W=N[1],G=N[0],ee=this.createKeyFunction(W,[u,f]),ne=1/0,_e,Ke,mt=0;mt<G.length;mt++)Ke=ee(G[mt]),Ke<ne&&(ne=Ke,_e=G[mt]);return _e},createKeyFunction:function(N,W){var G=this,ee=this._interpreter,ne=function(_e){var Ke=ee.visit(N,_e);if(W.indexOf(G._getTypeName(Ke))<0){var mt="TypeError: expected one of "+W+", received "+G._getTypeName(Ke);throw new Error(mt)}return Ke};return ne}};function ia(N){var W=new sr,G=W.parse(N);return G}function Kl(N){var W=new on;return W.tokenize(N)}function sa(N,W){var G=new sr,ee=new fd,ne=new Bn(ee);ee._interpreter=ne;var _e=G.parse(W);return ne.search(_e,N)}e.tokenize=Kl,e.compile=ia,e.search=sa,e.strictDeepEqual=n})(typeof GT>"u"?GT.jmespath={}:GT)});var Age=m(()=>{var Qt=Oe(),Tge=Sge(),RNt=Qt.util.inherit,KT=Qt.util.domain,ONt=VT(),INt={success:1,error:1,complete:1};function NNt(e){return Object.prototype.hasOwnProperty.call(INt,e._asm.currentState)}var j4=new Tge;j4.setupStates=function(){var e=function(t,r){var n=this;n._haltHandlersOnError=!1,n.emit(n._asm.currentState,function(i){if(i)if(NNt(n))if(KT&&n.domain instanceof KT.Domain)i.domainEmitter=n,i.domain=n.domain,i.domainThrown=!1,n.domain.emit("error",i);else throw i;else n.response.error=i,r(i);else r(n.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)};j4.setupStates();Qt.Request=RNt({constructor:function(t,r,n){var i=t.endpoint,s=t.config.region,o=t.config.customUserAgent;t.signingRegion?s=t.signingRegion:t.isGlobalEndpoint&&(s="us-east-1"),this.domain=KT&&KT.active,this.service=t,this.operation=r,this.params=n||{},this.httpRequest=new Qt.HttpRequest(i,s),this.httpRequest.appendToUserAgent(o),this.startTime=t.getSkewCorrectedDate(),this.response=new Qt.Response(this),this._asm=new Tge(j4.states,"validate"),this._haltHandlersOnError=!1,Qt.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(t){return t&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(r){t.call(r,r.error,r.data)})),this.runTo(),this.response},build:function(t){return this.runTo("send",t)},runTo:function(t,r){return this._asm.runTo(t,r,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(r){r.error=Qt.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(t){t=Qt.util.fn.makeAsync(t,3);function r(n){t.call(n,n.error,n.data,function(i){i!==!1&&(n.hasNextPage()?n.nextPage().on("complete",r).send():t.call(n,null,null,Qt.util.fn.noop))})}this.on("complete",r).send()},eachItem:function(t){var r=this;function n(i,s){if(i)return t(i,null);if(s===null)return t(null,null);var o=r.service.paginationConfig(r.operation),a=o.resultKey;Array.isArray(a)&&(a=a[0]);var u=ONt.search(s,a),c=!0;return Qt.util.arrayEach(u,function(f){if(c=t(null,f),c===!1)return Qt.util.abort}),c}this.eachPage(n)},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var t=Qt.util.stream,r=this,n=null;return Qt.HttpClient.streamsApiVersion===2?(n=new t.PassThrough,process.nextTick(function(){r.send()})):(n=new t.Stream,n.readable=!0,n.sent=!1,n.on("newListener",function(i){!n.sent&&i==="data"&&(n.sent=!0,process.nextTick(function(){r.send()}))})),this.on("error",function(i){n.emit("error",i)}),this.on("httpHeaders",function(s,o,a){if(s<300){r.removeListener("httpData",Qt.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",Qt.EventListeners.Core.HTTP_ERROR),r.on("httpError",function(_){a.error=_,a.error.retryable=!1});var u=!1,c;if(r.httpRequest.method!=="HEAD"&&(c=parseInt(o["content-length"],10)),c!==void 0&&!isNaN(c)&&c>=0){u=!0;var f=0}var p=function(){u&&f!==c?n.emit("error",Qt.util.error(new Error("Stream content length mismatch. Received "+f+" of "+c+" bytes."),{code:"StreamContentLengthMismatch"})):Qt.HttpClient.streamsApiVersion===2?n.end():n.emit("end")},h=a.httpResponse.createUnbufferedStream();if(Qt.HttpClient.streamsApiVersion===2)if(u){var g=new t.PassThrough;g._write=function(v){return v&&v.length&&(f+=v.length),t.PassThrough.prototype._write.apply(this,arguments)},g.on("end",p),n.on("error",function(v){u=!1,h.unpipe(g),g.emit("end"),g.end()}),h.pipe(g).pipe(n,{end:!1})}else h.pipe(n);else u&&h.on("data",function(v){v&&v.length&&(f+=v.length)}),h.on("data",function(v){n.emit("data",v)}),h.on("end",p);h.on("error",function(v){u=!1,n.emit("error",v)})}}),n},emitEvent:function(t,r,n){typeof r=="function"&&(n=r,r=null),n||(n=function(){}),r||(r=this.eventParameters(t,this.response));var i=Qt.SequentialExecutor.prototype.emit;i.call(this,t,r,function(s){s&&(this.response.error=s),n.call(this,s)})},eventParameters:function(t){switch(t){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(t,r){return!r&&typeof t=="function"&&(r=t,t=null),new Qt.Signers.Presign().sign(this.toGet(),t,r)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",Qt.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",Qt.EventListeners.Core.SIGN),this},toGet:function(){return(this.service.api.protocol==="query"||this.service.api.protocol==="ec2")&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(t){t.httpRequest.method="GET",t.httpRequest.path=t.service.endpoint.path+"?"+t.httpRequest.body,t.httpRequest.body="",delete t.httpRequest.headers["Content-Length"],delete t.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}});Qt.Request.addPromisesToClass=function(t){this.prototype.promise=function(){var n=this;return this.httpRequest.appendToUserAgent("promise"),new t(function(i,s){n.on("complete",function(o){o.error?s(o.error):i(Object.defineProperty(o.data||{},"$response",{value:o}))}),n.runTo()})}};Qt.Request.deletePromisesFromClass=function(){delete this.prototype.promise};Qt.util.addPromises(Qt.Request);Qt.util.mixin(Qt.Request,Qt.SequentialExecutor)});var Rge=m(()=>{var Py=Oe(),qNt=Py.util.inherit,Cge=VT();Py.Response=qNt({constructor:function(t){this.request=t,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new Py.HttpResponse,t&&(this.maxRetries=t.service.numRetries(),this.maxRedirects=t.service.config.maxRedirects)},nextPage:function(t){var r,n=this.request.service,i=this.request.operation;try{r=n.paginationConfig(i,!0)}catch(u){this.error=u}if(!this.hasNextPage()){if(t)t(this.error,null);else if(this.error)throw this.error;return null}var s=Py.util.copy(this.request.params);if(this.nextPageTokens){var o=r.inputToken;typeof o=="string"&&(o=[o]);for(var a=0;a<o.length;a++)s[o[a]]=this.nextPageTokens[a];return n.makeRequest(this.request.operation,s,t)}else return t?t(null,null):null},hasNextPage:function(){if(this.cacheNextPageTokens(),this.nextPageTokens)return!0;if(this.nextPageTokens!==void 0)return!1},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var t=this.request.service.paginationConfig(this.request.operation);if(!t)return this.nextPageTokens;if(this.nextPageTokens=null,t.moreResults&&!Cge.search(this.data,t.moreResults))return this.nextPageTokens;var r=t.outputToken;return typeof r=="string"&&(r=[r]),Py.util.arrayEach.call(this,r,function(n){var i=Cge.search(this.data,n);i&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(i))}),this.nextPageTokens}})});var Ige=m(()=>{var _p=Oe(),kNt=_p.util.inherit,Pm=VT();function Oge(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,i="retry";r.forEach(function(s){if(!n){var o=t.matchers[s.matcher];o&&o(e,s.expected,s.argument)&&(n=!0,i=s.state)}}),!n&&e.error&&(i="failure"),i==="success"?t.setSuccess(e):t.setError(e,i==="retry")}_p.ResourceWaiter=kNt({constructor:function(t,r){this.service=t,this.state=r,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=Pm.search(e.data,r)}catch{return!1}return Pm.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=Pm.search(e.data,r)}catch{return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var s=0;s<i;s++)if(!Pm.strictDeepEqual(n[s],t))return!1;return!0},pathAny:function(e,t,r){try{var n=Pm.search(e.data,r)}catch{return!1}Array.isArray(n)||(n=[n]);for(var i=n.length,s=0;s<i;s++)if(Pm.strictDeepEqual(n[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return typeof r=="number"&&r===t},error:function(e,t){return typeof t=="string"&&e.error?t===e.error.code:t===!!e.error}},listeners:new _p.SequentialExecutor().addNamedListeners(function(e){e("RETRY_CHECK","retry",function(t){var r=t.request._waiter;t.error&&t.error.code==="ResourceNotReady"&&(t.error.retryDelay=(r.config.delay||0)*1e3)}),e("CHECK_OUTPUT","extractData",Oge),e("CHECK_ERROR","extractError",Oge)}),wait:function(t,r){typeof t=="function"&&(r=t,t=void 0),t&&t.$waiter&&(t=_p.util.copy(t),typeof t.$waiter.delay=="number"&&(this.config.delay=t.$waiter.delay),typeof t.$waiter.maxAttempts=="number"&&(this.config.maxAttempts=t.$waiter.maxAttempts),delete t.$waiter);var n=this.service.makeRequest(this.config.operation,t);return n._waiter=this,n.response.maxRetries=this.config.maxAttempts,n.addListeners(this.listeners),r&&n.send(r),n},setSuccess:function(t){t.error=null,t.data=t.data||{},t.request.removeAllListeners("extractData")},setError:function(t,r){t.data=null,t.error=_p.util.error(t.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:r})},loadWaiterConfig:function(t){if(!this.service.api.waiters[t])throw new _p.util.error(new Error,{code:"StateNotFoundError",message:"State "+t+" not found."});this.config=_p.util.copy(this.service.api.waiters[t])}})});var qge=m((nxr,Nge)=>{var Vu=Oe(),PNt=Vu.util.inherit;Vu.Signers.V2=PNt(Vu.Signers.RequestSigner,{addAuthorization:function(t,r){r||(r=Vu.util.date.getDate());var n=this.request;n.params.Timestamp=Vu.util.date.iso8601(r),n.params.SignatureVersion="2",n.params.SignatureMethod="HmacSHA256",n.params.AWSAccessKeyId=t.accessKeyId,t.sessionToken&&(n.params.SecurityToken=t.sessionToken),delete n.params.Signature,n.params.Signature=this.signature(t),n.body=Vu.util.queryParamsToString(n.params),n.headers["Content-Length"]=n.body.length},signature:function(t){return Vu.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push(this.request.endpoint.host.toLowerCase()),t.push(this.request.pathname()),t.push(Vu.util.queryParamsToString(this.request.params)),t.join(`
|
|
148
148
|
`)}});Nge.exports=Vu.Signers.V2});var B4=m((ixr,kge)=>{var Pa=Oe(),DNt=Pa.util.inherit;Pa.Signers.V3=DNt(Pa.Signers.RequestSigner,{addAuthorization:function(t,r){var n=Pa.util.date.rfc822(r);this.request.headers["X-Amz-Date"]=n,t.sessionToken&&(this.request.headers["x-amz-security-token"]=t.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(t,n)},authorization:function(t){return"AWS3 AWSAccessKeyId="+t.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(t)},signedHeaders:function(){var t=[];return Pa.util.arrayEach(this.headersToSign(),function(n){t.push(n.toLowerCase())}),t.sort().join(";")},canonicalHeaders:function(){var t=this.request.headers,r=[];return Pa.util.arrayEach(this.headersToSign(),function(i){r.push(i.toLowerCase().trim()+":"+String(t[i]).trim())}),r.sort().join(`
|
|
149
149
|
`)+`
|
|
150
150
|
`},headersToSign:function(){var t=[];return Pa.util.each(this.request.headers,function(n){(n==="Host"||n==="Content-Encoding"||n.match(/^X-Amz/i))&&t.push(n)}),t},signature:function(t){return Pa.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push("/"),t.push(""),t.push(this.canonicalHeaders()),t.push(this.request.body),Pa.util.crypto.sha256(t.join(`
|
|
@@ -165,11 +165,11 @@ Error: ${t.message}`);try{let r=`${e}.bak`;wl.default.renameSync(e,r),tt.warning
|
|
|
165
165
|
`,p="0124356789",h="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",g=`'"`,v=f+">",_="[CDATA[",w="DOCTYPE",y="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",S={xml:y,xmlns:b};f=M(f),p=M(p),h=M(h);var T=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,O=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;g=M(g),v=M(v);function M(k){return k.split("").reduce(function(A,H){return A[H]=!0,A},{})}function U(k){return Object.prototype.toString.call(k)==="[object RegExp]"}function z(k,A){return U(k)?!!A.match(k):k[A]}function L(k,A){return!z(k,A)}var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(k){var A=e.ENTITIES[k],H=typeof A=="number"?String.fromCharCode(A):A;e.ENTITIES[k]=H});for(var Z in e.STATE)e.STATE[e.STATE[Z]]=Z;D=e.STATE;function le(k,A,H){k[A]&&k[A](H)}function B(k,A,H){k.textNode&&V(k),le(k,A,H)}function V(k){k.textNode=he(k.opt,k.textNode),k.textNode&&le(k,"ontext",k.textNode),k.textNode=""}function he(k,A){return k.trim&&(A=A.trim()),k.normalize&&(A=A.replace(/\s+/g," ")),A}function fe(k,A){return V(k),k.trackPosition&&(A+=`
|
|
166
166
|
Line: `+k.line+`
|
|
167
167
|
Column: `+k.column+`
|
|
168
|
-
Char: `+k.c),A=new Error(A),k.error=A,le(k,"onerror",A),k}function xe(k){return k.sawRoot&&!k.closedRoot&&se(k,"Unclosed root tag"),k.state!==D.BEGIN&&k.state!==D.BEGIN_WHITESPACE&&k.state!==D.TEXT&&fe(k,"Unexpected end"),V(k),k.c="",k.closed=!0,le(k,"onend"),r.call(k,k.strict,k.opt),k}function se(k,A){if(typeof k!="object"||!(k instanceof r))throw new Error("bad call to strictFail");k.strict&&fe(k,A)}function
|
|
168
|
+
Char: `+k.c),A=new Error(A),k.error=A,le(k,"onerror",A),k}function xe(k){return k.sawRoot&&!k.closedRoot&&se(k,"Unclosed root tag"),k.state!==D.BEGIN&&k.state!==D.BEGIN_WHITESPACE&&k.state!==D.TEXT&&fe(k,"Unexpected end"),V(k),k.c="",k.closed=!0,le(k,"onend"),r.call(k,k.strict,k.opt),k}function se(k,A){if(typeof k!="object"||!(k instanceof r))throw new Error("bad call to strictFail");k.strict&&fe(k,A)}function Ve(k){k.strict||(k.tagName=k.tagName[k.looseCase]());var A=k.tags[k.tags.length-1]||k,H=k.tag={name:k.tagName,attributes:{}};k.opt.xmlns&&(H.ns=A.ns),k.attribList.length=0,B(k,"onopentagstart",H)}function Le(k,A){var H=k.indexOf(":"),K=H<0?["",k]:k.split(":"),He=K[0],Fe=K[1];return A&&k==="xmlns"&&(He="xmlns",Fe=""),{prefix:He,local:Fe}}function Ee(k){if(k.strict||(k.attribName=k.attribName[k.looseCase]()),k.attribList.indexOf(k.attribName)!==-1||k.tag.attributes.hasOwnProperty(k.attribName)){k.attribName=k.attribValue="";return}if(k.opt.xmlns){var A=Le(k.attribName,!0),H=A.prefix,K=A.local;if(H==="xmlns")if(K==="xml"&&k.attribValue!==y)se(k,"xml: prefix must be bound to "+y+`
|
|
169
169
|
Actual: `+k.attribValue);else if(K==="xmlns"&&k.attribValue!==b)se(k,"xmlns: prefix must be bound to "+b+`
|
|
170
170
|
Actual: `+k.attribValue);else{var He=k.tag,Fe=k.tags[k.tags.length-1]||k;He.ns===Fe.ns&&(He.ns=Object.create(Fe.ns)),He.ns[K]=k.attribValue}k.attribList.push([k.attribName,k.attribValue])}else k.tag.attributes[k.attribName]=k.attribValue,B(k,"onattribute",{name:k.attribName,value:k.attribValue});k.attribName=k.attribValue=""}function it(k,A){if(k.opt.xmlns){var H=k.tag,K=Le(k.tagName);H.prefix=K.prefix,H.local=K.local,H.uri=H.ns[K.prefix]||"",H.prefix&&!H.uri&&(se(k,"Unbound namespace prefix: "+JSON.stringify(k.tagName)),H.uri=K.prefix);var He=k.tags[k.tags.length-1]||k;H.ns&&He.ns!==H.ns&&Object.keys(H.ns).forEach(function(sa){B(k,"onopennamespace",{prefix:sa,uri:H.ns[sa]})});for(var Fe=0,rr=k.attribList.length;Fe<rr;Fe++){var Nr=k.attribList[Fe],on=Nr[0],Ae=Nr[1],sr=Le(on,!0),Bn=sr.prefix,fd=sr.local,ia=Bn===""?"":H.ns[Bn]||"",Kl={name:on,value:Ae,prefix:Bn,local:fd,uri:ia};Bn&&Bn!=="xmlns"&&!ia&&(se(k,"Unbound namespace prefix: "+JSON.stringify(Bn)),Kl.uri=Bn),k.tag.attributes[on]=Kl,B(k,"onattribute",Kl)}k.attribList.length=0}k.tag.isSelfClosing=!!A,k.sawRoot=!0,k.tags.push(k.tag),B(k,"onopentag",k.tag),A||(!k.noscript&&k.tagName.toLowerCase()==="script"?k.state=D.SCRIPT:k.state=D.TEXT,k.tag=null,k.tagName=""),k.attribName=k.attribValue="",k.attribList.length=0}function Vt(k){if(!k.tagName){se(k,"Weird empty close tag."),k.textNode+="</>",k.state=D.TEXT;return}if(k.script){if(k.tagName!=="script"){k.script+="</"+k.tagName+">",k.tagName="",k.state=D.SCRIPT;return}B(k,"onscript",k.script),k.script=""}var A=k.tags.length,H=k.tagName;k.strict||(H=H[k.looseCase]());for(var K=H;A--;){var He=k.tags[A];if(He.name!==K)se(k,"Unexpected close tag");else break}if(A<0){se(k,"Unmatched closing tag: "+k.tagName),k.textNode+="</"+k.tagName+">",k.state=D.TEXT;return}k.tagName=H;for(var Fe=k.tags.length;Fe-- >A;){var rr=k.tag=k.tags.pop();k.tagName=k.tag.name,B(k,"onclosetag",k.tagName);var Nr={};for(var on in rr.ns)Nr[on]=rr.ns[on];var Ae=k.tags[k.tags.length-1]||k;k.opt.xmlns&&rr.ns!==Ae.ns&&Object.keys(rr.ns).forEach(function(sr){var Bn=rr.ns[sr];B(k,"onclosenamespace",{prefix:sr,uri:Bn})})}A===0&&(k.closedRoot=!0),k.tagName=k.attribValue=k.attribName="",k.attribList.length=0,k.state=D.TEXT}function Te(k){var A=k.entity,H=A.toLowerCase(),K,He="";return k.ENTITIES[A]?k.ENTITIES[A]:k.ENTITIES[H]?k.ENTITIES[H]:(A=H,A.charAt(0)==="#"&&(A.charAt(1)==="x"?(A=A.slice(2),K=parseInt(A,16),He=K.toString(16)):(A=A.slice(1),K=parseInt(A,10),He=K.toString(10))),A=A.replace(/^0+/,""),He.toLowerCase()!==A?(se(k,"Invalid character entity"),"&"+k.entity+";"):String.fromCodePoint(K))}function Ur(k,A){A==="<"?(k.state=D.OPEN_WAKA,k.startTagPosition=k.position):L(f,A)&&(se(k,"Non-whitespace before first tag."),k.textNode=A,k.state=D.TEXT)}function Ci(k,A){var H="";return A<k.length&&(H=k.charAt(A)),H}function pe(k){var A=this;if(this.error)throw this.error;if(A.closed)return fe(A,"Cannot write after close. Assign an onready handler.");if(k===null)return xe(A);typeof k=="object"&&(k=k.toString());for(var H=0,K="";K=Ci(k,H++),A.c=K,!!K;)switch(A.trackPosition&&(A.position++,K===`
|
|
171
171
|
`?(A.line++,A.column=0):A.column++),A.state){case D.BEGIN:if(A.state=D.BEGIN_WHITESPACE,K==="\uFEFF")continue;Ur(A,K);continue;case D.BEGIN_WHITESPACE:Ur(A,K);continue;case D.TEXT:if(A.sawRoot&&!A.closedRoot){for(var He=H-1;K&&K!=="<"&&K!=="&";)K=Ci(k,H++),K&&A.trackPosition&&(A.position++,K===`
|
|
172
|
-
`?(A.line++,A.column=0):A.column++);A.textNode+=k.substring(He,H-1)}K==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(L(f,K)&&(!A.sawRoot||A.closedRoot)&&se(A,"Text data outside of root node."),K==="&"?A.state=D.TEXT_ENTITY:A.textNode+=K);continue;case D.SCRIPT:K==="<"?A.state=D.SCRIPT_ENDING:A.script+=K;continue;case D.SCRIPT_ENDING:K==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+K,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(K==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!z(f,K))if(z(T,K))A.state=D.OPEN_TAG,A.tagName=K;else if(K==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(K==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(se(A,"Unencoded <"),A.startTagPosition+1<A.position){var Fe=A.position-A.startTagPosition;K=new Array(Fe).join(" ")+K}A.textNode+="<"+K,A.state=D.TEXT}continue;case D.SGML_DECL:(A.sgmlDecl+K).toUpperCase()===_?(B(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):A.sgmlDecl+K==="--"?(A.state=D.COMMENT,A.comment="",A.sgmlDecl=""):(A.sgmlDecl+K).toUpperCase()===w?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&se(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):K===">"?(B(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(z(g,K)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=K);continue;case D.SGML_DECL_QUOTED:K===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=K;continue;case D.DOCTYPE:K===">"?(A.state=D.TEXT,B(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=K,K==="["?A.state=D.DOCTYPE_DTD:z(g,K)&&(A.state=D.DOCTYPE_QUOTED,A.q=K));continue;case D.DOCTYPE_QUOTED:A.doctype+=K,K===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:A.doctype+=K,K==="]"?A.state=D.DOCTYPE:z(g,K)&&(A.state=D.DOCTYPE_DTD_QUOTED,A.q=K);continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=K,K===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:K==="-"?A.state=D.COMMENT_ENDING:A.comment+=K;continue;case D.COMMENT_ENDING:K==="-"?(A.state=D.COMMENT_ENDED,A.comment=he(A.opt,A.comment),A.comment&&B(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+K,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:K!==">"?(se(A,"Malformed comment"),A.comment+="--"+K,A.state=D.COMMENT):A.state=D.TEXT;continue;case D.CDATA:K==="]"?A.state=D.CDATA_ENDING:A.cdata+=K;continue;case D.CDATA_ENDING:K==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+K,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:K===">"?(A.cdata&&B(A,"oncdata",A.cdata),B(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):K==="]"?A.cdata+="]":(A.cdata+="]]"+K,A.state=D.CDATA);continue;case D.PROC_INST:K==="?"?A.state=D.PROC_INST_ENDING:z(f,K)?A.state=D.PROC_INST_BODY:A.procInstName+=K;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&z(f,K))continue;K==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=K;continue;case D.PROC_INST_ENDING:K===">"?(B(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+K,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:z(R,K)?A.tagName+=K:(Ge(A),K===">"?it(A):K==="/"?A.state=D.OPEN_TAG_SLASH:(L(f,K)&&se(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:K===">"?(it(A,!0),Vt(A)):(se(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if(z(f,K))continue;K===">"?it(A):K==="/"?A.state=D.OPEN_TAG_SLASH:z(T,K)?(A.attribName=K,A.attribValue="",A.state=D.ATTRIB_NAME):se(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:K==="="?A.state=D.ATTRIB_VALUE:K===">"?(se(A,"Attribute without value"),A.attribValue=A.attribName,Ee(A),it(A)):z(f,K)?A.state=D.ATTRIB_NAME_SAW_WHITE:z(R,K)?A.attribName+=K:se(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(K==="=")A.state=D.ATTRIB_VALUE;else{if(z(f,K))continue;se(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",B(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",K===">"?it(A):z(T,K)?(A.attribName=K,A.state=D.ATTRIB_NAME):(se(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(z(f,K))continue;z(g,K)?(A.q=K,A.state=D.ATTRIB_VALUE_QUOTED):(se(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=K);continue;case D.ATTRIB_VALUE_QUOTED:if(K!==A.q){K==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=K;continue}Ee(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:z(f,K)?A.state=D.ATTRIB:K===">"?it(A):K==="/"?A.state=D.OPEN_TAG_SLASH:z(T,K)?(se(A,"No whitespace between attributes"),A.attribName=K,A.attribValue="",A.state=D.ATTRIB_NAME):se(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(L(v,K)){K==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=K;continue}Ee(A),K===">"?it(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)K===">"?Vt(A):z(R,K)?A.tagName+=K:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):(L(f,K)&&se(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if(z(f,K))continue;L(T,K)?A.script?(A.script+="</"+K,A.state=D.SCRIPT):se(A,"Invalid tagname in closing tag."):A.tagName=K}continue;case D.CLOSE_TAG_SAW_WHITE:if(z(f,K))continue;K===">"?Vt(A):se(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var rr,Nr;switch(A.state){case D.TEXT_ENTITY:rr=D.TEXT,Nr="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:rr=D.ATTRIB_VALUE_QUOTED,Nr="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:rr=D.ATTRIB_VALUE_UNQUOTED,Nr="attribValue";break}K===";"?(A[Nr]+=Te(A),A.entity="",A.state=rr):z(A.entity.length?O:q,K)?A.entity+=K:(se(A,"Invalid character in entity name"),A[Nr]+="&"+A.entity+K,A.entity="",A.state=rr);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&n(A),A}String.fromCodePoint||function(){var k=String.fromCharCode,A=Math.floor,H=function(){var K=16384,He=[],Fe,rr,Nr=-1,on=arguments.length;if(!on)return"";for(var Ae="";++Nr<on;){var sr=Number(arguments[Nr]);if(!isFinite(sr)||sr<0||sr>1114111||A(sr)!==sr)throw RangeError("Invalid code point: "+sr);sr<=65535?He.push(sr):(sr-=65536,Fe=(sr>>10)+55296,rr=sr%1024+56320,He.push(Fe,rr)),(Nr+1===on||He.length>K)&&(Ae+=k.apply(null,He),He.length=0)}return Ae};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:H,configurable:!0,writable:!0}):String.fromCodePoint=H}()})(typeof gA>"u"?gA.sax={}:gA)});var aye=m(o3=>{(function(){"use strict";o3.stripBOM=function(e){return e[0]==="\uFEFF"?e.substring(1):e}}).call(o3)});var a3=m(Ap=>{(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),Ap.normalize=function(t){return t.toLowerCase()},Ap.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ap.stripPrefix=function(t){return t.replace(e,"")},Ap.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},Ap.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(Ap)});var uye=m(Cp=>{(function(){"use strict";var e,t,r,n,i,s,o,a,u=function(p,h){return function(){return p.apply(h,arguments)}},c=function(p,h){for(var g in h)f.call(h,g)&&(p[g]=h[g]);function v(){this.constructor=p}return v.prototype=h.prototype,p.prototype=new v,p.__super__=h.prototype,p},f={}.hasOwnProperty;o=oye(),r=require("events"),e=aye(),s=a3(),a=require("timers").setImmediate,t=hA().defaults,n=function(p){return typeof p=="object"&&p!=null&&Object.keys(p).length===0},i=function(p,h,g){var v,_,w;for(v=0,_=p.length;v<_;v++)w=p[v],h=w(h,g);return h},Cp.Parser=function(p){c(h,p);function h(g){this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var v,_,w;if(!(this instanceof Cp.Parser))return new Cp.Parser(g);this.options={},_=t["0.2"];for(v in _)f.call(_,v)&&(w=_[v],this.options[v]=w);for(v in g)f.call(g,v)&&(w=g[v],this.options[v]=w);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(s.normalize)),this.reset()}return h.prototype.processAsync=function(){var g,v;try{return this.remaining.length<=this.options.chunkSize?(g=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(g),this.saxParser.close()):(g=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(g),a(this.processAsync))}catch(_){if(v=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},h.prototype.assignOrPush=function(g,v,_){return v in g?(g[v]instanceof Array||(g[v]=[g[v]]),g[v].push(_)):this.options.explicitArray?g[v]=[_]:g[v]=_},h.prototype.reset=function(){var g,v,_,w;return this.removeAllListeners(),this.saxParser=o.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(y){return function(b){if(y.saxParser.resume(),!y.saxParser.errThrown)return y.saxParser.errThrown=!0,y.emit("error",b)}}(this),this.saxParser.onend=function(y){return function(){if(!y.saxParser.ended)return y.saxParser.ended=!0,y.emit("end",y.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,w=[],g=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=function(y){return function(b){var S,T,R,q,O;if(R={},R[v]="",!y.options.ignoreAttrs){O=b.attributes;for(S in O)f.call(O,S)&&(!(g in R)&&!y.options.mergeAttrs&&(R[g]={}),T=y.options.attrValueProcessors?i(y.options.attrValueProcessors,b.attributes[S],S):b.attributes[S],q=y.options.attrNameProcessors?i(y.options.attrNameProcessors,S):S,y.options.mergeAttrs?y.assignOrPush(R,q,T):R[g][q]=T)}return R["#name"]=y.options.tagNameProcessors?i(y.options.tagNameProcessors,b.name):b.name,y.options.xmlns&&(R[y.options.xmlnskey]={uri:b.uri,local:b.local}),w.push(R)}}(this),this.saxParser.onclosetag=function(y){return function(){var b,S,T,R,q,O,M,U,z,L;if(O=w.pop(),q=O["#name"],(!y.options.explicitChildren||!y.options.preserveChildrenOrder)&&delete O["#name"],O.cdata===!0&&(b=O.cdata,delete O.cdata),z=w[w.length-1],O[v].match(/^\s*$/)&&!b?(S=O[v],delete O[v]):(y.options.trim&&(O[v]=O[v].trim()),y.options.normalize&&(O[v]=O[v].replace(/\s{2,}/g," ").trim()),O[v]=y.options.valueProcessors?i(y.options.valueProcessors,O[v],q):O[v],Object.keys(O).length===1&&v in O&&!y.EXPLICIT_CHARKEY&&(O=O[v])),n(O)&&(O=y.options.emptyTag!==""?y.options.emptyTag:S),y.options.validator!=null&&(L="/"+function(){var D,Z,le;for(le=[],D=0,Z=w.length;D<Z;D++)R=w[D],le.push(R["#name"]);return le}().concat(q).join("/"),function(){var D;try{return O=y.options.validator(L,z&&z[q],O)}catch(Z){return D=Z,y.emit("error",D)}}()),y.options.explicitChildren&&!y.options.mergeAttrs&&typeof O=="object"){if(!y.options.preserveChildrenOrder)R={},y.options.attrkey in O&&(R[y.options.attrkey]=O[y.options.attrkey],delete O[y.options.attrkey]),!y.options.charsAsChildren&&y.options.charkey in O&&(R[y.options.charkey]=O[y.options.charkey],delete O[y.options.charkey]),Object.getOwnPropertyNames(O).length>0&&(R[y.options.childkey]=O),O=R;else if(z){z[y.options.childkey]=z[y.options.childkey]||[],M={};for(T in O)f.call(O,T)&&(M[T]=O[T]);z[y.options.childkey].push(M),delete O["#name"],Object.keys(O).length===1&&v in O&&!y.EXPLICIT_CHARKEY&&(O=O[v])}}return w.length>0?y.assignOrPush(z,q,O):(y.options.explicitRoot&&(U=O,O={},O[q]=U),y.resultObject=O,y.saxParser.ended=!0,y.emit("end",y.resultObject))}}(this),_=function(y){return function(b){var S,T;if(T=w[w.length-1],T)return T[v]+=b,y.options.explicitChildren&&y.options.preserveChildrenOrder&&y.options.charsAsChildren&&(y.options.includeWhiteChars||b.replace(/\\n/g,"").trim()!=="")&&(T[y.options.childkey]=T[y.options.childkey]||[],S={"#name":"__text__"},S[v]=b,y.options.normalize&&(S[v]=S[v].replace(/\s{2,}/g," ").trim()),T[y.options.childkey].push(S)),T}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(y){return function(b){var S;if(S=_(b),S)return S.cdata=!0}}(this)},h.prototype.parseString=function(g,v){var _;v!=null&&typeof v=="function"&&(this.on("end",function(w){return this.reset(),v(null,w)}),this.on("error",function(w){return this.reset(),v(w)}));try{return g=g.toString(),g.trim()===""?(this.emit("end",null),!0):(g=e.stripBOM(g),this.options.async?(this.remaining=g,a(this.processAsync),this.saxParser):this.saxParser.write(g).close())}catch(w){if(_=w,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},h}(r.EventEmitter),Cp.parseString=function(p,h,g){var v,_,w;return g!=null?(typeof g=="function"&&(v=g),typeof h=="object"&&(_=h)):(typeof h=="function"&&(v=h),_={}),w=new Cp.Parser(_),w.parseString(p,v)}}).call(Cp)});var cye=m(Al=>{(function(){"use strict";var e,t,r,n,i=function(o,a){for(var u in a)s.call(a,u)&&(o[u]=a[u]);function c(){this.constructor=o}return c.prototype=a.prototype,o.prototype=new c,o.__super__=a.prototype,o},s={}.hasOwnProperty;t=hA(),e=sye(),r=uye(),n=a3(),Al.defaults=t.defaults,Al.processors=n,Al.ValidationError=function(o){i(a,o);function a(u){this.message=u}return a}(Error),Al.Builder=e.Builder,Al.Parser=r.Parser,Al.parseString=r.parseString}).call(Al)});var mye=m((v_r,hye)=>{var lye=Oe(),rx=lye.util,k2t=lye.Model.Shape,P2t=cye(),D2t={explicitCharkey:!1,trim:!1,normalize:!1,explicitRoot:!1,emptyTag:null,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,validator:null};function fye(){}fye.prototype.parse=function(e,t){t=t||{};var r=null,n=null,i=new P2t.Parser(D2t);if(i.parseString(e,function(o,a){n=o,r=a}),r){var s=Yu(r,t);return r.ResponseMetadata&&(s.ResponseMetadata=Yu(r.ResponseMetadata[0],{})),s}else{if(n)throw rx.error(n,{code:"XMLParserError",retryable:!0});return Yu({},t)}};function Yu(e,t){switch(t.type){case"structure":return L2t(e,t);case"map":return F2t(e,t);case"list":return pye(e,t);case void 0:case null:return M2t(e);default:return dye(e,t)}}function L2t(e,t){var r={};return e===null||rx.each(t.members,function(n,i){var s=i.name;if(Object.prototype.hasOwnProperty.call(e,s)&&Array.isArray(e[s])){var o=e[s];i.flattened||(o=o[0]),r[n]=Yu(o,i)}else i.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,s)?r[n]=dye(e.$[s],i):i.type==="list"&&!t.api.xmlNoDefaultLists&&(r[n]=i.defaultValue)}),r}function F2t(e,t){var r={};if(e===null)return r;var n=t.key.name||"key",i=t.value.name||"value",s=t.flattened?e:e.entry;return Array.isArray(s)&&rx.arrayEach(s,function(o){r[o[n][0]]=Yu(o[i][0],t.value)}),r}function pye(e,t){var r=[],n=t.member.name||"member";return t.flattened?rx.arrayEach(e,function(i){r.push(Yu(i,t.member))}):e&&Array.isArray(e[n])&&rx.arrayEach(e[n],function(i){r.push(Yu(i,t.member))}),r}function dye(e,t){return e&&e.$&&e.$.encoding==="base64"&&(t=new k2t.create({type:e.$.encoding})),e&&e._&&(e=e._),typeof t.toType=="function"?t.toType(e):e}function M2t(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e)){var t=[];for(n=0;n<e.length;n++)t.push(Yu(e[n],{}));return t}var r=Object.keys(e),n;if(r.length===0||r.length===1&&r[0]==="$")return{};var i={};for(n=0;n<r.length;n++){var s=r[n],o=e[s];s!=="$"&&(o.length>1?i[s]=pye(o,{member:{}}):i[s]=Yu(o[0],{}))}return i}hye.exports=fye});var vye=m(()=>{var Gr=Oe(),j2t=Gr.util.stream.Stream,gye=Gr.util.stream.Transform,B2t=Gr.util.stream.Readable;HT();var U2t="AWS_NODEJS_CONNECTION_REUSE_ENABLED";Gr.NodeHttpClient=Gr.util.inherit({handleRequest:function(t,r,n,i){var s=this,o=t.endpoint,a="";r||(r={}),r.proxy&&(a=o.protocol+"//"+o.hostname,o.port!==80&&o.port!==443&&(a+=":"+o.port),o=new Gr.Endpoint(r.proxy));var u=o.protocol==="https:",c=u?require("https"):require("http"),f={host:o.hostname,port:o.port,method:t.method,headers:t.headers,path:a+t.path};r.agent||(f.agent=this.getAgent(u,{keepAlive:process.env[U2t]==="1"})),Gr.util.update(f,r),delete f.proxy,delete f.timeout;var p=c.request(f,function(v){p.didCallback||(n(v),v.emit("headers",v.statusCode,v.headers,v.statusMessage))});if(t.stream=p,p.didCallback=!1,r.connectTimeout){var h;p.on("socket",function(v){v.connecting&&(h=setTimeout(function(){p.didCallback||(p.didCallback=!0,p.abort(),i(Gr.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"})))},r.connectTimeout),v.on("connect",function(){clearTimeout(h),h=null}))})}p.setTimeout(r.timeout||0,function(){if(!p.didCallback){p.didCallback=!0;var v="Connection timed out after "+r.timeout+"ms";i(Gr.util.error(new Error(v),{code:"TimeoutError"})),p.abort()}}),p.on("error",function(v){h&&(clearTimeout(h),h=null),!p.didCallback&&(p.didCallback=!0,v.code==="ECONNRESET"||v.code==="EPIPE"||v.code==="ETIMEDOUT"?i(Gr.util.error(v,{code:"TimeoutError"})):i(v))});var g=t.headers.Expect||t.headers.expect;return g==="100-continue"?p.once("continue",function(){s.writeBody(p,t)}):this.writeBody(p,t),p},writeBody:function(t,r){var n=r.body,i=parseInt(r.headers["Content-Length"],10);if(n instanceof j2t){var s=this.progressStream(t,i);s?n.pipe(s).pipe(t):n.pipe(t)}else n?(t.once("finish",function(){t.emit("sendProgress",{loaded:i,total:i})}),t.end(n)):t.end()},getAgent:function(t,r){var n=t?require("https"):require("http");return t?(Gr.NodeHttpClient.sslAgent||(Gr.NodeHttpClient.sslAgent=new n.Agent(Gr.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"},r||{})),Gr.NodeHttpClient.sslAgent.setMaxListeners(0),Object.defineProperty(Gr.NodeHttpClient.sslAgent,"maxSockets",{enumerable:!0,get:function(){var i=50,s=n.globalAgent;return s&&s.maxSockets!==1/0&&typeof s.maxSockets=="number"?s.maxSockets:i}})),Gr.NodeHttpClient.sslAgent):(Gr.NodeHttpClient.agent||(Gr.NodeHttpClient.agent=new n.Agent(r)),Gr.NodeHttpClient.agent)},progressStream:function(t,r){if(!(typeof gye>"u")){var n=0,i=new gye;return i._transform=function(s,o,a){s&&(n+=s.length,t.emit("sendProgress",{loaded:n,total:r})),a(null,s)},i}},emitter:null});Gr.HttpClient.prototype=Gr.NodeHttpClient.prototype;Gr.HttpClient.streamsApiVersion=B2t?2:1});var yye=m(()=>{var fo=Oe(),W2t=require("fs"),H2t=Tl(),$2t=fo.util.iniLoader;fo.TokenFileWebIdentityCredentials=fo.util.inherit(fo.Credentials,{constructor:function(t){fo.Credentials.call(this),this.data=null,this.clientConfig=fo.util.copy(t||{})},getParamsFromEnv:function(){var t="AWS_WEB_IDENTITY_TOKEN_FILE",r="AWS_ROLE_ARN";if(process.env[t]&&process.env[r])return[{envTokenFile:process.env[t],roleArn:process.env[r],roleSessionName:process.env.AWS_ROLE_SESSION_NAME}]},getParamsFromSharedConfig:function(){var t=fo.util.getProfilesFromSharedConfig($2t),r=process.env.AWS_PROFILE||fo.util.defaultProfile,n=t[r]||{};if(Object.keys(n).length===0)throw fo.util.error(new Error("Profile "+r+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"});for(var i=[];!n.web_identity_token_file&&n.source_profile;){i.unshift({roleArn:n.role_arn,roleSessionName:n.role_session_name});var s=n.source_profile;n=t[s]}return i.unshift({envTokenFile:n.web_identity_token_file,roleArn:n.role_arn,roleSessionName:n.role_session_name}),i},refresh:function(t){this.coalesceRefresh(t||fo.util.fn.callback)},assumeRoleChaining:function(t,r){var n=this;if(t.length===0)n.service.credentialsFrom(n.data,n),r();else{var i=t.shift();n.service.config.credentials=n.service.credentialsFrom(n.data,n),n.service.assumeRole({RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(s,o){n.data=null,s?r(s):(n.data=o,n.assumeRoleChaining(t,r))})}},load:function(t){var r=this;try{var n=r.getParamsFromEnv();if(n||(n=r.getParamsFromSharedConfig()),n){var i=n.shift(),s=W2t.readFileSync(i.envTokenFile,{encoding:"ascii"});r.service||r.createClients(),r.service.assumeRoleWithWebIdentity({WebIdentityToken:s,RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(o,a){r.data=null,o?t(o):(r.data=a,r.assumeRoleChaining(n,t))})}}catch(o){t(o)}},createClients:function(){if(!this.service){var e=fo.util.merge({},this.clientConfig);this.service=new H2t(e),this.service.retryableError=function(t){return t.code==="IDPCommunicationErrorException"||t.code==="InvalidIdentityToken"?!0:fo.Service.prototype.retryableError.call(this,t)}}}})});var _ye=m((w_r,xye)=>{var z2t=function(){return{IPv4:"http://169.254.169.254",IPv6:"http://[fd00:ec2::254]"}};xye.exports=z2t});var u3=m((E_r,bye)=>{var G2t=function(){return{IPv4:"IPv4",IPv6:"IPv6"}};bye.exports=G2t});var Eye=m((S_r,wye)=>{var V2t="AWS_EC2_METADATA_SERVICE_ENDPOINT",K2t="ec2_metadata_service_endpoint",X2t=function(){return{environmentVariableSelector:function(e){return e[V2t]},configFileSelector:function(e){return e[K2t]},default:void 0}};wye.exports=X2t});var Tye=m((T_r,Sye)=>{var Y2t=u3()(),Z2t="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",J2t="ec2_metadata_service_endpoint_mode",Q2t=function(){return{environmentVariableSelector:function(e){return e[Z2t]},configFileSelector:function(e){return e[J2t]},default:Y2t.IPv4}};Sye.exports=Q2t});var Iye=m((A_r,Oye)=>{var Aye=Oe(),Cye=_ye()(),Rye=u3()(),ekt=Eye()(),tkt=Tye()(),rkt=function(){var e=Aye.util.loadConfig(ekt);if(e!==void 0)return e;var t=Aye.util.loadConfig(tkt);switch(t){case Rye.IPv4:return Cye.IPv4;case Rye.IPv6:return Cye.IPv6;default:throw new Error("Unsupported endpoint mode: "+t)}};Oye.exports=rkt});var kye=m((C_r,qye)=>{var Yo=Oe();HT();var nkt=Yo.util.inherit,ikt=Iye(),Nye=require("url").URL;Yo.MetadataService=nkt({endpoint:ikt(),httpOptions:{timeout:0},disableFetchToken:!1,constructor:function(t){t&&t.host&&(t.endpoint="http://"+t.host,delete t.host),Yo.util.update(this,t)},request:function(t,r,n){if(arguments.length===2&&(n=r,r={}),process.env[Yo.util.imdsDisabledEnv]){n(new Error("EC2 Instance Metadata Service access disabled"));return}t=t||"/",Nye&&new Nye(this.endpoint);var i=new Yo.HttpRequest(this.endpoint+t);i.method=r.method||"GET",r.headers&&(i.headers=r.headers),Yo.util.handleRequestWithRetries(i,this,n)},loadCredentialsCallbacks:[],fetchMetadataToken:function(t){var r=this,n="/latest/api/token";r.request(n,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},t)},fetchCredentials:function(t,r){var n=this,i="/latest/meta-data/iam/security-credentials/";n.request(i,t,function(s,o){if(s){n.disableFetchToken=s.statusCode!==401,r(Yo.util.error(s,{message:"EC2 Metadata roleName request returned error"}));return}o=o.split(`
|
|
172
|
+
`?(A.line++,A.column=0):A.column++);A.textNode+=k.substring(He,H-1)}K==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(L(f,K)&&(!A.sawRoot||A.closedRoot)&&se(A,"Text data outside of root node."),K==="&"?A.state=D.TEXT_ENTITY:A.textNode+=K);continue;case D.SCRIPT:K==="<"?A.state=D.SCRIPT_ENDING:A.script+=K;continue;case D.SCRIPT_ENDING:K==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+K,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(K==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!z(f,K))if(z(T,K))A.state=D.OPEN_TAG,A.tagName=K;else if(K==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(K==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(se(A,"Unencoded <"),A.startTagPosition+1<A.position){var Fe=A.position-A.startTagPosition;K=new Array(Fe).join(" ")+K}A.textNode+="<"+K,A.state=D.TEXT}continue;case D.SGML_DECL:(A.sgmlDecl+K).toUpperCase()===_?(B(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):A.sgmlDecl+K==="--"?(A.state=D.COMMENT,A.comment="",A.sgmlDecl=""):(A.sgmlDecl+K).toUpperCase()===w?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&se(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):K===">"?(B(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(z(g,K)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=K);continue;case D.SGML_DECL_QUOTED:K===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=K;continue;case D.DOCTYPE:K===">"?(A.state=D.TEXT,B(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=K,K==="["?A.state=D.DOCTYPE_DTD:z(g,K)&&(A.state=D.DOCTYPE_QUOTED,A.q=K));continue;case D.DOCTYPE_QUOTED:A.doctype+=K,K===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:A.doctype+=K,K==="]"?A.state=D.DOCTYPE:z(g,K)&&(A.state=D.DOCTYPE_DTD_QUOTED,A.q=K);continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=K,K===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:K==="-"?A.state=D.COMMENT_ENDING:A.comment+=K;continue;case D.COMMENT_ENDING:K==="-"?(A.state=D.COMMENT_ENDED,A.comment=he(A.opt,A.comment),A.comment&&B(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+K,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:K!==">"?(se(A,"Malformed comment"),A.comment+="--"+K,A.state=D.COMMENT):A.state=D.TEXT;continue;case D.CDATA:K==="]"?A.state=D.CDATA_ENDING:A.cdata+=K;continue;case D.CDATA_ENDING:K==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+K,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:K===">"?(A.cdata&&B(A,"oncdata",A.cdata),B(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):K==="]"?A.cdata+="]":(A.cdata+="]]"+K,A.state=D.CDATA);continue;case D.PROC_INST:K==="?"?A.state=D.PROC_INST_ENDING:z(f,K)?A.state=D.PROC_INST_BODY:A.procInstName+=K;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&z(f,K))continue;K==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=K;continue;case D.PROC_INST_ENDING:K===">"?(B(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+K,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:z(R,K)?A.tagName+=K:(Ve(A),K===">"?it(A):K==="/"?A.state=D.OPEN_TAG_SLASH:(L(f,K)&&se(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:K===">"?(it(A,!0),Vt(A)):(se(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if(z(f,K))continue;K===">"?it(A):K==="/"?A.state=D.OPEN_TAG_SLASH:z(T,K)?(A.attribName=K,A.attribValue="",A.state=D.ATTRIB_NAME):se(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:K==="="?A.state=D.ATTRIB_VALUE:K===">"?(se(A,"Attribute without value"),A.attribValue=A.attribName,Ee(A),it(A)):z(f,K)?A.state=D.ATTRIB_NAME_SAW_WHITE:z(R,K)?A.attribName+=K:se(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(K==="=")A.state=D.ATTRIB_VALUE;else{if(z(f,K))continue;se(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",B(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",K===">"?it(A):z(T,K)?(A.attribName=K,A.state=D.ATTRIB_NAME):(se(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(z(f,K))continue;z(g,K)?(A.q=K,A.state=D.ATTRIB_VALUE_QUOTED):(se(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=K);continue;case D.ATTRIB_VALUE_QUOTED:if(K!==A.q){K==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=K;continue}Ee(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:z(f,K)?A.state=D.ATTRIB:K===">"?it(A):K==="/"?A.state=D.OPEN_TAG_SLASH:z(T,K)?(se(A,"No whitespace between attributes"),A.attribName=K,A.attribValue="",A.state=D.ATTRIB_NAME):se(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(L(v,K)){K==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=K;continue}Ee(A),K===">"?it(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)K===">"?Vt(A):z(R,K)?A.tagName+=K:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):(L(f,K)&&se(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if(z(f,K))continue;L(T,K)?A.script?(A.script+="</"+K,A.state=D.SCRIPT):se(A,"Invalid tagname in closing tag."):A.tagName=K}continue;case D.CLOSE_TAG_SAW_WHITE:if(z(f,K))continue;K===">"?Vt(A):se(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var rr,Nr;switch(A.state){case D.TEXT_ENTITY:rr=D.TEXT,Nr="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:rr=D.ATTRIB_VALUE_QUOTED,Nr="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:rr=D.ATTRIB_VALUE_UNQUOTED,Nr="attribValue";break}K===";"?(A[Nr]+=Te(A),A.entity="",A.state=rr):z(A.entity.length?O:q,K)?A.entity+=K:(se(A,"Invalid character in entity name"),A[Nr]+="&"+A.entity+K,A.entity="",A.state=rr);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&n(A),A}String.fromCodePoint||function(){var k=String.fromCharCode,A=Math.floor,H=function(){var K=16384,He=[],Fe,rr,Nr=-1,on=arguments.length;if(!on)return"";for(var Ae="";++Nr<on;){var sr=Number(arguments[Nr]);if(!isFinite(sr)||sr<0||sr>1114111||A(sr)!==sr)throw RangeError("Invalid code point: "+sr);sr<=65535?He.push(sr):(sr-=65536,Fe=(sr>>10)+55296,rr=sr%1024+56320,He.push(Fe,rr)),(Nr+1===on||He.length>K)&&(Ae+=k.apply(null,He),He.length=0)}return Ae};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:H,configurable:!0,writable:!0}):String.fromCodePoint=H}()})(typeof gA>"u"?gA.sax={}:gA)});var aye=m(o3=>{(function(){"use strict";o3.stripBOM=function(e){return e[0]==="\uFEFF"?e.substring(1):e}}).call(o3)});var a3=m(Ap=>{(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),Ap.normalize=function(t){return t.toLowerCase()},Ap.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ap.stripPrefix=function(t){return t.replace(e,"")},Ap.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},Ap.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(Ap)});var uye=m(Cp=>{(function(){"use strict";var e,t,r,n,i,s,o,a,u=function(p,h){return function(){return p.apply(h,arguments)}},c=function(p,h){for(var g in h)f.call(h,g)&&(p[g]=h[g]);function v(){this.constructor=p}return v.prototype=h.prototype,p.prototype=new v,p.__super__=h.prototype,p},f={}.hasOwnProperty;o=oye(),r=require("events"),e=aye(),s=a3(),a=require("timers").setImmediate,t=hA().defaults,n=function(p){return typeof p=="object"&&p!=null&&Object.keys(p).length===0},i=function(p,h,g){var v,_,w;for(v=0,_=p.length;v<_;v++)w=p[v],h=w(h,g);return h},Cp.Parser=function(p){c(h,p);function h(g){this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var v,_,w;if(!(this instanceof Cp.Parser))return new Cp.Parser(g);this.options={},_=t["0.2"];for(v in _)f.call(_,v)&&(w=_[v],this.options[v]=w);for(v in g)f.call(g,v)&&(w=g[v],this.options[v]=w);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(s.normalize)),this.reset()}return h.prototype.processAsync=function(){var g,v;try{return this.remaining.length<=this.options.chunkSize?(g=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(g),this.saxParser.close()):(g=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(g),a(this.processAsync))}catch(_){if(v=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},h.prototype.assignOrPush=function(g,v,_){return v in g?(g[v]instanceof Array||(g[v]=[g[v]]),g[v].push(_)):this.options.explicitArray?g[v]=[_]:g[v]=_},h.prototype.reset=function(){var g,v,_,w;return this.removeAllListeners(),this.saxParser=o.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(y){return function(b){if(y.saxParser.resume(),!y.saxParser.errThrown)return y.saxParser.errThrown=!0,y.emit("error",b)}}(this),this.saxParser.onend=function(y){return function(){if(!y.saxParser.ended)return y.saxParser.ended=!0,y.emit("end",y.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,w=[],g=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=function(y){return function(b){var S,T,R,q,O;if(R={},R[v]="",!y.options.ignoreAttrs){O=b.attributes;for(S in O)f.call(O,S)&&(!(g in R)&&!y.options.mergeAttrs&&(R[g]={}),T=y.options.attrValueProcessors?i(y.options.attrValueProcessors,b.attributes[S],S):b.attributes[S],q=y.options.attrNameProcessors?i(y.options.attrNameProcessors,S):S,y.options.mergeAttrs?y.assignOrPush(R,q,T):R[g][q]=T)}return R["#name"]=y.options.tagNameProcessors?i(y.options.tagNameProcessors,b.name):b.name,y.options.xmlns&&(R[y.options.xmlnskey]={uri:b.uri,local:b.local}),w.push(R)}}(this),this.saxParser.onclosetag=function(y){return function(){var b,S,T,R,q,O,M,U,z,L;if(O=w.pop(),q=O["#name"],(!y.options.explicitChildren||!y.options.preserveChildrenOrder)&&delete O["#name"],O.cdata===!0&&(b=O.cdata,delete O.cdata),z=w[w.length-1],O[v].match(/^\s*$/)&&!b?(S=O[v],delete O[v]):(y.options.trim&&(O[v]=O[v].trim()),y.options.normalize&&(O[v]=O[v].replace(/\s{2,}/g," ").trim()),O[v]=y.options.valueProcessors?i(y.options.valueProcessors,O[v],q):O[v],Object.keys(O).length===1&&v in O&&!y.EXPLICIT_CHARKEY&&(O=O[v])),n(O)&&(O=y.options.emptyTag!==""?y.options.emptyTag:S),y.options.validator!=null&&(L="/"+function(){var D,Z,le;for(le=[],D=0,Z=w.length;D<Z;D++)R=w[D],le.push(R["#name"]);return le}().concat(q).join("/"),function(){var D;try{return O=y.options.validator(L,z&&z[q],O)}catch(Z){return D=Z,y.emit("error",D)}}()),y.options.explicitChildren&&!y.options.mergeAttrs&&typeof O=="object"){if(!y.options.preserveChildrenOrder)R={},y.options.attrkey in O&&(R[y.options.attrkey]=O[y.options.attrkey],delete O[y.options.attrkey]),!y.options.charsAsChildren&&y.options.charkey in O&&(R[y.options.charkey]=O[y.options.charkey],delete O[y.options.charkey]),Object.getOwnPropertyNames(O).length>0&&(R[y.options.childkey]=O),O=R;else if(z){z[y.options.childkey]=z[y.options.childkey]||[],M={};for(T in O)f.call(O,T)&&(M[T]=O[T]);z[y.options.childkey].push(M),delete O["#name"],Object.keys(O).length===1&&v in O&&!y.EXPLICIT_CHARKEY&&(O=O[v])}}return w.length>0?y.assignOrPush(z,q,O):(y.options.explicitRoot&&(U=O,O={},O[q]=U),y.resultObject=O,y.saxParser.ended=!0,y.emit("end",y.resultObject))}}(this),_=function(y){return function(b){var S,T;if(T=w[w.length-1],T)return T[v]+=b,y.options.explicitChildren&&y.options.preserveChildrenOrder&&y.options.charsAsChildren&&(y.options.includeWhiteChars||b.replace(/\\n/g,"").trim()!=="")&&(T[y.options.childkey]=T[y.options.childkey]||[],S={"#name":"__text__"},S[v]=b,y.options.normalize&&(S[v]=S[v].replace(/\s{2,}/g," ").trim()),T[y.options.childkey].push(S)),T}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(y){return function(b){var S;if(S=_(b),S)return S.cdata=!0}}(this)},h.prototype.parseString=function(g,v){var _;v!=null&&typeof v=="function"&&(this.on("end",function(w){return this.reset(),v(null,w)}),this.on("error",function(w){return this.reset(),v(w)}));try{return g=g.toString(),g.trim()===""?(this.emit("end",null),!0):(g=e.stripBOM(g),this.options.async?(this.remaining=g,a(this.processAsync),this.saxParser):this.saxParser.write(g).close())}catch(w){if(_=w,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},h}(r.EventEmitter),Cp.parseString=function(p,h,g){var v,_,w;return g!=null?(typeof g=="function"&&(v=g),typeof h=="object"&&(_=h)):(typeof h=="function"&&(v=h),_={}),w=new Cp.Parser(_),w.parseString(p,v)}}).call(Cp)});var cye=m(Al=>{(function(){"use strict";var e,t,r,n,i=function(o,a){for(var u in a)s.call(a,u)&&(o[u]=a[u]);function c(){this.constructor=o}return c.prototype=a.prototype,o.prototype=new c,o.__super__=a.prototype,o},s={}.hasOwnProperty;t=hA(),e=sye(),r=uye(),n=a3(),Al.defaults=t.defaults,Al.processors=n,Al.ValidationError=function(o){i(a,o);function a(u){this.message=u}return a}(Error),Al.Builder=e.Builder,Al.Parser=r.Parser,Al.parseString=r.parseString}).call(Al)});var mye=m((v_r,hye)=>{var lye=Oe(),rx=lye.util,k2t=lye.Model.Shape,P2t=cye(),D2t={explicitCharkey:!1,trim:!1,normalize:!1,explicitRoot:!1,emptyTag:null,explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,validator:null};function fye(){}fye.prototype.parse=function(e,t){t=t||{};var r=null,n=null,i=new P2t.Parser(D2t);if(i.parseString(e,function(o,a){n=o,r=a}),r){var s=Yu(r,t);return r.ResponseMetadata&&(s.ResponseMetadata=Yu(r.ResponseMetadata[0],{})),s}else{if(n)throw rx.error(n,{code:"XMLParserError",retryable:!0});return Yu({},t)}};function Yu(e,t){switch(t.type){case"structure":return L2t(e,t);case"map":return F2t(e,t);case"list":return pye(e,t);case void 0:case null:return M2t(e);default:return dye(e,t)}}function L2t(e,t){var r={};return e===null||rx.each(t.members,function(n,i){var s=i.name;if(Object.prototype.hasOwnProperty.call(e,s)&&Array.isArray(e[s])){var o=e[s];i.flattened||(o=o[0]),r[n]=Yu(o,i)}else i.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,s)?r[n]=dye(e.$[s],i):i.type==="list"&&!t.api.xmlNoDefaultLists&&(r[n]=i.defaultValue)}),r}function F2t(e,t){var r={};if(e===null)return r;var n=t.key.name||"key",i=t.value.name||"value",s=t.flattened?e:e.entry;return Array.isArray(s)&&rx.arrayEach(s,function(o){r[o[n][0]]=Yu(o[i][0],t.value)}),r}function pye(e,t){var r=[],n=t.member.name||"member";return t.flattened?rx.arrayEach(e,function(i){r.push(Yu(i,t.member))}):e&&Array.isArray(e[n])&&rx.arrayEach(e[n],function(i){r.push(Yu(i,t.member))}),r}function dye(e,t){return e&&e.$&&e.$.encoding==="base64"&&(t=new k2t.create({type:e.$.encoding})),e&&e._&&(e=e._),typeof t.toType=="function"?t.toType(e):e}function M2t(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e)){var t=[];for(n=0;n<e.length;n++)t.push(Yu(e[n],{}));return t}var r=Object.keys(e),n;if(r.length===0||r.length===1&&r[0]==="$")return{};var i={};for(n=0;n<r.length;n++){var s=r[n],o=e[s];s!=="$"&&(o.length>1?i[s]=pye(o,{member:{}}):i[s]=Yu(o[0],{}))}return i}hye.exports=fye});var vye=m(()=>{var Gr=Oe(),j2t=Gr.util.stream.Stream,gye=Gr.util.stream.Transform,B2t=Gr.util.stream.Readable;HT();var U2t="AWS_NODEJS_CONNECTION_REUSE_ENABLED";Gr.NodeHttpClient=Gr.util.inherit({handleRequest:function(t,r,n,i){var s=this,o=t.endpoint,a="";r||(r={}),r.proxy&&(a=o.protocol+"//"+o.hostname,o.port!==80&&o.port!==443&&(a+=":"+o.port),o=new Gr.Endpoint(r.proxy));var u=o.protocol==="https:",c=u?require("https"):require("http"),f={host:o.hostname,port:o.port,method:t.method,headers:t.headers,path:a+t.path};r.agent||(f.agent=this.getAgent(u,{keepAlive:process.env[U2t]==="1"})),Gr.util.update(f,r),delete f.proxy,delete f.timeout;var p=c.request(f,function(v){p.didCallback||(n(v),v.emit("headers",v.statusCode,v.headers,v.statusMessage))});if(t.stream=p,p.didCallback=!1,r.connectTimeout){var h;p.on("socket",function(v){v.connecting&&(h=setTimeout(function(){p.didCallback||(p.didCallback=!0,p.abort(),i(Gr.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"})))},r.connectTimeout),v.on("connect",function(){clearTimeout(h),h=null}))})}p.setTimeout(r.timeout||0,function(){if(!p.didCallback){p.didCallback=!0;var v="Connection timed out after "+r.timeout+"ms";i(Gr.util.error(new Error(v),{code:"TimeoutError"})),p.abort()}}),p.on("error",function(v){h&&(clearTimeout(h),h=null),!p.didCallback&&(p.didCallback=!0,v.code==="ECONNRESET"||v.code==="EPIPE"||v.code==="ETIMEDOUT"?i(Gr.util.error(v,{code:"TimeoutError"})):i(v))});var g=t.headers.Expect||t.headers.expect;return g==="100-continue"?p.once("continue",function(){s.writeBody(p,t)}):this.writeBody(p,t),p},writeBody:function(t,r){var n=r.body,i=parseInt(r.headers["Content-Length"],10);if(n instanceof j2t){var s=this.progressStream(t,i);s?n.pipe(s).pipe(t):n.pipe(t)}else n?(t.once("finish",function(){t.emit("sendProgress",{loaded:i,total:i})}),t.end(n)):t.end()},getAgent:function(t,r){var n=t?require("https"):require("http");return t?(Gr.NodeHttpClient.sslAgent||(Gr.NodeHttpClient.sslAgent=new n.Agent(Gr.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0"},r||{})),Gr.NodeHttpClient.sslAgent.setMaxListeners(0),Object.defineProperty(Gr.NodeHttpClient.sslAgent,"maxSockets",{enumerable:!0,get:function(){var i=50,s=n.globalAgent;return s&&s.maxSockets!==1/0&&typeof s.maxSockets=="number"?s.maxSockets:i}})),Gr.NodeHttpClient.sslAgent):(Gr.NodeHttpClient.agent||(Gr.NodeHttpClient.agent=new n.Agent(r)),Gr.NodeHttpClient.agent)},progressStream:function(t,r){if(!(typeof gye>"u")){var n=0,i=new gye;return i._transform=function(s,o,a){s&&(n+=s.length,t.emit("sendProgress",{loaded:n,total:r})),a(null,s)},i}},emitter:null});Gr.HttpClient.prototype=Gr.NodeHttpClient.prototype;Gr.HttpClient.streamsApiVersion=B2t?2:1});var yye=m(()=>{var fo=Oe(),W2t=require("fs"),H2t=Tl(),$2t=fo.util.iniLoader;fo.TokenFileWebIdentityCredentials=fo.util.inherit(fo.Credentials,{constructor:function(t){fo.Credentials.call(this),this.data=null,this.clientConfig=fo.util.copy(t||{})},getParamsFromEnv:function(){var t="AWS_WEB_IDENTITY_TOKEN_FILE",r="AWS_ROLE_ARN";if(process.env[t]&&process.env[r])return[{envTokenFile:process.env[t],roleArn:process.env[r],roleSessionName:process.env.AWS_ROLE_SESSION_NAME}]},getParamsFromSharedConfig:function(){var t=fo.util.getProfilesFromSharedConfig($2t),r=process.env.AWS_PROFILE||fo.util.defaultProfile,n=t[r]||{};if(Object.keys(n).length===0)throw fo.util.error(new Error("Profile "+r+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"});for(var i=[];!n.web_identity_token_file&&n.source_profile;){i.unshift({roleArn:n.role_arn,roleSessionName:n.role_session_name});var s=n.source_profile;n=t[s]}return i.unshift({envTokenFile:n.web_identity_token_file,roleArn:n.role_arn,roleSessionName:n.role_session_name}),i},refresh:function(t){this.coalesceRefresh(t||fo.util.fn.callback)},assumeRoleChaining:function(t,r){var n=this;if(t.length===0)n.service.credentialsFrom(n.data,n),r();else{var i=t.shift();n.service.config.credentials=n.service.credentialsFrom(n.data,n),n.service.assumeRole({RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(s,o){n.data=null,s?r(s):(n.data=o,n.assumeRoleChaining(t,r))})}},load:function(t){var r=this;try{var n=r.getParamsFromEnv();if(n||(n=r.getParamsFromSharedConfig()),n){var i=n.shift(),s=W2t.readFileSync(i.envTokenFile,{encoding:"ascii"});r.service||r.createClients(),r.service.assumeRoleWithWebIdentity({WebIdentityToken:s,RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(o,a){r.data=null,o?t(o):(r.data=a,r.assumeRoleChaining(n,t))})}}catch(o){t(o)}},createClients:function(){if(!this.service){var e=fo.util.merge({},this.clientConfig);this.service=new H2t(e),this.service.retryableError=function(t){return t.code==="IDPCommunicationErrorException"||t.code==="InvalidIdentityToken"?!0:fo.Service.prototype.retryableError.call(this,t)}}}})});var _ye=m((w_r,xye)=>{var z2t=function(){return{IPv4:"http://169.254.169.254",IPv6:"http://[fd00:ec2::254]"}};xye.exports=z2t});var u3=m((E_r,bye)=>{var G2t=function(){return{IPv4:"IPv4",IPv6:"IPv6"}};bye.exports=G2t});var Eye=m((S_r,wye)=>{var V2t="AWS_EC2_METADATA_SERVICE_ENDPOINT",K2t="ec2_metadata_service_endpoint",X2t=function(){return{environmentVariableSelector:function(e){return e[V2t]},configFileSelector:function(e){return e[K2t]},default:void 0}};wye.exports=X2t});var Tye=m((T_r,Sye)=>{var Y2t=u3()(),Z2t="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",J2t="ec2_metadata_service_endpoint_mode",Q2t=function(){return{environmentVariableSelector:function(e){return e[Z2t]},configFileSelector:function(e){return e[J2t]},default:Y2t.IPv4}};Sye.exports=Q2t});var Iye=m((A_r,Oye)=>{var Aye=Oe(),Cye=_ye()(),Rye=u3()(),ekt=Eye()(),tkt=Tye()(),rkt=function(){var e=Aye.util.loadConfig(ekt);if(e!==void 0)return e;var t=Aye.util.loadConfig(tkt);switch(t){case Rye.IPv4:return Cye.IPv4;case Rye.IPv6:return Cye.IPv6;default:throw new Error("Unsupported endpoint mode: "+t)}};Oye.exports=rkt});var kye=m((C_r,qye)=>{var Yo=Oe();HT();var nkt=Yo.util.inherit,ikt=Iye(),Nye=require("url").URL;Yo.MetadataService=nkt({endpoint:ikt(),httpOptions:{timeout:0},disableFetchToken:!1,constructor:function(t){t&&t.host&&(t.endpoint="http://"+t.host,delete t.host),Yo.util.update(this,t)},request:function(t,r,n){if(arguments.length===2&&(n=r,r={}),process.env[Yo.util.imdsDisabledEnv]){n(new Error("EC2 Instance Metadata Service access disabled"));return}t=t||"/",Nye&&new Nye(this.endpoint);var i=new Yo.HttpRequest(this.endpoint+t);i.method=r.method||"GET",r.headers&&(i.headers=r.headers),Yo.util.handleRequestWithRetries(i,this,n)},loadCredentialsCallbacks:[],fetchMetadataToken:function(t){var r=this,n="/latest/api/token";r.request(n,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},t)},fetchCredentials:function(t,r){var n=this,i="/latest/meta-data/iam/security-credentials/";n.request(i,t,function(s,o){if(s){n.disableFetchToken=s.statusCode!==401,r(Yo.util.error(s,{message:"EC2 Metadata roleName request returned error"}));return}o=o.split(`
|
|
173
173
|
`)[0],n.request(i+o,t,function(a,u){if(a){n.disableFetchToken=a.statusCode!==401,r(Yo.util.error(a,{message:"EC2 Metadata creds request returned error"}));return}try{var c=JSON.parse(u);r(null,c)}catch(f){r(f)}})})},loadCredentials:function(t){var r=this;if(r.loadCredentialsCallbacks.push(t),r.loadCredentialsCallbacks.length>1)return;function n(i,s){for(var o;(o=r.loadCredentialsCallbacks.shift())!==void 0;)o(i,s)}r.disableFetchToken?r.fetchCredentials({},n):r.fetchMetadataToken(function(i,s){if(i){if(i.code==="TimeoutError")r.disableFetchToken=!0;else if(i.retryable===!0){n(Yo.util.error(i,{message:"EC2 Metadata token request returned error"}));return}else if(i.statusCode===400){n(Yo.util.error(i,{message:"EC2 Metadata token request returned 400"}));return}}var o={};s&&(o.headers={"x-aws-ec2-metadata-token":s}),r.fetchCredentials(o,n)})}});qye.exports=Yo.MetadataService});var Pye=m(()=>{var Cs=Oe();kye();Cs.EC2MetadataCredentials=Cs.util.inherit(Cs.Credentials,{constructor:function(t){Cs.Credentials.call(this),t=t?Cs.util.copy(t):{},t=Cs.util.merge({maxRetries:this.defaultMaxRetries},t),t.httpOptions||(t.httpOptions={}),t.httpOptions=Cs.util.merge({timeout:this.defaultTimeout,connectTimeout:this.defaultConnectTimeout},t.httpOptions),this.metadataService=new Cs.MetadataService(t),this.logger=t.logger||Cs.config&&Cs.config.logger},defaultTimeout:1e3,defaultConnectTimeout:1e3,defaultMaxRetries:3,originalExpiration:void 0,refresh:function(t){this.coalesceRefresh(t||Cs.util.fn.callback)},load:function(t){var r=this;r.metadataService.loadCredentials(function(n,i){n?r.hasLoadedCredentials()?(r.extendExpirationIfExpired(),t()):t(n):(r.setCredentials(i),r.extendExpirationIfExpired(),t())})},hasLoadedCredentials:function(){return this.AccessKeyId&&this.secretAccessKey},extendExpirationIfExpired:function(){if(this.needsRefresh()){this.originalExpiration=this.originalExpiration||this.expireTime,this.expired=!1;var t=15*60+Math.floor(Math.random()*5*60),r=Cs.util.date.getDate().getTime();this.expireTime=new Date(r+t*1e3),this.logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted again at "+this.expireTime+`
|
|
174
174
|
For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`)}},setCredentials:function(t){var r=Cs.util.date.getDate().getTime(),n=new Date(t.Expiration);this.expired=r>=n,this.metadata=t,this.accessKeyId=t.AccessKeyId,this.secretAccessKey=t.SecretAccessKey,this.sessionToken=t.Token,this.expireTime=n}})});var Fye=m(()=>{var ti=Oe(),c3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",vA="AWS_CONTAINER_CREDENTIALS_FULL_URI",skt="AWS_CONTAINER_AUTHORIZATION_TOKEN",okt=["https:"],Dye=["http:","https:"],Lye=["localhost","127.0.0.1"],akt="169.254.170.2";ti.RemoteCredentials=ti.util.inherit(ti.Credentials,{constructor:function(t){ti.Credentials.call(this),t=t?ti.util.copy(t):{},t.httpOptions||(t.httpOptions={}),t.httpOptions=ti.util.merge(this.httpOptions,t.httpOptions),ti.util.update(this,t)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function(){return!!(process&&process.env&&(process.env[c3]||process.env[vA]))},getECSFullUri:function(){if(process&&process.env){var t=process.env[c3],r=process.env[vA];if(t)return"http://"+akt+t;if(r){var n=ti.util.urlParse(r);if(Dye.indexOf(n.protocol)<0)throw ti.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+Dye.join(",")+" only; "+n.protocol+" requested."),{code:"ECSCredentialsProviderFailure"});if(okt.indexOf(n.protocol)<0&&Lye.indexOf(n.hostname)<0)throw ti.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+Lye.join(",")+" for "+n.protocol+"; "+n.protocol+"//"+n.hostname+" requested."),{code:"ECSCredentialsProviderFailure"});return r}else throw ti.util.error(new Error("Variable "+c3+" or "+vA+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}else throw ti.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})},getECSAuthToken:function(){if(process&&process.env&&process.env[vA])return process.env[skt]},credsFormatIsValid:function(t){return!!t.accessKeyId&&!!t.secretAccessKey&&!!t.sessionToken&&!!t.expireTime},formatCreds:function(t){return t.credentials&&(t=t.credentials),{expired:!1,accessKeyId:t.accessKeyId||t.AccessKeyId,secretAccessKey:t.secretAccessKey||t.SecretAccessKey,sessionToken:t.sessionToken||t.Token,expireTime:new Date(t.expiration||t.Expiration)}},request:function(t,r){var n=new ti.HttpRequest(t);n.method="GET",n.headers.Accept="application/json";var i=this.getECSAuthToken();i&&(n.headers.Authorization=i),ti.util.handleRequestWithRetries(n,this,r)},refresh:function(t){this.coalesceRefresh(t||ti.util.fn.callback)},load:function(t){var r=this,n;try{n=this.getECSFullUri()}catch(i){t(i);return}this.request(n,function(i,s){if(!i)try{s=JSON.parse(s);var o=r.formatCreds(s);if(!r.credsFormatIsValid(o))throw ti.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"});ti.util.update(r,o)}catch(a){i=a}t(i,o)})}})});var jye=m(()=>{var Mye=Oe();Mye.ECSCredentials=Mye.RemoteCredentials});var Bye=m(()=>{var Cl=Oe();Cl.EnvironmentCredentials=Cl.util.inherit(Cl.Credentials,{constructor:function(t){Cl.Credentials.call(this),this.envPrefix=t,this.get(function(){})},refresh:function(t){if(t||(t=Cl.util.fn.callback),!process||!process.env){t(Cl.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}for(var r=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"],n=[],i=0;i<r.length;i++){var s="";if(this.envPrefix&&(s=this.envPrefix+"_"),n[i]=process.env[s+r[i]],!n[i]&&r[i]!=="SESSION_TOKEN"){t(Cl.util.error(new Error("Variable "+s+r[i]+" not set."),{code:"EnvironmentCredentialsProviderFailure"}));return}}this.expired=!1,Cl.Credentials.apply(this,n),t()}})});var Uye=m(()=>{var Rl=Oe();Rl.FileSystemCredentials=Rl.util.inherit(Rl.Credentials,{constructor:function(t){Rl.Credentials.call(this),this.filename=t,this.get(function(){})},refresh:function(t){t||(t=Rl.util.fn.callback);try{var r=JSON.parse(Rl.util.readFileSync(this.filename));if(Rl.Credentials.call(this,r),!this.accessKeyId||!this.secretAccessKey)throw Rl.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"});this.expired=!1,t()}catch(n){t(n)}}})});var Hye=m(()=>{var ri=Oe(),ukt=Tl(),Wye=ri.util.iniLoader,ckt="us-east-1";ri.SharedIniFileCredentials=ri.util.inherit(ri.Credentials,{constructor:function(t){ri.Credentials.call(this),t=t||{},this.filename=t.filename,this.profile=t.profile||process.env.AWS_PROFILE||ri.util.defaultProfile,this.disableAssumeRole=!!t.disableAssumeRole,this.preferStaticCredentials=!!t.preferStaticCredentials,this.tokenCodeFn=t.tokenCodeFn||null,this.httpOptions=t.httpOptions||null,this.get(t.callback||ri.util.fn.noop)},load:function(t){var r=this;try{var n=ri.util.getProfilesFromSharedConfig(Wye,this.filename),i=n[this.profile]||{};if(Object.keys(i).length===0)throw ri.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"});var s=!!(this.preferStaticCredentials&&i.aws_access_key_id&&i.aws_secret_access_key);if(i.role_arn&&!s){this.loadRoleProfile(n,i,function(o,a){o?t(o):(r.expired=!1,r.accessKeyId=a.Credentials.AccessKeyId,r.secretAccessKey=a.Credentials.SecretAccessKey,r.sessionToken=a.Credentials.SessionToken,r.expireTime=a.Credentials.Expiration,t(null))});return}if(this.accessKeyId=i.aws_access_key_id,this.secretAccessKey=i.aws_secret_access_key,this.sessionToken=i.aws_session_token,!this.accessKeyId||!this.secretAccessKey)throw ri.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"});this.expired=!1,t(null)}catch(o){t(o)}},refresh:function(t){Wye.clearCachedFiles(),this.coalesceRefresh(t||ri.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function(t,r,n){if(this.disableAssumeRole)throw ri.util.error(new Error("Role assumption profiles are disabled. Failed to load profile "+this.profile+" from "+t.filename),{code:"SharedIniFileCredentialsProviderFailure"});var i=this,s=r.role_arn,o=r.role_session_name,a=r.external_id,u=r.mfa_serial,c=r.source_profile,f=r.region||ckt;if(!c)throw ri.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"});var p=t[c];if(typeof p!="object")throw ri.util.error(new Error("source_profile "+c+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"});var h=new ri.SharedIniFileCredentials(ri.util.merge(this.options||{},{profile:c,preferStaticCredentials:!0}));this.roleArn=s;var g=new ukt({credentials:h,region:f,httpOptions:this.httpOptions}),v={RoleArn:s,RoleSessionName:o||"aws-sdk-js-"+Date.now()};if(a&&(v.ExternalId=a),u&&i.tokenCodeFn){v.SerialNumber=u,i.tokenCodeFn(u,function(_,w){if(_){var y;_ instanceof Error?y=_.message:y=_,n(ri.util.error(new Error("Error fetching MFA token: "+y),{code:"SharedIniFileCredentialsProviderFailure"}));return}v.TokenCode=w,g.assumeRole(v,n)});return}g.assumeRole(v,n)}})});var $ye=m(()=>{var rn=Oe(),lkt=require("path"),fkt=require("crypto"),l3=rn.util.iniLoader;rn.SsoCredentials=rn.util.inherit(rn.Credentials,{constructor:function(t){rn.Credentials.call(this),t=t||{},this.errorCode="SsoCredentialsProviderFailure",this.expired=!0,this.filename=t.filename,this.profile=t.profile||process.env.AWS_PROFILE||rn.util.defaultProfile,this.service=t.ssoClient,this.httpOptions=t.httpOptions||null,this.get(t.callback||rn.util.fn.noop)},load:function(t){var r=this;try{var n=rn.util.getProfilesFromSharedConfig(l3,this.filename),i=n[this.profile]||{};if(Object.keys(i).length===0)throw rn.util.error(new Error("Profile "+this.profile+" not found"),{code:r.errorCode});if(i.sso_session){if(!i.sso_account_id||!i.sso_role_name)throw rn.util.error(new Error("Profile "+this.profile+" with session "+i.sso_session+' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_session", "sso_role_name". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'),{code:r.errorCode})}else if(!i.sso_start_url||!i.sso_account_id||!i.sso_region||!i.sso_role_name)throw rn.util.error(new Error("Profile "+this.profile+' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'),{code:r.errorCode});this.getToken(this.profile,i,function(s,o){if(s)return t(s);var a={accessToken:o,accountId:i.sso_account_id,roleName:i.sso_role_name};(!r.service||r.service.config.region!==i.sso_region)&&(r.service=new rn.SSO({region:i.sso_region,httpOptions:r.httpOptions})),r.service.getRoleCredentials(a,function(u,c){if(u||!c||!c.roleCredentials)t(rn.util.error(u||new Error('Please log in using "aws sso login"'),{code:r.errorCode}),null);else{if(!c.roleCredentials.accessKeyId||!c.roleCredentials.secretAccessKey||!c.roleCredentials.sessionToken||!c.roleCredentials.expiration)throw rn.util.error(new Error("SSO returns an invalid temporary credential."));r.expired=!1,r.accessKeyId=c.roleCredentials.accessKeyId,r.secretAccessKey=c.roleCredentials.secretAccessKey,r.sessionToken=c.roleCredentials.sessionToken,r.expireTime=new Date(c.roleCredentials.expiration),t(null)}})})}catch(s){t(s)}},getToken:function(t,r,n){var i=this;if(r.sso_session){var s=rn.util.iniLoader,o=s.loadSsoSessionsFrom(),a=o[r.sso_session];Object.assign(r,a);var u=new rn.SSOTokenProvider({profile:t});u.load(function(_){return _?n(_):n(null,u.token)});return}try{var c=9e5,f=fkt.createHash("sha1"),p=f.update(r.sso_start_url).digest("hex")+".json",h=lkt.join(l3.getHomeDir(),".aws","sso","cache",p),g=rn.util.readFileSync(h),v=null;if(g&&(v=JSON.parse(g)),!v)throw rn.util.error(new Error("Cached credentials not found under "+this.profile+" profile. Please make sure you log in with aws sso login first"),{code:i.errorCode});if(!v.startUrl||!v.region||!v.accessToken||!v.expiresAt)throw rn.util.error(new Error("Cached credentials are missing required properties. Try running aws sso login."));if(new Date(v.expiresAt).getTime()-Date.now()<=c)throw rn.util.error(new Error("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile."));return n(null,v.accessToken)}catch(_){return n(_,null)}},refresh:function(t){l3.clearCachedFiles(),this.coalesceRefresh(t||rn.util.fn.callback)}})});var zye=m(()=>{var po=Oe();po.Token=po.util.inherit({constructor:function(t){if(po.util.hideProperties(this,["token"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],arguments.length===1){var t=arguments[0];this.token=t.token,this.expireTime=t.expireTime}},expiryWindow:15,needsRefresh:function(){var t=po.util.date.getDate().getTime(),r=new Date(t+this.expiryWindow*1e3);return this.expireTime&&r>this.expireTime?!0:this.expired||!this.token},get:function(t){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),t&&t(n)}):t&&t()},refresh:function(t){this.expired=!1,t()},coalesceRefresh:function(t,r){var n=this;n.refreshCallbacks.push(t)===1&&n.load(function(s){po.util.arrayEach(n.refreshCallbacks,function(o){r?o(s):po.util.defer(function(){o(s)})}),n.refreshCallbacks.length=0})},load:function(t){t()}});po.Token.addPromisesToClass=function(t){this.prototype.getPromise=po.util.promisifyMethod("get",t),this.prototype.refreshPromise=po.util.promisifyMethod("refresh",t)};po.Token.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise};po.util.addPromises(po.Token)});var Gye=m(()=>{var Zo=Oe();Zo.TokenProviderChain=Zo.util.inherit(Zo.Token,{constructor:function(t){t?this.providers=t:this.providers=Zo.TokenProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(t){var r=this;if(r.providers.length===0)return t(new Error("No providers")),r;if(r.resolveCallbacks.push(t)===1){let o=function(a,u){if(!a&&u||n===i.length){Zo.util.arrayEach(r.resolveCallbacks,function(f){f(a,u)}),r.resolveCallbacks.length=0;return}var c=i[n++];typeof c=="function"?u=c.call():u=c,u.get?u.get(function(f){o(f,f?null:u)}):o(null,u)};var s=o,n=0,i=r.providers.slice(0);o()}return r}});Zo.TokenProviderChain.defaultProviders=[];Zo.TokenProviderChain.addPromisesToClass=function(t){this.prototype.resolvePromise=Zo.util.promisifyMethod("resolve",t)};Zo.TokenProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise};Zo.util.addPromises(Zo.TokenProviderChain)});var Xye=m(()=>{var An=Oe(),pkt=require("crypto"),Vye=require("fs"),dkt=require("path"),yA=An.util.iniLoader,Kye=0,Rp=function(t,r){if(!t[r])throw An.util.error(new Error('Key "'+r+'" not present in SSO Token'),{code:"SSOTokenProviderFailure"})},f3=function(t,r,n){if(r>t)n(null);else throw An.util.error(new Error('SSO Token refresh failed. Please log in using "aws sso login"'),{code:"SSOTokenProviderFailure"})};An.SSOTokenProvider=An.util.inherit(An.Token,{expiryWindow:5*60,constructor:function(t){An.Token.call(this),t=t||{},this.expired=!0,this.profile=t.profile||process.env.AWS_PROFILE||An.util.defaultProfile,this.get(t.callback||An.util.fn.noop)},load:function(t){var r=this,n=yA.loadFrom({isConfig:!0}),i=n[this.profile]||{};if(Object.keys(i).length===0)throw An.util.error(new Error('Profile "'+this.profile+'" not found'),{code:"SSOTokenProviderFailure"});if(!i.sso_session)throw An.util.error(new Error('Profile "'+profileName+'" is missing required property "sso_session".'),{code:"SSOTokenProviderFailure"});var s=i.sso_session,o=yA.loadSsoSessionsFrom(),a=o[s];if(a)if(a.sso_start_url){if(!a.sso_region)throw An.util.error(new Error('Sso session "'+profileName+'" is missing required property "sso_region".'),{code:"SSOTokenProviderFailure"})}else throw An.util.error(new Error('Sso session "'+profileName+'" is missing required property "sso_start_url".'),{code:"SSOTokenProviderFailure"});else throw An.util.error(new Error('Sso session "'+s+'" not found'),{code:"SSOTokenProviderFailure"});var u=pkt.createHash("sha1"),c=u.update(s).digest("hex")+".json",f=dkt.join(yA.getHomeDir(),".aws","sso","cache",c),p=JSON.parse(Vye.readFileSync(f));if(!p)throw An.util.error(new Error('Cached token not found. Please log in using "aws sso login" for profile "'+this.profile+'".'),{code:"SSOTokenProviderFailure"});Rp(p,"accessToken"),Rp(p,"expiresAt");var h=An.util.date.getDate().getTime(),g=new Date(h+this.expiryWindow*1e3),v=new Date(p.expiresAt);if(v>g){r.token=p.accessToken,r.expireTime=v,r.expired=!1,t(null);return}if(h-Kye<30*1e3){f3(h,v,t);return}Rp(p,"clientId"),Rp(p,"clientSecret"),Rp(p,"refreshToken"),(!r.service||r.service.config.region!==a.sso_region)&&(r.service=new An.SSOOIDC({region:a.sso_region}));var _={clientId:p.clientId,clientSecret:p.clientSecret,refreshToken:p.refreshToken,grantType:"refresh_token"};Kye=An.util.date.getDate().getTime(),r.service.createToken(_,function(w,y){if(w||!y)f3(h,v,t);else try{Rp(y,"accessToken"),Rp(y,"expiresIn"),r.expired=!1,r.token=y.accessToken,r.expireTime=new Date(Date.now()+y.expiresIn*1e3),t(null);try{p.accessToken=y.accessToken,p.expiresAt=r.expireTime.toISOString(),p.refreshToken=y.refreshToken,Vye.writeFileSync(f,JSON.stringify(p,null,2))}catch{}}catch{f3(h,v,t)}})},refresh:function(t){yA.clearCachedFiles(),this.coalesceRefresh(t||An.util.fn.callback)}})});var pA=m((K_r,Jye)=>{var Vr=tn(),Zye=k4(),hkt=Zye.isFipsRegion,mkt=Zye.getRealRegion;Vr.isBrowser=function(){return!1};Vr.isNode=function(){return!0};Vr.crypto.lib=require("crypto");Vr.Buffer=require("buffer").Buffer;Vr.domain=require("domain");Vr.stream=require("stream");Vr.url=require("url");Vr.querystring=require("querystring");Vr.environment="nodejs";Vr.createEventStream=Vr.stream.Readable?qve().createEventStream:Lve().createEventStream;Vr.realClock=Mve();Vr.clientSideMonitoring={Publisher:Bve().Publisher,configProvider:Hve()};Vr.iniLoader=Kve().iniLoader;Vr.getSystemErrorName=require("util").getSystemErrorName;Vr.loadConfig=function(e){var t=e.environmentVariableSelector(process.env);if(t!==void 0)return t;var r={};try{r=Vr.iniLoader?Vr.iniLoader.loadFrom({isConfig:!0,filename:process.env[Vr.sharedConfigFileEnv]}):{}}catch{}var n=r[process.env.AWS_PROFILE||Vr.defaultProfile]||{},i=e.configFileSelector(n);return i!==void 0?i:typeof e.default=="function"?e.default():e.default};var ir;Jye.exports=ir=Oe();D4();L4();r0e();n0e();i0e();l0e();f0e();e3();ir.XML.Parser=mye();vye();J4();yye();Pye();Fye();jye();Bye();Uye();Hye();e3();$ye();ir.CredentialProviderChain.defaultProviders=[function(){return new ir.EnvironmentCredentials("AWS")},function(){return new ir.EnvironmentCredentials("AMAZON")},function(){return new ir.SsoCredentials},function(){return new ir.SharedIniFileCredentials},function(){return new ir.ECSCredentials},function(){return new ir.ProcessCredentials},function(){return new ir.TokenFileWebIdentityCredentials},function(){return new ir.EC2MetadataCredentials}];zye();Gye();Xye();ir.TokenProviderChain.defaultProviders=[function(){return new ir.SSOTokenProvider}];var Yye=function(){var e=process.env,t=e.AWS_REGION||e.AMAZON_REGION;if(e[ir.util.configOptInEnv])for(var r=[{filename:e[ir.util.sharedCredentialsFileEnv]},{isConfig:!0,filename:e[ir.util.sharedConfigFileEnv]}],n=ir.util.iniLoader;!t&&r.length;){var i={},s=r.shift();try{i=n.loadFrom(s)}catch(a){if(s.isConfig)throw a}var o=i[e.AWS_PROFILE||ir.util.defaultProfile];t=o&&o.region}return t},xA=function(e){return e==="true"?!0:e==="false"?!1:void 0},gkt={environmentVariableSelector:function(e){return xA(e.AWS_USE_FIPS_ENDPOINT)},configFileSelector:function(e){return xA(e.use_fips_endpoint)},default:!1},vkt={environmentVariableSelector:function(e){return xA(e.AWS_USE_DUALSTACK_ENDPOINT)},configFileSelector:function(e){return xA(e.use_dualstack_endpoint)},default:!1};ir.util.update(ir.Config.prototype.keys,{credentials:function(){var e=null;return new ir.CredentialProviderChain([function(){return new ir.EnvironmentCredentials("AWS")},function(){return new ir.EnvironmentCredentials("AMAZON")},function(){return new ir.SharedIniFileCredentials({disableAssumeRole:!0})}]).resolve(function(t,r){t||(e=r)}),e},credentialProvider:function(){return new ir.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=Yye();return e?mkt(e):void 0},tokenProvider:function(){return new ir.TokenProviderChain},useFipsEndpoint:function(){var e=Yye();return hkt(e)?!0:Vr.loadConfig(gkt)},useDualstackEndpoint:function(){return Vr.loadConfig(vkt)}});ir.config=new ir.Config});var Qye=m(()=>{var p3=Oe();p3.util.update(p3.Lambda.prototype,{setupRequestListeners:function(t){t.operation==="invoke"&&t.addListener("extractData",p3.util.convertPayloadToString)}})});var exe=m((Z_r,ykt)=>{ykt.exports={metadata:{apiVersion:"2014-11-11",endpointPrefix:"lambda",serviceFullName:"AWS Lambda",serviceId:"Lambda",signatureVersion:"v4",protocol:"rest-json"},operations:{AddEventSource:{http:{requestUri:"/2014-11-13/event-source-mappings/"},input:{type:"structure",required:["EventSource","FunctionName","Role"],members:{EventSource:{},FunctionName:{},Role:{},BatchSize:{type:"integer"},Parameters:{shape:"S6"}}},output:{shape:"S7"}},DeleteFunction:{http:{method:"DELETE",requestUri:"/2014-11-13/functions/{FunctionName}",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}}},GetEventSource:{http:{method:"GET",requestUri:"/2014-11-13/event-source-mappings/{UUID}",responseCode:200},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"S7"}},GetFunction:{http:{method:"GET",requestUri:"/2014-11-13/functions/{FunctionName}",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",members:{Configuration:{shape:"Se"},Code:{type:"structure",members:{RepositoryType:{},Location:{}}}}}},GetFunctionConfiguration:{http:{method:"GET",requestUri:"/2014-11-13/functions/{FunctionName}/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{shape:"Se"}},InvokeAsync:{http:{requestUri:"/2014-11-13/functions/{FunctionName}/invoke-async/",responseCode:202},input:{type:"structure",required:["FunctionName","InvokeArgs"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvokeArgs:{shape:"Sq"}},payload:"InvokeArgs"},output:{type:"structure",members:{Status:{location:"statusCode",type:"integer"}}}},ListEventSources:{http:{method:"GET",requestUri:"/2014-11-13/event-source-mappings/",responseCode:200},input:{type:"structure",members:{EventSourceArn:{location:"querystring",locationName:"EventSource"},FunctionName:{location:"querystring",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},EventSources:{type:"list",member:{shape:"S7"}}}}},ListFunctions:{http:{method:"GET",requestUri:"/2014-11-13/functions/",responseCode:200},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Functions:{type:"list",member:{shape:"Se"}}}}},RemoveEventSource:{http:{method:"DELETE",requestUri:"/2014-11-13/event-source-mappings/{UUID}",responseCode:204},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}}},UpdateFunctionConfiguration:{http:{method:"PUT",requestUri:"/2014-11-13/functions/{FunctionName}/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Role:{location:"querystring",locationName:"Role"},Handler:{location:"querystring",locationName:"Handler"},Description:{location:"querystring",locationName:"Description"},Timeout:{location:"querystring",locationName:"Timeout",type:"integer"},MemorySize:{location:"querystring",locationName:"MemorySize",type:"integer"}}},output:{shape:"Se"}},UploadFunction:{http:{method:"PUT",requestUri:"/2014-11-13/functions/{FunctionName}",responseCode:201},input:{type:"structure",required:["FunctionName","FunctionZip","Runtime","Role","Handler","Mode"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},FunctionZip:{shape:"Sq"},Runtime:{location:"querystring",locationName:"Runtime"},Role:{location:"querystring",locationName:"Role"},Handler:{location:"querystring",locationName:"Handler"},Mode:{location:"querystring",locationName:"Mode"},Description:{location:"querystring",locationName:"Description"},Timeout:{location:"querystring",locationName:"Timeout",type:"integer"},MemorySize:{location:"querystring",locationName:"MemorySize",type:"integer"}},payload:"FunctionZip"},output:{shape:"Se"}}},shapes:{S6:{type:"map",key:{},value:{}},S7:{type:"structure",members:{UUID:{},BatchSize:{type:"integer"},EventSource:{},FunctionName:{},Parameters:{shape:"S6"},Role:{},LastModified:{type:"timestamp"},IsActive:{type:"boolean"},Status:{}}},Se:{type:"structure",members:{FunctionName:{},FunctionARN:{},ConfigurationId:{},Runtime:{},Role:{},Handler:{},Mode:{},CodeSize:{type:"long"},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},LastModified:{type:"timestamp"}}},Sq:{type:"blob",streaming:!0}}}});var txe=m((J_r,xkt)=>{xkt.exports={pagination:{ListEventSources:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"EventSources"},ListFunctions:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"Functions"}}}});var rxe=m((Q_r,_kt)=>{_kt.exports={version:"2.0",metadata:{apiVersion:"2015-03-31",endpointPrefix:"lambda",protocol:"rest-json",serviceFullName:"AWS Lambda",serviceId:"Lambda",signatureVersion:"v4",uid:"lambda-2015-03-31"},operations:{AddLayerVersionPermission:{http:{requestUri:"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy",responseCode:201},input:{type:"structure",required:["LayerName","VersionNumber","StatementId","Action","Principal"],members:{LayerName:{location:"uri",locationName:"LayerName"},VersionNumber:{location:"uri",locationName:"VersionNumber",type:"long"},StatementId:{},Action:{},Principal:{},OrganizationId:{},RevisionId:{location:"querystring",locationName:"RevisionId"}}},output:{type:"structure",members:{Statement:{},RevisionId:{}}}},AddPermission:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/policy",responseCode:201},input:{type:"structure",required:["FunctionName","StatementId","Action","Principal"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{},Action:{},Principal:{},SourceArn:{},SourceAccount:{},EventSourceToken:{},Qualifier:{location:"querystring",locationName:"Qualifier"},RevisionId:{},PrincipalOrgID:{},FunctionUrlAuthType:{}}},output:{type:"structure",members:{Statement:{}}}},CreateAlias:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/aliases",responseCode:201},input:{type:"structure",required:["FunctionName","Name","FunctionVersion"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{},FunctionVersion:{},Description:{},RoutingConfig:{shape:"Sp"}}},output:{shape:"St"}},CreateCodeSigningConfig:{http:{requestUri:"/2020-04-22/code-signing-configs/",responseCode:201},input:{type:"structure",required:["AllowedPublishers"],members:{Description:{},AllowedPublishers:{shape:"Sw"},CodeSigningPolicies:{shape:"Sy"}}},output:{type:"structure",required:["CodeSigningConfig"],members:{CodeSigningConfig:{shape:"S11"}}}},CreateEventSourceMapping:{http:{requestUri:"/2015-03-31/event-source-mappings/",responseCode:202},input:{type:"structure",required:["FunctionName"],members:{EventSourceArn:{},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"},FilterCriteria:{shape:"S18"},MaximumBatchingWindowInSeconds:{type:"integer"},ParallelizationFactor:{type:"integer"},StartingPosition:{},StartingPositionTimestamp:{type:"timestamp"},DestinationConfig:{shape:"S1g"},MaximumRecordAgeInSeconds:{type:"integer"},BisectBatchOnFunctionError:{type:"boolean"},MaximumRetryAttempts:{type:"integer"},TumblingWindowInSeconds:{type:"integer"},Topics:{shape:"S1o"},Queues:{shape:"S1q"},SourceAccessConfigurations:{shape:"S1s"},SelfManagedEventSource:{shape:"S1w"},FunctionResponseTypes:{shape:"S21"},AmazonManagedKafkaEventSourceConfig:{shape:"S23"},SelfManagedKafkaEventSourceConfig:{shape:"S24"},ScalingConfig:{shape:"S25"},DocumentDBEventSourceConfig:{shape:"S27"}}},output:{shape:"S2b"}},CreateFunction:{http:{requestUri:"/2015-03-31/functions",responseCode:201},input:{type:"structure",required:["FunctionName","Role","Code"],members:{FunctionName:{},Runtime:{},Role:{},Handler:{},Code:{type:"structure",members:{ZipFile:{shape:"S2h"},S3Bucket:{},S3Key:{},S3ObjectVersion:{},ImageUri:{}}},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},Publish:{type:"boolean"},VpcConfig:{shape:"S2o"},PackageType:{},DeadLetterConfig:{shape:"S2u"},Environment:{shape:"S2w"},KMSKeyArn:{},TracingConfig:{shape:"S31"},Tags:{shape:"S33"},Layers:{shape:"S36"},FileSystemConfigs:{shape:"S38"},ImageConfig:{shape:"S3c"},CodeSigningConfigArn:{},Architectures:{shape:"S3f"},EphemeralStorage:{shape:"S3h"},SnapStart:{shape:"S3j"}}},output:{shape:"S3l"}},CreateFunctionUrlConfig:{http:{requestUri:"/2021-10-31/functions/{FunctionName}/url",responseCode:201},input:{type:"structure",required:["FunctionName","AuthType"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"},AuthType:{},Cors:{shape:"S4c"}}},output:{type:"structure",required:["FunctionUrl","FunctionArn","AuthType","CreationTime"],members:{FunctionUrl:{},FunctionArn:{},AuthType:{},Cors:{shape:"S4c"},CreationTime:{}}}},DeleteAlias:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}/aliases/{Name}",responseCode:204},input:{type:"structure",required:["FunctionName","Name"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{location:"uri",locationName:"Name"}}}},DeleteCodeSigningConfig:{http:{method:"DELETE",requestUri:"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",responseCode:204},input:{type:"structure",required:["CodeSigningConfigArn"],members:{CodeSigningConfigArn:{location:"uri",locationName:"CodeSigningConfigArn"}}},output:{type:"structure",members:{}}},DeleteEventSourceMapping:{http:{method:"DELETE",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"S2b"}},DeleteFunction:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}}},DeleteFunctionCodeSigningConfig:{http:{method:"DELETE",requestUri:"/2020-06-30/functions/{FunctionName}/code-signing-config",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}}},DeleteFunctionConcurrency:{http:{method:"DELETE",requestUri:"/2017-10-31/functions/{FunctionName}/concurrency",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}}},DeleteFunctionEventInvokeConfig:{http:{method:"DELETE",requestUri:"/2019-09-25/functions/{FunctionName}/event-invoke-config",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}}},DeleteFunctionUrlConfig:{http:{method:"DELETE",requestUri:"/2021-10-31/functions/{FunctionName}/url",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}}},DeleteLayerVersion:{http:{method:"DELETE",requestUri:"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}",responseCode:204},input:{type:"structure",required:["LayerName","VersionNumber"],members:{LayerName:{location:"uri",locationName:"LayerName"},VersionNumber:{location:"uri",locationName:"VersionNumber",type:"long"}}}},DeleteProvisionedConcurrencyConfig:{http:{method:"DELETE",requestUri:"/2019-09-30/functions/{FunctionName}/provisioned-concurrency",responseCode:204},input:{type:"structure",required:["FunctionName","Qualifier"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}}},GetAccountSettings:{http:{method:"GET",requestUri:"/2016-08-19/account-settings/",responseCode:200},input:{type:"structure",members:{}},output:{type:"structure",members:{AccountLimit:{type:"structure",members:{TotalCodeSize:{type:"long"},CodeSizeUnzipped:{type:"long"},CodeSizeZipped:{type:"long"},ConcurrentExecutions:{type:"integer"},UnreservedConcurrentExecutions:{type:"integer"}}},AccountUsage:{type:"structure",members:{TotalCodeSize:{type:"long"},FunctionCount:{type:"long"}}}}}},GetAlias:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/aliases/{Name}",responseCode:200},input:{type:"structure",required:["FunctionName","Name"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{location:"uri",locationName:"Name"}}},output:{shape:"St"}},GetCodeSigningConfig:{http:{method:"GET",requestUri:"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",responseCode:200},input:{type:"structure",required:["CodeSigningConfigArn"],members:{CodeSigningConfigArn:{location:"uri",locationName:"CodeSigningConfigArn"}}},output:{type:"structure",required:["CodeSigningConfig"],members:{CodeSigningConfig:{shape:"S11"}}}},GetEventSourceMapping:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:200},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"S2b"}},GetFunction:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{Configuration:{shape:"S3l"},Code:{type:"structure",members:{RepositoryType:{},Location:{},ImageUri:{},ResolvedImageUri:{}}},Tags:{shape:"S33"},Concurrency:{shape:"S5b"}}}},GetFunctionCodeSigningConfig:{http:{method:"GET",requestUri:"/2020-06-30/functions/{FunctionName}/code-signing-config",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",required:["CodeSigningConfigArn","FunctionName"],members:{CodeSigningConfigArn:{},FunctionName:{}}}},GetFunctionConcurrency:{http:{method:"GET",requestUri:"/2019-09-30/functions/{FunctionName}/concurrency",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",members:{ReservedConcurrentExecutions:{type:"integer"}}}},GetFunctionConfiguration:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{shape:"S3l"}},GetFunctionEventInvokeConfig:{http:{method:"GET",requestUri:"/2019-09-25/functions/{FunctionName}/event-invoke-config",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{shape:"S5j"}},GetFunctionUrlConfig:{http:{method:"GET",requestUri:"/2021-10-31/functions/{FunctionName}/url",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",required:["FunctionUrl","FunctionArn","AuthType","CreationTime","LastModifiedTime"],members:{FunctionUrl:{},FunctionArn:{},AuthType:{},Cors:{shape:"S4c"},CreationTime:{},LastModifiedTime:{}}}},GetLayerVersion:{http:{method:"GET",requestUri:"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}",responseCode:200},input:{type:"structure",required:["LayerName","VersionNumber"],members:{LayerName:{location:"uri",locationName:"LayerName"},VersionNumber:{location:"uri",locationName:"VersionNumber",type:"long"}}},output:{shape:"S5p"}},GetLayerVersionByArn:{http:{method:"GET",requestUri:"/2018-10-31/layers?find=LayerVersion",responseCode:200},input:{type:"structure",required:["Arn"],members:{Arn:{location:"querystring",locationName:"Arn"}}},output:{shape:"S5p"}},GetLayerVersionPolicy:{http:{method:"GET",requestUri:"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy",responseCode:200},input:{type:"structure",required:["LayerName","VersionNumber"],members:{LayerName:{location:"uri",locationName:"LayerName"},VersionNumber:{location:"uri",locationName:"VersionNumber",type:"long"}}},output:{type:"structure",members:{Policy:{},RevisionId:{}}}},GetPolicy:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/policy",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{Policy:{},RevisionId:{}}}},GetProvisionedConcurrencyConfig:{http:{method:"GET",requestUri:"/2019-09-30/functions/{FunctionName}/provisioned-concurrency",responseCode:200},input:{type:"structure",required:["FunctionName","Qualifier"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{RequestedProvisionedConcurrentExecutions:{type:"integer"},AvailableProvisionedConcurrentExecutions:{type:"integer"},AllocatedProvisionedConcurrentExecutions:{type:"integer"},Status:{},StatusReason:{},LastModified:{}}}},GetRuntimeManagementConfig:{http:{method:"GET",requestUri:"/2021-07-20/functions/{FunctionName}/runtime-management-config",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{UpdateRuntimeOn:{},RuntimeVersionArn:{},FunctionArn:{}}}},Invoke:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/invocations"},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvocationType:{location:"header",locationName:"X-Amz-Invocation-Type"},LogType:{location:"header",locationName:"X-Amz-Log-Type"},ClientContext:{location:"header",locationName:"X-Amz-Client-Context"},Payload:{shape:"S2h"},Qualifier:{location:"querystring",locationName:"Qualifier"}},payload:"Payload"},output:{type:"structure",members:{StatusCode:{location:"statusCode",type:"integer"},FunctionError:{location:"header",locationName:"X-Amz-Function-Error"},LogResult:{location:"header",locationName:"X-Amz-Log-Result"},Payload:{shape:"S2h"},ExecutedVersion:{location:"header",locationName:"X-Amz-Executed-Version"}},payload:"Payload"}},InvokeAsync:{http:{requestUri:"/2014-11-13/functions/{FunctionName}/invoke-async/",responseCode:202},input:{type:"structure",required:["FunctionName","InvokeArgs"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvokeArgs:{type:"blob",streaming:!0}},deprecated:!0,payload:"InvokeArgs"},output:{type:"structure",members:{Status:{location:"statusCode",type:"integer"}},deprecated:!0},deprecated:!0},ListAliases:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/aliases",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},FunctionVersion:{location:"querystring",locationName:"FunctionVersion"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Aliases:{type:"list",member:{shape:"St"}}}}},ListCodeSigningConfigs:{http:{method:"GET",requestUri:"/2020-04-22/code-signing-configs/",responseCode:200},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},CodeSigningConfigs:{type:"list",member:{shape:"S11"}}}}},ListEventSourceMappings:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/",responseCode:200},input:{type:"structure",members:{EventSourceArn:{location:"querystring",locationName:"EventSourceArn"},FunctionName:{location:"querystring",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},EventSourceMappings:{type:"list",member:{shape:"S2b"}}}}},ListFunctionEventInvokeConfigs:{http:{method:"GET",requestUri:"/2019-09-25/functions/{FunctionName}/event-invoke-config/list",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{FunctionEventInvokeConfigs:{type:"list",member:{shape:"S5j"}},NextMarker:{}}}},ListFunctionUrlConfigs:{http:{method:"GET",requestUri:"/2021-10-31/functions/{FunctionName}/urls",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",required:["FunctionUrlConfigs"],members:{FunctionUrlConfigs:{type:"list",member:{type:"structure",required:["FunctionUrl","FunctionArn","CreationTime","LastModifiedTime","AuthType"],members:{FunctionUrl:{},FunctionArn:{},CreationTime:{},LastModifiedTime:{},Cors:{shape:"S4c"},AuthType:{}}}},NextMarker:{}}}},ListFunctions:{http:{method:"GET",requestUri:"/2015-03-31/functions/",responseCode:200},input:{type:"structure",members:{MasterRegion:{location:"querystring",locationName:"MasterRegion"},FunctionVersion:{location:"querystring",locationName:"FunctionVersion"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Functions:{shape:"S73"}}}},ListFunctionsByCodeSigningConfig:{http:{method:"GET",requestUri:"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions",responseCode:200},input:{type:"structure",required:["CodeSigningConfigArn"],members:{CodeSigningConfigArn:{location:"uri",locationName:"CodeSigningConfigArn"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},FunctionArns:{type:"list",member:{}}}}},ListLayerVersions:{http:{method:"GET",requestUri:"/2018-10-31/layers/{LayerName}/versions",responseCode:200},input:{type:"structure",required:["LayerName"],members:{CompatibleRuntime:{location:"querystring",locationName:"CompatibleRuntime"},LayerName:{location:"uri",locationName:"LayerName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"},CompatibleArchitecture:{location:"querystring",locationName:"CompatibleArchitecture"}}},output:{type:"structure",members:{NextMarker:{},LayerVersions:{type:"list",member:{shape:"S7b"}}}}},ListLayers:{http:{method:"GET",requestUri:"/2018-10-31/layers",responseCode:200},input:{type:"structure",members:{CompatibleRuntime:{location:"querystring",locationName:"CompatibleRuntime"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"},CompatibleArchitecture:{location:"querystring",locationName:"CompatibleArchitecture"}}},output:{type:"structure",members:{NextMarker:{},Layers:{type:"list",member:{type:"structure",members:{LayerName:{},LayerArn:{},LatestMatchingVersion:{shape:"S7b"}}}}}}},ListProvisionedConcurrencyConfigs:{http:{method:"GET",requestUri:"/2019-09-30/functions/{FunctionName}/provisioned-concurrency?List=ALL",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{ProvisionedConcurrencyConfigs:{type:"list",member:{type:"structure",members:{FunctionArn:{},RequestedProvisionedConcurrentExecutions:{type:"integer"},AvailableProvisionedConcurrentExecutions:{type:"integer"},AllocatedProvisionedConcurrentExecutions:{type:"integer"},Status:{},StatusReason:{},LastModified:{}}}},NextMarker:{}}}},ListTags:{http:{method:"GET",requestUri:"/2017-03-31/tags/{ARN}"},input:{type:"structure",required:["Resource"],members:{Resource:{location:"uri",locationName:"ARN"}}},output:{type:"structure",members:{Tags:{shape:"S33"}}}},ListVersionsByFunction:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Versions:{shape:"S73"}}}},PublishLayerVersion:{http:{requestUri:"/2018-10-31/layers/{LayerName}/versions",responseCode:201},input:{type:"structure",required:["LayerName","Content"],members:{LayerName:{location:"uri",locationName:"LayerName"},Description:{},Content:{type:"structure",members:{S3Bucket:{},S3Key:{},S3ObjectVersion:{},ZipFile:{shape:"S2h"}}},CompatibleRuntimes:{shape:"S5s"},LicenseInfo:{},CompatibleArchitectures:{shape:"S5u"}}},output:{type:"structure",members:{Content:{shape:"S5q"},LayerArn:{},LayerVersionArn:{},Description:{},CreatedDate:{},Version:{type:"long"},CompatibleRuntimes:{shape:"S5s"},LicenseInfo:{},CompatibleArchitectures:{shape:"S5u"}}}},PublishVersion:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/versions",responseCode:201},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},CodeSha256:{},Description:{},RevisionId:{}}},output:{shape:"S3l"}},PutFunctionCodeSigningConfig:{http:{method:"PUT",requestUri:"/2020-06-30/functions/{FunctionName}/code-signing-config",responseCode:200},input:{type:"structure",required:["CodeSigningConfigArn","FunctionName"],members:{CodeSigningConfigArn:{},FunctionName:{location:"uri",locationName:"FunctionName"}}},output:{type:"structure",required:["CodeSigningConfigArn","FunctionName"],members:{CodeSigningConfigArn:{},FunctionName:{}}}},PutFunctionConcurrency:{http:{method:"PUT",requestUri:"/2017-10-31/functions/{FunctionName}/concurrency",responseCode:200},input:{type:"structure",required:["FunctionName","ReservedConcurrentExecutions"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},ReservedConcurrentExecutions:{type:"integer"}}},output:{shape:"S5b"}},PutFunctionEventInvokeConfig:{http:{method:"PUT",requestUri:"/2019-09-25/functions/{FunctionName}/event-invoke-config",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"},MaximumRetryAttempts:{type:"integer"},MaximumEventAgeInSeconds:{type:"integer"},DestinationConfig:{shape:"S1g"}}},output:{shape:"S5j"}},PutProvisionedConcurrencyConfig:{http:{method:"PUT",requestUri:"/2019-09-30/functions/{FunctionName}/provisioned-concurrency",responseCode:202},input:{type:"structure",required:["FunctionName","Qualifier","ProvisionedConcurrentExecutions"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"},ProvisionedConcurrentExecutions:{type:"integer"}}},output:{type:"structure",members:{RequestedProvisionedConcurrentExecutions:{type:"integer"},AvailableProvisionedConcurrentExecutions:{type:"integer"},AllocatedProvisionedConcurrentExecutions:{type:"integer"},Status:{},StatusReason:{},LastModified:{}}}},PutRuntimeManagementConfig:{http:{method:"PUT",requestUri:"/2021-07-20/functions/{FunctionName}/runtime-management-config",responseCode:200},input:{type:"structure",required:["FunctionName","UpdateRuntimeOn"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"},UpdateRuntimeOn:{},RuntimeVersionArn:{}}},output:{type:"structure",required:["UpdateRuntimeOn","FunctionArn"],members:{UpdateRuntimeOn:{},FunctionArn:{},RuntimeVersionArn:{}}}},RemoveLayerVersionPermission:{http:{method:"DELETE",requestUri:"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}",responseCode:204},input:{type:"structure",required:["LayerName","VersionNumber","StatementId"],members:{LayerName:{location:"uri",locationName:"LayerName"},VersionNumber:{location:"uri",locationName:"VersionNumber",type:"long"},StatementId:{location:"uri",locationName:"StatementId"},RevisionId:{location:"querystring",locationName:"RevisionId"}}}},RemovePermission:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}/policy/{StatementId}",responseCode:204},input:{type:"structure",required:["FunctionName","StatementId"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{location:"uri",locationName:"StatementId"},Qualifier:{location:"querystring",locationName:"Qualifier"},RevisionId:{location:"querystring",locationName:"RevisionId"}}}},TagResource:{http:{requestUri:"/2017-03-31/tags/{ARN}",responseCode:204},input:{type:"structure",required:["Resource","Tags"],members:{Resource:{location:"uri",locationName:"ARN"},Tags:{shape:"S33"}}}},UntagResource:{http:{method:"DELETE",requestUri:"/2017-03-31/tags/{ARN}",responseCode:204},input:{type:"structure",required:["Resource","TagKeys"],members:{Resource:{location:"uri",locationName:"ARN"},TagKeys:{location:"querystring",locationName:"tagKeys",type:"list",member:{}}}}},UpdateAlias:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/aliases/{Name}",responseCode:200},input:{type:"structure",required:["FunctionName","Name"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{location:"uri",locationName:"Name"},FunctionVersion:{},Description:{},RoutingConfig:{shape:"Sp"},RevisionId:{}}},output:{shape:"St"}},UpdateCodeSigningConfig:{http:{method:"PUT",requestUri:"/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",responseCode:200},input:{type:"structure",required:["CodeSigningConfigArn"],members:{CodeSigningConfigArn:{location:"uri",locationName:"CodeSigningConfigArn"},Description:{},AllowedPublishers:{shape:"Sw"},CodeSigningPolicies:{shape:"Sy"}}},output:{type:"structure",required:["CodeSigningConfig"],members:{CodeSigningConfig:{shape:"S11"}}}},UpdateEventSourceMapping:{http:{method:"PUT",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"},FilterCriteria:{shape:"S18"},MaximumBatchingWindowInSeconds:{type:"integer"},DestinationConfig:{shape:"S1g"},MaximumRecordAgeInSeconds:{type:"integer"},BisectBatchOnFunctionError:{type:"boolean"},MaximumRetryAttempts:{type:"integer"},ParallelizationFactor:{type:"integer"},SourceAccessConfigurations:{shape:"S1s"},TumblingWindowInSeconds:{type:"integer"},FunctionResponseTypes:{shape:"S21"},ScalingConfig:{shape:"S25"},DocumentDBEventSourceConfig:{shape:"S27"}}},output:{shape:"S2b"}},UpdateFunctionCode:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/code",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},ZipFile:{shape:"S2h"},S3Bucket:{},S3Key:{},S3ObjectVersion:{},ImageUri:{},Publish:{type:"boolean"},DryRun:{type:"boolean"},RevisionId:{},Architectures:{shape:"S3f"}}},output:{shape:"S3l"}},UpdateFunctionConfiguration:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Role:{},Handler:{},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},VpcConfig:{shape:"S2o"},Environment:{shape:"S2w"},Runtime:{},DeadLetterConfig:{shape:"S2u"},KMSKeyArn:{},TracingConfig:{shape:"S31"},RevisionId:{},Layers:{shape:"S36"},FileSystemConfigs:{shape:"S38"},ImageConfig:{shape:"S3c"},EphemeralStorage:{shape:"S3h"},SnapStart:{shape:"S3j"}}},output:{shape:"S3l"}},UpdateFunctionEventInvokeConfig:{http:{requestUri:"/2019-09-25/functions/{FunctionName}/event-invoke-config",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"},MaximumRetryAttempts:{type:"integer"},MaximumEventAgeInSeconds:{type:"integer"},DestinationConfig:{shape:"S1g"}}},output:{shape:"S5j"}},UpdateFunctionUrlConfig:{http:{method:"PUT",requestUri:"/2021-10-31/functions/{FunctionName}/url",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"},AuthType:{},Cors:{shape:"S4c"}}},output:{type:"structure",required:["FunctionUrl","FunctionArn","AuthType","CreationTime","LastModifiedTime"],members:{FunctionUrl:{},FunctionArn:{},AuthType:{},Cors:{shape:"S4c"},CreationTime:{},LastModifiedTime:{}}}}},shapes:{Sp:{type:"structure",members:{AdditionalVersionWeights:{type:"map",key:{},value:{type:"double"}}}},St:{type:"structure",members:{AliasArn:{},Name:{},FunctionVersion:{},Description:{},RoutingConfig:{shape:"Sp"},RevisionId:{}}},Sw:{type:"structure",required:["SigningProfileVersionArns"],members:{SigningProfileVersionArns:{type:"list",member:{}}}},Sy:{type:"structure",members:{UntrustedArtifactOnDeployment:{}}},S11:{type:"structure",required:["CodeSigningConfigId","CodeSigningConfigArn","AllowedPublishers","CodeSigningPolicies","LastModified"],members:{CodeSigningConfigId:{},CodeSigningConfigArn:{},Description:{},AllowedPublishers:{shape:"Sw"},CodeSigningPolicies:{shape:"Sy"},LastModified:{}}},S18:{type:"structure",members:{Filters:{type:"list",member:{type:"structure",members:{Pattern:{}}}}}},S1g:{type:"structure",members:{OnSuccess:{type:"structure",members:{Destination:{}}},OnFailure:{type:"structure",members:{Destination:{}}}}},S1o:{type:"list",member:{}},S1q:{type:"list",member:{}},S1s:{type:"list",member:{type:"structure",members:{Type:{},URI:{}}}},S1w:{type:"structure",members:{Endpoints:{type:"map",key:{},value:{type:"list",member:{}}}}},S21:{type:"list",member:{}},S23:{type:"structure",members:{ConsumerGroupId:{}}},S24:{type:"structure",members:{ConsumerGroupId:{}}},S25:{type:"structure",members:{MaximumConcurrency:{type:"integer"}}},S27:{type:"structure",members:{DatabaseName:{},CollectionName:{},FullDocument:{}}},S2b:{type:"structure",members:{UUID:{},StartingPosition:{},StartingPositionTimestamp:{type:"timestamp"},BatchSize:{type:"integer"},MaximumBatchingWindowInSeconds:{type:"integer"},ParallelizationFactor:{type:"integer"},EventSourceArn:{},FilterCriteria:{shape:"S18"},FunctionArn:{},LastModified:{type:"timestamp"},LastProcessingResult:{},State:{},StateTransitionReason:{},DestinationConfig:{shape:"S1g"},Topics:{shape:"S1o"},Queues:{shape:"S1q"},SourceAccessConfigurations:{shape:"S1s"},SelfManagedEventSource:{shape:"S1w"},MaximumRecordAgeInSeconds:{type:"integer"},BisectBatchOnFunctionError:{type:"boolean"},MaximumRetryAttempts:{type:"integer"},TumblingWindowInSeconds:{type:"integer"},FunctionResponseTypes:{shape:"S21"},AmazonManagedKafkaEventSourceConfig:{shape:"S23"},SelfManagedKafkaEventSourceConfig:{shape:"S24"},ScalingConfig:{shape:"S25"},DocumentDBEventSourceConfig:{shape:"S27"}}},S2h:{type:"blob",sensitive:!0},S2o:{type:"structure",members:{SubnetIds:{shape:"S2p"},SecurityGroupIds:{shape:"S2r"}}},S2p:{type:"list",member:{}},S2r:{type:"list",member:{}},S2u:{type:"structure",members:{TargetArn:{}}},S2w:{type:"structure",members:{Variables:{shape:"S2x"}}},S2x:{type:"map",key:{type:"string",sensitive:!0},value:{type:"string",sensitive:!0},sensitive:!0},S31:{type:"structure",members:{Mode:{}}},S33:{type:"map",key:{},value:{}},S36:{type:"list",member:{}},S38:{type:"list",member:{type:"structure",required:["Arn","LocalMountPath"],members:{Arn:{},LocalMountPath:{}}}},S3c:{type:"structure",members:{EntryPoint:{shape:"S3d"},Command:{shape:"S3d"},WorkingDirectory:{}}},S3d:{type:"list",member:{}},S3f:{type:"list",member:{}},S3h:{type:"structure",required:["Size"],members:{Size:{type:"integer"}}},S3j:{type:"structure",members:{ApplyOn:{}}},S3l:{type:"structure",members:{FunctionName:{},FunctionArn:{},Runtime:{},Role:{},Handler:{},CodeSize:{type:"long"},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},LastModified:{},CodeSha256:{},Version:{},VpcConfig:{type:"structure",members:{SubnetIds:{shape:"S2p"},SecurityGroupIds:{shape:"S2r"},VpcId:{}}},DeadLetterConfig:{shape:"S2u"},Environment:{type:"structure",members:{Variables:{shape:"S2x"},Error:{type:"structure",members:{ErrorCode:{},Message:{shape:"S3t"}}}}},KMSKeyArn:{},TracingConfig:{type:"structure",members:{Mode:{}}},MasterArn:{},RevisionId:{},Layers:{type:"list",member:{type:"structure",members:{Arn:{},CodeSize:{type:"long"},SigningProfileVersionArn:{},SigningJobArn:{}}}},State:{},StateReason:{},StateReasonCode:{},LastUpdateStatus:{},LastUpdateStatusReason:{},LastUpdateStatusReasonCode:{},FileSystemConfigs:{shape:"S38"},PackageType:{},ImageConfigResponse:{type:"structure",members:{ImageConfig:{shape:"S3c"},Error:{type:"structure",members:{ErrorCode:{},Message:{shape:"S3t"}}}}},SigningProfileVersionArn:{},SigningJobArn:{},Architectures:{shape:"S3f"},EphemeralStorage:{shape:"S3h"},SnapStart:{type:"structure",members:{ApplyOn:{},OptimizationStatus:{}}},RuntimeVersionConfig:{type:"structure",members:{RuntimeVersionArn:{},Error:{type:"structure",members:{ErrorCode:{},Message:{shape:"S3t"}}}}}}},S3t:{type:"string",sensitive:!0},S4c:{type:"structure",members:{AllowCredentials:{type:"boolean"},AllowHeaders:{shape:"S4e"},AllowMethods:{type:"list",member:{}},AllowOrigins:{type:"list",member:{}},ExposeHeaders:{shape:"S4e"},MaxAge:{type:"integer"}}},S4e:{type:"list",member:{}},S5b:{type:"structure",members:{ReservedConcurrentExecutions:{type:"integer"}}},S5j:{type:"structure",members:{LastModified:{type:"timestamp"},FunctionArn:{},MaximumRetryAttempts:{type:"integer"},MaximumEventAgeInSeconds:{type:"integer"},DestinationConfig:{shape:"S1g"}}},S5p:{type:"structure",members:{Content:{shape:"S5q"},LayerArn:{},LayerVersionArn:{},Description:{},CreatedDate:{},Version:{type:"long"},CompatibleRuntimes:{shape:"S5s"},LicenseInfo:{},CompatibleArchitectures:{shape:"S5u"}}},S5q:{type:"structure",members:{Location:{},CodeSha256:{},CodeSize:{type:"long"},SigningProfileVersionArn:{},SigningJobArn:{}}},S5s:{type:"list",member:{}},S5u:{type:"list",member:{}},S73:{type:"list",member:{shape:"S3l"}},S7b:{type:"structure",members:{LayerVersionArn:{},Version:{type:"long"},Description:{},CreatedDate:{},CompatibleRuntimes:{shape:"S5s"},LicenseInfo:{},CompatibleArchitectures:{shape:"S5u"}}}}}});var nxe=m((ebr,bkt)=>{bkt.exports={pagination:{ListAliases:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"Aliases"},ListCodeSigningConfigs:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"CodeSigningConfigs"},ListEventSourceMappings:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"EventSourceMappings"},ListFunctionEventInvokeConfigs:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"FunctionEventInvokeConfigs"},ListFunctionUrlConfigs:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"FunctionUrlConfigs"},ListFunctions:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"Functions"},ListFunctionsByCodeSigningConfig:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"FunctionArns"},ListLayerVersions:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"LayerVersions"},ListLayers:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"Layers"},ListProvisionedConcurrencyConfigs:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"ProvisionedConcurrencyConfigs"},ListVersionsByFunction:{input_token:"Marker",limit_key:"MaxItems",output_token:"NextMarker",result_key:"Versions"}}}});var ixe=m((tbr,wkt)=>{wkt.exports={version:2,waiters:{FunctionExists:{delay:1,operation:"GetFunction",maxAttempts:20,acceptors:[{state:"success",matcher:"status",expected:200},{state:"retry",matcher:"error",expected:"ResourceNotFoundException"}]},FunctionActive:{delay:5,maxAttempts:60,operation:"GetFunctionConfiguration",description:"Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.",acceptors:[{state:"success",matcher:"path",argument:"State",expected:"Active"},{state:"failure",matcher:"path",argument:"State",expected:"Failed"},{state:"retry",matcher:"path",argument:"State",expected:"Pending"}]},FunctionUpdated:{delay:5,maxAttempts:60,operation:"GetFunctionConfiguration",description:"Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.",acceptors:[{state:"success",matcher:"path",argument:"LastUpdateStatus",expected:"Successful"},{state:"failure",matcher:"path",argument:"LastUpdateStatus",expected:"Failed"},{state:"retry",matcher:"path",argument:"LastUpdateStatus",expected:"InProgress"}]},FunctionActiveV2:{delay:1,maxAttempts:300,operation:"GetFunction",description:"Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.",acceptors:[{state:"success",matcher:"path",argument:"Configuration.State",expected:"Active"},{state:"failure",matcher:"path",argument:"Configuration.State",expected:"Failed"},{state:"retry",matcher:"path",argument:"Configuration.State",expected:"Pending"}]},FunctionUpdatedV2:{delay:1,maxAttempts:300,operation:"GetFunction",description:"Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunction API. This should be used after function updates.",acceptors:[{state:"success",matcher:"path",argument:"Configuration.LastUpdateStatus",expected:"Successful"},{state:"failure",matcher:"path",argument:"Configuration.LastUpdateStatus",expected:"Failed"},{state:"retry",matcher:"path",argument:"Configuration.LastUpdateStatus",expected:"InProgress"}]},PublishedVersionActive:{delay:5,maxAttempts:312,operation:"GetFunctionConfiguration",description:"Waits for the published version's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new version is published.",acceptors:[{state:"success",matcher:"path",argument:"State",expected:"Active"},{state:"failure",matcher:"path",argument:"State",expected:"Failed"},{state:"retry",matcher:"path",argument:"State",expected:"Pending"}]}}}});var oxe=m((rbr,sxe)=>{pA();var _A=Oe(),Ekt=_A.Service,d3=_A.apiLoader;d3.services.lambda={};_A.Lambda=Ekt.defineService("lambda",["2014-11-11","2015-03-31"]);Qye();Object.defineProperty(d3.services.lambda,"2014-11-11",{get:function(){var t=exe();return t.paginators=txe().pagination,t},enumerable:!0,configurable:!0});Object.defineProperty(d3.services.lambda,"2015-03-31",{get:function(){var t=rxe();return t.paginators=nxe().pagination,t.waiters=ixe().waiters,t},enumerable:!0,configurable:!0});sxe.exports=_A.Lambda});var x3=m((nbr,mxe)=>{function axe(e){return Array.isArray(e)?e:[e]}var fxe="",uxe=" ",h3="\\",Skt=/^\s+$/,Tkt=/(?:[^\\]|^)\\$/,Akt=/^\\!/,Ckt=/^\\#/,Rkt=/\r?\n/g,Okt=/^\.*\/|^\.+$/,m3="/",pxe="node-ignore";typeof Symbol<"u"&&(pxe=Symbol.for("node-ignore"));var cxe=pxe,Ikt=(e,t,r)=>Object.defineProperty(e,t,{value:r}),Nkt=/([0-z])-([0-z])/g,dxe=()=>!1,qkt=e=>e.replace(Nkt,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:fxe),kkt=e=>{let{length:t}=e;return e.slice(0,t-t%2)},Pkt=[[/\\?\s+$/,e=>e.indexOf("\\")===0?uxe:fxe],[/\\\s/g,()=>uxe],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>h3],[/\\\\/g,()=>h3],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===h3?`\\[${r}${kkt(n)}${i}`:i==="]"&&n.length%2===0?`[${qkt(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],lxe=Object.create(null),Dkt=(e,t)=>{let r=lxe[e];return r||(r=Pkt.reduce((n,i)=>n.replace(i[0],i[1].bind(e)),e),lxe[e]=r),t?new RegExp(r,"i"):new RegExp(r)},y3=e=>typeof e=="string",Lkt=e=>e&&y3(e)&&!Skt.test(e)&&!Tkt.test(e)&&e.indexOf("#")!==0,Fkt=e=>e.split(Rkt),g3=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},Mkt=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(Akt,"!").replace(Ckt,"#");let i=Dkt(e,t);return new g3(r,e,n,i)},jkt=(e,t)=>{throw new t(e)},Zu=(e,t,r)=>y3(e)?e?Zu.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),hxe=e=>Okt.test(e);Zu.isNotRelative=hxe;Zu.convert=e=>e;var v3=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){Ikt(this,cxe,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[cxe]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(Lkt(t)){let r=Mkt(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,axe(y3(t)?Fkt(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&Zu.convert(t);return Zu(s,t,this._allowRelativePaths?dxe:jkt),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(m3)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(m3)+m3,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return axe(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},bA=e=>new v3(e),Bkt=e=>Zu(e&&Zu.convert(e),e,dxe);bA.isPathValid=Bkt;bA.default=bA;mxe.exports=bA;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");Zu.convert=e;let t=/^[a-z]:\//i;Zu.isNotRelative=r=>t.test(r)||hxe(r)}});function Nxe(e){return typeof e>"u"||e===null}function Ukt(e){return typeof e=="object"&&e!==null}function Wkt(e){return Array.isArray(e)?e:Nxe(e)?[]:[e]}function Hkt(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function $kt(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function zkt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}function qxe(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
175
175
|
|
|
@@ -203,18 +203,18 @@ For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/gu
|
|
|
203
203
|
`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function MDt(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=nx(e,i),n=_i[r],!n&&ax(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||ODt(r);return t}function jDt(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(Ju(e,t,a,!1,!1)||typeof a>"u"&&Ju(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Oxe(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(Ju(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Ju(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=T3(e,t)),e.dump&&sx===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function BDt(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),Ju(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ju(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function UDt(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,p,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Bi("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=T3(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),Ju(e,t+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&sx===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=T3(e,t)),Ju(e,t+1,f,!0,p)&&(e.dump&&sx===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function Ixe(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,a_e.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(u_e.call(a.represent,u))n=a.represent[u](t,u);else throw new Bi("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Ju(e,t,r,n,i,s,o){e.tag=null,e.dump=r,Ixe(e,r,!1)||Ixe(e,r,!0);var a=a_e.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",p,h;if(f&&(p=e.duplicates.indexOf(r),h=p!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(f&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(UDt(e,t,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(BDt(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Oxe(e,t-1,e.dump,i):Oxe(e,t,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(jDt(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&LDt(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Bi("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function WDt(e,t){var r=[],n=[],i,s;for(C3(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function C3(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)C3(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)C3(e[n[i]],t,r)}function HDt(e,t){t=t||{};var r=new NDt(t);r.noRefs||WDt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ju(r,0,n,!0,!0)?r.dump+`
|
|
204
204
|
`:""}function k3(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Gkt,Vkt,Kkt,Xkt,Ykt,Zkt,Cn,Bi,Qkt,ePt,tPt,ni,kxe,Pxe,Dxe,Lxe,Fxe,Mxe,jxe,Bxe,vPt,_Pt,Uxe,Wxe,Hxe,$xe,zxe,Gxe,Vxe,R3,Kxe,NPt,qPt,Xxe,DPt,Yxe,MPt,Zxe,O3,Il,wA,Jxe,Qxe,EA,w3,UPt,vxe,WPt,HPt,$Pt,e_e,t_e,r_e,n_e,Op,_xe,uDt,cDt,o_e,a_e,u_e,q3,lDt,sx,fDt,pDt,dDt,hDt,S3,mDt,gDt,vDt,yDt,c_e,xDt,TA,_Dt,bDt,wDt,EDt,l_e,f_e,SDt,p_e,TDt,d_e,_i,ADt,CDt,IDt,ox,m_e,A3,g_e,v_e,Mm,$Dt,zDt,GDt,VDt,KDt,XDt,YDt,ZDt,JDt,QDt,eLt,tLt,rLt,nLt,iLt,sLt,oLt,y_e,x_e=ye(()=>{Gkt=Nxe,Vkt=Ukt,Kkt=Wkt,Xkt=$kt,Ykt=zkt,Zkt=Hkt,Cn={isNothing:Gkt,isObject:Vkt,toArray:Kkt,repeat:Xkt,isNegativeZero:Ykt,extend:Zkt};ix.prototype=Object.create(Error.prototype);ix.prototype.constructor=ix;ix.prototype.toString=function(t){return this.name+": "+qxe(this,t)};Bi=ix;Qkt=Jkt,ePt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],tPt=["scalar","sequence","mapping"];ni=nPt;E3.prototype.extend=function(t){var r=[],n=[];if(t instanceof ni)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Bi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ni))throw new Bi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Bi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Bi("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof ni))throw new Bi("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(E3.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=gxe(i,"implicit"),i.compiledExplicit=gxe(i,"explicit"),i.compiledTypeMap=iPt(i.compiledImplicit,i.compiledExplicit),i};kxe=E3,Pxe=new ni("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Dxe=new ni("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Lxe=new ni("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Fxe=new kxe({explicit:[Pxe,Dxe,Lxe]});Mxe=new ni("tag:yaml.org,2002:null",{kind:"scalar",resolve:sPt,construct:oPt,predicate:aPt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});jxe=new ni("tag:yaml.org,2002:bool",{kind:"scalar",resolve:uPt,construct:cPt,predicate:lPt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});Bxe=new ni("tag:yaml.org,2002:int",{kind:"scalar",resolve:hPt,construct:mPt,predicate:gPt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),vPt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");_Pt=/^[-+]?[0-9]+e/;Uxe=new ni("tag:yaml.org,2002:float",{kind:"scalar",resolve:yPt,construct:xPt,predicate:wPt,represent:bPt,defaultStyle:"lowercase"}),Wxe=Fxe.extend({implicit:[Mxe,jxe,Bxe,Uxe]}),Hxe=Wxe,$xe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zxe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");Gxe=new ni("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:EPt,construct:SPt,instanceOf:Date,represent:TPt});Vxe=new ni("tag:yaml.org,2002:merge",{kind:"scalar",resolve:APt}),R3=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
205
205
|
\r`;Kxe=new ni("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CPt,construct:RPt,predicate:IPt,represent:OPt}),NPt=Object.prototype.hasOwnProperty,qPt=Object.prototype.toString;Xxe=new ni("tag:yaml.org,2002:omap",{kind:"sequence",resolve:kPt,construct:PPt}),DPt=Object.prototype.toString;Yxe=new ni("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:LPt,construct:FPt}),MPt=Object.prototype.hasOwnProperty;Zxe=new ni("tag:yaml.org,2002:set",{kind:"mapping",resolve:jPt,construct:BPt}),O3=Hxe.extend({implicit:[Gxe,Vxe],explicit:[Kxe,Xxe,Yxe,Zxe]}),Il=Object.prototype.hasOwnProperty,wA=1,Jxe=2,Qxe=3,EA=4,w3=1,UPt=2,vxe=3,WPt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,HPt=/[\x85\u2028\u2029]/,$Pt=/[,\[\]\{\}]/,e_e=/^(?:!|!!|![a-z\-]+!)$/i,t_e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;r_e=new Array(256),n_e=new Array(256);for(Op=0;Op<256;Op++)r_e[Op]=xxe(Op)?1:0,n_e[Op]=xxe(Op);_xe={YAML:function(t,r,n){var i,s,o;t.version!==null&&qe(t,"duplication of %YAML directive"),n.length!==1&&qe(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&qe(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&qe(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&SA(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&qe(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],e_e.test(i)||qe(t,"ill-formed tag handle (first argument) of the TAG directive"),Il.call(t.tagMap,i)&&qe(t,'there is a previously declared suffix for "'+i+'" tag handle'),t_e.test(s)||qe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{qe(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};uDt=oDt,cDt=aDt,o_e={loadAll:uDt,load:cDt},a_e=Object.prototype.toString,u_e=Object.prototype.hasOwnProperty,q3=65279,lDt=9,sx=10,fDt=13,pDt=32,dDt=33,hDt=34,S3=35,mDt=37,gDt=38,vDt=39,yDt=42,c_e=44,xDt=45,TA=58,_Dt=61,bDt=62,wDt=63,EDt=64,l_e=91,f_e=93,SDt=96,p_e=123,TDt=124,d_e=125,_i={};_i[0]="\\0";_i[7]="\\a";_i[8]="\\b";_i[9]="\\t";_i[10]="\\n";_i[11]="\\v";_i[12]="\\f";_i[13]="\\r";_i[27]="\\e";_i[34]='\\"';_i[92]="\\\\";_i[133]="\\N";_i[160]="\\_";_i[8232]="\\L";_i[8233]="\\P";ADt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],CDt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;IDt=1,ox=2;m_e=1,A3=2,g_e=3,v_e=4,Mm=5;$Dt=HDt,zDt={dump:$Dt};GDt=ni,VDt=kxe,KDt=Fxe,XDt=Wxe,YDt=Hxe,ZDt=O3,JDt=o_e.load,QDt=o_e.loadAll,eLt=zDt.dump,tLt=Bi,rLt={binary:Kxe,float:Uxe,map:Lxe,null:Mxe,pairs:Yxe,set:Zxe,timestamp:Gxe,bool:jxe,int:Bxe,merge:Vxe,omap:Xxe,seq:Dxe,str:Pxe},nLt=k3("safeLoad","load"),iLt=k3("safeLoadAll","loadAll"),sLt=k3("safeDump","dump"),oLt={Type:GDt,Schema:VDt,FAILSAFE_SCHEMA:KDt,JSON_SCHEMA:XDt,CORE_SCHEMA:YDt,DEFAULT_SCHEMA:ZDt,load:JDt,loadAll:QDt,dump:eLt,YAMLException:tLt,types:rLt,safeLoad:nLt,safeLoadAll:iLt,safeDump:sLt},y_e=oLt});var RA=m(ho=>{"use strict";ho.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ho.find=(e,t)=>e.nodes.find(r=>r.type===t);ho.exceedsLimit=(e,t,r=1,n)=>n===!1||!ho.isInteger(e)||!ho.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ho.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ho.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ho.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ho.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ho.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ho.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var OA=m((obr,b_e)=>{"use strict";var __e=RA();b_e.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&__e.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&__e.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var E_e=m((abr,w_e)=>{"use strict";w_e.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var q_e=m((ubr,N_e)=>{"use strict";var S_e=E_e(),Np=(e,t,r)=>{if(S_e(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(S_e(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(Np.cache.hasOwnProperty(u))return Np.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let p=I_e(e)||I_e(t),h={min:e,max:t,a:c,b:f},g=[],v=[];if(p&&(h.isPadded=p,h.maxLen=String(h.max).length),c<0){let _=f<0?Math.abs(f):1;v=T_e(_,Math.abs(c),h,n),c=h.a=0}return f>=0&&(g=T_e(c,f,h,n)),h.negatives=v,h.positives=g,h.result=aLt(v,g,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&g.length+v.length>1&&(h.result=`(?:${h.result})`),Np.cache[u]=h,h.result};function aLt(e,t,r){let n=P3(e,t,"-",!1,r)||[],i=P3(t,e,"",!1,r)||[],s=P3(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function uLt(e,t){let r=1,n=1,i=C_e(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=C_e(e,r);for(i=R_e(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=R_e(t+1,n)-1;return s=[...s],s.sort(fLt),s}function cLt(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=lLt(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=pLt(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function T_e(e,t,r,n){let i=uLt(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=cLt(String(o),String(c),n),p="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+O_e(a.count),o=c+1;continue}r.isPadded&&(p=dLt(c,r,n)),f.string=p+f.pattern+O_e(f.count),s.push(f),o=c+1,a=f}return s}function P3(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!A_e(t,"string",a)&&s.push(r+a),n&&A_e(t,"string",a)&&s.push(r+a)}return s}function lLt(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function fLt(e,t){return e>t?1:t>e?-1:0}function A_e(e,t,r){return e.some(n=>n[t]===r)}function C_e(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function R_e(e,t){return e-e%Math.pow(10,t)}function O_e(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function pLt(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function I_e(e){return/^-?(0+)\d/.test(e)}function dLt(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Np.cache={};Np.clearCache=()=>Np.cache={};N_e.exports=Np});var F3=m((cbr,B_e)=>{"use strict";var hLt=require("util"),D_e=q_e(),k_e=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),mLt=e=>t=>e===!0?Number(t):String(t),D3=e=>typeof e=="number"||typeof e=="string"&&e!=="",ux=e=>Number.isInteger(+e),L3=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},gLt=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,vLt=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},P_e=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},yLt=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},L_e=(e,t,r,n)=>{if(r)return D_e(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},F_e=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return D_e(e,t,r)},M_e=(...e)=>new RangeError("Invalid range arguments: "+hLt.inspect(...e)),j_e=(e,t,r)=>{if(r.strictRanges===!0)throw M_e([e,t]);return[]},xLt=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},_Lt=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw M_e([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=L3(a)||L3(u)||L3(c),p=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&gLt(e,t,n)===!1,g=n.transform||mLt(h);if(n.toRegex&&r===1)return L_e(P_e(e,p),P_e(t,p),!0,n);let v={negatives:[],positives:[]},_=b=>v[b<0?"negatives":"positives"].push(Math.abs(b)),w=[],y=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):w.push(vLt(g(i,y),p,h)),i=o?i-r:i+r,y++;return n.toRegex===!0?r>1?yLt(v,n):F_e(w,null,{wrap:!1,...n}):w},bLt=(e,t,r=1,n={})=>{if(!ux(e)&&e.length>1||!ux(t)&&t.length>1)return j_e(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return L_e(u,c,!1,n);let f=[],p=0;for(;a?s>=o:s<=o;)f.push(i(s,p)),s=a?s-r:s+r,p++;return n.toRegex===!0?F_e(f,null,{wrap:!1,options:n}):f},IA=(e,t,r,n={})=>{if(t==null&&D3(e))return[e];if(!D3(e)||!D3(t))return j_e(e,t,n);if(typeof r=="function")return IA(e,t,1,{transform:r});if(k_e(r))return IA(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,ux(r)?ux(e)&&ux(t)?_Lt(e,t,r,i):bLt(e,t,Math.max(Math.abs(r),1),i):r!=null&&!k_e(r)?xLt(r,i):IA(e,t,1,r)};B_e.exports=IA});var H_e=m((lbr,W_e)=>{"use strict";var wLt=F3(),U_e=RA(),ELt=(e,t={})=>{let r=(n,i={})=>{let s=U_e.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=U_e.reduce(n.nodes),p=wLt(...f,{...t,wrap:!1,toRegex:!0});if(p.length!==0)return f.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let f of n.nodes)c+=r(f,n);return c};return r(e)};W_e.exports=ELt});var G_e=m((fbr,z_e)=>{"use strict";var SLt=F3(),$_e=OA(),Wm=RA(),qp=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Wm.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(qp(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?qp(i,s,r):i+s);return Wm.flatten(n)},TLt=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(qp(a.pop(),$_e(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(qp(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let p=Wm.reduce(i.nodes);if(Wm.exceedsLimit(...p,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=SLt(...p,t);h.length===0&&(h=$_e(i,t)),a.push(qp(a.pop(),h)),i.nodes=[];return}let u=Wm.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let p=0;p<i.nodes.length;p++){let h=i.nodes[p];if(h.type==="comma"&&i.type==="brace"){p===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(qp(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(qp(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return Wm.flatten(n(e))};z_e.exports=TLt});var K_e=m((pbr,V_e)=>{"use strict";V_e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
206
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Q_e=m((dbr,J_e)=>{"use strict";var ALt=OA(),{MAX_LENGTH:X_e,CHAR_BACKSLASH:M3,CHAR_BACKTICK:CLt,CHAR_COMMA:RLt,CHAR_DOT:OLt,CHAR_LEFT_PARENTHESES:ILt,CHAR_RIGHT_PARENTHESES:NLt,CHAR_LEFT_CURLY_BRACE:qLt,CHAR_RIGHT_CURLY_BRACE:kLt,CHAR_LEFT_SQUARE_BRACKET:Y_e,CHAR_RIGHT_SQUARE_BRACKET:Z_e,CHAR_DOUBLE_QUOTE:PLt,CHAR_SINGLE_QUOTE:DLt,CHAR_NO_BREAK_SPACE:LLt,CHAR_ZERO_WIDTH_NOBREAK_SPACE:FLt}=K_e(),MLt=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(X_e,r.maxLength):X_e;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,p=0,h,g={},v=()=>e[f++],_=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return o.nodes.push(w),w.parent=o,w.prev=a,a=w,w};for(_({type:"bos"});f<c;)if(o=s[s.length-1],h=v(),!(h===FLt||h===LLt)){if(h===M3){_({type:"text",value:(t.keepEscaping?h:"")+v()});continue}if(h===Z_e){_({type:"text",value:"\\"+h});continue}if(h===Y_e){u++;let w=!0,y;for(;f<c&&(y=v());){if(h+=y,y===Y_e){u++;continue}if(y===M3){h+=v();continue}if(y===Z_e&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===ILt){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===NLt){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===PLt||h===DLt||h===CLt){let w=h,y;for(t.keepQuotes!==!0&&(h="");f<c&&(y=v());){if(y===M3){h+=y+v();continue}if(y===w){t.keepQuotes===!0&&(h+=y);break}h+=y}_({type:"text",value:h});continue}if(h===qLt){p++;let y={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};o=_(y),s.push(o),_({type:"open",value:h});continue}if(h===kLt){if(o.type!=="brace"){_({type:"text",value:h});continue}let w="close";o=s.pop(),o.close=!0,_({type:w,value:h}),p--,o=s[s.length-1];continue}if(h===RLt&&p>0){if(o.ranges>0){o.ranges=0;let w=o.nodes.shift();o.nodes=[w,{type:"text",value:ALt(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===OLt&&p>0&&o.commas===0){let w=o.nodes;if(p===0||w.length===0){_({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){w.pop();let y=w[w.length-1];y.value+=a.value+h,a=y,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let w=s[s.length-1],y=w.nodes.indexOf(o);w.nodes.splice(y,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};J_e.exports=MLt});var j3=m((hbr,tbe)=>{"use strict";var ebe=OA(),jLt=H_e(),BLt=G_e(),ULt=Q_e(),Rs=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Rs.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Rs.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Rs.parse=(e,t={})=>ULt(e,t);Rs.stringify=(e,t={})=>ebe(typeof e=="string"?Rs.parse(e,t):e,t);Rs.compile=(e,t={})=>(typeof e=="string"&&(e=Rs.parse(e,t)),jLt(e,t));Rs.expand=(e,t={})=>{typeof e=="string"&&(e=Rs.parse(e,t));let r=BLt(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Rs.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Rs.compile(e,t):Rs.expand(e,t);tbe.exports=Rs});var cx=m((mbr,obe)=>{"use strict";var WLt=require("path"),ja="\\\\/",rbe=`[^${ja}]`,Qu="\\.",HLt="\\+",$Lt="\\?",NA="\\/",zLt="(?=.)",nbe="[^/]",B3=`(?:${NA}|$)`,ibe=`(?:^|${NA})`,U3=`${Qu}{1,2}${B3}`,GLt=`(?!${Qu})`,VLt=`(?!${ibe}${U3})`,KLt=`(?!${Qu}{0,1}${B3})`,XLt=`(?!${U3})`,YLt=`[^.${NA}]`,ZLt=`${nbe}*?`,sbe={DOT_LITERAL:Qu,PLUS_LITERAL:HLt,QMARK_LITERAL:$Lt,SLASH_LITERAL:NA,ONE_CHAR:zLt,QMARK:nbe,END_ANCHOR:B3,DOTS_SLASH:U3,NO_DOT:GLt,NO_DOTS:VLt,NO_DOT_SLASH:KLt,NO_DOTS_SLASH:XLt,QMARK_NO_DOT:YLt,STAR:ZLt,START_ANCHOR:ibe},JLt={...sbe,SLASH_LITERAL:`[${ja}]`,QMARK:rbe,STAR:`${rbe}*?`,DOTS_SLASH:`${Qu}{1,2}(?:[${ja}]|$)`,NO_DOT:`(?!${Qu})`,NO_DOTS:`(?!(?:^|[${ja}])${Qu}{1,2}(?:[${ja}]|$))`,NO_DOT_SLASH:`(?!${Qu}{0,1}(?:[${ja}]|$))`,NO_DOTS_SLASH:`(?!${Qu}{1,2}(?:[${ja}]|$))`,QMARK_NO_DOT:`[^.${ja}]`,START_ANCHOR:`(?:^|[${ja}])`,END_ANCHOR:`(?:[${ja}]|$)`},QLt={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};obe.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:QLt,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:WLt.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?JLt:sbe}}});var lx=m(as=>{"use strict";var eFt=require("path"),tFt=process.platform==="win32",{REGEX_BACKSLASH:rFt,REGEX_REMOVE_BACKSLASH:nFt,REGEX_SPECIAL_CHARS:iFt,REGEX_SPECIAL_CHARS_GLOBAL:sFt}=cx();as.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);as.hasRegexChars=e=>iFt.test(e);as.isRegexChar=e=>e.length===1&&as.hasRegexChars(e);as.escapeRegex=e=>e.replace(sFt,"\\$1");as.toPosixSlashes=e=>e.replace(rFt,"/");as.removeBackslashes=e=>e.replace(nFt,t=>t==="\\"?"":t);as.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};as.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:tFt===!0||eFt.sep==="\\";as.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?as.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};as.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};as.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var hbe=m((vbr,dbe)=>{"use strict";var abe=lx(),{CHAR_ASTERISK:W3,CHAR_AT:oFt,CHAR_BACKWARD_SLASH:fx,CHAR_COMMA:aFt,CHAR_DOT:H3,CHAR_EXCLAMATION_MARK:$3,CHAR_FORWARD_SLASH:pbe,CHAR_LEFT_CURLY_BRACE:z3,CHAR_LEFT_PARENTHESES:G3,CHAR_LEFT_SQUARE_BRACKET:uFt,CHAR_PLUS:cFt,CHAR_QUESTION_MARK:ube,CHAR_RIGHT_CURLY_BRACE:lFt,CHAR_RIGHT_PARENTHESES:cbe,CHAR_RIGHT_SQUARE_BRACKET:fFt}=cx(),lbe=e=>e===pbe||e===fx,fbe=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},pFt=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,p=0,h=!1,g=!1,v=!1,_=!1,w=!1,y=!1,b=!1,S=!1,T=!1,R=!1,q=0,O,M,U={value:"",depth:0,isGlob:!1},z=()=>c>=n,L=()=>u.charCodeAt(c+1),D=()=>(O=M,u.charCodeAt(++c));for(;c<n;){M=D();let he;if(M===fx){b=U.backslashes=!0,M=D(),M===z3&&(y=!0);continue}if(y===!0||M===z3){for(q++;z()!==!0&&(M=D());){if(M===fx){b=U.backslashes=!0,D();continue}if(M===z3){q++;continue}if(y!==!0&&M===H3&&(M=D())===H3){if(h=U.isBrace=!0,v=U.isGlob=!0,R=!0,i===!0)continue;break}if(y!==!0&&M===aFt){if(h=U.isBrace=!0,v=U.isGlob=!0,R=!0,i===!0)continue;break}if(M===lFt&&(q--,q===0)){y=!1,h=U.isBrace=!0,R=!0;break}}if(i===!0)continue;break}if(M===pbe){if(s.push(c),o.push(U),U={value:"",depth:0,isGlob:!1},R===!0)continue;if(O===H3&&c===f+1){f+=2;continue}p=c+1;continue}if(r.noext!==!0&&(M===cFt||M===oFt||M===W3||M===ube||M===$3)===!0&&L()===G3){if(v=U.isGlob=!0,_=U.isExtglob=!0,R=!0,M===$3&&c===f&&(T=!0),i===!0){for(;z()!==!0&&(M=D());){if(M===fx){b=U.backslashes=!0,M=D();continue}if(M===cbe){v=U.isGlob=!0,R=!0;break}}continue}break}if(M===W3){if(O===W3&&(w=U.isGlobstar=!0),v=U.isGlob=!0,R=!0,i===!0)continue;break}if(M===ube){if(v=U.isGlob=!0,R=!0,i===!0)continue;break}if(M===uFt){for(;z()!==!0&&(he=D());){if(he===fx){b=U.backslashes=!0,D();continue}if(he===fFt){g=U.isBracket=!0,v=U.isGlob=!0,R=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&M===$3&&c===f){S=U.negated=!0,f++;continue}if(r.noparen!==!0&&M===G3){if(v=U.isGlob=!0,i===!0){for(;z()!==!0&&(M=D());){if(M===G3){b=U.backslashes=!0,M=D();continue}if(M===cbe){R=!0;break}}continue}break}if(v===!0){if(R=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,v=!1);let Z=u,le="",B="";f>0&&(le=u.slice(0,f),u=u.slice(f),p-=f),Z&&v===!0&&p>0?(Z=u.slice(0,p),B=u.slice(p)):v===!0?(Z="",B=u):Z=u,Z&&Z!==""&&Z!=="/"&&Z!==u&&lbe(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),r.unescape===!0&&(B&&(B=abe.removeBackslashes(B)),Z&&b===!0&&(Z=abe.removeBackslashes(Z)));let V={prefix:le,input:e,start:f,base:Z,glob:B,isBrace:h,isBracket:g,isGlob:v,isExtglob:_,isGlobstar:w,negated:S,negatedExtglob:T};if(r.tokens===!0&&(V.maxDepth=0,lbe(M)||o.push(U),V.tokens=o),r.parts===!0||r.tokens===!0){let he;for(let fe=0;fe<s.length;fe++){let xe=he?he+1:f,se=s[fe],Ge=e.slice(xe,se);r.tokens&&(fe===0&&f!==0?(o[fe].isPrefix=!0,o[fe].value=le):o[fe].value=Ge,fbe(o[fe]),V.maxDepth+=o[fe].depth),(fe!==0||Ge!=="")&&a.push(Ge),he=se}if(he&&he+1<e.length){let fe=e.slice(he+1);a.push(fe),r.tokens&&(o[o.length-1].value=fe,fbe(o[o.length-1]),V.maxDepth+=o[o.length-1].depth)}V.slashes=s,V.parts=a}return V};dbe.exports=pFt});var vbe=m((ybr,gbe)=>{"use strict";var qA=cx(),Os=lx(),{MAX_LENGTH:kA,POSIX_REGEX_SOURCE:dFt,REGEX_NON_SPECIAL_CHARS:hFt,REGEX_SPECIAL_CHARS_BACKREF:mFt,REPLACEMENTS:mbe}=qA,gFt=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Os.escapeRegex(i)).join("..")}return r},Hm=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,V3=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=mbe[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(kA,r.maxLength):kA,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=Os.isWindows(t),c=qA.globChars(u),f=qA.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:h,SLASH_LITERAL:g,ONE_CHAR:v,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK:S,QMARK_NO_DOT:T,STAR:R,START_ANCHOR:q}=c,O=pe=>`(${a}(?:(?!${q}${pe.dot?_:p}).)*?)`,M=r.dot?"":w,U=r.dot?S:T,z=r.bash===!0?O(r):R;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let L={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Os.removePrefix(e,L),i=e.length;let D=[],Z=[],le=[],B=s,V,he=()=>L.index===i-1,fe=L.peek=(pe=1)=>e[L.index+pe],xe=L.advance=()=>e[++L.index]||"",se=()=>e.slice(L.index+1),Ge=(pe="",k=0)=>{L.consumed+=pe,L.index+=k},Le=pe=>{L.output+=pe.output!=null?pe.output:pe.value,Ge(pe.value)},Ee=()=>{let pe=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)xe(),L.start++,pe++;return pe%2===0?!1:(L.negated=!0,L.start++,!0)},it=pe=>{L[pe]++,le.push(pe)},Vt=pe=>{L[pe]--,le.pop()},Te=pe=>{if(B.type==="globstar"){let k=L.braces>0&&(pe.type==="comma"||pe.type==="brace"),A=pe.extglob===!0||D.length&&(pe.type==="pipe"||pe.type==="paren");pe.type!=="slash"&&pe.type!=="paren"&&!k&&!A&&(L.output=L.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=z,L.output+=B.output)}if(D.length&&pe.type!=="paren"&&(D[D.length-1].inner+=pe.value),(pe.value||pe.output)&&Le(pe),B&&B.type==="text"&&pe.type==="text"){B.value+=pe.value,B.output=(B.output||"")+pe.value;return}pe.prev=B,o.push(pe),B=pe},Ur=(pe,k)=>{let A={...f[k],conditions:1,inner:""};A.prev=B,A.parens=L.parens,A.output=L.output;let H=(r.capture?"(":"")+A.open;it("parens"),Te({type:pe,value:k,output:L.output?"":v}),Te({type:"paren",extglob:!0,value:xe(),output:H}),D.push(A)},Ci=pe=>{let k=pe.close+(r.capture?")":""),A;if(pe.type==="negate"){let H=z;if(pe.inner&&pe.inner.length>1&&pe.inner.includes("/")&&(H=O(r)),(H!==z||he()||/^\)+$/.test(se()))&&(k=pe.close=`)$))${H}`),pe.inner.includes("*")&&(A=se())&&/^\.[^\\/.]+$/.test(A)){let K=V3(A,{...t,fastpaths:!1}).output;k=pe.close=`)${K})${H})`}pe.prev.type==="bos"&&(L.negatedExtglob=!0)}Te({type:"paren",extglob:!0,value:V,output:k}),Vt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let pe=!1,k=e.replace(mFt,(A,H,K,He,Fe,rr)=>He==="\\"?(pe=!0,A):He==="?"?H?H+He+(Fe?S.repeat(Fe.length):""):rr===0?U+(Fe?S.repeat(Fe.length):""):S.repeat(K.length):He==="."?p.repeat(K.length):He==="*"?H?H+He+(Fe?z:""):z:H?A:`\\${A}`);return pe===!0&&(r.unescape===!0?k=k.replace(/\\/g,""):k=k.replace(/\\+/g,A=>A.length%2===0?"\\\\":A?"\\":"")),k===e&&r.contains===!0?(L.output=e,L):(L.output=Os.wrapOutput(k,L,t),L)}for(;!he();){if(V=xe(),V==="\0")continue;if(V==="\\"){let A=fe();if(A==="/"&&r.bash!==!0||A==="."||A===";")continue;if(!A){V+="\\",Te({type:"text",value:V});continue}let H=/^\\+/.exec(se()),K=0;if(H&&H[0].length>2&&(K=H[0].length,L.index+=K,K%2!==0&&(V+="\\")),r.unescape===!0?V=xe():V+=xe(),L.brackets===0){Te({type:"text",value:V});continue}}if(L.brackets>0&&(V!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==!1&&V===":"){let A=B.value.slice(1);if(A.includes("[")&&(B.posix=!0,A.includes(":"))){let H=B.value.lastIndexOf("["),K=B.value.slice(0,H),He=B.value.slice(H+2),Fe=dFt[He];if(Fe){B.value=K+Fe,L.backtrack=!0,xe(),!s.output&&o.indexOf(B)===1&&(s.output=v);continue}}}(V==="["&&fe()!==":"||V==="-"&&fe()==="]")&&(V=`\\${V}`),V==="]"&&(B.value==="["||B.value==="[^")&&(V=`\\${V}`),r.posix===!0&&V==="!"&&B.value==="["&&(V="^"),B.value+=V,Le({value:V});continue}if(L.quotes===1&&V!=='"'){V=Os.escapeRegex(V),B.value+=V,Le({value:V});continue}if(V==='"'){L.quotes=L.quotes===1?0:1,r.keepQuotes===!0&&Te({type:"text",value:V});continue}if(V==="("){it("parens"),Te({type:"paren",value:V});continue}if(V===")"){if(L.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Hm("opening","("));let A=D[D.length-1];if(A&&L.parens===A.parens+1){Ci(D.pop());continue}Te({type:"paren",value:V,output:L.parens?")":"\\)"}),Vt("parens");continue}if(V==="["){if(r.nobracket===!0||!se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Hm("closing","]"));V=`\\${V}`}else it("brackets");Te({type:"bracket",value:V});continue}if(V==="]"){if(r.nobracket===!0||B&&B.type==="bracket"&&B.value.length===1){Te({type:"text",value:V,output:`\\${V}`});continue}if(L.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Hm("opening","["));Te({type:"text",value:V,output:`\\${V}`});continue}Vt("brackets");let A=B.value.slice(1);if(B.posix!==!0&&A[0]==="^"&&!A.includes("/")&&(V=`/${V}`),B.value+=V,Le({value:V}),r.literalBrackets===!1||Os.hasRegexChars(A))continue;let H=Os.escapeRegex(B.value);if(L.output=L.output.slice(0,-B.value.length),r.literalBrackets===!0){L.output+=H,B.value=H;continue}B.value=`(${a}${H}|${B.value})`,L.output+=B.value;continue}if(V==="{"&&r.nobrace!==!0){it("braces");let A={type:"brace",value:V,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(A),Te(A);continue}if(V==="}"){let A=Z[Z.length-1];if(r.nobrace===!0||!A){Te({type:"text",value:V,output:V});continue}let H=")";if(A.dots===!0){let K=o.slice(),He=[];for(let Fe=K.length-1;Fe>=0&&(o.pop(),K[Fe].type!=="brace");Fe--)K[Fe].type!=="dots"&&He.unshift(K[Fe].value);H=gFt(He,r),L.backtrack=!0}if(A.comma!==!0&&A.dots!==!0){let K=L.output.slice(0,A.outputIndex),He=L.tokens.slice(A.tokensIndex);A.value=A.output="\\{",V=H="\\}",L.output=K;for(let Fe of He)L.output+=Fe.output||Fe.value}Te({type:"brace",value:V,output:H}),Vt("braces"),Z.pop();continue}if(V==="|"){D.length>0&&D[D.length-1].conditions++,Te({type:"text",value:V});continue}if(V===","){let A=V,H=Z[Z.length-1];H&&le[le.length-1]==="braces"&&(H.comma=!0,A="|"),Te({type:"comma",value:V,output:A});continue}if(V==="/"){if(B.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",o.pop(),B=s;continue}Te({type:"slash",value:V,output:g});continue}if(V==="."){if(L.braces>0&&B.type==="dot"){B.value==="."&&(B.output=p);let A=Z[Z.length-1];B.type="dots",B.output+=V,B.value+=V,A.dots=!0;continue}if(L.braces+L.parens===0&&B.type!=="bos"&&B.type!=="slash"){Te({type:"text",value:V,output:p});continue}Te({type:"dot",value:V,output:p});continue}if(V==="?"){if(!(B&&B.value==="(")&&r.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ur("qmark",V);continue}if(B&&B.type==="paren"){let H=fe(),K=V;if(H==="<"&&!Os.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(B.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(se()))&&(K=`\\${V}`),Te({type:"text",value:V,output:K});continue}if(r.dot!==!0&&(B.type==="slash"||B.type==="bos")){Te({type:"qmark",value:V,output:T});continue}Te({type:"qmark",value:V,output:S});continue}if(V==="!"){if(r.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Ur("negate",V);continue}if(r.nonegate!==!0&&L.index===0){Ee();continue}}if(V==="+"){if(r.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ur("plus",V);continue}if(B&&B.value==="("||r.regex===!1){Te({type:"plus",value:V,output:h});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||L.parens>0){Te({type:"plus",value:V});continue}Te({type:"plus",value:h});continue}if(V==="@"){if(r.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Te({type:"at",extglob:!0,value:V,output:""});continue}Te({type:"text",value:V});continue}if(V!=="*"){(V==="$"||V==="^")&&(V=`\\${V}`);let A=hFt.exec(se());A&&(V+=A[0],L.index+=A[0].length),Te({type:"text",value:V});continue}if(B&&(B.type==="globstar"||B.star===!0)){B.type="star",B.star=!0,B.value+=V,B.output=z,L.backtrack=!0,L.globstar=!0,Ge(V);continue}let pe=se();if(r.noextglob!==!0&&/^\([^?]/.test(pe)){Ur("star",V);continue}if(B.type==="star"){if(r.noglobstar===!0){Ge(V);continue}let A=B.prev,H=A.prev,K=A.type==="slash"||A.type==="bos",He=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!K||pe[0]&&pe[0]!=="/")){Te({type:"star",value:V,output:""});continue}let Fe=L.braces>0&&(A.type==="comma"||A.type==="brace"),rr=D.length&&(A.type==="pipe"||A.type==="paren");if(!K&&A.type!=="paren"&&!Fe&&!rr){Te({type:"star",value:V,output:""});continue}for(;pe.slice(0,3)==="/**";){let Nr=e[L.index+4];if(Nr&&Nr!=="/")break;pe=pe.slice(3),Ge("/**",3)}if(A.type==="bos"&&he()){B.type="globstar",B.value+=V,B.output=O(r),L.output=B.output,L.globstar=!0,Ge(V);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&!He&&he()){L.output=L.output.slice(0,-(A.output+B.output).length),A.output=`(?:${A.output}`,B.type="globstar",B.output=O(r)+(r.strictSlashes?")":"|$)"),B.value+=V,L.globstar=!0,L.output+=A.output+B.output,Ge(V);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&pe[0]==="/"){let Nr=pe[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(A.output+B.output).length),A.output=`(?:${A.output}`,B.type="globstar",B.output=`${O(r)}${g}|${g}${Nr})`,B.value+=V,L.output+=A.output+B.output,L.globstar=!0,Ge(V+xe()),Te({type:"slash",value:"/",output:""});continue}if(A.type==="bos"&&pe[0]==="/"){B.type="globstar",B.value+=V,B.output=`(?:^|${g}|${O(r)}${g})`,L.output=B.output,L.globstar=!0,Ge(V+xe()),Te({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-B.output.length),B.type="globstar",B.output=O(r),B.value+=V,L.output+=B.output,L.globstar=!0,Ge(V);continue}let k={type:"star",value:V,output:z};if(r.bash===!0){k.output=".*?",(B.type==="bos"||B.type==="slash")&&(k.output=M+k.output),Te(k);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===!0){k.output=V,Te(k);continue}(L.index===L.start||B.type==="slash"||B.type==="dot")&&(B.type==="dot"?(L.output+=y,B.output+=y):r.dot===!0?(L.output+=b,B.output+=b):(L.output+=M,B.output+=M),fe()!=="*"&&(L.output+=v,B.output+=v)),Te(k)}for(;L.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hm("closing","]"));L.output=Os.escapeLast(L.output,"["),Vt("brackets")}for(;L.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hm("closing",")"));L.output=Os.escapeLast(L.output,"("),Vt("parens")}for(;L.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hm("closing","}"));L.output=Os.escapeLast(L.output,"{"),Vt("braces")}if(r.strictSlashes!==!0&&(B.type==="star"||B.type==="bracket")&&Te({type:"maybe_slash",value:"",output:`${g}?`}),L.backtrack===!0){L.output="";for(let pe of L.tokens)L.output+=pe.output!=null?pe.output:pe.value,pe.suffix&&(L.output+=pe.suffix)}return L};V3.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(kA,r.maxLength):kA,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=mbe[e]||e;let s=Os.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:p,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:v}=qA.globChars(s),_=r.dot?p:f,w=r.dot?h:f,y=r.capture?"":"?:",b={negated:!1,prefix:""},S=r.bash===!0?".*?":g;r.capture&&(S=`(${S})`);let T=M=>M.noglobstar===!0?S:`(${y}(?:(?!${v}${M.dot?c:o}).)*?)`,R=M=>{switch(M){case"*":return`${_}${u}${S}`;case".*":return`${o}${u}${S}`;case"*.*":return`${_}${S}${o}${u}${S}`;case"*/*":return`${_}${S}${a}${u}${w}${S}`;case"**":return _+T(r);case"**/*":return`(?:${_}${T(r)}${a})?${w}${u}${S}`;case"**/*.*":return`(?:${_}${T(r)}${a})?${w}${S}${o}${u}${S}`;case"**/.*":return`(?:${_}${T(r)}${a})?${o}${u}${S}`;default:{let U=/^(.*?)\.(\w+)$/.exec(M);if(!U)return;let z=R(U[1]);return z?z+o+U[2]:void 0}}},q=Os.removePrefix(e,b),O=R(q);return O&&r.strictSlashes!==!0&&(O+=`${a}?`),O};gbe.exports=V3});var xbe=m((xbr,ybe)=>{"use strict";var vFt=require("path"),yFt=hbe(),K3=vbe(),X3=lx(),xFt=cx(),_Ft=e=>e&&typeof e=="object"&&!Array.isArray(e),nn=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>nn(h,t,r));return h=>{for(let g of f){let v=g(h);if(v)return v}return!1}}let n=_Ft(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=X3.isWindows(t),o=n?nn.compileRe(e,t):nn.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=nn(i.ignore,f,r)}let c=(f,p=!1)=>{let{isMatch:h,match:g,output:v}=nn.test(f,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:f,output:v,match:g,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,p?_:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,p?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),p?_:!0)};return r&&(c.state=a),c};nn.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?X3.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=nn.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};nn.matchBase=(e,t,r,n=X3.isWindows(r))=>(t instanceof RegExp?t:nn.makeRe(t,r)).test(vFt.basename(e));nn.isMatch=(e,t,r)=>nn(t,r)(e);nn.parse=(e,t)=>Array.isArray(e)?e.map(r=>nn.parse(r,t)):K3(e,{...t,fastpaths:!1});nn.scan=(e,t)=>yFt(e,t);nn.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=nn.toRegex(a,t);return n===!0&&(u.state=e),u};nn.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=K3.fastpaths(e,t)),i.output||(i=K3(e,t)),nn.compileRe(i,t,r,n)};nn.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};nn.constants=xFt;ybe.exports=nn});var PA=m((_br,_be)=>{"use strict";_be.exports=xbe()});var Tbe=m((bbr,Sbe)=>{"use strict";var wbe=require("util"),Ebe=j3(),Ba=PA(),Y3=lx(),bbe=e=>e===""||e==="./",Ir=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let p=Ba(String(t[f]),{...r,onResult:a},!0),h=p.state.negated||p.state.negatedExtglob;h&&o++;for(let g of e){let v=p(g,!0);(h?!v.isMatch:v.isMatch)&&(h?n.add(v.output):(n.delete(v.output),i.add(v.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return c};Ir.match=Ir;Ir.matcher=(e,t)=>Ba(e,t);Ir.isMatch=(e,t,r)=>Ba(t,r)(e);Ir.any=Ir.isMatch;Ir.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Ir(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Ir.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wbe.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Ir.contains(e,n,r));if(typeof t=="string"){if(bbe(e)||bbe(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Ir.isMatch(e,t,{...r,contains:!0})};Ir.matchKeys=(e,t,r)=>{if(!Y3.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Ir(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Ir.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ba(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Ir.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ba(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Ir.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wbe.inspect(e)}"`);return[].concat(t).every(n=>Ba(n,r)(e))};Ir.capture=(e,t,r)=>{let n=Y3.isWindows(r),s=Ba.makeRe(String(e),{...r,capture:!0}).exec(n?Y3.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ir.makeRe=(...e)=>Ba.makeRe(...e);Ir.scan=(...e)=>Ba.scan(...e);Ir.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Ebe(String(n),t))r.push(Ba.parse(i,t));return r};Ir.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Ebe(e,t)};Ir.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Ir.braces(e,{...t,expand:!0})};Sbe.exports=Ir});function wFt(e,t){let{packageManager:r}=e;if(r){let n=r.match(bFt);if(n)return n[1]}return t.pnpmLockPath?"pnpm":t.yarnLockPath?"yarn":"npm"}function px(e,t){if(e.pnpmWorkspacePath){let{packages:r}=y_e.load(Abe.default.readFileSync(e.pnpmWorkspacePath,"utf-8"));return Array.isArray(r)&&r.length>0?{name:"pnpm",isInWorkspace(n){return(0,Z3.default)([n],r).length>0}}:{name:"pnpm",isInWorkspace(){return!0}}}if(t){let r=wFt(t,e),{workspaces:n}=t;return n?{name:r,isInWorkspace(i){return Z3.default.isMatch(i,n)}}:{name:r,isInWorkspace(){return!1}}}return null}var Abe,Z3,bFt,Cbe=ye(()=>{"use strict";Abe=de(require("fs"),1);x_e();Z3=de(Tbe(),1),bFt=new RegExp("(npm|pnpm|yarn)@?")});function Nbe(e){let t=(0,ii.join)(e,"package.json"),r=(0,ii.join)(e,"pnpm-workspace.yaml"),n=(0,ii.join)(e,"pnpm-lock.yaml"),i=(0,ii.join)(e,"yarn.lock");return{packageJsonPath:mo.default.existsSync(t)?t:void 0,pnpmWorkspacePath:mo.default.existsSync(r)?r:void 0,pnpmLockPath:mo.default.existsSync(n)?n:void 0,yarnLockPath:mo.default.existsSync(i)?i:void 0}}function Rbe(e){return JSON.parse(mo.default.readFileSync(e,"utf-8"))}function EFt(e,t){let{workspaceDir:r,packageManager:n}=e,i=[{dir:r,isNodeModules:!1}],s={},o=new Set,a=["node_modules/.bin","node_modules/.cache",".git",".ampt","node_modules/@ampt/cli","node_modules/fsevents","node_modules/aws-sdk/**/*.d.ts","node_modules/aws-sdk/**/*.examples.json","node_modules/aws-sdk/**/*.md","node_modules/aws-sdk/dist","node_modules/aws-sdk/dist-tools","node_modules/aws-sdk/scripts","node_modules/.vite/","node_modules/.prisma/client/libquery_engine-debian*","coverage/",".svelte-kit",".cache",".nuxt",".output"],u=(0,Ibe.default)().add(a);if(mo.default.existsSync((0,ii.join)(r,".amptignore"))){let c=mo.default.readFileSync((0,ii.join)(r,".amptignore"),{encoding:"utf8"});u.add(c)}for(;i.length>0;){let{dir:c,isNodeModules:f}=i.shift();for(let p of mo.default.readdirSync(c,{withFileTypes:!0})){let h=(0,ii.join)(c,p.name),g=(0,ii.relative)(r,h);if(!u.ignores(g)){if(p.isDirectory()){if(p.isSymbolicLink())throw new Error("Did not expect entry to be a symolic link and a directory");let v=(0,ii.join)(h,"package.json");if(!f&&mo.default.existsSync(v)&&!!(0,ii.relative)(t,h).startsWith("..")&&!n.isInWorkspace(g))continue;i.push({dir:h,isNodeModules:f||p.name==="node_modules"}),s[g]={type:"d"}}else if(p.isSymbolicLink()){let v=mo.default.readlinkSync(h),_=(0,ii.relative)(r,(0,ii.join)(c,v));o.add({key:g,target:_})}else if(p.isFile()){let v=mo.default.statSync(h);s[g]={type:"f",mode:v.mode,size:v.size}}}}}for(let{target:c,key:f}of o)s[c]&&(s[f]={type:"l",target:c});return s}function SFt(e,t){(0,Obe.default)(t.packageJsonPath,`${e} does not contain a package.json`);let r=Rbe(t.packageJsonPath);if(r.workspaces||t.pnpmWorkspacePath)return{packageManager:px(t,r),workspaceDir:e,survey:t};for(let n=0,i=e;n<10;n++){i=(0,ii.resolve)(i,"..");let s=Nbe(i),o=s.packageJsonPath?Rbe(s.packageJsonPath):void 0,a=px(s,o),u=(0,ii.relative)(i,e);if(a&&a.isInWorkspace(u))return{packageManager:a,workspaceDir:i,survey:s}}return{packageManager:px(t,r),workspaceDir:e,survey:t}}async function qbe(e){return new Promise(t=>{let r=Nbe(e);process.nextTick(()=>{let n=SFt(e,r);process.nextTick(()=>{let i=EFt(n,e);t({projectDir:e,workspace:n,entries:i})})})})}var Obe,mo,ii,Ibe,kbe=ye(()=>{Obe=de(require("assert"),1),mo=de(require("fs"),1),ii=require("path"),Ibe=de(x3(),1);Cbe()});function Pbe(e,t){return Buffer.from(e.compress(Buffer.from(JSON.stringify(t),"utf-8"))).toString("base64")}function Dbe(e,t){return JSON.parse(Buffer.from(e.decompress(Buffer.from(t,"base64"))).toString("utf-8"))}var Lbe=ye(()=>{});var Ube=m((Rbr,zm)=>{var Fbe={};Fbe.__wbindgen_placeholder__=zm.exports;var bi,{TextDecoder:TFt}=require("util"),Mbe=new TFt("utf-8",{ignoreBOM:!0,fatal:!0});Mbe.decode();var DA=null;function J3(){return(DA===null||DA.buffer!==bi.memory.buffer)&&(DA=new Uint8Array(bi.memory.buffer)),DA}function AFt(e,t){return Mbe.decode(J3().subarray(e,e+t))}var ec=new Array(32).fill(void 0);ec.push(void 0,null,!0,!1);var dx=ec.length;function CFt(e){dx===ec.length&&ec.push(ec.length+1);let t=dx;return dx=ec[t],ec[t]=e,t}var Q3=0;function jbe(e,t){let r=t(e.length*1);return J3().set(e,r/1),Q3=e.length,r}var LA=null;function $m(){return(LA===null||LA.buffer!==bi.memory.buffer)&&(LA=new Int32Array(bi.memory.buffer)),LA}function Bbe(e,t){return J3().subarray(e/1,e/1+t)}zm.exports.compress=function(e){try{let i=bi.__wbindgen_add_to_stack_pointer(-16),s=jbe(e,bi.__wbindgen_malloc),o=Q3;bi.compress(i,s,o);var t=$m()[i/4+0],r=$m()[i/4+1],n=Bbe(t,r).slice();return bi.__wbindgen_free(t,r*1),n}finally{bi.__wbindgen_add_to_stack_pointer(16)}};function RFt(e){return ec[e]}function OFt(e){e<36||(ec[e]=dx,dx=e)}function IFt(e){let t=RFt(e);return OFt(e),t}zm.exports.decompress=function(e){try{let o=bi.__wbindgen_add_to_stack_pointer(-16),a=jbe(e,bi.__wbindgen_malloc),u=Q3;bi.decompress(o,a,u);var t=$m()[o/4+0],r=$m()[o/4+1],n=$m()[o/4+2],i=$m()[o/4+3];if(i)throw IFt(n);var s=Bbe(t,r).slice();return bi.__wbindgen_free(t,r*1),s}finally{bi.__wbindgen_add_to_stack_pointer(16)}};zm.exports.__wbindgen_string_new=function(e,t){let r=AFt(e,t);return CFt(r)};var NFt=require("path").join(__dirname,"lz4_wasm_nodejs_bg.wasm"),qFt=require("fs").readFileSync(NFt),kFt=new WebAssembly.Module(qFt),PFt=new WebAssembly.Instance(kFt,Fbe);bi=PFt.exports;zm.exports.__wasm=bi});var FA,Gm,Wbe,e6,DFt,LFt,go,Hbe=ye(()=>{"use strict";FA=require("fs"),Gm=require("path");rme();Wbe=de(oxe());e0();kbe();Lbe();cn();Hu();e6=de(Ube()),{version:DFt}=Sm(),LFt=6e4,go=class{fs;org;service;instance;user;src;changesUploadUrl;deployTokenExpiration;deployToken;builderFunctionName;builderLambda;credentials;env;sandboxMode=!1;manifest;workspaceRoot;fullSync;constructor(t){this.fs=t.fs,this.org=t.org,this.service=t.service,this.instance=t.instance,this.user=t.user,this.sandboxMode=t.sandboxMode||!1,this.fullSync=t.fullSync??!1,this.src=this.fs.serviceRoot,this.manifest={files:{},links:{},projectDirectory:"."},this.changesUploadUrl=null,this.workspaceRoot=this.fs.serviceRoot}timerMs(){let t=process.hrtime.bigint();return function(){let r=process.hrtime.bigint();return parseFloat((Number(r-t)/1e6).toFixed(2))}}async getUrlsAndMap(){var g;if(this.deployTokenExpiration-Date.now()>LFt)return;let r=`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/code`,n={method:"GET",endpoint:r,params:{instanceType:this.instance.instanceType,region:this.instance.region,sandbox:this.sandboxMode}},{deployToken:i,deployTokenExpiration:s,builderFunctionName:o,manifest:a,credentials:u,systemWsUrl:c,instanceUrl:f,changesUploadUrl:p,env:h={}}=await Ve(n);(g=zr.auth)!=null&&g.accessToken&&Object.assign(h,{AMPT_REFRESH_AUTH:process.env.AMPT_API_KEY?`Basic ${process.env.AMPT_API_KEY}`:`Bearer ${zr.auth.accessToken}`,AMPT_REFRESH_URL:process.env.AMPT_ENDPOINT+r+"?sandbox=true",AMPT_CLI_VERSION:DFt}),this.deployToken=i,this.deployTokenExpiration=s,this.instance.url=f,this.instance.systemWsUrl=c,this.changesUploadUrl=p,this.credentials=u,this.env=h,this.builderFunctionName=o,this.builderLambda=new Wbe.default({credentials:u}),a&&!this.fullSync&&(this.manifest=Dbe(e6.default,a))}shouldSyncAll(t){let r=!0;return t&&(r=!1,t.forEach(n=>{(n.includes("package-lock.json")||n.includes("package.json")||n.includes("node_modules"))&&(r=!0)})),r}async sync(t){var r,n,i,s,o;try{let a=this.timerMs(),u=this.timerMs();await this.getUrlsAndMap();let c=u(),f=this.fullSync||this.shouldSyncAll(t),p=this.fullSync?{}:this.manifest.files,h=f?{}:this.manifest.files,g=f?{}:this.manifest.links,v={},_=[];if(f){let L=await qbe(this.src);this.workspaceRoot=L.workspace.workspaceDir,this.manifest.projectDirectory=(0,Gm.relative)(this.workspaceRoot,this.src);for(let[D,Z]of Object.entries(L.entries))this.fs.excludes(D)||(Z.type==="f"?(_.push(D),v[D]=Z.mode):Z.type==="l"&&(g[D]=Z.target))}else t&&t.forEach(L=>{let D=(0,Gm.join)(this.workspaceRoot,L);if(this.fs.excludes(L))return;let Z=(0,FA.statSync)(D,{throwIfNoEntry:!1});if(Z){if(Z.isFile())v[L]=Z.mode,_.push(L);else if(Z.isSymbolicLink()){let le=(0,FA.readlinkSync)(D),B=(0,Gm.relative)(this.workspaceRoot,(0,Gm.join)(L,le));g[L]=B}}else delete h[L],delete g[L]});let w=this.fs.hash(_,this.workspaceRoot),b=await(await El.from(async function*(){for await(let L of w){let D=[];for(let Z of L){let{normalizedPath:le,data:B,hash:V}=Z;if(B){let he=v[le],fe=p[le];(!fe||fe.hash!==V||fe.mode!==he)&&D.push({name:le,hash:V,mode:he,data:B}),h[le]={hash:V,mode:he}}else delete h[le],delete g[le]}yield D}}())).toBuffer(),S=b.length,T,R=0;if(this.manifest.files=h,this.manifest.links=g,this.fullSync=!1,S>100*1024){let L=this.timerMs();await Ve({method:"PUT",url:this.changesUploadUrl,body:b,headers:{"content-length":b.length,"content-type":"application/octet-stream"}}),R=L()}else T=b.toString("base64");let q=this.timerMs(),O={method:"POST",body:{deployToken:this.deployToken,manifest:Pbe(e6.default,this.manifest),inlineChanges:T},endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/code`},M=await Ve(O),U=q(),z=a();return this.manifest.sourceEtag=M.sourceEtag,this.manifest.modulesEtag=M.modulesEtag,{getUrlsTimeMs:c,uploadTimeMs:R,processChangesTimeMs:U,syncTimeMs:z,...M}}catch(a){if(a.message&&a.message.includes("Missing"))return this.user&&dr({orgName:(r=this.org)==null?void 0:r.orgName,eventName:"ampt.dev.failed",eventData:{serviceName:(n=this.service)==null?void 0:n.serviceName,instanceName:(i=this.instance)==null?void 0:i.instanceName,appName:`${(s=this.org)==null?void 0:s.orgName}:${(o=this.service)==null?void 0:o.serviceName}`}}),delete this.deployTokenExpiration,await this.getUrlsAndMap(),this.manifest={files:{},links:{},projectDirectory:this.src},await this.sync();throw a}}}});var Nl,$be=ye(()=>{"use strict";cn();Nl=class{fs;org;service;instance;constructor(t={}){this.fs=t.fs,this.org=t.org,this.service=t.service,this.instance=t.instance}async export(){let{dataFileName:t}=this.fs,r={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/data`,params:{dataFileName:t}},n=await Ve(r);await this.fs.writeDataFile(n)}async import(t){let{dataFileName:r}=this.fs,n=await this.fs.readDataFileIfExists(),i={method:"PUT",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/data`,body:{items:n,overwrite:t},params:{dataFileName:r}};try{await Ve(i)}catch(s){throw s.message==="Invalid key"?new Error("Your data file is missing fields. Please check the JSON file and try again."):s}}}});var Zbe=m((Bbr,Ybe)=>{var Vm=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zbe=require("path"),FFt=Vm?";":":",Gbe=JN(),Vbe=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Kbe=(e,t)=>{let r=t.colon||FFt,n=e.match(/\//)||Vm&&e.match(/\\/)?[""]:[...Vm?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Vm?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Vm?i.split(r):[""];return Vm&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},Xbe=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=Kbe(e,t),o=[],a=c=>new Promise((f,p)=>{if(c===n.length)return t.all&&o.length?f(o):p(Vbe(e));let h=n[c],g=/^".*"$/.test(h)?h.slice(1,-1):h,v=zbe.join(g,e),_=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+v:v;f(u(_,c,0))}),u=(c,f,p)=>new Promise((h,g)=>{if(p===i.length)return h(a(f+1));let v=i[p];Gbe(c+v,{pathExt:s},(_,w)=>{if(!_&&w)if(t.all)o.push(c+v);else return h(c+v);return h(u(c,f,p+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},MFt=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=Kbe(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=zbe.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let p=0;p<n.length;p++){let h=f+n[p];try{if(Gbe.sync(h,{pathExt:i}))if(t.all)s.push(h);else return h}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Vbe(e)};Ybe.exports=Xbe;Xbe.sync=MFt});var nwe=m((Ubr,rwe)=>{"use strict";var twe=require("child_process"),Jbe=twe.spawn,jFt=twe.exec;rwe.exports=function(e,t,r){if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},i={};switch(n[e]=[],i[e]=1,process.platform){case"win32":jFt("taskkill /pid "+e+" /T /F",r);break;case"darwin":t6(e,n,i,function(s){return Jbe("pgrep",["-P",s])},function(){Qbe(n,t,r)});break;default:t6(e,n,i,function(s){return Jbe("ps",["-o","pid","--no-headers","--ppid",s])},function(){Qbe(n,t,r)});break}};function Qbe(e,t,r){var n={};try{Object.keys(e).forEach(function(i){e[i].forEach(function(s){n[s]||(ewe(s,t),n[s]=1)}),n[i]||(ewe(i,t),n[i]=1)})}catch(i){if(r)return r(i);throw i}if(r)return r()}function ewe(e,t){try{process.kill(parseInt(e,10),t)}catch(r){if(r.code!=="ESRCH")throw r}}function t6(e,t,r,n,i){var s=n(e),o="";s.stdout.on("data",function(c){var c=c.toString("ascii");o+=c});var a=function(u){if(delete r[e],u!=0){Object.keys(r).length==0&&i();return}o.match(/\d+/g).forEach(function(c){c=parseInt(c,10),t[e].push(c),t[c]=[],r[c]=1,t6(c,t,r,n,i)})};s.on("close",a)}});var swe=m((Wbr,r6)=>{"use strict";var BFt=Object.prototype.hasOwnProperty,Ui="~";function hx(){}Object.create&&(hx.prototype=Object.create(null),new hx().__proto__||(Ui=!1));function UFt(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function iwe(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var s=new UFt(r,n||e,i),o=Ui?Ui+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],s]:e._events[o].push(s):(e._events[o]=s,e._eventsCount++),e}function MA(e,t){--e._eventsCount===0?e._events=new hx:delete e._events[t]}function wi(){this._events=new hx,this._eventsCount=0}wi.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)BFt.call(r,n)&&t.push(Ui?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};wi.prototype.listeners=function(t){var r=Ui?Ui+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i<s;i++)o[i]=n[i].fn;return o};wi.prototype.listenerCount=function(t){var r=Ui?Ui+t:t,n=this._events[r];return n?n.fn?1:n.length:0};wi.prototype.emit=function(t,r,n,i,s,o){var a=Ui?Ui+t:t;if(!this._events[a])return!1;var u=this._events[a],c=arguments.length,f,p;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,r),!0;case 3:return u.fn.call(u.context,r,n),!0;case 4:return u.fn.call(u.context,r,n,i),!0;case 5:return u.fn.call(u.context,r,n,i,s),!0;case 6:return u.fn.call(u.context,r,n,i,s,o),!0}for(p=1,f=new Array(c-1);p<c;p++)f[p-1]=arguments[p];u.fn.apply(u.context,f)}else{var h=u.length,g;for(p=0;p<h;p++)switch(u[p].once&&this.removeListener(t,u[p].fn,void 0,!0),c){case 1:u[p].fn.call(u[p].context);break;case 2:u[p].fn.call(u[p].context,r);break;case 3:u[p].fn.call(u[p].context,r,n);break;case 4:u[p].fn.call(u[p].context,r,n,i);break;default:if(!f)for(g=1,f=new Array(c-1);g<c;g++)f[g-1]=arguments[g];u[p].fn.apply(u[p].context,f)}}return!0};wi.prototype.on=function(t,r,n){return iwe(this,t,r,n,!1)};wi.prototype.once=function(t,r,n){return iwe(this,t,r,n,!0)};wi.prototype.removeListener=function(t,r,n,i){var s=Ui?Ui+t:t;if(!this._events[s])return this;if(!r)return MA(this,s),this;var o=this._events[s];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&MA(this,s);else{for(var a=0,u=[],c=o.length;a<c;a++)(o[a].fn!==r||i&&!o[a].once||n&&o[a].context!==n)&&u.push(o[a]);u.length?this._events[s]=u.length===1?u[0]:u:MA(this,s)}return this};wi.prototype.removeAllListeners=function(t){var r;return t?(r=Ui?Ui+t:t,this._events[r]&&MA(this,r)):(this._events=new hx,this._eventsCount=0),this};wi.prototype.off=wi.prototype.removeListener;wi.prototype.addListener=wi.prototype.on;wi.prefixed=Ui;wi.EventEmitter=wi;typeof r6<"u"&&(r6.exports=wi)});var awe=m((Hbr,owe)=>{"use strict";owe.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}});var jA=m(cwe=>{var tc=cwe,WFt=require("url"),uwe=require("util")._extend,HFt=awe(),$Ft=/(^|,)\s*upgrade\s*($|,)/i,n6=/^https|wss/;tc.isSSL=n6;tc.setupOutgoing=function(e,t,r,n){e.port=t[n||"target"].port||(n6.test(t[n||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(a){e[a]=t[n||"target"][a]}),e.method=t.method||r.method,e.headers=uwe({},r.headers),t.headers&&uwe(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),n6.test(t[n||"target"].protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!$Ft.test(e.headers.connection))&&(e.headers.connection="close"));var i=t[n||"target"],s=i&&t.prependPath!==!1&&i.path||"",o=t.toProxy?r.url:WFt.parse(r.url).path||"";return o=t.ignorePath?"":o,e.path=tc.urlJoin(s,o),t.changeOrigin&&(e.headers.host=HFt(e.port,t[n||"target"].protocol)&&!zFt(e.host)?e.host+":"+e.port:e.host),e};tc.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e};tc.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):"";return t?t[1]:tc.hasEncryptedConnection(e)?"443":"80"};tc.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)};tc.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=e.length-1,r=e[t],n=r.split("?"),i;return e[t]=n.shift(),i=[e.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")],i.push.apply(i,n),i.join("?")};tc.rewriteCookieProperty=function e(t,r,n){return Array.isArray(t)?t.map(function(i){return e(i,r,n)}):t.replace(new RegExp("(;\\s*"+n+"=)([^;]+)","i"),function(i,s,o){var a;if(o in r)a=r[o];else if("*"in r)a=r["*"];else return i;return a?s+a:""})};function zFt(e){return!!~e.indexOf(":")}});var dwe=m((zbr,pwe)=>{var lwe=require("url"),fwe=jA(),GFt=/^201|30(1|2|7|8)$/;pwe.exports={removeChunked:function(t,r,n){t.httpVersion==="1.0"&&delete n.headers["transfer-encoding"]},setConnection:function(t,r,n){t.httpVersion==="1.0"?n.headers.connection=t.headers.connection||"close":t.httpVersion!=="2.0"&&!n.headers.connection&&(n.headers.connection=t.headers.connection||"keep-alive")},setRedirectHostRewrite:function(t,r,n,i){if((i.hostRewrite||i.autoRewrite||i.protocolRewrite)&&n.headers.location&&GFt.test(n.statusCode)){var s=lwe.parse(i.target),o=lwe.parse(n.headers.location);if(s.host!=o.host)return;i.hostRewrite?o.host=i.hostRewrite:i.autoRewrite&&(o.host=t.headers.host),i.protocolRewrite&&(o.protocol=i.protocolRewrite),n.headers.location=o.format()}},writeHeaders:function(t,r,n,i){var s=i.cookieDomainRewrite,o=i.cookiePathRewrite,a=i.preserveHeaderKeyCase,u,c=function(h,g){g!=null&&(s&&h.toLowerCase()==="set-cookie"&&(g=fwe.rewriteCookieProperty(g,s,"domain")),o&&h.toLowerCase()==="set-cookie"&&(g=fwe.rewriteCookieProperty(g,o,"path")),r.setHeader(String(h).trim(),g))};if(typeof s=="string"&&(s={"*":s}),typeof o=="string"&&(o={"*":o}),a&&n.rawHeaders!=null){u={};for(var f=0;f<n.rawHeaders.length;f+=2){var p=n.rawHeaders[f];u[p.toLowerCase()]=p}}Object.keys(n.headers).forEach(function(h){var g=n.headers[h];a&&u&&(h=u[h]||h),c(h,g)})},writeStatusCode:function(t,r,n){n.statusMessage?(r.statusCode=n.statusCode,r.statusMessage=n.statusMessage):r.statusCode=n.statusCode}}});var mwe=m((Gbr,hwe)=>{var VFt=require("http"),KFt=require("https"),mx=dwe(),BA=jA(),XFt=DE();mx=Object.keys(mx).map(function(e){return mx[e]});var YFt={http:VFt,https:KFt};hwe.exports={deleteLength:function(t,r,n){(t.method==="DELETE"||t.method==="OPTIONS")&&!t.headers["content-length"]&&(t.headers["content-length"]="0",delete t.headers["transfer-encoding"])},timeout:function(t,r,n){n.timeout&&t.socket.setTimeout(n.timeout)},XHeaders:function(t,r,n){if(n.xfwd){var i=t.isSpdy||BA.hasEncryptedConnection(t),s={for:t.connection.remoteAddress||t.socket.remoteAddress,port:BA.getPort(t),proto:i?"https":"http"};["for","port","proto"].forEach(function(o){t.headers["x-forwarded-"+o]=(t.headers["x-forwarded-"+o]||"")+(t.headers["x-forwarded-"+o]?",":"")+s[o]}),t.headers["x-forwarded-host"]=t.headers["x-forwarded-host"]||t.headers.host||""}},stream:function(t,r,n,i,s,o){s.emit("start",t,r,n.target||n.forward);var a=n.followRedirects?XFt:YFt,u=a.http,c=a.https;if(n.forward){var f=(n.forward.protocol==="https:"?c:u).request(BA.setupOutgoing(n.ssl||{},n,t,"forward")),p=v(f,n.forward);if(t.on("error",p),f.on("error",p),(n.buffer||t).pipe(f),!n.target)return r.end()}var h=(n.target.protocol==="https:"?c:u).request(BA.setupOutgoing(n.ssl||{},n,t));h.on("socket",function(_){s&&!h.getHeader("expect")&&s.emit("proxyReq",h,t,r,n)}),n.proxyTimeout&&h.setTimeout(n.proxyTimeout,function(){h.abort()}),t.on("aborted",function(){h.abort()});var g=v(h,n.target);t.on("error",g),h.on("error",g);function v(_,w){return function(b){if(t.socket.destroyed&&b.code==="ECONNRESET")return s.emit("econnreset",b,t,r,w),_.abort();o?o(b,t,r,w):s.emit("error",b,t,r,w)}}(n.buffer||t).pipe(h),h.on("response",function(_){if(s&&s.emit("proxyRes",_,t,r),!r.headersSent&&!n.selfHandleResponse)for(var w=0;w<mx.length&&!mx[w](t,r,_,n);w++);r.finished?s&&s.emit("end",t,r,_):(_.on("end",function(){s&&s.emit("end",t,r,_)}),n.selfHandleResponse||_.pipe(r))})}}});var vwe=m((Vbr,gwe)=>{var ZFt=require("http"),JFt=require("https"),Km=jA();gwe.exports={checkMethodAndHeader:function(t,r){if(t.method!=="GET"||!t.headers.upgrade||t.headers.upgrade.toLowerCase()!=="websocket")return r.destroy(),!0},XHeaders:function(t,r,n){if(n.xfwd){var i={for:t.connection.remoteAddress||t.socket.remoteAddress,port:Km.getPort(t),proto:Km.hasEncryptedConnection(t)?"wss":"ws"};["for","port","proto"].forEach(function(s){t.headers["x-forwarded-"+s]=(t.headers["x-forwarded-"+s]||"")+(t.headers["x-forwarded-"+s]?",":"")+i[s]})}},stream:function(t,r,n,i,s,o){var a=function(f,p){return Object.keys(p).reduce(function(h,g){var v=p[g];if(!Array.isArray(v))return h.push(g+": "+v),h;for(var _=0;_<v.length;_++)h.push(g+": "+v[_]);return h},[f]).join(`\r
|
|
206
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Q_e=m((dbr,J_e)=>{"use strict";var ALt=OA(),{MAX_LENGTH:X_e,CHAR_BACKSLASH:M3,CHAR_BACKTICK:CLt,CHAR_COMMA:RLt,CHAR_DOT:OLt,CHAR_LEFT_PARENTHESES:ILt,CHAR_RIGHT_PARENTHESES:NLt,CHAR_LEFT_CURLY_BRACE:qLt,CHAR_RIGHT_CURLY_BRACE:kLt,CHAR_LEFT_SQUARE_BRACKET:Y_e,CHAR_RIGHT_SQUARE_BRACKET:Z_e,CHAR_DOUBLE_QUOTE:PLt,CHAR_SINGLE_QUOTE:DLt,CHAR_NO_BREAK_SPACE:LLt,CHAR_ZERO_WIDTH_NOBREAK_SPACE:FLt}=K_e(),MLt=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(X_e,r.maxLength):X_e;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,p=0,h,g={},v=()=>e[f++],_=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return o.nodes.push(w),w.parent=o,w.prev=a,a=w,w};for(_({type:"bos"});f<c;)if(o=s[s.length-1],h=v(),!(h===FLt||h===LLt)){if(h===M3){_({type:"text",value:(t.keepEscaping?h:"")+v()});continue}if(h===Z_e){_({type:"text",value:"\\"+h});continue}if(h===Y_e){u++;let w=!0,y;for(;f<c&&(y=v());){if(h+=y,y===Y_e){u++;continue}if(y===M3){h+=v();continue}if(y===Z_e&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===ILt){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===NLt){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===PLt||h===DLt||h===CLt){let w=h,y;for(t.keepQuotes!==!0&&(h="");f<c&&(y=v());){if(y===M3){h+=y+v();continue}if(y===w){t.keepQuotes===!0&&(h+=y);break}h+=y}_({type:"text",value:h});continue}if(h===qLt){p++;let y={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};o=_(y),s.push(o),_({type:"open",value:h});continue}if(h===kLt){if(o.type!=="brace"){_({type:"text",value:h});continue}let w="close";o=s.pop(),o.close=!0,_({type:w,value:h}),p--,o=s[s.length-1];continue}if(h===RLt&&p>0){if(o.ranges>0){o.ranges=0;let w=o.nodes.shift();o.nodes=[w,{type:"text",value:ALt(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===OLt&&p>0&&o.commas===0){let w=o.nodes;if(p===0||w.length===0){_({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){w.pop();let y=w[w.length-1];y.value+=a.value+h,a=y,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let w=s[s.length-1],y=w.nodes.indexOf(o);w.nodes.splice(y,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};J_e.exports=MLt});var j3=m((hbr,tbe)=>{"use strict";var ebe=OA(),jLt=H_e(),BLt=G_e(),ULt=Q_e(),Rs=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Rs.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Rs.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Rs.parse=(e,t={})=>ULt(e,t);Rs.stringify=(e,t={})=>ebe(typeof e=="string"?Rs.parse(e,t):e,t);Rs.compile=(e,t={})=>(typeof e=="string"&&(e=Rs.parse(e,t)),jLt(e,t));Rs.expand=(e,t={})=>{typeof e=="string"&&(e=Rs.parse(e,t));let r=BLt(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Rs.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Rs.compile(e,t):Rs.expand(e,t);tbe.exports=Rs});var cx=m((mbr,obe)=>{"use strict";var WLt=require("path"),ja="\\\\/",rbe=`[^${ja}]`,Qu="\\.",HLt="\\+",$Lt="\\?",NA="\\/",zLt="(?=.)",nbe="[^/]",B3=`(?:${NA}|$)`,ibe=`(?:^|${NA})`,U3=`${Qu}{1,2}${B3}`,GLt=`(?!${Qu})`,VLt=`(?!${ibe}${U3})`,KLt=`(?!${Qu}{0,1}${B3})`,XLt=`(?!${U3})`,YLt=`[^.${NA}]`,ZLt=`${nbe}*?`,sbe={DOT_LITERAL:Qu,PLUS_LITERAL:HLt,QMARK_LITERAL:$Lt,SLASH_LITERAL:NA,ONE_CHAR:zLt,QMARK:nbe,END_ANCHOR:B3,DOTS_SLASH:U3,NO_DOT:GLt,NO_DOTS:VLt,NO_DOT_SLASH:KLt,NO_DOTS_SLASH:XLt,QMARK_NO_DOT:YLt,STAR:ZLt,START_ANCHOR:ibe},JLt={...sbe,SLASH_LITERAL:`[${ja}]`,QMARK:rbe,STAR:`${rbe}*?`,DOTS_SLASH:`${Qu}{1,2}(?:[${ja}]|$)`,NO_DOT:`(?!${Qu})`,NO_DOTS:`(?!(?:^|[${ja}])${Qu}{1,2}(?:[${ja}]|$))`,NO_DOT_SLASH:`(?!${Qu}{0,1}(?:[${ja}]|$))`,NO_DOTS_SLASH:`(?!${Qu}{1,2}(?:[${ja}]|$))`,QMARK_NO_DOT:`[^.${ja}]`,START_ANCHOR:`(?:^|[${ja}])`,END_ANCHOR:`(?:[${ja}]|$)`},QLt={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};obe.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:QLt,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:WLt.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?JLt:sbe}}});var lx=m(as=>{"use strict";var eFt=require("path"),tFt=process.platform==="win32",{REGEX_BACKSLASH:rFt,REGEX_REMOVE_BACKSLASH:nFt,REGEX_SPECIAL_CHARS:iFt,REGEX_SPECIAL_CHARS_GLOBAL:sFt}=cx();as.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);as.hasRegexChars=e=>iFt.test(e);as.isRegexChar=e=>e.length===1&&as.hasRegexChars(e);as.escapeRegex=e=>e.replace(sFt,"\\$1");as.toPosixSlashes=e=>e.replace(rFt,"/");as.removeBackslashes=e=>e.replace(nFt,t=>t==="\\"?"":t);as.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};as.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:tFt===!0||eFt.sep==="\\";as.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?as.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};as.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};as.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var hbe=m((vbr,dbe)=>{"use strict";var abe=lx(),{CHAR_ASTERISK:W3,CHAR_AT:oFt,CHAR_BACKWARD_SLASH:fx,CHAR_COMMA:aFt,CHAR_DOT:H3,CHAR_EXCLAMATION_MARK:$3,CHAR_FORWARD_SLASH:pbe,CHAR_LEFT_CURLY_BRACE:z3,CHAR_LEFT_PARENTHESES:G3,CHAR_LEFT_SQUARE_BRACKET:uFt,CHAR_PLUS:cFt,CHAR_QUESTION_MARK:ube,CHAR_RIGHT_CURLY_BRACE:lFt,CHAR_RIGHT_PARENTHESES:cbe,CHAR_RIGHT_SQUARE_BRACKET:fFt}=cx(),lbe=e=>e===pbe||e===fx,fbe=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},pFt=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,p=0,h=!1,g=!1,v=!1,_=!1,w=!1,y=!1,b=!1,S=!1,T=!1,R=!1,q=0,O,M,U={value:"",depth:0,isGlob:!1},z=()=>c>=n,L=()=>u.charCodeAt(c+1),D=()=>(O=M,u.charCodeAt(++c));for(;c<n;){M=D();let he;if(M===fx){b=U.backslashes=!0,M=D(),M===z3&&(y=!0);continue}if(y===!0||M===z3){for(q++;z()!==!0&&(M=D());){if(M===fx){b=U.backslashes=!0,D();continue}if(M===z3){q++;continue}if(y!==!0&&M===H3&&(M=D())===H3){if(h=U.isBrace=!0,v=U.isGlob=!0,R=!0,i===!0)continue;break}if(y!==!0&&M===aFt){if(h=U.isBrace=!0,v=U.isGlob=!0,R=!0,i===!0)continue;break}if(M===lFt&&(q--,q===0)){y=!1,h=U.isBrace=!0,R=!0;break}}if(i===!0)continue;break}if(M===pbe){if(s.push(c),o.push(U),U={value:"",depth:0,isGlob:!1},R===!0)continue;if(O===H3&&c===f+1){f+=2;continue}p=c+1;continue}if(r.noext!==!0&&(M===cFt||M===oFt||M===W3||M===ube||M===$3)===!0&&L()===G3){if(v=U.isGlob=!0,_=U.isExtglob=!0,R=!0,M===$3&&c===f&&(T=!0),i===!0){for(;z()!==!0&&(M=D());){if(M===fx){b=U.backslashes=!0,M=D();continue}if(M===cbe){v=U.isGlob=!0,R=!0;break}}continue}break}if(M===W3){if(O===W3&&(w=U.isGlobstar=!0),v=U.isGlob=!0,R=!0,i===!0)continue;break}if(M===ube){if(v=U.isGlob=!0,R=!0,i===!0)continue;break}if(M===uFt){for(;z()!==!0&&(he=D());){if(he===fx){b=U.backslashes=!0,D();continue}if(he===fFt){g=U.isBracket=!0,v=U.isGlob=!0,R=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&M===$3&&c===f){S=U.negated=!0,f++;continue}if(r.noparen!==!0&&M===G3){if(v=U.isGlob=!0,i===!0){for(;z()!==!0&&(M=D());){if(M===G3){b=U.backslashes=!0,M=D();continue}if(M===cbe){R=!0;break}}continue}break}if(v===!0){if(R=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,v=!1);let Z=u,le="",B="";f>0&&(le=u.slice(0,f),u=u.slice(f),p-=f),Z&&v===!0&&p>0?(Z=u.slice(0,p),B=u.slice(p)):v===!0?(Z="",B=u):Z=u,Z&&Z!==""&&Z!=="/"&&Z!==u&&lbe(Z.charCodeAt(Z.length-1))&&(Z=Z.slice(0,-1)),r.unescape===!0&&(B&&(B=abe.removeBackslashes(B)),Z&&b===!0&&(Z=abe.removeBackslashes(Z)));let V={prefix:le,input:e,start:f,base:Z,glob:B,isBrace:h,isBracket:g,isGlob:v,isExtglob:_,isGlobstar:w,negated:S,negatedExtglob:T};if(r.tokens===!0&&(V.maxDepth=0,lbe(M)||o.push(U),V.tokens=o),r.parts===!0||r.tokens===!0){let he;for(let fe=0;fe<s.length;fe++){let xe=he?he+1:f,se=s[fe],Ve=e.slice(xe,se);r.tokens&&(fe===0&&f!==0?(o[fe].isPrefix=!0,o[fe].value=le):o[fe].value=Ve,fbe(o[fe]),V.maxDepth+=o[fe].depth),(fe!==0||Ve!=="")&&a.push(Ve),he=se}if(he&&he+1<e.length){let fe=e.slice(he+1);a.push(fe),r.tokens&&(o[o.length-1].value=fe,fbe(o[o.length-1]),V.maxDepth+=o[o.length-1].depth)}V.slashes=s,V.parts=a}return V};dbe.exports=pFt});var vbe=m((ybr,gbe)=>{"use strict";var qA=cx(),Os=lx(),{MAX_LENGTH:kA,POSIX_REGEX_SOURCE:dFt,REGEX_NON_SPECIAL_CHARS:hFt,REGEX_SPECIAL_CHARS_BACKREF:mFt,REPLACEMENTS:mbe}=qA,gFt=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Os.escapeRegex(i)).join("..")}return r},Hm=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,V3=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=mbe[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(kA,r.maxLength):kA,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=Os.isWindows(t),c=qA.globChars(u),f=qA.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:h,SLASH_LITERAL:g,ONE_CHAR:v,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK:S,QMARK_NO_DOT:T,STAR:R,START_ANCHOR:q}=c,O=pe=>`(${a}(?:(?!${q}${pe.dot?_:p}).)*?)`,M=r.dot?"":w,U=r.dot?S:T,z=r.bash===!0?O(r):R;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let L={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Os.removePrefix(e,L),i=e.length;let D=[],Z=[],le=[],B=s,V,he=()=>L.index===i-1,fe=L.peek=(pe=1)=>e[L.index+pe],xe=L.advance=()=>e[++L.index]||"",se=()=>e.slice(L.index+1),Ve=(pe="",k=0)=>{L.consumed+=pe,L.index+=k},Le=pe=>{L.output+=pe.output!=null?pe.output:pe.value,Ve(pe.value)},Ee=()=>{let pe=1;for(;fe()==="!"&&(fe(2)!=="("||fe(3)==="?");)xe(),L.start++,pe++;return pe%2===0?!1:(L.negated=!0,L.start++,!0)},it=pe=>{L[pe]++,le.push(pe)},Vt=pe=>{L[pe]--,le.pop()},Te=pe=>{if(B.type==="globstar"){let k=L.braces>0&&(pe.type==="comma"||pe.type==="brace"),A=pe.extglob===!0||D.length&&(pe.type==="pipe"||pe.type==="paren");pe.type!=="slash"&&pe.type!=="paren"&&!k&&!A&&(L.output=L.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=z,L.output+=B.output)}if(D.length&&pe.type!=="paren"&&(D[D.length-1].inner+=pe.value),(pe.value||pe.output)&&Le(pe),B&&B.type==="text"&&pe.type==="text"){B.value+=pe.value,B.output=(B.output||"")+pe.value;return}pe.prev=B,o.push(pe),B=pe},Ur=(pe,k)=>{let A={...f[k],conditions:1,inner:""};A.prev=B,A.parens=L.parens,A.output=L.output;let H=(r.capture?"(":"")+A.open;it("parens"),Te({type:pe,value:k,output:L.output?"":v}),Te({type:"paren",extglob:!0,value:xe(),output:H}),D.push(A)},Ci=pe=>{let k=pe.close+(r.capture?")":""),A;if(pe.type==="negate"){let H=z;if(pe.inner&&pe.inner.length>1&&pe.inner.includes("/")&&(H=O(r)),(H!==z||he()||/^\)+$/.test(se()))&&(k=pe.close=`)$))${H}`),pe.inner.includes("*")&&(A=se())&&/^\.[^\\/.]+$/.test(A)){let K=V3(A,{...t,fastpaths:!1}).output;k=pe.close=`)${K})${H})`}pe.prev.type==="bos"&&(L.negatedExtglob=!0)}Te({type:"paren",extglob:!0,value:V,output:k}),Vt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let pe=!1,k=e.replace(mFt,(A,H,K,He,Fe,rr)=>He==="\\"?(pe=!0,A):He==="?"?H?H+He+(Fe?S.repeat(Fe.length):""):rr===0?U+(Fe?S.repeat(Fe.length):""):S.repeat(K.length):He==="."?p.repeat(K.length):He==="*"?H?H+He+(Fe?z:""):z:H?A:`\\${A}`);return pe===!0&&(r.unescape===!0?k=k.replace(/\\/g,""):k=k.replace(/\\+/g,A=>A.length%2===0?"\\\\":A?"\\":"")),k===e&&r.contains===!0?(L.output=e,L):(L.output=Os.wrapOutput(k,L,t),L)}for(;!he();){if(V=xe(),V==="\0")continue;if(V==="\\"){let A=fe();if(A==="/"&&r.bash!==!0||A==="."||A===";")continue;if(!A){V+="\\",Te({type:"text",value:V});continue}let H=/^\\+/.exec(se()),K=0;if(H&&H[0].length>2&&(K=H[0].length,L.index+=K,K%2!==0&&(V+="\\")),r.unescape===!0?V=xe():V+=xe(),L.brackets===0){Te({type:"text",value:V});continue}}if(L.brackets>0&&(V!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==!1&&V===":"){let A=B.value.slice(1);if(A.includes("[")&&(B.posix=!0,A.includes(":"))){let H=B.value.lastIndexOf("["),K=B.value.slice(0,H),He=B.value.slice(H+2),Fe=dFt[He];if(Fe){B.value=K+Fe,L.backtrack=!0,xe(),!s.output&&o.indexOf(B)===1&&(s.output=v);continue}}}(V==="["&&fe()!==":"||V==="-"&&fe()==="]")&&(V=`\\${V}`),V==="]"&&(B.value==="["||B.value==="[^")&&(V=`\\${V}`),r.posix===!0&&V==="!"&&B.value==="["&&(V="^"),B.value+=V,Le({value:V});continue}if(L.quotes===1&&V!=='"'){V=Os.escapeRegex(V),B.value+=V,Le({value:V});continue}if(V==='"'){L.quotes=L.quotes===1?0:1,r.keepQuotes===!0&&Te({type:"text",value:V});continue}if(V==="("){it("parens"),Te({type:"paren",value:V});continue}if(V===")"){if(L.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Hm("opening","("));let A=D[D.length-1];if(A&&L.parens===A.parens+1){Ci(D.pop());continue}Te({type:"paren",value:V,output:L.parens?")":"\\)"}),Vt("parens");continue}if(V==="["){if(r.nobracket===!0||!se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Hm("closing","]"));V=`\\${V}`}else it("brackets");Te({type:"bracket",value:V});continue}if(V==="]"){if(r.nobracket===!0||B&&B.type==="bracket"&&B.value.length===1){Te({type:"text",value:V,output:`\\${V}`});continue}if(L.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Hm("opening","["));Te({type:"text",value:V,output:`\\${V}`});continue}Vt("brackets");let A=B.value.slice(1);if(B.posix!==!0&&A[0]==="^"&&!A.includes("/")&&(V=`/${V}`),B.value+=V,Le({value:V}),r.literalBrackets===!1||Os.hasRegexChars(A))continue;let H=Os.escapeRegex(B.value);if(L.output=L.output.slice(0,-B.value.length),r.literalBrackets===!0){L.output+=H,B.value=H;continue}B.value=`(${a}${H}|${B.value})`,L.output+=B.value;continue}if(V==="{"&&r.nobrace!==!0){it("braces");let A={type:"brace",value:V,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};Z.push(A),Te(A);continue}if(V==="}"){let A=Z[Z.length-1];if(r.nobrace===!0||!A){Te({type:"text",value:V,output:V});continue}let H=")";if(A.dots===!0){let K=o.slice(),He=[];for(let Fe=K.length-1;Fe>=0&&(o.pop(),K[Fe].type!=="brace");Fe--)K[Fe].type!=="dots"&&He.unshift(K[Fe].value);H=gFt(He,r),L.backtrack=!0}if(A.comma!==!0&&A.dots!==!0){let K=L.output.slice(0,A.outputIndex),He=L.tokens.slice(A.tokensIndex);A.value=A.output="\\{",V=H="\\}",L.output=K;for(let Fe of He)L.output+=Fe.output||Fe.value}Te({type:"brace",value:V,output:H}),Vt("braces"),Z.pop();continue}if(V==="|"){D.length>0&&D[D.length-1].conditions++,Te({type:"text",value:V});continue}if(V===","){let A=V,H=Z[Z.length-1];H&&le[le.length-1]==="braces"&&(H.comma=!0,A="|"),Te({type:"comma",value:V,output:A});continue}if(V==="/"){if(B.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",o.pop(),B=s;continue}Te({type:"slash",value:V,output:g});continue}if(V==="."){if(L.braces>0&&B.type==="dot"){B.value==="."&&(B.output=p);let A=Z[Z.length-1];B.type="dots",B.output+=V,B.value+=V,A.dots=!0;continue}if(L.braces+L.parens===0&&B.type!=="bos"&&B.type!=="slash"){Te({type:"text",value:V,output:p});continue}Te({type:"dot",value:V,output:p});continue}if(V==="?"){if(!(B&&B.value==="(")&&r.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ur("qmark",V);continue}if(B&&B.type==="paren"){let H=fe(),K=V;if(H==="<"&&!Os.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(B.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(se()))&&(K=`\\${V}`),Te({type:"text",value:V,output:K});continue}if(r.dot!==!0&&(B.type==="slash"||B.type==="bos")){Te({type:"qmark",value:V,output:T});continue}Te({type:"qmark",value:V,output:S});continue}if(V==="!"){if(r.noextglob!==!0&&fe()==="("&&(fe(2)!=="?"||!/[!=<:]/.test(fe(3)))){Ur("negate",V);continue}if(r.nonegate!==!0&&L.index===0){Ee();continue}}if(V==="+"){if(r.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Ur("plus",V);continue}if(B&&B.value==="("||r.regex===!1){Te({type:"plus",value:V,output:h});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||L.parens>0){Te({type:"plus",value:V});continue}Te({type:"plus",value:h});continue}if(V==="@"){if(r.noextglob!==!0&&fe()==="("&&fe(2)!=="?"){Te({type:"at",extglob:!0,value:V,output:""});continue}Te({type:"text",value:V});continue}if(V!=="*"){(V==="$"||V==="^")&&(V=`\\${V}`);let A=hFt.exec(se());A&&(V+=A[0],L.index+=A[0].length),Te({type:"text",value:V});continue}if(B&&(B.type==="globstar"||B.star===!0)){B.type="star",B.star=!0,B.value+=V,B.output=z,L.backtrack=!0,L.globstar=!0,Ve(V);continue}let pe=se();if(r.noextglob!==!0&&/^\([^?]/.test(pe)){Ur("star",V);continue}if(B.type==="star"){if(r.noglobstar===!0){Ve(V);continue}let A=B.prev,H=A.prev,K=A.type==="slash"||A.type==="bos",He=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!K||pe[0]&&pe[0]!=="/")){Te({type:"star",value:V,output:""});continue}let Fe=L.braces>0&&(A.type==="comma"||A.type==="brace"),rr=D.length&&(A.type==="pipe"||A.type==="paren");if(!K&&A.type!=="paren"&&!Fe&&!rr){Te({type:"star",value:V,output:""});continue}for(;pe.slice(0,3)==="/**";){let Nr=e[L.index+4];if(Nr&&Nr!=="/")break;pe=pe.slice(3),Ve("/**",3)}if(A.type==="bos"&&he()){B.type="globstar",B.value+=V,B.output=O(r),L.output=B.output,L.globstar=!0,Ve(V);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&!He&&he()){L.output=L.output.slice(0,-(A.output+B.output).length),A.output=`(?:${A.output}`,B.type="globstar",B.output=O(r)+(r.strictSlashes?")":"|$)"),B.value+=V,L.globstar=!0,L.output+=A.output+B.output,Ve(V);continue}if(A.type==="slash"&&A.prev.type!=="bos"&&pe[0]==="/"){let Nr=pe[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(A.output+B.output).length),A.output=`(?:${A.output}`,B.type="globstar",B.output=`${O(r)}${g}|${g}${Nr})`,B.value+=V,L.output+=A.output+B.output,L.globstar=!0,Ve(V+xe()),Te({type:"slash",value:"/",output:""});continue}if(A.type==="bos"&&pe[0]==="/"){B.type="globstar",B.value+=V,B.output=`(?:^|${g}|${O(r)}${g})`,L.output=B.output,L.globstar=!0,Ve(V+xe()),Te({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-B.output.length),B.type="globstar",B.output=O(r),B.value+=V,L.output+=B.output,L.globstar=!0,Ve(V);continue}let k={type:"star",value:V,output:z};if(r.bash===!0){k.output=".*?",(B.type==="bos"||B.type==="slash")&&(k.output=M+k.output),Te(k);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===!0){k.output=V,Te(k);continue}(L.index===L.start||B.type==="slash"||B.type==="dot")&&(B.type==="dot"?(L.output+=y,B.output+=y):r.dot===!0?(L.output+=b,B.output+=b):(L.output+=M,B.output+=M),fe()!=="*"&&(L.output+=v,B.output+=v)),Te(k)}for(;L.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hm("closing","]"));L.output=Os.escapeLast(L.output,"["),Vt("brackets")}for(;L.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hm("closing",")"));L.output=Os.escapeLast(L.output,"("),Vt("parens")}for(;L.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Hm("closing","}"));L.output=Os.escapeLast(L.output,"{"),Vt("braces")}if(r.strictSlashes!==!0&&(B.type==="star"||B.type==="bracket")&&Te({type:"maybe_slash",value:"",output:`${g}?`}),L.backtrack===!0){L.output="";for(let pe of L.tokens)L.output+=pe.output!=null?pe.output:pe.value,pe.suffix&&(L.output+=pe.suffix)}return L};V3.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(kA,r.maxLength):kA,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=mbe[e]||e;let s=Os.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:p,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:v}=qA.globChars(s),_=r.dot?p:f,w=r.dot?h:f,y=r.capture?"":"?:",b={negated:!1,prefix:""},S=r.bash===!0?".*?":g;r.capture&&(S=`(${S})`);let T=M=>M.noglobstar===!0?S:`(${y}(?:(?!${v}${M.dot?c:o}).)*?)`,R=M=>{switch(M){case"*":return`${_}${u}${S}`;case".*":return`${o}${u}${S}`;case"*.*":return`${_}${S}${o}${u}${S}`;case"*/*":return`${_}${S}${a}${u}${w}${S}`;case"**":return _+T(r);case"**/*":return`(?:${_}${T(r)}${a})?${w}${u}${S}`;case"**/*.*":return`(?:${_}${T(r)}${a})?${w}${S}${o}${u}${S}`;case"**/.*":return`(?:${_}${T(r)}${a})?${o}${u}${S}`;default:{let U=/^(.*?)\.(\w+)$/.exec(M);if(!U)return;let z=R(U[1]);return z?z+o+U[2]:void 0}}},q=Os.removePrefix(e,b),O=R(q);return O&&r.strictSlashes!==!0&&(O+=`${a}?`),O};gbe.exports=V3});var xbe=m((xbr,ybe)=>{"use strict";var vFt=require("path"),yFt=hbe(),K3=vbe(),X3=lx(),xFt=cx(),_Ft=e=>e&&typeof e=="object"&&!Array.isArray(e),nn=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>nn(h,t,r));return h=>{for(let g of f){let v=g(h);if(v)return v}return!1}}let n=_Ft(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=X3.isWindows(t),o=n?nn.compileRe(e,t):nn.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=nn(i.ignore,f,r)}let c=(f,p=!1)=>{let{isMatch:h,match:g,output:v}=nn.test(f,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:f,output:v,match:g,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,p?_:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,p?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),p?_:!0)};return r&&(c.state=a),c};nn.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?X3.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=nn.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};nn.matchBase=(e,t,r,n=X3.isWindows(r))=>(t instanceof RegExp?t:nn.makeRe(t,r)).test(vFt.basename(e));nn.isMatch=(e,t,r)=>nn(t,r)(e);nn.parse=(e,t)=>Array.isArray(e)?e.map(r=>nn.parse(r,t)):K3(e,{...t,fastpaths:!1});nn.scan=(e,t)=>yFt(e,t);nn.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=nn.toRegex(a,t);return n===!0&&(u.state=e),u};nn.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=K3.fastpaths(e,t)),i.output||(i=K3(e,t)),nn.compileRe(i,t,r,n)};nn.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};nn.constants=xFt;ybe.exports=nn});var PA=m((_br,_be)=>{"use strict";_be.exports=xbe()});var Tbe=m((bbr,Sbe)=>{"use strict";var wbe=require("util"),Ebe=j3(),Ba=PA(),Y3=lx(),bbe=e=>e===""||e==="./",Ir=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let p=Ba(String(t[f]),{...r,onResult:a},!0),h=p.state.negated||p.state.negatedExtglob;h&&o++;for(let g of e){let v=p(g,!0);(h?!v.isMatch:v.isMatch)&&(h?n.add(v.output):(n.delete(v.output),i.add(v.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return c};Ir.match=Ir;Ir.matcher=(e,t)=>Ba(e,t);Ir.isMatch=(e,t,r)=>Ba(t,r)(e);Ir.any=Ir.isMatch;Ir.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Ir(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Ir.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wbe.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Ir.contains(e,n,r));if(typeof t=="string"){if(bbe(e)||bbe(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Ir.isMatch(e,t,{...r,contains:!0})};Ir.matchKeys=(e,t,r)=>{if(!Y3.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Ir(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Ir.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ba(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Ir.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Ba(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Ir.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wbe.inspect(e)}"`);return[].concat(t).every(n=>Ba(n,r)(e))};Ir.capture=(e,t,r)=>{let n=Y3.isWindows(r),s=Ba.makeRe(String(e),{...r,capture:!0}).exec(n?Y3.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Ir.makeRe=(...e)=>Ba.makeRe(...e);Ir.scan=(...e)=>Ba.scan(...e);Ir.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Ebe(String(n),t))r.push(Ba.parse(i,t));return r};Ir.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Ebe(e,t)};Ir.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Ir.braces(e,{...t,expand:!0})};Sbe.exports=Ir});function wFt(e,t){let{packageManager:r}=e;if(r){let n=r.match(bFt);if(n)return n[1]}return t.pnpmLockPath?"pnpm":t.yarnLockPath?"yarn":"npm"}function px(e,t){if(e.pnpmWorkspacePath){let{packages:r}=y_e.load(Abe.default.readFileSync(e.pnpmWorkspacePath,"utf-8"));return Array.isArray(r)&&r.length>0?{name:"pnpm",isInWorkspace(n){return(0,Z3.default)([n],r).length>0}}:{name:"pnpm",isInWorkspace(){return!0}}}if(t){let r=wFt(t,e),{workspaces:n}=t;return n?{name:r,isInWorkspace(i){return Z3.default.isMatch(i,n)}}:{name:r,isInWorkspace(){return!1}}}return null}var Abe,Z3,bFt,Cbe=ye(()=>{"use strict";Abe=de(require("fs"),1);x_e();Z3=de(Tbe(),1),bFt=new RegExp("(npm|pnpm|yarn)@?")});function Nbe(e){let t=(0,ii.join)(e,"package.json"),r=(0,ii.join)(e,"pnpm-workspace.yaml"),n=(0,ii.join)(e,"pnpm-lock.yaml"),i=(0,ii.join)(e,"yarn.lock");return{packageJsonPath:mo.default.existsSync(t)?t:void 0,pnpmWorkspacePath:mo.default.existsSync(r)?r:void 0,pnpmLockPath:mo.default.existsSync(n)?n:void 0,yarnLockPath:mo.default.existsSync(i)?i:void 0}}function Rbe(e){return JSON.parse(mo.default.readFileSync(e,"utf-8"))}function EFt(e,t){let{workspaceDir:r,packageManager:n}=e,i=[{dir:r,isNodeModules:!1}],s={},o=new Set,a=["node_modules/.bin","node_modules/.cache",".git",".ampt","node_modules/@ampt/cli","node_modules/fsevents","node_modules/aws-sdk/**/*.d.ts","node_modules/aws-sdk/**/*.examples.json","node_modules/aws-sdk/**/*.md","node_modules/aws-sdk/dist","node_modules/aws-sdk/dist-tools","node_modules/aws-sdk/scripts","node_modules/.vite/","node_modules/.prisma/client/libquery_engine-debian*","coverage/",".svelte-kit",".cache",".nuxt",".output"],u=(0,Ibe.default)().add(a);if(mo.default.existsSync((0,ii.join)(r,".amptignore"))){let c=mo.default.readFileSync((0,ii.join)(r,".amptignore"),{encoding:"utf8"});u.add(c)}for(;i.length>0;){let{dir:c,isNodeModules:f}=i.shift();for(let p of mo.default.readdirSync(c,{withFileTypes:!0})){let h=(0,ii.join)(c,p.name),g=(0,ii.relative)(r,h);if(!u.ignores(g)){if(p.isDirectory()){if(p.isSymbolicLink())throw new Error("Did not expect entry to be a symolic link and a directory");let v=(0,ii.join)(h,"package.json");if(!f&&mo.default.existsSync(v)&&!!(0,ii.relative)(t,h).startsWith("..")&&!n.isInWorkspace(g))continue;i.push({dir:h,isNodeModules:f||p.name==="node_modules"}),s[g]={type:"d"}}else if(p.isSymbolicLink()){let v=mo.default.readlinkSync(h),_=(0,ii.relative)(r,(0,ii.join)(c,v));o.add({key:g,target:_})}else if(p.isFile()){let v=mo.default.statSync(h);s[g]={type:"f",mode:v.mode,size:v.size}}}}}for(let{target:c,key:f}of o)s[c]&&(s[f]={type:"l",target:c});return s}function SFt(e,t){(0,Obe.default)(t.packageJsonPath,`${e} does not contain a package.json`);let r=Rbe(t.packageJsonPath);if(r.workspaces||t.pnpmWorkspacePath)return{packageManager:px(t,r),workspaceDir:e,survey:t};for(let n=0,i=e;n<10;n++){i=(0,ii.resolve)(i,"..");let s=Nbe(i),o=s.packageJsonPath?Rbe(s.packageJsonPath):void 0,a=px(s,o),u=(0,ii.relative)(i,e);if(a&&a.isInWorkspace(u))return{packageManager:a,workspaceDir:i,survey:s}}return{packageManager:px(t,r),workspaceDir:e,survey:t}}async function qbe(e){return new Promise(t=>{let r=Nbe(e);process.nextTick(()=>{let n=SFt(e,r);process.nextTick(()=>{let i=EFt(n,e);t({projectDir:e,workspace:n,entries:i})})})})}var Obe,mo,ii,Ibe,kbe=ye(()=>{Obe=de(require("assert"),1),mo=de(require("fs"),1),ii=require("path"),Ibe=de(x3(),1);Cbe()});function Pbe(e,t){return Buffer.from(e.compress(Buffer.from(JSON.stringify(t),"utf-8"))).toString("base64")}function Dbe(e,t){return JSON.parse(Buffer.from(e.decompress(Buffer.from(t,"base64"))).toString("utf-8"))}var Lbe=ye(()=>{});var Ube=m((Rbr,zm)=>{var Fbe={};Fbe.__wbindgen_placeholder__=zm.exports;var bi,{TextDecoder:TFt}=require("util"),Mbe=new TFt("utf-8",{ignoreBOM:!0,fatal:!0});Mbe.decode();var DA=null;function J3(){return(DA===null||DA.buffer!==bi.memory.buffer)&&(DA=new Uint8Array(bi.memory.buffer)),DA}function AFt(e,t){return Mbe.decode(J3().subarray(e,e+t))}var ec=new Array(32).fill(void 0);ec.push(void 0,null,!0,!1);var dx=ec.length;function CFt(e){dx===ec.length&&ec.push(ec.length+1);let t=dx;return dx=ec[t],ec[t]=e,t}var Q3=0;function jbe(e,t){let r=t(e.length*1);return J3().set(e,r/1),Q3=e.length,r}var LA=null;function $m(){return(LA===null||LA.buffer!==bi.memory.buffer)&&(LA=new Int32Array(bi.memory.buffer)),LA}function Bbe(e,t){return J3().subarray(e/1,e/1+t)}zm.exports.compress=function(e){try{let i=bi.__wbindgen_add_to_stack_pointer(-16),s=jbe(e,bi.__wbindgen_malloc),o=Q3;bi.compress(i,s,o);var t=$m()[i/4+0],r=$m()[i/4+1],n=Bbe(t,r).slice();return bi.__wbindgen_free(t,r*1),n}finally{bi.__wbindgen_add_to_stack_pointer(16)}};function RFt(e){return ec[e]}function OFt(e){e<36||(ec[e]=dx,dx=e)}function IFt(e){let t=RFt(e);return OFt(e),t}zm.exports.decompress=function(e){try{let o=bi.__wbindgen_add_to_stack_pointer(-16),a=jbe(e,bi.__wbindgen_malloc),u=Q3;bi.decompress(o,a,u);var t=$m()[o/4+0],r=$m()[o/4+1],n=$m()[o/4+2],i=$m()[o/4+3];if(i)throw IFt(n);var s=Bbe(t,r).slice();return bi.__wbindgen_free(t,r*1),s}finally{bi.__wbindgen_add_to_stack_pointer(16)}};zm.exports.__wbindgen_string_new=function(e,t){let r=AFt(e,t);return CFt(r)};var NFt=require("path").join(__dirname,"lz4_wasm_nodejs_bg.wasm"),qFt=require("fs").readFileSync(NFt),kFt=new WebAssembly.Module(qFt),PFt=new WebAssembly.Instance(kFt,Fbe);bi=PFt.exports;zm.exports.__wasm=bi});var FA,Gm,Wbe,e6,DFt,LFt,go,Hbe=ye(()=>{"use strict";FA=require("fs"),Gm=require("path");rme();Wbe=de(oxe());e0();kbe();Lbe();cn();Hu();e6=de(Ube()),{version:DFt}=Sm(),LFt=6e4,go=class{fs;org;service;instance;user;src;changesUploadUrl;deployTokenExpiration;deployToken;builderFunctionName;builderLambda;credentials;env;sandboxMode=!1;manifest;workspaceRoot;fullSync;constructor(t){this.fs=t.fs,this.org=t.org,this.service=t.service,this.instance=t.instance,this.user=t.user,this.sandboxMode=t.sandboxMode||!1,this.fullSync=t.fullSync??!1,this.src=this.fs.serviceRoot,this.manifest={files:{},links:{},projectDirectory:"."},this.changesUploadUrl=null,this.workspaceRoot=this.fs.serviceRoot}timerMs(){let t=process.hrtime.bigint();return function(){let r=process.hrtime.bigint();return parseFloat((Number(r-t)/1e6).toFixed(2))}}async getUrlsAndMap(){var g;if(this.deployTokenExpiration-Date.now()>LFt)return;let r=`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/code`,n={method:"GET",endpoint:r,params:{instanceType:this.instance.instanceType,region:this.instance.region,sandbox:this.sandboxMode}},{deployToken:i,deployTokenExpiration:s,builderFunctionName:o,manifest:a,credentials:u,systemWsUrl:c,instanceUrl:f,changesUploadUrl:p,env:h={}}=await Ge(n);(g=zr.auth)!=null&&g.accessToken&&Object.assign(h,{AMPT_REFRESH_AUTH:process.env.AMPT_API_KEY?`Basic ${process.env.AMPT_API_KEY}`:`Bearer ${zr.auth.accessToken}`,AMPT_REFRESH_URL:process.env.AMPT_ENDPOINT+r+"?sandbox=true",AMPT_CLI_VERSION:DFt}),this.deployToken=i,this.deployTokenExpiration=s,this.instance.url=f,this.instance.systemWsUrl=c,this.changesUploadUrl=p,this.credentials=u,this.env=h,this.builderFunctionName=o,this.builderLambda=new Wbe.default({credentials:u}),a&&!this.fullSync&&(this.manifest=Dbe(e6.default,a))}shouldSyncAll(t){let r=!0;return t&&(r=!1,t.forEach(n=>{(n.includes("package-lock.json")||n.includes("package.json")||n.includes("node_modules"))&&(r=!0)})),r}async sync(t){var r,n,i,s,o;try{let a=this.timerMs(),u=this.timerMs();await this.getUrlsAndMap();let c=u(),f=this.fullSync||this.shouldSyncAll(t),p=this.fullSync?{}:this.manifest.files,h=f?{}:this.manifest.files,g=f?{}:this.manifest.links,v={},_=[];if(f){let L=await qbe(this.src);this.workspaceRoot=L.workspace.workspaceDir,this.manifest.projectDirectory=(0,Gm.relative)(this.workspaceRoot,this.src);for(let[D,Z]of Object.entries(L.entries))this.fs.excludes(D)||(Z.type==="f"?(_.push(D),v[D]=Z.mode):Z.type==="l"&&(g[D]=Z.target))}else t&&t.forEach(L=>{let D=(0,Gm.join)(this.workspaceRoot,L);if(this.fs.excludes(L))return;let Z=(0,FA.statSync)(D,{throwIfNoEntry:!1});if(Z){if(Z.isFile())v[L]=Z.mode,_.push(L);else if(Z.isSymbolicLink()){let le=(0,FA.readlinkSync)(D),B=(0,Gm.relative)(this.workspaceRoot,(0,Gm.join)(L,le));g[L]=B}}else delete h[L],delete g[L]});let w=this.fs.hash(_,this.workspaceRoot),b=await(await El.from(async function*(){for await(let L of w){let D=[];for(let Z of L){let{normalizedPath:le,data:B,hash:V}=Z;if(B){let he=v[le],fe=p[le];(!fe||fe.hash!==V||fe.mode!==he)&&D.push({name:le,hash:V,mode:he,data:B}),h[le]={hash:V,mode:he}}else delete h[le],delete g[le]}yield D}}())).toBuffer(),S=b.length,T,R=0;if(this.manifest.files=h,this.manifest.links=g,this.fullSync=!1,S>100*1024){let L=this.timerMs();await Ge({method:"PUT",url:this.changesUploadUrl,body:b,headers:{"content-length":b.length,"content-type":"application/octet-stream"}}),R=L()}else T=b.toString("base64");let q=this.timerMs(),O={method:"POST",body:{deployToken:this.deployToken,manifest:Pbe(e6.default,this.manifest),inlineChanges:T},endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/code`},M=await Ge(O),U=q(),z=a();return this.manifest.sourceEtag=M.sourceEtag,this.manifest.modulesEtag=M.modulesEtag,{getUrlsTimeMs:c,uploadTimeMs:R,processChangesTimeMs:U,syncTimeMs:z,...M}}catch(a){if(a.message&&a.message.includes("Missing"))return this.user&&dr({orgName:(r=this.org)==null?void 0:r.orgName,eventName:"ampt.dev.failed",eventData:{serviceName:(n=this.service)==null?void 0:n.serviceName,instanceName:(i=this.instance)==null?void 0:i.instanceName,appName:`${(s=this.org)==null?void 0:s.orgName}:${(o=this.service)==null?void 0:o.serviceName}`}}),delete this.deployTokenExpiration,await this.getUrlsAndMap(),this.manifest={files:{},links:{},projectDirectory:this.src},await this.sync();throw a}}}});var Nl,$be=ye(()=>{"use strict";cn();Nl=class{fs;org;service;instance;constructor(t={}){this.fs=t.fs,this.org=t.org,this.service=t.service,this.instance=t.instance}async export(){let{dataFileName:t}=this.fs,r={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/data`,params:{dataFileName:t}},n=await Ge(r);await this.fs.writeDataFile(n)}async import(t){let{dataFileName:r}=this.fs,n=await this.fs.readDataFileIfExists(),i={method:"PUT",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instance.instanceName}/data`,body:{items:n,overwrite:t},params:{dataFileName:r}};try{await Ge(i)}catch(s){throw s.message==="Invalid key"?new Error("Your data file is missing fields. Please check the JSON file and try again."):s}}}});var Zbe=m((Bbr,Ybe)=>{var Vm=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zbe=require("path"),FFt=Vm?";":":",Gbe=JN(),Vbe=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Kbe=(e,t)=>{let r=t.colon||FFt,n=e.match(/\//)||Vm&&e.match(/\\/)?[""]:[...Vm?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Vm?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Vm?i.split(r):[""];return Vm&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},Xbe=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=Kbe(e,t),o=[],a=c=>new Promise((f,p)=>{if(c===n.length)return t.all&&o.length?f(o):p(Vbe(e));let h=n[c],g=/^".*"$/.test(h)?h.slice(1,-1):h,v=zbe.join(g,e),_=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+v:v;f(u(_,c,0))}),u=(c,f,p)=>new Promise((h,g)=>{if(p===i.length)return h(a(f+1));let v=i[p];Gbe(c+v,{pathExt:s},(_,w)=>{if(!_&&w)if(t.all)o.push(c+v);else return h(c+v);return h(u(c,f,p+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},MFt=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=Kbe(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=zbe.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let p=0;p<n.length;p++){let h=f+n[p];try{if(Gbe.sync(h,{pathExt:i}))if(t.all)s.push(h);else return h}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Vbe(e)};Ybe.exports=Xbe;Xbe.sync=MFt});var nwe=m((Ubr,rwe)=>{"use strict";var twe=require("child_process"),Jbe=twe.spawn,jFt=twe.exec;rwe.exports=function(e,t,r){if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},i={};switch(n[e]=[],i[e]=1,process.platform){case"win32":jFt("taskkill /pid "+e+" /T /F",r);break;case"darwin":t6(e,n,i,function(s){return Jbe("pgrep",["-P",s])},function(){Qbe(n,t,r)});break;default:t6(e,n,i,function(s){return Jbe("ps",["-o","pid","--no-headers","--ppid",s])},function(){Qbe(n,t,r)});break}};function Qbe(e,t,r){var n={};try{Object.keys(e).forEach(function(i){e[i].forEach(function(s){n[s]||(ewe(s,t),n[s]=1)}),n[i]||(ewe(i,t),n[i]=1)})}catch(i){if(r)return r(i);throw i}if(r)return r()}function ewe(e,t){try{process.kill(parseInt(e,10),t)}catch(r){if(r.code!=="ESRCH")throw r}}function t6(e,t,r,n,i){var s=n(e),o="";s.stdout.on("data",function(c){var c=c.toString("ascii");o+=c});var a=function(u){if(delete r[e],u!=0){Object.keys(r).length==0&&i();return}o.match(/\d+/g).forEach(function(c){c=parseInt(c,10),t[e].push(c),t[c]=[],r[c]=1,t6(c,t,r,n,i)})};s.on("close",a)}});var swe=m((Wbr,r6)=>{"use strict";var BFt=Object.prototype.hasOwnProperty,Ui="~";function hx(){}Object.create&&(hx.prototype=Object.create(null),new hx().__proto__||(Ui=!1));function UFt(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function iwe(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var s=new UFt(r,n||e,i),o=Ui?Ui+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],s]:e._events[o].push(s):(e._events[o]=s,e._eventsCount++),e}function MA(e,t){--e._eventsCount===0?e._events=new hx:delete e._events[t]}function wi(){this._events=new hx,this._eventsCount=0}wi.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)BFt.call(r,n)&&t.push(Ui?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};wi.prototype.listeners=function(t){var r=Ui?Ui+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i<s;i++)o[i]=n[i].fn;return o};wi.prototype.listenerCount=function(t){var r=Ui?Ui+t:t,n=this._events[r];return n?n.fn?1:n.length:0};wi.prototype.emit=function(t,r,n,i,s,o){var a=Ui?Ui+t:t;if(!this._events[a])return!1;var u=this._events[a],c=arguments.length,f,p;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,r),!0;case 3:return u.fn.call(u.context,r,n),!0;case 4:return u.fn.call(u.context,r,n,i),!0;case 5:return u.fn.call(u.context,r,n,i,s),!0;case 6:return u.fn.call(u.context,r,n,i,s,o),!0}for(p=1,f=new Array(c-1);p<c;p++)f[p-1]=arguments[p];u.fn.apply(u.context,f)}else{var h=u.length,g;for(p=0;p<h;p++)switch(u[p].once&&this.removeListener(t,u[p].fn,void 0,!0),c){case 1:u[p].fn.call(u[p].context);break;case 2:u[p].fn.call(u[p].context,r);break;case 3:u[p].fn.call(u[p].context,r,n);break;case 4:u[p].fn.call(u[p].context,r,n,i);break;default:if(!f)for(g=1,f=new Array(c-1);g<c;g++)f[g-1]=arguments[g];u[p].fn.apply(u[p].context,f)}}return!0};wi.prototype.on=function(t,r,n){return iwe(this,t,r,n,!1)};wi.prototype.once=function(t,r,n){return iwe(this,t,r,n,!0)};wi.prototype.removeListener=function(t,r,n,i){var s=Ui?Ui+t:t;if(!this._events[s])return this;if(!r)return MA(this,s),this;var o=this._events[s];if(o.fn)o.fn===r&&(!i||o.once)&&(!n||o.context===n)&&MA(this,s);else{for(var a=0,u=[],c=o.length;a<c;a++)(o[a].fn!==r||i&&!o[a].once||n&&o[a].context!==n)&&u.push(o[a]);u.length?this._events[s]=u.length===1?u[0]:u:MA(this,s)}return this};wi.prototype.removeAllListeners=function(t){var r;return t?(r=Ui?Ui+t:t,this._events[r]&&MA(this,r)):(this._events=new hx,this._eventsCount=0),this};wi.prototype.off=wi.prototype.removeListener;wi.prototype.addListener=wi.prototype.on;wi.prefixed=Ui;wi.EventEmitter=wi;typeof r6<"u"&&(r6.exports=wi)});var awe=m((Hbr,owe)=>{"use strict";owe.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}});var jA=m(cwe=>{var tc=cwe,WFt=require("url"),uwe=require("util")._extend,HFt=awe(),$Ft=/(^|,)\s*upgrade\s*($|,)/i,n6=/^https|wss/;tc.isSSL=n6;tc.setupOutgoing=function(e,t,r,n){e.port=t[n||"target"].port||(n6.test(t[n||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(a){e[a]=t[n||"target"][a]}),e.method=t.method||r.method,e.headers=uwe({},r.headers),t.headers&&uwe(e.headers,t.headers),t.auth&&(e.auth=t.auth),t.ca&&(e.ca=t.ca),n6.test(t[n||"target"].protocol)&&(e.rejectUnauthorized=typeof t.secure>"u"?!0:t.secure),e.agent=t.agent||!1,e.localAddress=t.localAddress,e.agent||(e.headers=e.headers||{},(typeof e.headers.connection!="string"||!$Ft.test(e.headers.connection))&&(e.headers.connection="close"));var i=t[n||"target"],s=i&&t.prependPath!==!1&&i.path||"",o=t.toProxy?r.url:WFt.parse(r.url).path||"";return o=t.ignorePath?"":o,e.path=tc.urlJoin(s,o),t.changeOrigin&&(e.headers.host=HFt(e.port,t[n||"target"].protocol)&&!zFt(e.host)?e.host+":"+e.port:e.host),e};tc.setupSocket=function(e){return e.setTimeout(0),e.setNoDelay(!0),e.setKeepAlive(!0,0),e};tc.getPort=function(e){var t=e.headers.host?e.headers.host.match(/:(\d+)/):"";return t?t[1]:tc.hasEncryptedConnection(e)?"443":"80"};tc.hasEncryptedConnection=function(e){return!!(e.connection.encrypted||e.connection.pair)};tc.urlJoin=function(){var e=Array.prototype.slice.call(arguments),t=e.length-1,r=e[t],n=r.split("?"),i;return e[t]=n.shift(),i=[e.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")],i.push.apply(i,n),i.join("?")};tc.rewriteCookieProperty=function e(t,r,n){return Array.isArray(t)?t.map(function(i){return e(i,r,n)}):t.replace(new RegExp("(;\\s*"+n+"=)([^;]+)","i"),function(i,s,o){var a;if(o in r)a=r[o];else if("*"in r)a=r["*"];else return i;return a?s+a:""})};function zFt(e){return!!~e.indexOf(":")}});var dwe=m((zbr,pwe)=>{var lwe=require("url"),fwe=jA(),GFt=/^201|30(1|2|7|8)$/;pwe.exports={removeChunked:function(t,r,n){t.httpVersion==="1.0"&&delete n.headers["transfer-encoding"]},setConnection:function(t,r,n){t.httpVersion==="1.0"?n.headers.connection=t.headers.connection||"close":t.httpVersion!=="2.0"&&!n.headers.connection&&(n.headers.connection=t.headers.connection||"keep-alive")},setRedirectHostRewrite:function(t,r,n,i){if((i.hostRewrite||i.autoRewrite||i.protocolRewrite)&&n.headers.location&&GFt.test(n.statusCode)){var s=lwe.parse(i.target),o=lwe.parse(n.headers.location);if(s.host!=o.host)return;i.hostRewrite?o.host=i.hostRewrite:i.autoRewrite&&(o.host=t.headers.host),i.protocolRewrite&&(o.protocol=i.protocolRewrite),n.headers.location=o.format()}},writeHeaders:function(t,r,n,i){var s=i.cookieDomainRewrite,o=i.cookiePathRewrite,a=i.preserveHeaderKeyCase,u,c=function(h,g){g!=null&&(s&&h.toLowerCase()==="set-cookie"&&(g=fwe.rewriteCookieProperty(g,s,"domain")),o&&h.toLowerCase()==="set-cookie"&&(g=fwe.rewriteCookieProperty(g,o,"path")),r.setHeader(String(h).trim(),g))};if(typeof s=="string"&&(s={"*":s}),typeof o=="string"&&(o={"*":o}),a&&n.rawHeaders!=null){u={};for(var f=0;f<n.rawHeaders.length;f+=2){var p=n.rawHeaders[f];u[p.toLowerCase()]=p}}Object.keys(n.headers).forEach(function(h){var g=n.headers[h];a&&u&&(h=u[h]||h),c(h,g)})},writeStatusCode:function(t,r,n){n.statusMessage?(r.statusCode=n.statusCode,r.statusMessage=n.statusMessage):r.statusCode=n.statusCode}}});var mwe=m((Gbr,hwe)=>{var VFt=require("http"),KFt=require("https"),mx=dwe(),BA=jA(),XFt=DE();mx=Object.keys(mx).map(function(e){return mx[e]});var YFt={http:VFt,https:KFt};hwe.exports={deleteLength:function(t,r,n){(t.method==="DELETE"||t.method==="OPTIONS")&&!t.headers["content-length"]&&(t.headers["content-length"]="0",delete t.headers["transfer-encoding"])},timeout:function(t,r,n){n.timeout&&t.socket.setTimeout(n.timeout)},XHeaders:function(t,r,n){if(n.xfwd){var i=t.isSpdy||BA.hasEncryptedConnection(t),s={for:t.connection.remoteAddress||t.socket.remoteAddress,port:BA.getPort(t),proto:i?"https":"http"};["for","port","proto"].forEach(function(o){t.headers["x-forwarded-"+o]=(t.headers["x-forwarded-"+o]||"")+(t.headers["x-forwarded-"+o]?",":"")+s[o]}),t.headers["x-forwarded-host"]=t.headers["x-forwarded-host"]||t.headers.host||""}},stream:function(t,r,n,i,s,o){s.emit("start",t,r,n.target||n.forward);var a=n.followRedirects?XFt:YFt,u=a.http,c=a.https;if(n.forward){var f=(n.forward.protocol==="https:"?c:u).request(BA.setupOutgoing(n.ssl||{},n,t,"forward")),p=v(f,n.forward);if(t.on("error",p),f.on("error",p),(n.buffer||t).pipe(f),!n.target)return r.end()}var h=(n.target.protocol==="https:"?c:u).request(BA.setupOutgoing(n.ssl||{},n,t));h.on("socket",function(_){s&&!h.getHeader("expect")&&s.emit("proxyReq",h,t,r,n)}),n.proxyTimeout&&h.setTimeout(n.proxyTimeout,function(){h.abort()}),t.on("aborted",function(){h.abort()});var g=v(h,n.target);t.on("error",g),h.on("error",g);function v(_,w){return function(b){if(t.socket.destroyed&&b.code==="ECONNRESET")return s.emit("econnreset",b,t,r,w),_.abort();o?o(b,t,r,w):s.emit("error",b,t,r,w)}}(n.buffer||t).pipe(h),h.on("response",function(_){if(s&&s.emit("proxyRes",_,t,r),!r.headersSent&&!n.selfHandleResponse)for(var w=0;w<mx.length&&!mx[w](t,r,_,n);w++);r.finished?s&&s.emit("end",t,r,_):(_.on("end",function(){s&&s.emit("end",t,r,_)}),n.selfHandleResponse||_.pipe(r))})}}});var vwe=m((Vbr,gwe)=>{var ZFt=require("http"),JFt=require("https"),Km=jA();gwe.exports={checkMethodAndHeader:function(t,r){if(t.method!=="GET"||!t.headers.upgrade||t.headers.upgrade.toLowerCase()!=="websocket")return r.destroy(),!0},XHeaders:function(t,r,n){if(n.xfwd){var i={for:t.connection.remoteAddress||t.socket.remoteAddress,port:Km.getPort(t),proto:Km.hasEncryptedConnection(t)?"wss":"ws"};["for","port","proto"].forEach(function(s){t.headers["x-forwarded-"+s]=(t.headers["x-forwarded-"+s]||"")+(t.headers["x-forwarded-"+s]?",":"")+i[s]})}},stream:function(t,r,n,i,s,o){var a=function(f,p){return Object.keys(p).reduce(function(h,g){var v=p[g];if(!Array.isArray(v))return h.push(g+": "+v),h;for(var _=0;_<v.length;_++)h.push(g+": "+v[_]);return h},[f]).join(`\r
|
|
207
207
|
`)+`\r
|
|
208
208
|
\r
|
|
209
209
|
`};Km.setupSocket(r),i&&i.length&&r.unshift(i);var u=(Km.isSSL.test(n.target.protocol)?JFt:ZFt).request(Km.setupOutgoing(n.ssl||{},n,t));return s&&s.emit("proxyReqWs",u,t,r,n,i),u.on("error",c),u.on("response",function(f){f.upgrade||(r.write(a("HTTP/"+f.httpVersion+" "+f.statusCode+" "+f.statusMessage,f.headers)),f.pipe(r))}),u.on("upgrade",function(f,p,h){p.on("error",c),p.on("end",function(){s.emit("close",f,p,h)}),r.on("error",function(){p.end()}),Km.setupSocket(p),h&&h.length&&p.unshift(h),r.write(a("HTTP/1.1 101 Switching Protocols",f.headers)),p.pipe(r).pipe(p),s.emit("open",p),s.emit("proxySocket",p)}),u.end();function c(f){o?o(f,t,r):s.emit("error",f,t,r),r.end()}}}});var Swe=m((Kbr,Ewe)=>{var bwe=Ewe.exports,ywe=require("util")._extend,QFt=require("url").parse,wwe=swe(),eMt=require("http"),tMt=require("https"),xwe=mwe(),_we=vwe();bwe.Server=kp;function i6(e){return function(t){return function(r,n){var i=e==="ws"?this.wsPasses:this.webPasses,s=[].slice.call(arguments),o=s.length-1,a,u;typeof s[o]=="function"&&(u=s[o],o--);var c=t;if(!(s[o]instanceof Buffer)&&s[o]!==n&&(c=ywe({},t),ywe(c,s[o]),o--),s[o]instanceof Buffer&&(a=s[o]),["target","forward"].forEach(function(p){typeof c[p]=="string"&&(c[p]=QFt(c[p]))}),!c.target&&!c.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var f=0;f<i.length&&!i[f](r,n,c,a,this,u);f++);}}}bwe.createRightProxy=i6;function kp(e){wwe.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=i6("web")(e),this.ws=this.proxyWebsocketRequest=i6("ws")(e),this.options=e,this.webPasses=Object.keys(xwe).map(function(t){return xwe[t]}),this.wsPasses=Object.keys(_we).map(function(t){return _we[t]}),this.on("error",this.onError,this)}require("util").inherits(kp,wwe);kp.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};kp.prototype.listen=function(e,t){var r=this,n=function(i,s){r.web(i,s)};return this._server=this.options.ssl?tMt.createServer(this.options.ssl,n):eMt.createServer(n),this.options.ws&&this._server.on("upgrade",function(i,s,o){r.ws(i,s,o)}),this._server.listen(e,t),this};kp.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};kp.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(s,o){s.name===t&&(i=o)}),i===!1)throw new Error("No such pass");n.splice(i,0,r)};kp.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,i=!1;if(n.forEach(function(s,o){s.name===t&&(i=o)}),i===!1)throw new Error("No such pass");n.splice(i++,0,r)}});var Awe=m((Xbr,Twe)=>{var gx=Swe().Server;function s6(e){return new gx(e)}gx.createProxyServer=s6;gx.createServer=s6;gx.createProxy=s6;Twe.exports=gx});var Rwe=m((Ybr,Cwe)=>{Cwe.exports=Awe()});function qwe(e){let t=Nwe.default.createProxyServer({});return Owe.default.createServer((r,n)=>{t.web(r,n,{changeOrigin:!0,target:e,autoRewrite:!0,agent:Iwe.globalAgent})})}var Owe,Iwe,Nwe,kwe=ye(()=>{"use strict";Owe=de(require("http")),Iwe=require("https"),Nwe=de(Rwe())});var Dwe=m((Jbr,o6)=>{"use strict";var rMt=require("net"),WA=class extends Error{constructor(t){super(`${t} is locked`)}},Xm={old:new Set,young:new Set},nMt=1e3*15,UA,Pwe=e=>new Promise((t,r)=>{let n=rMt.createServer();n.unref(),n.on("error",r),n.listen(e,()=>{let{port:i}=n.address();n.close(()=>{t(i)})})}),iMt=function*(e){e&&(yield*e),yield 0};o6.exports=async e=>{let t;e&&(t=typeof e.port=="number"?[e.port]:e.port),UA===void 0&&(UA=setInterval(()=>{Xm.old=Xm.young,Xm.young=new Set},nMt),UA.unref&&UA.unref());for(let r of iMt(t))try{let n=await Pwe({...e,port:r});for(;Xm.old.has(n)||Xm.young.has(n);){if(r!==0)throw new WA(r);n=await Pwe({...e,port:r})}return Xm.young.add(n),n}catch(n){if(!["EADDRINUSE","EACCES"].includes(n.code)&&!(n instanceof WA))throw n}throw new Error("No available ports found")};o6.exports.makeRange=(e,t)=>{if(!Number.isInteger(e)||!Number.isInteger(t))throw new TypeError("`from` and `to` must be integer numbers");if(e<1024||e>65535)throw new RangeError("`from` must be between 1024 and 65535");if(t<1024||t>65536)throw new RangeError("`to` must be between 1024 and 65536");if(t<e)throw new RangeError("`to` must be greater than or equal to `from`");return function*(n,i){for(let s=n;s<=i;s++)yield s}(e,t)}});var Mwe,jwe,u6,Bwe,Ua,Uwe,a6,Lwe,Fwe,vx,Wi,Wwe=ye(()=>{"use strict";Mwe=require("child_process"),jwe=de(require("os")),u6=de(require("path")),Bwe=de(Zbe()),Ua=de(tm()),Uwe=de(nwe());kwe();i4();e4();a6=de(Dwe()),Fwe=!1,vx=(e,t)=>u6.default.join(jwe.default.homedir(),".serverless",`cloud_dev_server_${e}_${t}.json`),Wi=class{static async start(t){var _,w,y,b,S;let r=await(0,Bwe.default)("npm");t&&(Lwe=t);let{credentials:n,env:i,url:s,cli:o,fs:a,scriptName:u,ifPresent:c,orgName:f,serviceName:p,region:h}=Lwe,g=o.options.port||process.env.AMPT_PORT||await(0,a6.default)({port:a6.default.makeRange(9e3,9100)});if(u==="dev"){let T=await this.isRunning({orgName:f,serviceName:p});if(T)return o.logError(`The dev server for this app is already running at port ${T.port} with a PID of ${T.pid}. Run the "stop" command to stop it.`),1}if(u==="dev"?o.devServerOn():o.pause(),(_=a.serviceFile)!=null&&_.scripts&&((w=a.serviceFile)!=null&&w.scripts["cloud:dev"]||(y=a.serviceFile)!=null&&y.scripts["ampt:dev"])){let T=((b=a.serviceFile)==null?void 0:b.scripts["ampt:dev"])||((S=a.serviceFile)==null?void 0:S.scripts["cloud:dev"]),q=["astro","eleventy","next","react","svelte","vue"].find(O=>T.includes(O));QM({orgName:f,eventName:"ampt.devserver.started",eventData:{appName:`${f}:${p}`,orgName:f,serviceName:p,scriptName:u,frameworkName:q}})}return await qwe(s).listen(g),new Promise(T=>{var U,z;let R=u6.default.join(__dirname,"ttyStub.js"),q={...process.env,...i,AMPT_URL:s,AMPT_PORT:g,AWS_REGION:h,AWS_ACCESS_KEY_ID:n.accessKeyId,AWS_SECRET_ACCESS_KEY:n.secretAccessKey,AWS_SESSION_TOKEN:n.sessionToken,TTY_STUB_COLS:process.stdout.columns,TTY_STUB_ROWS:process.stdout.rows,TTY_STUB_COLORS:process.stdout.getColorDepth(),NODE_OPTIONS:`-r ${R}`};delete q.AWS_PROFILE;let O=["run",`"ampt:${u}"`];c&&O.push("--if-present");let M=(0,Mwe.spawn)(`"${r}"`,O,{stdio:[null,"pipe","pipe"],cwd:process.cwd(),shell:!0,env:q});u==="dev"&&this.writeFile({orgName:f,serviceName:p,content:{pid:M.pid,port:g}}),process.stdout.on("resize",()=>{}),(U=M.stdout)==null||U.on("data",L=>{o.write(L)}),(z=M.stderr)==null||z.on("data",L=>{o.write(L)}),M.on("exit",L=>{if(u==="dev"&&(0,Ua.removeSync)(vx(f,p)),Fwe){T(0);return}T(L===null?0:L)})})}static async isRunning({orgName:t,serviceName:r}){try{let n=JSON.parse(await(0,Ua.readFile)(vx(t,r),"utf8"));return Che(n.pid)?n:((0,Ua.removeSync)(vx(t,r)),!1)}catch{return!1}}static writeFile({orgName:t,serviceName:r,content:n}){let i=vx(t,r);(0,Ua.ensureFileSync)(i),(0,Ua.writeFileSync)(i,JSON.stringify(n||{},null,4))}static async stop(t,r){t.devServerOff(),Fwe=!!(r!=null&&r.hasQuit);let{orgName:n,serviceName:i}=r,s=await this.isRunning({orgName:n,serviceName:i});s&&(await new Promise(o=>{(0,Uwe.default)(s.pid,o)}),(0,Ua.removeSync)(vx(n,i)),QM({orgName:n,eventName:"ampt.devserver.stopped",eventData:{appName:`${n}:${i}`,orgName:n,serviceName:i}}))}}});var c6=m(Hwe=>{Hwe.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{let e=require("original-fs");if(Object.keys(e).length>0)return e}catch{}return require("fs")}});var l6=m((iwr,$we)=>{$we.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var f6=m((swr,zwe)=>{zwe.exports={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"}});var Xwe=m((owr,Kwe)=>{var sMt=c6().require(),Hi=require("path"),Gwe=l6(),oMt=f6(),aMt=typeof process=="object"&&process.platform==="win32",Vwe=e=>e&&typeof e=="object",p6=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t>>>=1;return t>>>0});function si(e){this.sep=Hi.sep,this.fs=sMt,Vwe(e)&&Vwe(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}Kwe.exports=si;si.prototype.makeDir=function(e){let t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw oMt.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};si.prototype.writeFileTo=function(e,t,r,n){let i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=Hi.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var a;try{a=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),a=i.fs.openSync(e,"w",438)}if(a)try{i.fs.writeSync(a,t,0,t.length,0)}finally{i.fs.closeSync(a)}return i.fs.chmodSync(e,n||438),!0};si.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);let s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(a,u){if(o&&u.isDirectory())return i(!1);var c=Hi.dirname(e);s.fs.exists(c,function(f){f||s.makeDir(c),s.fs.open(e,"w",438,function(p,h){p?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(g,v){s.fs.write(v,t,0,t.length,0,function(){s.fs.close(v,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):h?s.fs.write(h,t,0,t.length,0,function(){s.fs.close(h,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};si.prototype.findFiles=function(e){let t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(a){var u=Hi.join(n,a);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(Hi.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};si.prototype.getAttributes=function(){};si.prototype.setAttributes=function(){};si.crc32update=function(e,t){return p6[(e^t)&255]^e>>>8};si.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),p6.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=si.crc32update(r,e[n++]);return~r>>>0};si.methodToString=function(e){switch(e){case Gwe.STORED:return"STORED ("+e+")";case Gwe.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};si.canonical=function(e){if(!e)return"";var t=Hi.posix.normalize("/"+e.split("\\").join("/"));return Hi.join(".",t)};si.sanitize=function(e,t){e=Hi.resolve(Hi.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=Hi.normalize(Hi.join(e,r.slice(n,i).join(Hi.sep)));if(s.indexOf(e)===0)return s}return Hi.normalize(Hi.join(e,Hi.basename(t)))};si.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};si.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};si.isWin=aMt;si.crcTable=p6});var Jwe=m((awr,Zwe)=>{var HA=c6().require(),Ywe=require("path");HA.existsSync=HA.existsSync||Ywe.existsSync;Zwe.exports=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&HA.existsSync(t)?(n=HA.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=Ywe.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var Ym=m((uwr,yx)=>{yx.exports=Xwe();yx.exports.Constants=l6();yx.exports.Errors=f6();yx.exports.FileAttr=Jwe()});var eEe=m((cwr,Qwe)=>{var xx=Ym(),Se=xx.Constants;Qwe.exports=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,a=0,u=0,c=0,f=0,p=0,h=0,g=0,v=0;e|=xx.isWin?2560:768,r|=Se.FLG_EFS;var _={};function w(y){y=new Date(y),i=(y.getFullYear()-1980&127)<<25|y.getMonth()+1<<21|y.getDate()<<16|y.getHours()<<11|y.getMinutes()<<5|y.getSeconds()>>1}return w(+new Date),{get made(){return e},set made(y){e=y},get version(){return t},set version(y){t=y},get flags(){return r},set flags(y){r=y},get method(){return n},set method(y){switch(y){case Se.STORED:this.version=10;case Se.DEFLATED:default:this.version=20}n=y},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(y){w(y)},get crc(){return s},set crc(y){s=Math.max(0,y)>>>0},get compressedSize(){return o},set compressedSize(y){o=Math.max(0,y)>>>0},get size(){return a},set size(y){a=Math.max(0,y)>>>0},get fileNameLength(){return u},set fileNameLength(y){u=y},get extraLength(){return c},set extraLength(y){c=y},get commentLength(){return f},set commentLength(y){f=y},get diskNumStart(){return p},set diskNumStart(y){p=Math.max(0,y)>>>0},get inAttr(){return h},set inAttr(y){h=Math.max(0,y)>>>0},get attr(){return g},set attr(y){g=Math.max(0,y)>>>0},get fileAttr(){return g?(g>>>0|0)>>16&4095:0},get offset(){return v},set offset(y){v=Math.max(0,y)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return Se.CENHDR+u+c+f},get realDataOffset(){return v+Se.LOCHDR+_.fnameLen+_.extraLen},get dataHeader(){return _},loadDataHeaderFromBinary:function(y){var b=y.slice(v,v+Se.LOCHDR);if(b.readUInt32LE(0)!==Se.LOCSIG)throw new Error(xx.Errors.INVALID_LOC);_={version:b.readUInt16LE(Se.LOCVER),flags:b.readUInt16LE(Se.LOCFLG),method:b.readUInt16LE(Se.LOCHOW),time:b.readUInt32LE(Se.LOCTIM),crc:b.readUInt32LE(Se.LOCCRC),compressedSize:b.readUInt32LE(Se.LOCSIZ),size:b.readUInt32LE(Se.LOCLEN),fnameLen:b.readUInt16LE(Se.LOCNAM),extraLen:b.readUInt16LE(Se.LOCEXT)}},loadFromBinary:function(y){if(y.length!==Se.CENHDR||y.readUInt32LE(0)!==Se.CENSIG)throw new Error(xx.Errors.INVALID_CEN);e=y.readUInt16LE(Se.CENVEM),t=y.readUInt16LE(Se.CENVER),r=y.readUInt16LE(Se.CENFLG),n=y.readUInt16LE(Se.CENHOW),i=y.readUInt32LE(Se.CENTIM),s=y.readUInt32LE(Se.CENCRC),o=y.readUInt32LE(Se.CENSIZ),a=y.readUInt32LE(Se.CENLEN),u=y.readUInt16LE(Se.CENNAM),c=y.readUInt16LE(Se.CENEXT),f=y.readUInt16LE(Se.CENCOM),p=y.readUInt16LE(Se.CENDSK),h=y.readUInt16LE(Se.CENATT),g=y.readUInt32LE(Se.CENATX),v=y.readUInt32LE(Se.CENOFF)},dataHeaderToBinary:function(){var y=Buffer.alloc(Se.LOCHDR);return y.writeUInt32LE(Se.LOCSIG,0),y.writeUInt16LE(t,Se.LOCVER),y.writeUInt16LE(r,Se.LOCFLG),y.writeUInt16LE(n,Se.LOCHOW),y.writeUInt32LE(i,Se.LOCTIM),y.writeUInt32LE(s,Se.LOCCRC),y.writeUInt32LE(o,Se.LOCSIZ),y.writeUInt32LE(a,Se.LOCLEN),y.writeUInt16LE(u,Se.LOCNAM),y.writeUInt16LE(c,Se.LOCEXT),y},entryHeaderToBinary:function(){var y=Buffer.alloc(Se.CENHDR+u+c+f);return y.writeUInt32LE(Se.CENSIG,0),y.writeUInt16LE(e,Se.CENVEM),y.writeUInt16LE(t,Se.CENVER),y.writeUInt16LE(r,Se.CENFLG),y.writeUInt16LE(n,Se.CENHOW),y.writeUInt32LE(i,Se.CENTIM),y.writeUInt32LE(s,Se.CENCRC),y.writeUInt32LE(o,Se.CENSIZ),y.writeUInt32LE(a,Se.CENLEN),y.writeUInt16LE(u,Se.CENNAM),y.writeUInt16LE(c,Se.CENEXT),y.writeUInt16LE(f,Se.CENCOM),y.writeUInt16LE(p,Se.CENDSK),y.writeUInt16LE(h,Se.CENATT),y.writeUInt32LE(g,Se.CENATX),y.writeUInt32LE(v,Se.CENOFF),y.fill(0,Se.CENHDR),y},toJSON:function(){let y=function(b){return b+" bytes"};return{made:e,version:t,flags:r,method:xx.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:y(o),size:y(a),fileNameLength:y(u),extraLength:y(c),commentLength:y(f),diskNumStart:p,inAttr:h,attr:g,offset:v,entryHeaderSize:y(Se.CENHDR+u+c+f)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var rEe=m((lwr,tEe)=>{var Zm=Ym(),Mr=Zm.Constants;tEe.exports=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return Mr.ENDHDR+i},loadFromBinary:function(s){if((s.length!==Mr.ENDHDR||s.readUInt32LE(0)!==Mr.ENDSIG)&&(s.length<Mr.ZIP64HDR||s.readUInt32LE(0)!==Mr.ZIP64SIG))throw new Error(Zm.Errors.INVALID_END);s.readUInt32LE(0)===Mr.ENDSIG?(e=s.readUInt16LE(Mr.ENDSUB),t=s.readUInt16LE(Mr.ENDTOT),r=s.readUInt32LE(Mr.ENDSIZ),n=s.readUInt32LE(Mr.ENDOFF),i=s.readUInt16LE(Mr.ENDCOM)):(e=Zm.readBigUInt64LE(s,Mr.ZIP64SUB),t=Zm.readBigUInt64LE(s,Mr.ZIP64TOT),r=Zm.readBigUInt64LE(s,Mr.ZIP64SIZE),n=Zm.readBigUInt64LE(s,Mr.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc(Mr.ENDHDR+i);return s.writeUInt32LE(Mr.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,Mr.ENDSUB),s.writeUInt16LE(t,Mr.ENDTOT),s.writeUInt32LE(r,Mr.ENDSIZ),s.writeUInt32LE(n,Mr.ENDOFF),s.writeUInt16LE(i,Mr.ENDCOM),s.fill(" ",Mr.ENDHDR),s},toJSON:function(){let s=function(o,a){let u=o.toString(16).toUpperCase();for(;u.length<a;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var h6=m(d6=>{d6.EntryHeader=eEe();d6.MainHeader=rEe()});var iEe=m((pwr,nEe)=>{nEe.exports=function(e){var t=require("zlib"),r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(a){s.push(a),o+=a.length}),i.on("end",function(){var a=Buffer.alloc(o),u=0;a.fill(0);for(var c=0;c<s.length;c++){var f=s[c];f.copy(a,u),u+=f.length}n&&n(a)}),i.end(e)}}}});var oEe=m((dwr,sEe)=>{sEe.exports=function(e){var t=require("zlib");return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),a=0;o.fill(0);for(var u=0;u<i.length;u++){var c=i[u];c.copy(o,a),a+=c.length}r&&r(o)}),n.end(e)}}}});var fEe=m((hwr,lEe)=>{"use strict";var{randomFillSync:aEe}=require("crypto"),uMt=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t>>>=1;return t>>>0}),cEe=(e,t)=>Math.imul(e,t)>>>0,uEe=(e,t)=>uMt[(e^t)&255]^e>>>8,_x=()=>typeof aEe=="function"?aEe(Buffer.alloc(12)):_x.node();_x.node=()=>{let e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};var $A={genSalt:_x};function zA(e){let t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}zA.prototype.updateKeys=function(e){let t=this.keys;return t[0]=uEe(t[0],e),t[1]+=t[0]&255,t[1]=cEe(t[1],134775813)+1,t[2]=uEe(t[2],t[1]>>>24),e};zA.prototype.next=function(){let e=(this.keys[2]|2)>>>0;return cEe(e,e^1)>>8&255};function cMt(e){let t=new zA(e);return function(r){let n=Buffer.alloc(r.length),i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function lMt(e){let t=new zA(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){let o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function fMt(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);let n=cMt(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function pMt(e){Buffer.isBuffer(e)&&e.length>=12?$A.genSalt=function(){return e.slice(0,12)}:e==="node"?$A.genSalt=_x.node:$A.genSalt=_x}function dMt(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));let i=lMt(r),s=$A.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);let o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}lEe.exports={decrypt:fMt,encrypt:dMt,_salter:pMt}});var pEe=m(GA=>{GA.Deflater=iEe();GA.Inflater=oEe();GA.ZipCrypto=fEe()});var g6=m((gwr,dEe)=>{var fn=Ym(),hMt=h6(),Is=fn.Constants,m6=pEe();dEe.exports=function(e){var t=new hMt.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function a(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(v){return!((t.flags&8)!==8&&fn.crc32(v)!==t.dataHeader.crc)}function c(v,_,w){if(typeof _>"u"&&typeof v=="string"&&(w=v,v=void 0),i)return v&&_&&_(Buffer.alloc(0),fn.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var y=a();if(y.length===0)return v&&_&&_(y),y;if(t.encripted){if(typeof w!="string"&&!Buffer.isBuffer(w))throw new Error("ADM-ZIP: Incompatible password parameter");y=m6.ZipCrypto.decrypt(y,t,w)}var b=Buffer.alloc(t.size);switch(t.method){case fn.Constants.STORED:if(y.copy(b),u(b))return v&&_&&_(b),b;throw v&&_&&_(b,fn.Errors.BAD_CRC),new Error(fn.Errors.BAD_CRC);case fn.Constants.DEFLATED:var S=new m6.Inflater(y);if(v)S.inflateAsync(function(T){T.copy(T,0),_&&(u(T)?_(T):_(T,fn.Errors.BAD_CRC))});else{if(S.inflate(b).copy(b,0),!u(b))throw new Error(fn.Errors.BAD_CRC+" "+r.toString());return b}break;default:throw v&&_&&_(Buffer.alloc(0),fn.Errors.UNKNOWN_METHOD),new Error(fn.Errors.UNKNOWN_METHOD)}}function f(v,_){if((!s||!s.length)&&Buffer.isBuffer(e))return v&&_&&_(a()),a();if(s.length&&!i){var w;switch(t.method){case fn.Constants.STORED:return t.compressedSize=t.size,w=Buffer.alloc(s.length),s.copy(w),v&&_&&_(w),w;default:case fn.Constants.DEFLATED:var y=new m6.Deflater(s);if(v)y.deflateAsync(function(S){w=Buffer.alloc(S.length),t.compressedSize=S.length,S.copy(w),_&&_(w)});else{var b=y.deflate();return t.compressedSize=b.length,b}y=null;break}}else if(v&&_)_(Buffer.alloc(0));else return Buffer.alloc(0)}function p(v,_){return(v.readUInt32LE(_+4)<<4)+v.readUInt32LE(_)}function h(v){for(var _=0,w,y,b;_<v.length;)w=v.readUInt16LE(_),_+=2,y=v.readUInt16LE(_),_+=2,b=v.slice(_,_+y),_+=y,Is.ID_ZIP64===w&&g(b)}function g(v){var _,w,y,b;v.length>=Is.EF_ZIP64_SCOMP&&(_=p(v,Is.EF_ZIP64_SUNCOMP),t.size===Is.EF_ZIP64_OR_32&&(t.size=_)),v.length>=Is.EF_ZIP64_RHO&&(w=p(v,Is.EF_ZIP64_SCOMP),t.compressedSize===Is.EF_ZIP64_OR_32&&(t.compressedSize=w)),v.length>=Is.EF_ZIP64_DSN&&(y=p(v,Is.EF_ZIP64_RHO),t.offset===Is.EF_ZIP64_OR_32&&(t.offset=y)),v.length>=Is.EF_ZIP64_DSN+4&&(b=v.readUInt32LE(Is.EF_ZIP64_DSN),t.diskNumStart===Is.EF_ZIP64_OR_16&&(t.diskNumStart=b))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(v){r=fn.toBuffer(v);var _=r[r.length-1];i=_===47||_===92,t.fileNameLength=r.length},get extra(){return o},set extra(v){o=v,t.extraLength=v.length,h(v)},get comment(){return n.toString()},set comment(v){n=fn.toBuffer(v),t.commentLength=n.length},get name(){var v=r.toString();return i?v.substr(v.length-1).split("/").pop():v.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return f(!1,null)},getCompressedDataAsync:function(v){f(!0,v)},setData:function(v){s=fn.toBuffer(v),!i&&s.length?(t.size=s.length,t.method=fn.Constants.DEFLATED,t.crc=fn.crc32(v),t.changed=!0):t.method=fn.Constants.STORED},getData:function(v){return t.changed?s:c(!1,null,v)},getDataAsync:function(v,_){t.changed?v(s):c(!0,v,_)},set attr(v){t.attr=v},get attr(){return t.attr},set header(v){t.loadFromBinary(v)},get header(){return t},packHeader:function(){var v=t.entryHeaderToBinary(),_=fn.Constants.CENHDR;return r.copy(v,_),_+=r.length,t.extraLength&&(o.copy(v,_),_+=t.extraLength),t.commentLength&&n.copy(v,_),v},toJSON:function(){let v=function(_){return"<"+(_&&_.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:v(e),data:v(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}});var gEe=m((vwr,mEe)=>{var hEe=g6(),mMt=h6(),Ei=Ym();mEe.exports=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new mMt.MainHeader,o=!1;let a=Object.assign(Object.create(null),t),{noSort:u}=a;e?p(a.readEntries):o=!0;function c(g){let v=s.diskEntries,_=s.offset;for(let w=0;w<v;w++){let y=_,b=new hEe(e);b.header=e.slice(y,y+=Ei.Constants.CENHDR),b.entryName=e.slice(y,y+=b.header.fileNameLength),_+=b.header.entryHeaderSize,g(b)}}function f(){o=!0,n={},r=new Array(s.diskEntries);for(var g=s.offset,v=0;v<r.length;v++){var _=g,w=new hEe(e);w.header=e.slice(_,_+=Ei.Constants.CENHDR),w.entryName=e.slice(_,_+=w.header.fileNameLength),w.header.extraLength&&(w.extra=e.slice(_,_+=w.header.extraLength)),w.header.commentLength&&(w.comment=e.slice(_,_+w.header.commentLength)),g+=w.header.entryHeaderSize,r[v]=w,n[w.entryName]=w}}function p(g){var v=e.length-Ei.Constants.ENDHDR,_=Math.max(0,v-65535),w=_,y=e.length,b=-1,S=0;for(v;v>=w;v--)if(e[v]===80){if(e.readUInt32LE(v)===Ei.Constants.ENDSIG){b=v,S=v,y=v+Ei.Constants.ENDHDR,w=v-Ei.Constants.END64HDR;continue}if(e.readUInt32LE(v)===Ei.Constants.END64SIG){w=_;continue}if(e.readUInt32LE(v)===Ei.Constants.ZIP64SIG){b=v,y=v+Ei.readBigUInt64LE(e,v+Ei.Constants.ZIP64SIZE)+Ei.Constants.ZIP64LEAD;break}}if(!~b)throw new Error(Ei.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice(b,y)),s.commentLength&&(i=e.slice(S+Ei.Constants.ENDHDR)),g&&f()}function h(){r.length>1&&!u&&r.sort((g,v)=>g.entryName.toLowerCase().localeCompare(v.entryName.toLowerCase()))}return{get entries(){return o||f(),r},get comment(){return i.toString()},set comment(g){i=Ei.toBuffer(g),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(g){if(!o){c(g);return}r.forEach(g)},getEntry:function(g){return o||f(),n[g]||null},setEntry:function(g){o||f(),r.push(g),n[g.entryName]=g,s.totalEntries=r.length},deleteEntry:function(g){o||f();var v=n[g];if(v&&v.isDirectory){var _=this;this.getEntryChildren(v).forEach(function(w){w.entryName!==g&&_.deleteEntry(w.entryName)})}r.splice(r.indexOf(v),1),delete n[g],s.totalEntries=r.length},getEntryChildren:function(g){if(o||f(),g&&g.isDirectory){let v=[],_=g.entryName,w=_.length;return r.forEach(function(y){y.entryName.substr(0,w)===_&&v.push(y)}),v}return[]},compressToBuffer:function(){o||f(),h();let g=[],v=[],_=0,w=0;s.size=0,s.offset=0;for(let S of r){let T=S.getCompressedData();S.header.offset=w;let R=S.header.dataHeaderToBinary(),q=S.rawEntryName.length,O=Buffer.alloc(q+S.extra.length);S.rawEntryName.copy(O,0),O.copy(S.extra,q);let M=R.length+O.length+T.length;w+=M,g.push(R),g.push(O),g.push(T);let U=S.packHeader();v.push(U),s.size+=U.length,_+=M+U.length}_+=s.mainHeaderSize,s.offset=w,w=0;let y=Buffer.alloc(_);for(let S of g)S.copy(y,w),w+=S.length;for(let S of v)S.copy(y,w),w+=S.length;let b=s.toBinary();return i&&i.copy(b,Ei.Constants.ENDHDR),b.copy(y,w),y},toAsyncBuffer:function(g,v,_,w){try{o||f(),h();let y=[],b=[],S=0,T=0;s.size=0,s.offset=0;let R=function(q){if(q.length){let O=q.pop(),M=O.entryName+O.extra.toString();_&&_(M),O.getCompressedDataAsync(function(U){w&&w(M),O.header.offset=T;let z=O.header.dataHeaderToBinary(),L=Buffer.alloc(M.length,M),D=z.length+L.length+U.length;T+=D,y.push(z),y.push(L),y.push(U);let Z=O.packHeader();b.push(Z),s.size+=Z.length,S+=D+Z.length,R(q)})}else{S+=s.mainHeaderSize,s.offset=T,T=0;let O=Buffer.alloc(S);y.forEach(function(U){U.copy(O,T),T+=U.length}),b.forEach(function(U){U.copy(O,T),T+=U.length});let M=s.toBinary();i&&i.copy(M,Ei.Constants.ENDHDR),M.copy(O,T),g(O)}};R(r)}catch(y){v(y)}}}}});var y6=m((ywr,vEe)=>{var Ln=Ym(),Wa=require("path"),gMt=g6(),vMt=gEe(),Pp=(e,t)=>typeof e=="boolean"?e:t,v6=(e,t)=>typeof e=="string"?e:t,yMt={noSort:!1,readEntries:!1,method:Ln.Constants.NONE,fs:null};vEe.exports=function(e,t){let r=null,n=Object.assign(Object.create(null),yMt);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Ln.Constants.BUFFER,e=void 0)),Object.assign(n,t);let i=new Ln(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Ln.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Ln.Errors.INVALID_FILENAME);let s=new vMt(r,n),{canonical:o,sanitize:a}=Ln;function u(f){if(f&&s){var p;if(typeof f=="string"&&(p=s.getEntry(f)),typeof f=="object"&&typeof f.entryName<"u"&&typeof f.header<"u"&&(p=s.getEntry(f.entryName)),p)return p}return null}function c(f){let{join:p,normalize:h,sep:g}=Wa.posix;return p(".",h(g+f.split("\\").join(g)+g))}return{readFile:function(f,p){var h=u(f);return h&&h.getData(p)||null},readFileAsync:function(f,p){var h=u(f);h?h.getDataAsync(p):p(null,"getEntry failed for:"+f)},readAsText:function(f,p){var h=u(f);if(h){var g=h.getData();if(g&&g.length)return g.toString(p||"utf8")}return""},readAsTextAsync:function(f,p,h){var g=u(f);g?g.getDataAsync(function(v,_){if(_){p(v,_);return}v&&v.length?p(v.toString(h||"utf8")):p("")}):p("")},deleteFile:function(f){var p=u(f);p&&s.deleteEntry(p.entryName)},addZipComment:function(f){s.comment=f},getZipComment:function(){return s.comment||""},addZipEntryComment:function(f,p){var h=u(f);h&&(h.comment=p)},getZipEntryComment:function(f){var p=u(f);return p&&p.comment||""},updateFile:function(f,p){var h=u(f);h&&h.setData(p)},addLocalFile:function(f,p,h,g){if(i.fs.existsSync(f)){p=p?c(p):"";var v=f.split("\\").join("/").split("/").pop();p+=h||v;let _=i.fs.statSync(f);this.addFile(p,i.fs.readFileSync(f),g,_)}else throw new Error(Ln.Errors.FILE_NOT_FOUND.replace("%s",f))},addLocalFolder:function(f,p,h,g){if(h instanceof RegExp?h=function(v){return function(_){return v.test(_)}}(h):typeof h!="function"&&(h=function(){return!0}),p=p?c(p):"",f=Wa.normalize(f),i.fs.existsSync(f)){let v=i.findFiles(f),_=this;v.length&&v.forEach(function(w){var y=Wa.relative(f,w).split("\\").join("/");if(h(y)){var b=i.fs.statSync(w);b.isFile()?_.addFile(p+y,i.fs.readFileSync(w),"",g||b):_.addFile(p+y+"/",Buffer.alloc(0),"",g||b)}})}else throw new Error(Ln.Errors.FILE_NOT_FOUND.replace("%s",f))},addLocalFolderAsync:function(f,p,h,g){g instanceof RegExp?g=function(_){return function(w){return _.test(w)}}(g):typeof g!="function"&&(g=function(){return!0}),h=h?c(h):"",f=Wa.normalize(f);var v=this;i.fs.open(f,"r",function(_){if(_&&_.code==="ENOENT")p(void 0,Ln.Errors.FILE_NOT_FOUND.replace("%s",f));else if(_)p(void 0,_);else{var w=i.findFiles(f),y=-1,b=function(){if(y+=1,y<w.length){var S=w[y],T=Wa.relative(f,S).split("\\").join("/");T=T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),g(T)?i.fs.stat(S,function(R,q){R&&p(void 0,R),q.isFile()?i.fs.readFile(S,function(O,M){O?p(void 0,O):(v.addFile(h+T,M,"",q),b())}):(v.addFile(h+T+"/",Buffer.alloc(0),"",q),b())}):process.nextTick(()=>{b()})}else p(!0,void 0)};b()}})},addLocalFolderPromise:function(f,p){return new Promise((h,g)=>{let{filter:v,zipPath:_}=Object.assign({},p);this.addLocalFolderAsync(f,(w,y)=>{y&&g(y),w&&h(this)},_,v)})},addFile:function(f,p,h,g){let v=u(f),_=v!=null;_||(v=new gMt,v.entryName=f),v.comment=h||"";let w=typeof g=="object"&&g instanceof i.fs.Stats;w&&(v.header.time=g.mtime);var y=v.isDirectory?16:0;let b=v.isDirectory?16384:32768;w?b|=4095&g.mode:typeof g=="number"?b|=4095&g:b|=v.isDirectory?493:420,y=(y|b<<16)>>>0,v.attr=y,v.setData(p),_||s.setEntry(v)},getEntries:function(){return s?s.entries:[]},getEntry:function(f){return u(f)},getEntryCount:function(){return s.getEntryCount()},forEach:function(f){return s.forEach(f)},extractEntryTo:function(f,p,h,g,v,_){g=Pp(g,!1),v=Pp(v,!1),h=Pp(h,!0),_=v6(_,v6(v,void 0));var w=u(f);if(!w)throw new Error(Ln.Errors.NO_ENTRY);var y=o(w.entryName),b=a(p,_&&!w.isDirectory?_:h?y:Wa.basename(y));if(w.isDirectory){var S=s.getEntryChildren(w);return S.forEach(function(q){if(q.isDirectory)return;var O=q.getData();if(!O)throw new Error(Ln.Errors.CANT_EXTRACT_FILE);var M=o(q.entryName),U=a(p,h?M:Wa.basename(M));let z=v?q.header.fileAttr:void 0;i.writeFileTo(U,O,g,z)}),!0}var T=w.getData();if(!T)throw new Error(Ln.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync(b)&&!g)throw new Error(Ln.Errors.CANT_OVERRIDE);let R=v?f.header.fileAttr:void 0;return i.writeFileTo(b,T,g,R),!0},test:function(f){if(!s)return!1;for(var p in s.entries)try{if(p.isDirectory)continue;var h=s.entries[p].getData(f);if(!h)return!1}catch{return!1}return!0},extractAllTo:function(f,p,h,g){if(p=Pp(p,!1),g=v6(h,g),h=Pp(h,!1),!s)throw new Error(Ln.Errors.NO_ZIP);s.entries.forEach(function(v){var _=a(f,o(v.entryName.toString()));if(v.isDirectory){i.makeDir(_);return}var w=v.getData(g);if(!w)throw new Error(Ln.Errors.CANT_EXTRACT_FILE);let y=h?v.header.fileAttr:void 0;i.writeFileTo(_,w,p,y);try{i.fs.utimesSync(_,v.header.time,v.header.time)}catch{throw new Error(Ln.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(f,p,h,g){if(p=Pp(p,!1),typeof h=="function"&&!g&&(g=h),h=Pp(h,!1),g||(g=function(S){throw new Error(S)}),!s){g(new Error(Ln.Errors.NO_ZIP));return}f=Wa.resolve(f);let v=S=>a(f,Wa.normalize(o(S.entryName.toString()))),_=(S,T)=>new Error(S+': "'+T+'"'),w=[],y=new Set;s.entries.forEach(S=>{S.isDirectory?w.push(S):y.add(S)});for(let S of w){let T=v(S),R=h?S.header.fileAttr:void 0;try{i.makeDir(T),R&&i.fs.chmodSync(T,R),i.fs.utimesSync(T,S.header.time,S.header.time)}catch{g(_("Unable to create folder",T))}}let b=()=>{y.size===0&&g()};for(let S of y.values()){let T=Wa.normalize(o(S.entryName.toString())),R=a(f,T);S.getDataAsync(function(q,O){if(O){g(new Error(O));return}if(!q)g(new Error(Ln.Errors.CANT_EXTRACT_FILE));else{let M=h?S.header.fileAttr:void 0;i.writeFileToAsync(R,q,p,M,function(U){if(!U){g(_("Unable to write file",R));return}i.fs.utimes(R,S.header.time,S.header.time,function(z){if(z){g(_("Unable to set times",R));return}y.delete(S),b()})})}})}b()},writeZip:function(f,p){if(arguments.length===1&&typeof f=="function"&&(p=f,f=""),!f&&n.filename&&(f=n.filename),!!f){var h=s.compressToBuffer();if(h){var g=i.writeFileTo(f,h,!0);typeof p=="function"&&p(g?null:new Error("failed"),"")}}},writeZipPromise:function(f,p){let{overwrite:h,perm:g}=Object.assign({overwrite:!0},p);return new Promise((v,_)=>{!f&&n.filename&&(f=n.filename),f||_("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(w=>{let y=b=>b?v(b):_("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(f,w,h,g,y)},_)})},toBufferPromise:function(){return new Promise((f,p)=>{s.toAsyncBuffer(f,p)})},toBuffer:function(f,p,h,g){return this.valueOf=2,typeof f=="function"?(s.toAsyncBuffer(f,p,h,g),null):s.compressToBuffer()}}}});var _Ee=m((x6,xEe)=>{var VA=require("buffer"),Ha=VA.Buffer;function yEe(e,t){for(var r in e)t[r]=e[r]}Ha.from&&Ha.alloc&&Ha.allocUnsafe&&Ha.allocUnsafeSlow?xEe.exports=VA:(yEe(VA,x6),x6.Buffer=Dp);function Dp(e,t,r){return Ha(e,t,r)}Dp.prototype=Object.create(Ha.prototype);yEe(Ha,Dp);Dp.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ha(e,t,r)};Dp.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Ha(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Dp.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ha(e)};Dp.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return VA.SlowBuffer(e)}});var b6=m((xwr,_6)=>{"use strict";_6.exports=OMt;_6.exports.parse=kMt;var bEe=require("path").basename,xMt=_Ee().Buffer,_Mt=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,bMt=/%[0-9A-Fa-f]{2}/,wMt=/%([0-9A-Fa-f]{2})/g,EEe=/[^\x20-\x7e\xa0-\xff]/g,EMt=/\\([\u0000-\u007f])/g,SMt=/([\\"])/g,wEe=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,TMt=/^[\x20-\x7e\x80-\xff]+$/,AMt=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,CMt=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,RMt=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function OMt(e,t){var r=t||{},n=r.type||"attachment",i=IMt(e,r.fallback);return NMt(new TEe(n,i))}function IMt(e,t){if(e!==void 0){var r={};if(typeof e!="string")throw new TypeError("filename must be a string");if(t===void 0&&(t=!0),typeof t!="string"&&typeof t!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof t=="string"&&EEe.test(t))throw new TypeError("fallback must be ISO-8859-1 string");var n=bEe(e),i=TMt.test(n),s=typeof t!="string"?t&&SEe(n):bEe(t),o=typeof s=="string"&&s!==n;return(o||!i||bMt.test(n))&&(r["filename*"]=n),(i||o)&&(r.filename=o?s:n),r}}function NMt(e){var t=e.parameters,r=e.type;if(!r||typeof r!="string"||!AMt.test(r))throw new TypeError("invalid type");var n=String(r).toLowerCase();if(t&&typeof t=="object")for(var i,s=Object.keys(t).sort(),o=0;o<s.length;o++){i=s[o];var a=i.substr(-1)==="*"?FMt(t[i]):LMt(t[i]);n+="; "+i+"="+a}return n}function qMt(e){var t=CMt.exec(e);if(!t)throw new TypeError("invalid extended field value");var r=t[1].toLowerCase(),n=t[2],i,s=n.replace(wMt,PMt);switch(r){case"iso-8859-1":i=SEe(s);break;case"utf-8":i=xMt.from(s,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return i}function SEe(e){return String(e).replace(EEe,"?")}function kMt(e){if(!e||typeof e!="string")throw new TypeError("argument string is required");var t=RMt.exec(e);if(!t)throw new TypeError("invalid type format");var r=t[0].length,n=t[1].toLowerCase(),i,s=[],o={},a;for(r=wEe.lastIndex=t[0].substr(-1)===";"?r-1:r;t=wEe.exec(e);){if(t.index!==r)throw new TypeError("invalid parameter format");if(r+=t[0].length,i=t[1].toLowerCase(),a=t[2],s.indexOf(i)!==-1)throw new TypeError("invalid duplicate parameter");if(s.push(i),i.indexOf("*")+1===i.length){i=i.slice(0,-1),a=qMt(a),o[i]=a;continue}typeof o[i]!="string"&&(a[0]==='"'&&(a=a.substr(1,a.length-2).replace(EMt,"$1")),o[i]=a)}if(r!==-1&&r!==e.length)throw new TypeError("invalid parameter format");return new TEe(n,o)}function PMt(e,t){return String.fromCharCode(parseInt(t,16))}function DMt(e){return"%"+String(e).charCodeAt(0).toString(16).toUpperCase()}function LMt(e){var t=String(e);return'"'+t.replace(SMt,"\\$1")+'"'}function FMt(e){var t=String(e),r=encodeURIComponent(t).replace(_Mt,DMt);return"UTF-8''"+r}function TEe(e,t){this.type=e,this.parameters=t}});var CEe=m((_wr,AEe)=>{"use strict";AEe.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,i)=>{i=Object.assign({offset:0},i);for(let s=0;s<n.length;s++)if(n[s]!==t[s+i.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(t[3]===24||t[3]===32)&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((s,o,a)=>a[o]===66&&a[o+1]===130);if(i>=0){let s=i+3,o=a=>Array.from(a).every((u,c)=>n[s+c]===u.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"application/font-woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"application/font-woff"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"application/font-sfnt"}:r([79,84,84,79,0])?{ext:"otf",mime:"application/font-sfnt"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:null}});var w6=m((bwr,REe)=>{"use strict";var MMt=CEe(),jMt=new Set(["7z","bz2","gz","rar","tar","zip","xz","gz"]);REe.exports=e=>{let t=MMt(e);return jMt.has(t&&t.ext)?t:null}});var IEe=m((wwr,OEe)=>{"use strict";OEe.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,i)=>{i=Object.assign({offset:0},i);for(let s=0;s<n.length;s++)if(n[s]!==t[s+i.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(t[3]===24||t[3]===32)&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((s,o,a)=>a[o]===66&&a[o+1]===130);if(i>=0){let s=i+3,o=a=>Array.from(a).every((u,c)=>n[s+c]===u.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var rc=m((Ewr,E6)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?E6.exports={nextTick:BMt}:E6.exports=process;function BMt(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(s=new Array(i-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){e.apply(null,s)})}}});var S6=m((Swr,NEe)=>{var UMt={}.toString;NEe.exports=Array.isArray||function(e){return UMt.call(e)=="[object Array]"}});var T6=m((Twr,qEe)=>{qEe.exports=require("stream")});var vo=m((A6,PEe)=>{var KA=require("buffer"),nc=KA.Buffer;function kEe(e,t){for(var r in e)t[r]=e[r]}nc.from&&nc.alloc&&nc.allocUnsafe&&nc.allocUnsafeSlow?PEe.exports=KA:(kEe(KA,A6),A6.Buffer=Jm);function Jm(e,t,r){return nc(e,t,r)}kEe(nc,Jm);Jm.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return nc(e,t,r)};Jm.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=nc(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Jm.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return nc(e)};Jm.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return KA.SlowBuffer(e)}});var Jo=m(Si=>{function WMt(e){return Array.isArray?Array.isArray(e):XA(e)==="[object Array]"}Si.isArray=WMt;function HMt(e){return typeof e=="boolean"}Si.isBoolean=HMt;function $Mt(e){return e===null}Si.isNull=$Mt;function zMt(e){return e==null}Si.isNullOrUndefined=zMt;function GMt(e){return typeof e=="number"}Si.isNumber=GMt;function VMt(e){return typeof e=="string"}Si.isString=VMt;function KMt(e){return typeof e=="symbol"}Si.isSymbol=KMt;function XMt(e){return e===void 0}Si.isUndefined=XMt;function YMt(e){return XA(e)==="[object RegExp]"}Si.isRegExp=YMt;function ZMt(e){return typeof e=="object"&&e!==null}Si.isObject=ZMt;function JMt(e){return XA(e)==="[object Date]"}Si.isDate=JMt;function QMt(e){return XA(e)==="[object Error]"||e instanceof Error}Si.isError=QMt;function e4t(e){return typeof e=="function"}Si.isFunction=e4t;function t4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Si.isPrimitive=t4t;Si.isBuffer=require("buffer").Buffer.isBuffer;function XA(e){return Object.prototype.toString.call(e)}});var LEe=m((Cwr,C6)=>{"use strict";function r4t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var DEe=vo().Buffer,bx=require("util");function n4t(e,t,r){e.copy(t,r)}C6.exports=function(){function e(){r4t(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return DEe.alloc(0);for(var n=DEe.allocUnsafe(r>>>0),i=this.head,s=0;i;)n4t(i.data,n,s),s+=i.data.length,i=i.next;return n},e}();bx&&bx.inspect&&bx.inspect.custom&&(C6.exports.prototype[bx.inspect.custom]=function(){var e=bx.inspect({length:this.length});return this.constructor.name+" "+e})});var R6=m((Rwr,FEe)=>{"use strict";var YA=rc();function i4t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,YA.nextTick(ZA,this,e)):YA.nextTick(ZA,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,YA.nextTick(ZA,r,s)):YA.nextTick(ZA,r,s):t&&t(s)}),this)}function s4t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ZA(e,t){e.emit("error",t)}FEe.exports={destroy:i4t,undestroy:s4t}});var I6=m((Owr,zEe)=>{"use strict";var Lp=rc();zEe.exports=pn;function jEe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){E4t(t,e)}}var o4t=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Lp.nextTick,Qm;pn.WritableState=Ex;var BEe=Object.create(Jo());BEe.inherits=Pn();var a4t={deprecate:Hw()},UEe=T6(),QA=vo().Buffer,u4t=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c4t(e){return QA.from(e)}function l4t(e){return QA.isBuffer(e)||e instanceof u4t}var WEe=R6();BEe.inherits(pn,UEe);function f4t(){}function Ex(e,t){Qm=Qm||Fp(),e=e||{};var r=t instanceof Qm;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){y4t(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new jEe(this)}Ex.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ex.prototype,"buffer",{get:a4t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var JA;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(JA=Function.prototype[Symbol.hasInstance],Object.defineProperty(pn,Symbol.hasInstance,{value:function(e){return JA.call(this,e)?!0:this!==pn?!1:e&&e._writableState instanceof Ex}})):JA=function(e){return e instanceof this};function pn(e){if(Qm=Qm||Fp(),!JA.call(pn,this)&&!(this instanceof Qm))return new pn(e);this._writableState=new Ex(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),UEe.call(this)}pn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function p4t(e,t){var r=new Error("write after end");e.emit("error",r),Lp.nextTick(t,r)}function d4t(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),Lp.nextTick(n,s),i=!1),i}pn.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&l4t(e);return s&&!QA.isBuffer(e)&&(e=c4t(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=f4t),n.ended?p4t(this,r):(s||d4t(this,n,e,r))&&(n.pendingcb++,i=m4t(this,n,s,e,t,r)),i};pn.prototype.cork=function(){var e=this._writableState;e.corked++};pn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&HEe(this,e))};pn.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function h4t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=QA.from(t,r)),t}Object.defineProperty(pn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function m4t(e,t,r,n,i,s){if(!r){var o=h4t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O6(e,t,!1,a,n,i,s);return u}function O6(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function g4t(e,t,r,n,i){--t.pendingcb,r?(Lp.nextTick(i,n),Lp.nextTick(wx,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),wx(e,t))}function v4t(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function y4t(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(v4t(r),t)g4t(e,r,n,t,i);else{var s=$Ee(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&HEe(e,r),n?o4t(MEe,e,r,s,i):MEe(e,r,s,i)}}function MEe(e,t,r,n){r||x4t(e,t),t.pendingcb--,n(),wx(e,t)}function x4t(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function HEe(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,O6(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new jEe(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback,p=t.objectMode?1:u.length;if(O6(e,t,!1,p,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}pn.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};pn.prototype._writev=null;pn.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||w4t(this,n,r)};function $Ee(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function _4t(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),wx(e,t)})}function b4t(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Lp.nextTick(_4t,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function wx(e,t){var r=$Ee(t);return r&&(b4t(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function w4t(e,t,r){t.ending=!0,wx(e,t),r&&(t.finished?Lp.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function E4t(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(pn.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});pn.prototype.destroy=WEe.destroy;pn.prototype._undestroy=WEe.undestroy;pn.prototype._destroy=function(e,t){this.end(),t(e)}});var Fp=m((Iwr,XEe)=>{"use strict";var GEe=rc(),S4t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};XEe.exports=ic;var VEe=Object.create(Jo());VEe.inherits=Pn();var KEe=k6(),q6=I6();VEe.inherits(ic,KEe);for(N6=S4t(q6.prototype),eC=0;eC<N6.length;eC++)tC=N6[eC],ic.prototype[tC]||(ic.prototype[tC]=q6.prototype[tC]);var N6,tC,eC;function ic(e){if(!(this instanceof ic))return new ic(e);KEe.call(this,e),q6.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",T4t)}Object.defineProperty(ic.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T4t(){this.allowHalfOpen||this._writableState.ended||GEe.nextTick(A4t,this)}function A4t(e){e.end()}Object.defineProperty(ic.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});ic.prototype._destroy=function(e,t){this.push(null),this.end(),GEe.nextTick(t,e)}});var L6=m(ZEe=>{"use strict";var D6=vo().Buffer,YEe=D6.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function C4t(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function R4t(e){var t=C4t(e);if(typeof t!="string"&&(D6.isEncoding===YEe||!YEe(e)))throw new Error("Unknown encoding: "+e);return t||e}ZEe.StringDecoder=Sx;function Sx(e){this.encoding=R4t(e);var t;switch(this.encoding){case"utf16le":this.text=P4t,this.end=D4t,t=4;break;case"utf8":this.fillLast=N4t,t=4;break;case"base64":this.text=L4t,this.end=F4t,t=3;break;default:this.write=M4t,this.end=j4t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=D6.allocUnsafe(t)}Sx.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Sx.prototype.end=k4t;Sx.prototype.text=q4t;Sx.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function P6(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function O4t(e,t,r){var n=t.length-1;if(n<r)return 0;var i=P6(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=P6(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=P6(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function I4t(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function N4t(e){var t=this.lastTotal-this.lastNeed,r=I4t(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function q4t(e,t){var r=O4t(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function k4t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function P4t(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function D4t(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function L4t(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function F4t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function M4t(e){return e.toString(this.encoding)}function j4t(e){return e&&e.length?this.write(e):""}});var k6=m((kwr,cSe)=>{"use strict";var tg=rc();cSe.exports=xr;var B4t=S6(),Tx;xr.ReadableState=iSe;var qwr=require("events").EventEmitter,tSe=function(e,t){return e.listeners(t).length},U6=T6(),Ax=vo().Buffer,U4t=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function W4t(e){return Ax.from(e)}function H4t(e){return Ax.isBuffer(e)||e instanceof U4t}var rSe=Object.create(Jo());rSe.inherits=Pn();var F6=require("util"),Wt=void 0;F6&&F6.debuglog?Wt=F6.debuglog("stream"):Wt=function(){};var $4t=LEe(),nSe=R6(),eg;rSe.inherits(xr,U6);var M6=["error","close","destroy","pause","resume"];function z4t(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):B4t(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function iSe(e,t){Tx=Tx||Fp(),e=e||{};var r=t instanceof Tx;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new $4t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(eg||(eg=L6().StringDecoder),this.decoder=new eg(e.encoding),this.encoding=e.encoding)}function xr(e){if(Tx=Tx||Fp(),!(this instanceof xr))return new xr(e);this._readableState=new iSe(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),U6.call(this)}Object.defineProperty(xr.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});xr.prototype.destroy=nSe.destroy;xr.prototype._undestroy=nSe.undestroy;xr.prototype._destroy=function(e,t){this.push(null),t(e)};xr.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Ax.from(e,t),t=""),n=!0),sSe(this,e,t,!1,n)};xr.prototype.unshift=function(e){return sSe(this,e,null,!0,!1)};function sSe(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,X4t(e,s);else{var o;i||(o=G4t(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Ax.prototype&&(t=W4t(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):j6(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?j6(e,s,t,!1):oSe(e,s)):j6(e,s,t,!1))):n||(s.reading=!1)}return V4t(s)}function j6(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&rC(e)),oSe(e,t)}function G4t(e,t){var r;return!H4t(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function V4t(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}xr.prototype.isPaused=function(){return this._readableState.flowing===!1};xr.prototype.setEncoding=function(e){return eg||(eg=L6().StringDecoder),this._readableState.decoder=new eg(e),this._readableState.encoding=e,this};var JEe=8388608;function K4t(e){return e>=JEe?e=JEe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function QEe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=K4t(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}xr.prototype.read=function(e){Wt("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Wt("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?B6(this):rC(this),null;if(e=QEe(e,t),e===0&&t.ended)return t.length===0&&B6(this),null;var n=t.needReadable;Wt("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Wt("length less than watermark",n)),t.ended||t.reading?(n=!1,Wt("reading or ended",n)):n&&(Wt("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=QEe(r,t)));var i;return e>0?i=aSe(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B6(this)),i!==null&&this.emit("data",i),i};function X4t(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,rC(e)}}function rC(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Wt("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?tg.nextTick(eSe,e):eSe(e))}function eSe(e){Wt("emit readable"),e.emit("readable"),W6(e)}function oSe(e,t){t.readingMore||(t.readingMore=!0,tg.nextTick(Y4t,e,t))}function Y4t(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Wt("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}xr.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};xr.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Wt("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:w;n.endEmitted?tg.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(y,b){Wt("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){Wt("onend"),e.end()}var u=Z4t(r);e.on("drain",u);var c=!1;function f(){Wt("cleanup"),e.removeListener("close",v),e.removeListener("finish",_),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var p=!1;r.on("data",h);function h(y){Wt("ondata"),p=!1;var b=e.write(y);b===!1&&!p&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&uSe(n.pipes,e)!==-1)&&!c&&(Wt("false write response, pause",n.awaitDrain),n.awaitDrain++,p=!0),r.pause())}function g(y){Wt("onerror",y),w(),e.removeListener("error",g),tSe(e,"error")===0&&e.emit("error",y)}z4t(e,"error",g);function v(){e.removeListener("finish",_),w()}e.once("close",v);function _(){Wt("onfinish"),e.removeListener("close",v),w()}e.once("finish",_);function w(){Wt("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Wt("pipe resume"),r.resume()),e};function Z4t(e){return function(){var t=e._readableState;Wt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&tSe(e,"data")&&(t.flowing=!0,W6(e))}}xr.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=uSe(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};xr.prototype.on=function(e,t){var r=U6.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&rC(this):tg.nextTick(J4t,this))}return r};xr.prototype.addListener=xr.prototype.on;function J4t(e){Wt("readable nexttick read 0"),e.read(0)}xr.prototype.resume=function(){var e=this._readableState;return e.flowing||(Wt("resume"),e.flowing=!0,Q4t(this,e)),this};function Q4t(e,t){t.resumeScheduled||(t.resumeScheduled=!0,tg.nextTick(e3t,e,t))}function e3t(e,t){t.reading||(Wt("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),W6(e),t.flowing&&!t.reading&&e.read(0)}xr.prototype.pause=function(){return Wt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Wt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function W6(e){var t=e._readableState;for(Wt("flow",t.flowing);t.flowing&&e.read()!==null;);}xr.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Wt("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Wt("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(o){return function(){return e[o].apply(e,arguments)}}(i));for(var s=0;s<M6.length;s++)e.on(M6[s],this.emit.bind(this,M6[s]));return this._read=function(o){Wt("wrapped _read",o),n&&(n=!1,e.resume())},this};Object.defineProperty(xr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});xr._fromList=aSe;function aSe(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=t3t(e,t.buffer,t.decoder),r}function t3t(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?r3t(e,t):n3t(e,t),n}function r3t(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),e-=o,e===0){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function n3t(e,t){var r=Ax.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),e-=o,e===0){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}function B6(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,tg.nextTick(i3t,t,e))}function i3t(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function uSe(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var H6=m((Pwr,pSe)=>{"use strict";pSe.exports=sc;var nC=Fp(),fSe=Object.create(Jo());fSe.inherits=Pn();fSe.inherits(sc,nC);function s3t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function sc(e){if(!(this instanceof sc))return new sc(e);nC.call(this,e),this._transformState={afterTransform:s3t.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",o3t)}function o3t(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){lSe(e,t,r)}):lSe(this,null,null)}sc.prototype.push=function(e,t){return this._transformState.needTransform=!1,nC.prototype.push.call(this,e,t)};sc.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};sc.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};sc.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};sc.prototype._destroy=function(e,t){var r=this;nC.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function lSe(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var gSe=m((Dwr,mSe)=>{"use strict";mSe.exports=Cx;var dSe=H6(),hSe=Object.create(Jo());hSe.inherits=Pn();hSe.inherits(Cx,dSe);function Cx(e){if(!(this instanceof Cx))return new Cx(e);dSe.call(this,e)}Cx.prototype._transform=function(e,t,r){r(null,e)}});var rg=m((oi,iC)=>{var $a=require("stream");process.env.READABLE_STREAM==="disable"&&$a?(iC.exports=$a,oi=iC.exports=$a.Readable,oi.Readable=$a.Readable,oi.Writable=$a.Writable,oi.Duplex=$a.Duplex,oi.Transform=$a.Transform,oi.PassThrough=$a.PassThrough,oi.Stream=$a):(oi=iC.exports=k6(),oi.Stream=$a||oi,oi.Readable=oi,oi.Writable=I6(),oi.Duplex=Fp(),oi.Transform=H6(),oi.PassThrough=gSe())});var ySe=m((Lwr,vSe)=>{vSe.exports=rg().Duplex});var _Se=m((Fwr,xSe)=>{var $6=ySe(),a3t=require("util"),ng=vo().Buffer;function Kr(e){if(!(this instanceof Kr))return new Kr(e);if(this._bufs=[],this.length=0,typeof e=="function"){this._callback=e;var t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)})}else this.append(e);$6.call(this)}a3t.inherits(Kr,$6);Kr.prototype._offset=function(t){var r=0,n=0,i;if(t===0)return[0,0];for(;n<this._bufs.length;n++){if(i=r+this._bufs[n].length,t<i||n==this._bufs.length-1)return[n,t-r];r=i}};Kr.prototype.append=function(t){var r=0;if(ng.isBuffer(t))this._appendBuffer(t);else if(Array.isArray(t))for(;r<t.length;r++)this.append(t[r]);else if(t instanceof Kr)for(;r<t._bufs.length;r++)this.append(t._bufs[r]);else t!=null&&(typeof t=="number"&&(t=t.toString()),this._appendBuffer(ng.from(t)));return this};Kr.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Kr.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};Kr.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};Kr.prototype.end=function(t){$6.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Kr.prototype.get=function(t){return this.slice(t,t+1)[0]};Kr.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Kr.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||ng.alloc(0);var s=!!t,o=this._offset(n),a=i-n,u=a,c=s&&r||0,f=o[1],p,h;if(n===0&&i==this.length){if(!s)return this._bufs.length===1?this._bufs[0]:ng.concat(this._bufs,this.length);for(h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,c),c+=this._bufs[h].length;return t}if(u<=this._bufs[o[0]].length-f)return s?this._bufs[o[0]].copy(t,r,f,f+u):this._bufs[o[0]].slice(f,f+u);for(s||(t=ng.allocUnsafe(a)),h=o[0];h<this._bufs.length;h++){if(p=this._bufs[h].length-f,u>p)this._bufs[h].copy(t,c,f),c+=p;else{this._bufs[h].copy(t,c,f,f+u),c+=p;break}u-=p,f&&(f=0)}return t.length>c?t.slice(0,c):t};Kr.prototype.shallowSlice=function(t,r){t=t||0,r=r||this.length,t<0&&(t+=this.length),r<0&&(r+=this.length);var n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]==0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!=0&&(s[0]=s[0].slice(n[1])),new Kr(s)};Kr.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};Kr.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Kr.prototype.duplicate=function(){for(var t=0,r=new Kr;t<this._bufs.length;t++)r.append(this._bufs[t]);return r};Kr.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)};(function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(r){Kr.prototype[r]=function(n){return this.slice(n,n+e[r])[r](0)}})(t)})();xSe.exports=Kr});var wSe=m((Mwr,bSe)=>{bSe.exports=c3t;var u3t=Object.prototype.hasOwnProperty;function c3t(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)u3t.call(r,n)&&(e[n]=r[n])}return e}});var z6=m((jwr,SSe)=>{SSe.exports=f3t;var ESe=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:l3t;function l3t(e,t){return new Buffer(e,t)}function f3t(e,t){if(Buffer.isBuffer(e))return e;if(typeof e=="string")return ESe(e,t);if(Array.isArray(e))return ESe(e);throw new Error("Input should be a buffer or a string")}});var ASe=m((Bwr,TSe)=>{var p3t=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),e.toString("hex")==="61006200"}catch{return!1}}();function d3t(e){return e.length===1&&e.charCodeAt(0)<256}function sC(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");return r=r>>>0,n=n===void 0?e.length:n>>>0,n>r&&e.fill(t,r,n),e}function h3t(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");if(n<=r)return e;r=r>>>0,n=n===void 0?e.length:n>>>0;for(var i=r,s=t.length;i<=n-s;)t.copy(e,i),i+=s;return i!==n&&t.copy(e,i,0,n-i),e}function m3t(e,t,r,n,i){if(p3t)return e.fill(t,r,n,i);if(typeof t=="number")return sC(e,t,r,n);if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=e.length):typeof n=="string"&&(i=n,n=e.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(i==="latin1"&&(i="binary"),typeof i=="string"&&!Buffer.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t==="")return sC(e,0,r,n);if(d3t(t))return sC(e,t.charCodeAt(0),r,n);t=new Buffer(t,i)}return Buffer.isBuffer(t)?h3t(e,t,r,n):sC(e,0,r,n)}TSe.exports=m3t});var RSe=m((Uwr,CSe)=>{function g3t(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}CSe.exports=g3t});var G6=m((Wwr,ISe)=>{var OSe=ASe(),v3t=RSe();ISe.exports=function(t,r,n){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,r,n);var i=v3t(t);return t===0?i:r===void 0?OSe(i,0):(typeof n!="string"&&(n=void 0),OSe(i,r,n))}});var K6=m(sg=>{var y3t=z6(),x3t=G6(),_3t="0000000000000000000",b3t="7777777777777777777",NSe="0".charCodeAt(0),w3t="ustar\x0000",E3t=parseInt("7777",8),S3t=function(e,t,r){return typeof e!="number"?r:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)},T3t=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},A3t=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},qSe=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},kSe=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},ql=function(e,t){return e=e.toString(8),e.length>t?b3t.slice(0,t)+" ":_3t.slice(0,t-e.length)+e+" "};function C3t(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var r=!1,n=[],i=e.length-1;i>0;i--){var s=e[i];t?n.push(s):r&&s===0?n.push(0):r?(r=!1,n.push(256-s)):n.push(255-s)}var o=0,a=n.length;for(i=0;i<a;i++)o+=n[i]*Math.pow(256,i);return t?o:-1*o}var kl=function(e,t,r){if(e=e.slice(t,t+r),t=0,e[t]&128)return C3t(e);for(;t<e.length&&e[t]===32;)t++;for(var n=S3t(qSe(e,32,t,e.length),e.length,e.length);t<n&&e[t]===0;)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},ig=function(e,t,r,n){return e.slice(t,qSe(e,0,t,t+r)).toString(n)},V6=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};sg.decodeLongPath=function(e,t){return ig(e,0,e.length,t)};sg.encodePax=function(e){var t="";e.name&&(t+=V6(" path="+e.name+`
|
|
210
210
|
`)),e.linkname&&(t+=V6(" linkpath="+e.linkname+`
|
|
211
211
|
`));var r=e.pax;if(r)for(var n in r)t+=V6(" "+n+"="+r[n]+`
|
|
212
|
-
`);return y3t(t)};sg.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&e[r]!==32;)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),s=i.indexOf("=");if(s===-1)return t;t[i.slice(0,s)]=i.slice(s+1),e=e.slice(n)}return t};sg.encode=function(e){var t=x3t(512),r=e.name,n="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var i=r.indexOf("/");if(i===-1)return null;n+=n?"/"+r.slice(0,i):r.slice(0,i),r=r.slice(i+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(n)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(r),t.write(ql(e.mode&E3t,6),100),t.write(ql(e.uid,6),108),t.write(ql(e.gid,6),116),t.write(ql(e.size,11),124),t.write(ql(e.mtime.getTime()/1e3|0,11),136),t[156]=NSe+A3t(e.type),e.linkname&&t.write(e.linkname,157),t.write(w3t,257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(ql(e.devmajor||0,6),329),t.write(ql(e.devminor||0,6),337),n&&t.write(n,345),t.write(ql(kSe(t),6),148),t)};sg.decode=function(e,t){var r=e[156]===0?0:e[156]-NSe,n=ig(e,0,100,t),i=kl(e,100,8),s=kl(e,108,8),o=kl(e,116,8),a=kl(e,124,12),u=kl(e,136,12),c=T3t(r),f=e[157]===0?null:ig(e,157,100,t),p=ig(e,265,32),h=ig(e,297,32),g=kl(e,329,8),v=kl(e,337,8);e[345]&&(n=ig(e,345,155,t)+"/"+n),r===0&&n&&n[n.length-1]==="/"&&(r=5);var _=kSe(e);if(_===8*32)return null;if(_!==kl(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:n,mode:i,uid:s,gid:o,size:a,mtime:new Date(1e3*u),type:c,linkname:f,uname:p,gname:h,devmajor:g,devminor:v}}});var BSe=m(($wr,jSe)=>{var DSe=require("util"),R3t=_Se(),O3t=wSe(),Rx=K6(),LSe=rg().Writable,FSe=rg().PassThrough,MSe=function(){},PSe=function(e){return e&=511,e&&512-e},I3t=function(e,t){var r=new oC(e,t);return r.end(),r},N3t=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},oC=function(e,t){this._parent=e,this.offset=t,FSe.call(this)};DSe.inherits(oC,FSe);oC.prototype.destroy=function(e){this._parent.destroy(e)};var oc=function(e){if(!(this instanceof oc))return new oc(e);LSe.call(this,e),e=e||{},this._offset=0,this._buffer=R3t(),this._missing=0,this._partial=!1,this._onparse=MSe,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},i=function(h){if(t._locked=!1,h)return t.destroy(h);t._stream||n()},s=function(){t._stream=null;var h=PSe(t._header.size);h?t._parse(h,o):t._parse(512,p),t._locked||n()},o=function(){t._buffer.consume(PSe(t._header.size)),t._parse(512,p),n()},a=function(){var h=t._header.size;t._paxGlobal=Rx.decodePax(r.slice(0,h)),r.consume(h),s()},u=function(){var h=t._header.size;t._pax=Rx.decodePax(r.slice(0,h)),t._paxGlobal&&(t._pax=O3t(t._paxGlobal,t._pax)),r.consume(h),s()},c=function(){var h=t._header.size;this._gnuLongPath=Rx.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},f=function(){var h=t._header.size;this._gnuLongLinkPath=Rx.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},p=function(){var h=t._offset,g;try{g=t._header=Rx.decode(r.slice(0,512),e.filenameEncoding)}catch(v){t.emit("error",v)}if(r.consume(512),!g){t._parse(512,p),n();return}if(g.type==="gnu-long-path"){t._parse(g.size,c),n();return}if(g.type==="gnu-long-link-path"){t._parse(g.size,f),n();return}if(g.type==="pax-global-header"){t._parse(g.size,a),n();return}if(g.type==="pax-header"){t._parse(g.size,u),n();return}if(t._gnuLongPath&&(g.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(g.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=g=N3t(g,t._pax),t._pax=null),t._locked=!0,!g.size||g.type==="directory"){t._parse(512,p),t.emit("entry",g,I3t(t,h),i);return}t._stream=new oC(t,h),t.emit("entry",g,t._stream,i),t._parse(g.size,s),n()};this._onheader=p,this._parse(512,p)};DSe.inherits(oc,LSe);oc.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))};oc.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)};oc.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=MSe,this._overflow?this._write(this._overflow,void 0,e):e()}};oc.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,s=this._missing;if(e.length&&(this._partial=!0),e.length<s)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var o=null;e.length>s&&(o=e.slice(s),e=e.slice(0,s)),n?n.end(e):i.append(e),this._overflow=o,this._onparse()}};oc.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};jSe.exports=oc});var WSe=m((zwr,USe)=>{USe.exports=require("fs").constants||require("constants")});var VSe=m((Gwr,GSe)=>{var og=WSe(),HSe=Dk(),uC=require("util"),q3t=G6(),k3t=z6(),$Se=rg().Readable,ag=rg().Writable,P3t=require("string_decoder").StringDecoder,aC=K6(),D3t=parseInt("755",8),L3t=parseInt("644",8),zSe=q3t(1024),Y6=function(){},X6=function(e,t){t&=511,t&&e.push(zSe.slice(0,512-t))};function F3t(e){switch(e&og.S_IFMT){case og.S_IFBLK:return"block-device";case og.S_IFCHR:return"character-device";case og.S_IFDIR:return"directory";case og.S_IFIFO:return"fifo";case og.S_IFLNK:return"symlink"}return"file"}var cC=function(e){ag.call(this),this.written=0,this._to=e,this._destroyed=!1};uC.inherits(cC,ag);cC.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r};cC.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var lC=function(){ag.call(this),this.linkname="",this._decoder=new P3t("utf-8"),this._destroyed=!1};uC.inherits(lC,ag);lC.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()};lC.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Ox=function(){ag.call(this),this._destroyed=!1};uC.inherits(Ox,ag);Ox.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Ox.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var za=function(e){if(!(this instanceof za))return new za(e);$Se.call(this,e),this._drain=Y6,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};uC.inherits(za,$Se);za.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof t=="function"&&(r=t,t=null),r||(r=Y6);var n=this;if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=F3t(e.mode)),e.mode||(e.mode=e.type==="directory"?D3t:L3t),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof t=="string"&&(t=k3t(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),X6(n,e.size),process.nextTick(r),new Ox;if(e.type==="symlink"&&!e.linkname){var i=new lC;return HSe(i,function(o){if(o)return n.destroy(),r(o);e.linkname=i.linkname,n._encode(e),r()}),i}if(this._encode(e),e.type!=="file"&&e.type!=="contiguous-file")return process.nextTick(r),new Ox;var s=new cC(this);return this._stream=s,HSe(s,function(o){if(n._stream=null,o)return n.destroy(),r(o);if(s.written!==e.size)return n.destroy(),r(new Error("size mismatch"));X6(n,e.size),n._finalizing&&n.finalize(),r()}),s}};za.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(zSe),this.push(null))};za.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};za.prototype._encode=function(e){if(!e.pax){var t=aC.encode(e);if(t){this.push(t);return}}this._encodePax(e)};za.prototype._encodePax=function(e){var t=aC.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(aC.encode(r)),this.push(t),X6(this,t.length),r.size=e.size,r.type=e.type,this.push(aC.encode(r))};za.prototype._read=function(e){var t=this._drain;this._drain=Y6,t()};GSe.exports=za});var KSe=m(Z6=>{Z6.extract=BSe();Z6.pack=VSe()});var fC=m((Kwr,YSe)=>{"use strict";var XSe=IEe(),M3t=Wv(),j3t=KSe();YSe.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!M3t(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!XSe(e)||XSe(e).ext!=="tar"))return Promise.resolve([]);let t=j3t.extract(),r=[];t.on("entry",(i,s,o)=>{let a=[];s.on("data",u=>a.push(u)),s.on("end",()=>{let u={data:Buffer.concat(a),mode:i.mode,mtime:i.mtime,path:i.name,type:i.type};(i.type==="symlink"||i.type==="link")&&(u.linkname=i.linkname),r.push(u),o()})});let n=new Promise((i,s)=>{Buffer.isBuffer(e)||e.on("error",s),t.on("finish",()=>i(r)),t.on("error",s)});return t.then=n.then.bind(n),t.catch=n.catch.bind(n),Buffer.isBuffer(e)?t.end(e):e.pipe(t),t}});var JSe=m((Xwr,ZSe)=>{"use strict";var ug=e=>Array.from(e).map(t=>t.charCodeAt(0)),B3t=ug("META-INF/mozilla.rsa"),U3t=ug("[Content_Types].xml"),W3t=ug("_rels/.rels");ZSe.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,i)=>{i=Object.assign({offset:0},i);for(let s=0;s<n.length;s++)if(i.mask){if(n[s]!==(i.mask[s]&t[s+i.offset]))return!1}else if(n[s]!==t[s+i.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(B3t,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r(U3t,{offset:30})||r(W3t,{offset:30})){let n=t.subarray(4,2004),i=o=>o.findIndex((a,u,c)=>c[u]===80&&c[u+1]===75&&c[u+2]===3&&c[u+3]===4),s=i(n);if(s!==-1){let o=t.subarray(s+8,s+8+1e3),a=i(o);if(a!==-1){let u=8+s+a+30;if(r(ug("word/"),{offset:u}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(r(ug("ppt/"),{offset:u}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(r(ug("xl/"),{offset:u}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((s,o,a)=>a[o]===66&&a[o+1]===130);if(i!==-1){let s=i+3,o=a=>Array.from(a).every((u,c)=>n[s+c]===u.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])&&r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(r([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(r([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let n=0;n<2&&n<t.length-16;n++)if(r([73,68,51],{offset:n})||r([255,226],{offset:n,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var t1e=m((Ywr,e1e)=>{var QSe=[0,1,3,7,15,31,63,127,255],Ix=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};Ix.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)};Ix.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=QSe[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var n=r-e;t|=(this.curByte&QSe[e]<<n)>>n,this.bitOffset+=e,e=0}}return t};Ix.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1};Ix.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t<e.length;t++)e[t]=this.read(8);return e.toString("hex")};e1e.exports=Ix});var n1e=m((Zwr,r1e)=>{var Mp=function(){};Mp.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};Mp.prototype.read=function(e,t,r){for(var n=0;n<r;){var i=this.readByte();if(i<0)return n===0?-1:n;e[t++]=i,n++}return n};Mp.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")};Mp.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")};Mp.prototype.write=function(e,t,r){var n;for(n=0;n<r;n++)this.writeByte(e[t++]);return r};Mp.prototype.flush=function(){};r1e.exports=Mp});var s1e=m((Jwr,i1e)=>{i1e.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),t=function(){var r=4294967295;this.getCRC=function(){return~r>>>0},this.updateCRC=function(n){r=r<<8^e[(r>>>24^n)&255]},this.updateCRCRun=function(n,i){for(;i-- >0;)r=r<<8^e[(r>>>24^n)&255]}};return t}()});var o1e=m((Qwr,H3t)=>{H3t.exports={name:"seek-bzip",version:"1.0.6",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"^2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}});var h1e=m((eEr,d1e)=>{var $3t=t1e(),Nx=n1e(),l1e=s1e(),f1e=o1e(),pC=20,a1e=258,u1e=0,z3t=1,G3t=2,V3t=6,K3t=50,X3t="314159265359",Y3t="177245385090",c1e=function(e,t){var r=e[t],n;for(n=t;n>0;n--)e[n]=e[n-1];return e[0]=r,r},_r={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},Pl={};Pl[_r.LAST_BLOCK]="Bad file checksum";Pl[_r.NOT_BZIP_DATA]="Not bzip data";Pl[_r.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";Pl[_r.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";Pl[_r.DATA_ERROR]="Data error";Pl[_r.OUT_OF_MEMORY]="Out of memory";Pl[_r.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var ai=function(e,t){var r=Pl[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},$i=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};$i.prototype._init_block=function(){var e=this._get_next_block();return e?(this.blockCRC=new l1e,!0):(this.writeCount=-1,!1)};$i.prototype._start_bunzip=function(e,t){var r=new Buffer(4);(e.read(r,0,4)!==4||String.fromCharCode(r[0],r[1],r[2])!=="BZh")&&ai(_r.NOT_BZIP_DATA,"bad magic");var n=r[3]-48;(n<1||n>9)&&ai(_r.NOT_BZIP_DATA,"level out of range"),this.reader=new $3t(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0};$i.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if(i===Y3t)return!1;i!==X3t&&ai(_r.NOT_BZIP_DATA),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&ai(_r.OBSOLETE_INPUT);var s=n.read(24);s>this.dbufSize&&ai(_r.DATA_ERROR,"initial position out of bounds");var o=n.read(16),a=new Buffer(256),u=0;for(e=0;e<16;e++)if(o&1<<15-e){var c=e*16;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(a[u++]=c+t)}var f=n.read(3);(f<G3t||f>V3t)&&ai(_r.DATA_ERROR);var p=n.read(15);p===0&&ai(_r.DATA_ERROR);var h=new Buffer(256);for(e=0;e<f;e++)h[e]=e;var g=new Buffer(p);for(e=0;e<p;e++){for(t=0;n.read(1);t++)t>=f&&ai(_r.DATA_ERROR);g[e]=c1e(h,t)}var v=u+2,_=[],w;for(t=0;t<f;t++){var y=new Buffer(v),b=new Uint16Array(pC+1);for(o=n.read(5),e=0;e<v;e++){for(;(o<1||o>pC)&&ai(_r.DATA_ERROR),!!n.read(1);)n.read(1)?o--:o++;y[e]=o}var S,T;for(S=T=y[0],e=1;e<v;e++)y[e]>T?T=y[e]:y[e]<S&&(S=y[e]);w={},_.push(w),w.permute=new Uint16Array(a1e),w.limit=new Uint32Array(pC+2),w.base=new Uint32Array(pC+1),w.minLen=S,w.maxLen=T;var R=0;for(e=S;e<=T;e++)for(b[e]=w.limit[e]=0,o=0;o<v;o++)y[o]===e&&(w.permute[R++]=o);for(e=0;e<v;e++)b[y[e]]++;for(R=o=0,e=S;e<T;e++)R+=b[e],w.limit[e]=R-1,R<<=1,o+=b[e],w.base[e+1]=R-o;w.limit[T+1]=Number.MAX_VALUE,w.limit[T]=R+b[T]-1,w.base[S]=0}var q=new Uint32Array(256);for(e=0;e<256;e++)h[e]=e;var O=0,M=0,U=0,z,L=this.dbuf=new Uint32Array(this.dbufSize);for(v=0;;){for(v--||(v=K3t-1,U>=p&&ai(_r.DATA_ERROR),w=_[g[U++]]),e=w.minLen,t=n.read(e);e>w.maxLen&&ai(_r.DATA_ERROR),!(t<=w.limit[e]);e++)t=t<<1|n.read(1);t-=w.base[e],(t<0||t>=a1e)&&ai(_r.DATA_ERROR);var D=w.permute[t];if(D===u1e||D===z3t){O||(O=1,o=0),D===u1e?o+=O:o+=2*O,O<<=1;continue}if(O)for(O=0,M+o>this.dbufSize&&ai(_r.DATA_ERROR),z=a[h[0]],q[z]+=o;o--;)L[M++]=z;if(D>u)break;M>=this.dbufSize&&ai(_r.DATA_ERROR),e=D-1,z=c1e(h,e),z=a[z],q[z]++,L[M++]=z}for((s<0||s>=M)&&ai(_r.DATA_ERROR),t=0,e=0;e<256;e++)r=t+q[e],q[e]=t,t=r;for(e=0;e<M;e++)z=L[e]&255,L[q[z]]|=e<<8,q[z]++;var Z=0,le=0,B=0;return M&&(Z=L[s],le=Z&255,Z>>=8,B=-1),this.writePos=Z,this.writeCurrent=le,this.writeCount=M,this.writeRun=B,!0};$i.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;for(var s=0,o=this.dbuf,a=this.writePos,u=this.writeCurrent,c=this.writeCount,f=this.outputsize,p=this.writeRun;c;){for(c--,n=u,a=o[a],u=a&255,a>>=8,p++===3?(r=u,i=n,u=-1):(r=1,i=u),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;u!=n&&(p=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&ai(_r.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var J6=function(e){if("readByte"in e)return e;var t=new Nx;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(r){this.pos=r},t.eof=function(){return this.pos>=e.length},t},p1e=function(e){var t=new Nx,r=!0;if(e)if(typeof e=="number")t.buffer=new Buffer(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(n){if(r&&this.pos>=this.buffer.length){var i=new Buffer(this.buffer.length*2);this.buffer.copy(i),this.buffer=i}this.buffer[this.pos++]=n},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var n=new Buffer(this.pos);this.buffer.copy(n,0,0,this.pos),this.buffer=n}return this.buffer},t._coerced=!0,t};$i.Err=_r;$i.decode=function(e,t,r){for(var n=J6(e),i=p1e(t),s=new $i(n,i);!("eof"in n&&n.eof());)if(s._init_block())s._read_bunzip();else{var o=s.reader.read(32)>>>0;if(o!==s.streamCRC&&ai(_r.DATA_ERROR,"Bad stream CRC (got "+s.streamCRC.toString(16)+" expected "+o.toString(16)+")"),r&&"eof"in n&&!n.eof())s._start_bunzip(n,i);else break}if("getBuffer"in i)return i.getBuffer()};$i.decodeBlock=function(e,t,r){var n=J6(e),i=p1e(r),s=new $i(n,i);s.reader.seek(t);var o=s._get_next_block();if(o&&(s.blockCRC=new l1e,s.writeCopies=0,s._read_bunzip()),"getBuffer"in i)return i.getBuffer()};$i.table=function(e,t,r){var n=new Nx;n.delegate=J6(e),n.pos=0,n.readByte=function(){return this.pos++,this.delegate.readByte()},n.delegate.eof&&(n.eof=n.delegate.eof.bind(n.delegate));var i=new Nx;i.pos=0,i.writeByte=function(){this.pos++};for(var s=new $i(n,i),o=s.dbufSize;!("eof"in n&&n.eof());){var a=n.pos*8+s.reader.bitOffset;if(s.reader.hasByte&&(a-=8),s._init_block()){var u=i.pos;s._read_bunzip(),t(a,i.pos-u)}else{var c=s.reader.read(32);if(r&&"eof"in n&&!n.eof())s._start_bunzip(n,i),console.assert(s.dbufSize===o,"shouldn't change block size within multistream file");else break}}};$i.Stream=Nx;$i.version=f1e.version;$i.license=f1e.license;d1e.exports=$i});var v1e=m((m1e,g1e)=>{var Z3t=require("stream");m1e=g1e.exports=Q6;Q6.through=Q6;function Q6(e,t,r){e=e||function(f){this.queue(f)},t=t||function(){this.queue(null)};var n=!1,i=!1,s=[],o=!1,a=new Z3t;a.readable=a.writable=!0,a.paused=!1,a.autoDestroy=!(r&&r.autoDestroy===!1),a.write=function(f){return e.call(this,f),!a.paused};function u(){for(;s.length&&!a.paused;){var f=s.shift();if(f===null)return a.emit("end");a.emit("data",f)}}a.queue=a.push=function(f){return o||(f===null&&(o=!0),s.push(f),u()),a},a.on("end",function(){a.readable=!1,!a.writable&&a.autoDestroy&&process.nextTick(function(){a.destroy()})});function c(){a.writable=!1,t.call(a),!a.readable&&a.autoDestroy&&a.destroy()}return a.end=function(f){if(!n)return n=!0,arguments.length&&a.write(f),c(),a},a.destroy=function(){if(!i)return i=!0,n=!0,s.length=0,a.writable=a.readable=!1,a.emit("close"),a},a.pause=function(){if(!a.paused)return a.paused=!0,a},a.resume=function(){return a.paused&&(a.paused=!1,a.emit("resume")),u(),a.paused||a.emit("drain"),a},a}});var x1e=m((tEr,y1e)=>{function ej(e){this.name="Bzip2Error",this.message=e,this.stack=new Error().stack}ej.prototype=new Error;var ui={Error:function(e){throw new ej(e)}},Ga={};Ga.Bzip2Error=ej;Ga.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];Ga.array=function(e){var t=0,r=0,n=[0,1,3,7,15,31,63,127,255];return function(i){for(var s=0;i>0;){var o=8-t;i>=o?(s<<=o,s|=n[o]&e[r++],t=0,i-=o):(s<<=i,s|=(e[r]&n[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return s}};Ga.simple=function(e,t){var r=Ga.array(e),n=Ga.header(r),i=!1,s=1e5*n,o=new Int32Array(s);do i=Ga.decompress(r,t,o,s);while(!i)};Ga.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),e(8*3)!=4348520&&ui.Error("No magic number found");var t=e(8)-48;return(t<1||t>9)&&ui.Error("Not a BZIP archive"),t};Ga.decompress=function(e,t,r,n,i){for(var s=20,o=258,a=0,u=1,c=50,f=-1,p="",h=0;h<6;h++)p+=e(8).toString(16);if(p=="177245385090"){var g=e(32)|0;return g!==i&&ui.Error("Error in bzip2: crc32 do not match"),e(null),null}p!="314159265359"&&ui.Error("eek not valid bzip data");var v=e(32)|0;e(1)&&ui.Error("unsupported obsolete version");var _=e(24);_>n&&ui.Error("Initial position larger than buffer size");var w=e(16),y=0;for(h=0;h<16;h++)if(w&1<<15-h){var b=e(16);for(se=0;se<16;se++)b&1<<15-se&&(this.symToByte[y++]=16*h+se)}var S=e(3);(S<2||S>6)&&ui.Error("another error");var T=e(15);T==0&&ui.Error("meh");for(var h=0;h<S;h++)this.mtfSymbol[h]=h;for(var h=0;h<T;h++){for(var se=0;e(1);se++)se>=S&&ui.Error("whoops another error");for(var R=this.mtfSymbol[se],b=se-1;b>=0;b--)this.mtfSymbol[b+1]=this.mtfSymbol[b];this.mtfSymbol[0]=R,this.selectors[h]=R}for(var he=y+2,q=[],O=new Uint8Array(o),M=new Uint16Array(s+1),U,se=0;se<S;se++){w=e(5);for(var h=0;h<he;h++){for(;(w<1||w>s)&&ui.Error("I gave up a while ago on writing error messages"),!!e(1);)e(1)?w--:w++;O[h]=w}var z,L;z=L=O[0];for(var h=1;h<he;h++)O[h]>L?L=O[h]:O[h]<z&&(z=O[h]);U=q[se]={},U.permute=new Int32Array(o),U.limit=new Int32Array(s+1),U.base=new Int32Array(s+1),U.minLen=z,U.maxLen=L;for(var D=U.base,Z=U.limit,le=0,h=z;h<=L;h++)for(var w=0;w<he;w++)O[w]==h&&(U.permute[le++]=w);for(h=z;h<=L;h++)M[h]=Z[h]=0;for(h=0;h<he;h++)M[O[h]]++;for(le=w=0,h=z;h<L;h++)le+=M[h],Z[h]=le-1,le<<=1,D[h+1]=le-(w+=M[h]);Z[L]=le+M[L]-1,D[z]=0}for(var h=0;h<256;h++)this.mtfSymbol[h]=h,this.byteCount[h]=0;var B,V,he,fe;for(B=V=he=fe=0;;){for(he--||(he=c-1,fe>=T&&ui.Error("meow i'm a kitty, that's an error"),U=q[this.selectors[fe++]],D=U.base,Z=U.limit),h=U.minLen,se=e(h);h>U.maxLen&&ui.Error("rawr i'm a dinosaur"),!(se<=Z[h]);)h++,se=se<<1|e(1);se-=D[h],(se<0||se>=o)&&ui.Error("moo i'm a cow");var xe=U.permute[se];if(xe==a||xe==u){B||(B=1,w=0),xe==a?w+=B:w+=2*B,B<<=1;continue}if(B)for(B=0,V+w>n&&ui.Error("Boom."),R=this.symToByte[this.mtfSymbol[0]],this.byteCount[R]+=w;w--;)r[V++]=R;if(xe>y)break;V>=n&&ui.Error("I can't think of anything. Error"),h=xe-1,R=this.mtfSymbol[h];for(var b=h-1;b>=0;b--)this.mtfSymbol[b+1]=this.mtfSymbol[b];this.mtfSymbol[0]=R,R=this.symToByte[R],this.byteCount[R]++,r[V++]=R}(_<0||_>=V)&&ui.Error("I'm a monkey and I'm throwing something at someone, namely you");for(var se=0,h=0;h<256;h++)b=se+this.byteCount[h],this.byteCount[h]=se,se=b;for(var h=0;h<V;h++)R=r[h]&255,r[this.byteCount[R]]|=h<<8,this.byteCount[R]++;var Ge=0,Le=0,Ee=0;V&&(Ge=r[_],Le=Ge&255,Ge>>=8,Ee=-1),V=V;for(var it,Vt,Te;V;){for(V--,Vt=Le,Ge=r[Ge],Le=Ge&255,Ge>>=8,Ee++==3?(it=Le,Te=Vt,Le=-1):(it=1,Te=Le);it--;)f=(f<<8^this.crcTable[(f>>24^Te)&255])&4294967295,t(Te);Le!=Vt&&(Ee=0)}return f=(f^-1)>>>0,(f|0)!=(v|0)&&ui.Error("Error in bzip2: crc32 do not match"),i=(f^(i<<1|i>>>31))&4294967295,i};y1e.exports=Ga});var w1e=m((rEr,b1e)=>{var _1e=[0,1,3,7,15,31,63,127,255];b1e.exports=function(t){var r=0,n=0,i=t(),s=function(o){if(o===null&&r!=0){r=0,n++;return}for(var a=0;o>0;){n>=i.length&&(n=0,i=t());var u=8-r;r===0&&o>0&&s.bytesRead++,o>=u?(a<<=u,a|=_1e[u]&i[n++],r=0,o-=u):(a<<=o,a|=(i[n]&_1e[o]<<8-o-r)>>8-o-r,r+=o,o=0)}return a};return s.bytesRead=0,s}});var T1e=m((nEr,S1e)=>{var J3t=v1e(),E1e=x1e(),Q3t=w1e();S1e.exports=e6t;function e6t(){var e=[],t=0,r=0,n=!1,i=!1,s=null,o=null;function a(f){if(r){var p=1e5*r,h=new Int32Array(p),g=[],v=function(_){g.push(_)};return o=E1e.decompress(s,v,h,p,o),o===null?(r=0,!1):(f(Buffer.from(g)),!0)}else return r=E1e.header(s),o=0,!0}var u=0;function c(f){if(!n)try{return a(function(p){f.queue(p),p!==null&&(u+=p.length)})}catch(p){return f.emit("error",p),n=!0,!1}}return J3t(function(p){for(e.push(p),t+=p.length,s===null&&(s=Q3t(function(){return e.shift()}));!n&&t-s.bytesRead+1>=(25e3+1e5*r||4);)c(this)},function(p){for(;!n&&s&&t>s.bytesRead;)c(this);n||(o!==null&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}});var O1e=m((iEr,R1e)=>{"use strict";var A1e=fC(),C1e=JSe(),t6t=Wv(),r6t=h1e(),n6t=T1e();R1e.exports=()=>e=>!Buffer.isBuffer(e)&&!t6t(e)?Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`)):Buffer.isBuffer(e)&&(!C1e(e)||C1e(e).ext!=="bz2")?Promise.resolve([]):Buffer.isBuffer(e)?A1e()(r6t.decode(e)):A1e()(e.pipe(n6t()))});var N1e=m((sEr,I1e)=>{"use strict";I1e.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,i)=>{i=Object.assign({offset:0},i);for(let s=0;s<n.length;s++)if(n[s]!==t[s+i.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(t[3]===24||t[3]===32)&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((s,o,a)=>a[o]===66&&a[o+1]===130);if(i>=0){let s=i+3,o=a=>Array.from(a).every((u,c)=>n[s+c]===u.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var P1e=m((oEr,k1e)=>{"use strict";var i6t=require("zlib"),s6t=fC(),q1e=N1e(),o6t=Wv();k1e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!o6t(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!q1e(e)||q1e(e).ext!=="gz"))return Promise.resolve([]);let t=i6t.createGunzip(),r=s6t()(t);return Buffer.isBuffer(e)?t.end(e):e.pipe(t),r}});var L1e=m((aEr,D1e)=>{"use strict";D1e.exports=function(e){return e&&e.length>1?e[0]===255&&e[1]===216&&e[2]===255?{ext:"jpg",mime:"image/jpeg"}:e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71?{ext:"png",mime:"image/png"}:e[0]===71&&e[1]===73&&e[2]===70?{ext:"gif",mime:"image/gif"}:e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80?{ext:"webp",mime:"image/webp"}:e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70?{ext:"flif",mime:"image/flif"}:(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82?{ext:"cr2",mime:"image/x-canon-cr2"}:e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42?{ext:"tif",mime:"image/tiff"}:e[0]===66&&e[1]===77?{ext:"bmp",mime:"image/bmp"}:e[0]===73&&e[1]===73&&e[2]===188?{ext:"jxr",mime:"image/vnd.ms-photo"}:e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112?{ext:"epub",mime:"application/epub+zip"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97?{ext:"xpi",mime:"application/x-xpinstall"}:e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)?{ext:"zip",mime:"application/zip"}:e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114?{ext:"tar",mime:"application/x-tar"}:e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)?{ext:"rar",mime:"application/x-rar-compressed"}:e[0]===31&&e[1]===139&&e[2]===8?{ext:"gz",mime:"application/gzip"}:e[0]===66&&e[1]===90&&e[2]===104?{ext:"bz2",mime:"application/x-bzip2"}:e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28?{ext:"7z",mime:"application/x-7z-compressed"}:e[0]===120&&e[1]===1?{ext:"dmg",mime:"application/x-apple-diskimage"}:e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0?{ext:"mp4",mime:"video/mp4"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86?{ext:"m4v",mime:"video/x-m4v"}:e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100?{ext:"mid",mime:"audio/midi"}:e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97?{ext:"mkv",mime:"video/x-matroska"}:e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163?{ext:"webm",mime:"video/webm"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112?{ext:"mov",mime:"video/quicktime"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73?{ext:"avi",mime:"video/x-msvideo"}:e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217?{ext:"wmv",mime:"video/x-ms-wmv"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"?{ext:"mpg",mime:"video/mpeg"}:e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251?{ext:"mp3",mime:"audio/mpeg"}:e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32?{ext:"m4a",mime:"audio/m4a"}:e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100?{ext:"opus",mime:"audio/opus"}:e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83?{ext:"ogg",mime:"audio/ogg"}:e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67?{ext:"flac",mime:"audio/x-flac"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69?{ext:"wav",mime:"audio/x-wav"}:e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10?{ext:"amr",mime:"audio/amr"}:e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70?{ext:"pdf",mime:"application/pdf"}:e[0]===77&&e[1]===90?{ext:"exe",mime:"application/x-msdownload"}:(e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83?{ext:"swf",mime:"application/x-shockwave-flash"}:e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102?{ext:"rtf",mime:"application/rtf"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff",mime:"application/font-woff"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff2",mime:"application/font-woff"}:e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)?{ext:"eot",mime:"application/octet-stream"}:e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0?{ext:"ttf",mime:"application/font-sfnt"}:e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0?{ext:"otf",mime:"application/font-sfnt"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0?{ext:"ico",mime:"image/x-icon"}:e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1?{ext:"flv",mime:"video/x-flv"}:e[0]===37&&e[1]===33?{ext:"ps",mime:"application/postscript"}:e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0?{ext:"xz",mime:"application/x-xz"}:e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105?{ext:"sqlite",mime:"application/x-sqlite3"}:e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52?{ext:"crx",mime:"application/x-google-chrome-extension"}:e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121?{ext:"deb",mime:"application/x-deb"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62?{ext:"ar",mime:"application/x-unix-archive"}:e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219?{ext:"rpm",mime:"application/x-rpm"}:e[0]===31&&e[1]===160||e[0]===31&&e[1]===157?{ext:"Z",mime:"application/x-compress"}:e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80?{ext:"lz",mime:"application/x-lzip"}:e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225?{ext:"msi",mime:"application/x-msi"}:null:null}});var $1e=m((uEr,H1e)=>{"use strict";var rj="pending",F1e="settled",dC="fulfilled",hC="rejected",a6t=function(){},M1e=typeof global<"u"&&typeof global.process<"u"&&typeof global.process.emit=="function",u6t=typeof setImmediate>"u"?setTimeout:setImmediate,qx=[],tj;function c6t(){for(var e=0;e<qx.length;e++)qx[e][0](qx[e][1]);qx=[],tj=!1}function mC(e,t){qx.push([e,t]),tj||(tj=!0,u6t(c6t,0))}function l6t(e,t){function r(i){nj(t,i)}function n(i){kx(t,i)}try{e(r,n)}catch(i){n(i)}}function j1e(e){var t=e.owner,r=t._state,n=t._data,i=e[r],s=e.then;if(typeof i=="function"){r=dC;try{n=i(n)}catch(o){kx(s,o)}}B1e(s,n)||(r===dC&&nj(s,n),r===hC&&kx(s,n))}function B1e(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&(typeof t=="function"||typeof t=="object")){var n=t.then;if(typeof n=="function")return n.call(t,function(i){r||(r=!0,t===i?U1e(e,i):nj(e,i))},function(i){r||(r=!0,kx(e,i))}),!0}}catch(i){return r||kx(e,i),!0}return!1}function nj(e,t){(e===t||!B1e(e,t))&&U1e(e,t)}function U1e(e,t){e._state===rj&&(e._state=F1e,e._data=t,mC(f6t,e))}function kx(e,t){e._state===rj&&(e._state=F1e,e._data=t,mC(p6t,e))}function W1e(e){e._then=e._then.forEach(j1e)}function f6t(e){e._state=dC,W1e(e)}function p6t(e){e._state=hC,W1e(e),!e._handled&&M1e&&global.process.emit("unhandledRejection",e._data,e)}function d6t(e){global.process.emit("rejectionHandled",e)}function Ns(e){if(typeof e!="function")throw new TypeError("Promise resolver "+e+" is not a function");if(!(this instanceof Ns))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],l6t(e,this)}Ns.prototype={constructor:Ns,_state:rj,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(a6t),fulfilled:e,rejected:t};return(t||e)&&!this._handled&&(this._handled=!0,this._state===hC&&M1e&&mC(d6t,this)),this._state===dC||this._state===hC?mC(j1e,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}};Ns.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new Ns(function(t,r){var n=[],i=0;function s(u){return i++,function(c){n[u]=c,--i||t(n)}}for(var o=0,a;o<e.length;o++)a=e[o],a&&typeof a.then=="function"?a.then(s(o),r):n[o]=a;i||t(n)})};Ns.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new Ns(function(t,r){for(var n=0,i;n<e.length;n++)i=e[n],i&&typeof i.then=="function"?i.then(t,r):t(i)})};Ns.resolve=function(e){return e&&typeof e=="object"&&e.constructor===Ns?e:new Ns(function(t){t(e)})};Ns.reject=function(e){return new Ns(function(t,r){r(e)})};H1e.exports=Ns});var G1e=m((cEr,z1e)=>{"use strict";z1e.exports=typeof Promise=="function"?Promise:$1e()});var gC=m((lEr,K1e)=>{"use strict";var V1e=Object.getOwnPropertySymbols,h6t=Object.prototype.hasOwnProperty,m6t=Object.prototype.propertyIsEnumerable;function g6t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function v6t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}K1e.exports=v6t()?Object.assign:function(e,t){for(var r,n=g6t(e),i,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var o in r)h6t.call(r,o)&&(n[o]=r[o]);if(V1e){i=V1e(r);for(var a=0;a<i.length;a++)m6t.call(r,i[a])&&(n[i[a]]=r[i[a]])}}return n}});var Y1e=m((fEr,X1e)=>{var y6t=require("stream").PassThrough,x6t=gC();X1e.exports=function(e){e=x6t({},e);var t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);var s=0,o=[],a=new y6t({objectMode:i});return r&&a.setEncoding(r),a.on("data",function(u){o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=function(){return t?o:n?Buffer.concat(o,s):o.join("")},a.getBufferedLength=function(){return s},a}});var J1e=m((pEr,vC)=>{"use strict";var Z1e=G1e(),ij=gC(),_6t=Y1e();function sj(e,t){if(!e)return Z1e.reject(new Error("Expected a stream"));t=ij({maxBuffer:1/0},t);var r=t.maxBuffer,n,i,s=new Z1e(function(o,a){n=_6t(t),e.once("error",u),e.pipe(n),n.on("data",function(){n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=function(){e.unpipe&&e.unpipe(n)};function u(c){c&&(c.bufferedData=n.getBufferedValue()),a(c)}});return s.then(i,i),s.then(function(){return n.getBufferedValue()})}vC.exports=sj;vC.exports.buffer=function(e,t){return sj(e,ij({},t,{encoding:"buffer"}))};vC.exports.array=function(e,t){return sj(e,ij({},t,{array:!0}))}});var rTe=m((dEr,tTe)=>{"use strict";var Q1e=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),s=0;s<arguments.length;s++)i[s]=arguments[s];return new t(function(o,a){i.push(function(u,c){if(u)a(u);else if(r.multiArgs){for(var f=new Array(arguments.length-1),p=1;p<arguments.length;p++)f[p-1]=arguments[p];o(f)}else o(c)}),e.apply(n,i)})}},eTe=tTe.exports=function(e,t,r){typeof t!="function"&&(r=t,t=Promise),r=r||{},r.exclude=r.exclude||[/.+Sync$/];var n=function(s){var o=function(a){return typeof a=="string"?s===a:a.test(s)};return r.include?r.include.some(o):!r.exclude.some(o)},i=typeof e=="function"?function(){return r.excludeMain?e.apply(this,arguments):Q1e(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce(function(s,o){var a=e[o];return s[o]=typeof a=="function"&&n(o)?Q1e(a,t,r):a,s},i)};eTe.all=eTe});var oTe=m((hEr,sTe)=>{sTe.exports=yC;function yC(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}yC.prototype.go=function(e){this.pending<this.max?iTe(this,e):this.waiting.push(e)};yC.prototype.wait=function(e){this.pending===0?e(this.error):this.listeners.push(e)};yC.prototype.hold=function(){return nTe(this)};function nTe(e){e.pending+=1;var t=!1;return r;function r(i){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||i,e.pending-=1,e.waiting.length>0&&e.pending<e.max)iTe(e,e.waiting.shift());else if(e.pending===0){var s=e.listeners;e.listeners=[],s.forEach(n)}}function n(i){i(e.error)}}function iTe(e,t){t(nTe(e))}});var uTe=m(Dx=>{var Px=require("fs"),xC=require("util"),oj=require("stream"),aTe=oj.Readable,aj=oj.Writable,b6t=oj.PassThrough,w6t=oTe(),_C=require("events").EventEmitter;Dx.createFromBuffer=E6t;Dx.createFromFd=S6t;Dx.BufferSlicer=uc;Dx.FdSlicer=ac;xC.inherits(ac,_C);function ac(e,t){t=t||{},_C.call(this),this.fd=e,this.pend=new w6t,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}ac.prototype.read=function(e,t,r,n,i){var s=this;s.pend.go(function(o){Px.read(s.fd,e,t,r,n,function(a,u,c){o(),i(a,u,c)})})};ac.prototype.write=function(e,t,r,n,i){var s=this;s.pend.go(function(o){Px.write(s.fd,e,t,r,n,function(a,u,c){o(),i(a,u,c)})})};ac.prototype.createReadStream=function(e){return new bC(this,e)};ac.prototype.createWriteStream=function(e){return new wC(this,e)};ac.prototype.ref=function(){this.refCount+=1};ac.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&Px.close(e.fd,t);function t(r){r?e.emit("error",r):e.emit("close")}};xC.inherits(bC,aTe);function bC(e,t){t=t||{},aTe.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}bC.prototype._read=function(e){var t=this;if(!t.destroyed){var r=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null&&(r=Math.min(r,t.endOffset-t.pos)),r<=0){t.destroyed=!0,t.push(null),t.context.unref();return}t.context.pend.go(function(n){if(t.destroyed)return n();var i=new Buffer(r);Px.read(t.context.fd,i,0,r,t.pos,function(s,o){s?t.destroy(s):o===0?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=o,t.push(i.slice(0,o))),n()})})}};bC.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())};xC.inherits(wC,aj);function wC(e,t){t=t||{},aj.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end==null?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}wC.prototype._write=function(e,t,r){var n=this;if(!n.destroyed){if(n.pos+e.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(s){if(n.destroyed)return s();Px.write(n.context.fd,e,0,e.length,n.pos,function(o,a){o?(n.destroy(),s(),r(o)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),s(),r())})})}};wC.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};xC.inherits(uc,_C);function uc(e,t){_C.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}uc.prototype.read=function(e,t,r,n,i){var s=n+r,o=s-this.buffer.length,a=o>0?o:r;this.buffer.copy(e,t,n,s),setImmediate(function(){i(null,a)})};uc.prototype.write=function(e,t,r,n,i){e.copy(this.buffer,n,t,t+r),setImmediate(function(){i(null,r,e)})};uc.prototype.createReadStream=function(e){e=e||{};var t=new b6t(e);t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var r=this.buffer.slice(t.start,t.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&t.write(r.slice(n,r.length));break}t.write(r.slice(n,i)),n=i}return t.end(),t.destroy=function(){t.destroyed=!0},t};uc.prototype.createWriteStream=function(e){var t=this;e=e||{};var r=new aj(e);return r.start=e.start||0,r.endOffset=e.end==null?this.buffer.length:+e.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,s){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,s(a);return}n.copy(t.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),s()}},r.destroy=function(){r.destroyed=!0},r};uc.prototype.ref=function(){this.refCount+=1};uc.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function E6t(e,t){return new uc(e,t)}function S6t(e,t){return new ac(e,t)}});var fTe=m((gEr,lTe)=>{var Dl=require("buffer").Buffer,uj=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(uj=new Int32Array(uj));function cTe(e){if(Dl.isBuffer(e))return e;var t=typeof Dl.alloc=="function"&&typeof Dl.from=="function";if(typeof e=="number")return t?Dl.alloc(e):new Dl(e);if(typeof e=="string")return t?Dl.from(e):new Dl(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function T6t(e){var t=cTe(4);return t.writeInt32BE(e,0),t}function cj(e,t){e=cTe(e),Dl.isBuffer(t)&&(t=t.readUInt32BE(0));for(var r=~~t^-1,n=0;n<e.length;n++)r=uj[(r^e[n])&255]^r>>>8;return r^-1}function lj(){return T6t(cj.apply(null,arguments))}lj.signed=function(){return cj.apply(null,arguments)};lj.unsigned=function(){return cj.apply(null,arguments)>>>0};lTe.exports=lj});var yTe=m(Ka=>{var fj=require("fs"),A6t=require("zlib"),pTe=uTe(),C6t=fTe(),TC=require("util"),AC=require("events").EventEmitter,dTe=require("stream").Transform,pj=require("stream").PassThrough,R6t=require("stream").Writable;Ka.open=O6t;Ka.fromFd=hTe;Ka.fromBuffer=I6t;Ka.fromRandomAccessReader=dj;Ka.dosDateTimeToDate=gTe;Ka.validateFileName=vTe;Ka.ZipFile=Ll;Ka.Entry=Lx;Ka.RandomAccessReader=Fl;function O6t(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!0),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),r==null&&(r=SC),fj.open(e,"r",function(n,i){if(n)return r(n);hTe(i,t,function(s,o){s&&fj.close(i,SC),r(s,o)})})}function hTe(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!1),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),r==null&&(r=SC),fj.fstat(e,function(n,i){if(n)return r(n);var s=pTe.createFromFd(e,{autoClose:!0});dj(s,i.size,t,r)})}function I6t(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose=!1,t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1);var n=pTe.createFromBuffer(e,{maxChunkSize:65536});dj(n,e.length,t,r)}function dj(e,t,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=SC),typeof t!="number")throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var s=22,o=65535,a=Math.min(s+o,t),u=Va(a),c=t-u.length;cg(e,u,0,a,c,function(f){if(f)return n(f);for(var p=a-s;p>=0;p-=1)if(u.readUInt32LE(p)===101010256){var h=u.slice(p),g=h.readUInt16LE(4);if(g!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+g));var v=h.readUInt16LE(10),_=h.readUInt32LE(16),w=h.readUInt16LE(20),y=h.length-s;if(w!==y)return n(new Error("invalid comment length. expected: "+y+". found: "+w));var b=i?EC(h,22,h.length,!1):h.slice(22);if(!(v===65535||_===4294967295))return n(null,new Ll(e,_,t,v,b,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var S=Va(20),T=c+p-S.length;cg(e,S,0,S.length,T,function(R){if(R)return n(R);if(S.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var q=lg(S,8),O=Va(56);cg(e,O,0,O.length,q,function(M){return M?n(M):O.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(v=lg(O,32),_=lg(O,48),n(null,new Ll(e,_,t,v,b,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}TC.inherits(Ll,AC);function Ll(e,t,r,n,i,s,o,a,u,c){var f=this;AC.call(f),f.reader=e,f.reader.on("error",function(p){mTe(f,p)}),f.reader.once("close",function(){f.emit("close")}),f.readEntryCursor=t,f.fileSize=r,f.entryCount=n,f.comment=i,f.entriesRead=0,f.autoClose=!!s,f.lazyEntries=!!o,f.decodeStrings=!!a,f.validateEntrySizes=!!u,f.strictFileNames=!!c,f.isOpen=!0,f.emittedError=!1,f.lazyEntries||f._readEntry()}Ll.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function Qo(e,t){e.autoClose&&e.close(),mTe(e,t)}function mTe(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}Ll.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};Ll.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate(function(){e.autoClose&&e.close(),!e.emittedError&&e.emit("end")});return}if(!e.emittedError){var t=Va(46);cg(e.reader,t,0,t.length,e.readEntryCursor,function(r){if(r)return Qo(e,r);if(!e.emittedError){var n=new Lx,i=t.readUInt32LE(0);if(i!==33639248)return Qo(e,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=t.readUInt16LE(4),n.versionNeededToExtract=t.readUInt16LE(6),n.generalPurposeBitFlag=t.readUInt16LE(8),n.compressionMethod=t.readUInt16LE(10),n.lastModFileTime=t.readUInt16LE(12),n.lastModFileDate=t.readUInt16LE(14),n.crc32=t.readUInt32LE(16),n.compressedSize=t.readUInt32LE(20),n.uncompressedSize=t.readUInt32LE(24),n.fileNameLength=t.readUInt16LE(28),n.extraFieldLength=t.readUInt16LE(30),n.fileCommentLength=t.readUInt16LE(32),n.internalFileAttributes=t.readUInt16LE(36),n.externalFileAttributes=t.readUInt32LE(38),n.relativeOffsetOfLocalHeader=t.readUInt32LE(42),n.generalPurposeBitFlag&64)return Qo(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=Va(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),cg(e.reader,t,0,t.length,e.readEntryCursor,function(s){if(s)return Qo(e,s);if(!e.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=e.decodeStrings?EC(t,0,n.fileNameLength,o):t.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,u=t.slice(n.fileNameLength,a);n.extraFields=[];for(var c=0;c<u.length-3;){var f=u.readUInt16LE(c+0),p=u.readUInt16LE(c+2),h=c+4,g=h+p;if(g>u.length)return Qo(e,new Error("extra field length exceeds extra field buffer size"));var v=Va(p);u.copy(v,0,h,g),n.extraFields.push({id:f,data:v}),c=g}if(n.fileComment=e.decodeStrings?EC(t,a,a+n.fileCommentLength,o):t.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var _=null,c=0;c<n.extraFields.length;c++){var w=n.extraFields[c];if(w.id===1){_=w.data;break}}if(_==null)return Qo(e,new Error("expected zip64 extended information extra field"));var y=0;if(n.uncompressedSize===4294967295){if(y+8>_.length)return Qo(e,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=lg(_,y),y+=8}if(n.compressedSize===4294967295){if(y+8>_.length)return Qo(e,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=lg(_,y),y+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(y+8>_.length)return Qo(e,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=lg(_,y),y+=8}}if(e.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var w=n.extraFields[c];if(w.id===28789){if(w.data.length<6||w.data.readUInt8(0)!==1)continue;var b=w.data.readUInt32LE(1);if(C6t.unsigned(t.slice(0,n.fileNameLength))!==b)continue;n.fileName=EC(w.data,5,w.data.length,!0);break}}if(e.validateEntrySizes&&n.compressionMethod===0){var S=n.uncompressedSize;if(n.isEncrypted()&&(S+=12),n.compressedSize!==S){var T="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return Qo(e,new Error(T))}}if(e.decodeStrings){e.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var R=vTe(n.fileName,e.validateFileNameOptions);if(R!=null)return Qo(e,new Error(R))}e.emit("entry",n),e.lazyEntries||e._readEntry()}})}})}};Ll.prototype.openReadStream=function(e,t,r){var n=this,i=0,s=e.compressedSize;if(r==null)r=t,t={};else{if(t.decrypt!=null){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(t.decrypt!==!1)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&t.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(t.decompress!=null){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(t.decompress===!1||t.decompress===!0))throw new Error("invalid options.decompress value: "+t.decompress)}if(t.start!=null||t.end!=null){if(e.isCompressed()&&t.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&t.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(t.start!=null){if(i=t.start,i<0)throw new Error("options.start < 0");if(i>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(t.end!=null){if(s=t.end,s<0)throw new Error("options.end < 0");if(s>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(e.isEncrypted()&&t.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=Va(30);cg(n.reader,o,0,o.length,e.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var u=o.readUInt32LE(0);if(u!==67324752)return r(new Error("invalid local file header signature: 0x"+u.toString(16)));var c=o.readUInt16LE(26),f=o.readUInt16LE(28),p=e.relativeOffsetOfLocalHeader+o.length+c+f,h;if(e.compressionMethod===0)h=!1;else if(e.compressionMethod===8)h=t.decompress!=null?t.decompress:!0;else return r(new Error("unsupported compression method: "+e.compressionMethod));var g=p,v=g+e.compressedSize;if(e.compressedSize!==0&&v>n.fileSize)return r(new Error("file data overflows file bounds: "+g+" + "+e.compressedSize+" > "+n.fileSize));var _=n.reader.createReadStream({start:g+i,end:g+s}),w=_;if(h){var y=!1,b=A6t.createInflateRaw();_.on("error",function(S){setImmediate(function(){y||b.emit("error",S)})}),_.pipe(b),n.validateEntrySizes?(w=new Fx(e.uncompressedSize),b.on("error",function(S){setImmediate(function(){y||w.emit("error",S)})}),b.pipe(w)):w=b,w.destroy=function(){y=!0,b!==w&&b.unpipe(w),_.unpipe(b),_.destroy()}}r(null,w)}finally{n.reader.unref()}})};function Lx(){}Lx.prototype.getLastModDate=function(){return gTe(this.lastModFileDate,this.lastModFileTime)};Lx.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Lx.prototype.isCompressed=function(){return this.compressionMethod===8};function gTe(e,t){var r=e&31,n=(e>>5&15)-1,i=(e>>9&127)+1980,s=0,o=(t&31)*2,a=t>>5&63,u=t>>11&31;return new Date(i,n,r,u,a,o,s)}function vTe(e){return e.indexOf("\\")!==-1?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:e.split("/").indexOf("..")!==-1?"invalid relative path: "+e:null}function cg(e,t,r,n,i,s){if(n===0)return setImmediate(function(){s(null,Va(0))});e.read(t,r,n,i,function(o,a){if(o)return s(o);if(a<n)return s(new Error("unexpected EOF"));s()})}TC.inherits(Fx,dTe);function Fx(e){dTe.call(this),this.actualByteCount=0,this.expectedByteCount=e}Fx.prototype._transform=function(e,t,r){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,e)};Fx.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()};TC.inherits(Fl,AC);function Fl(){AC.call(this),this.refCount=0}Fl.prototype.ref=function(){this.refCount+=1};Fl.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(t);function t(r){if(r)return e.emit("error",r);e.emit("close")}};Fl.prototype.createReadStream=function(e){var t=e.start,r=e.end;if(t===r){var n=new pj;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(t,r),s=!1,o=new CC(this);i.on("error",function(u){setImmediate(function(){s||o.emit("error",u)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var a=new Fx(r-t);return o.on("error",function(u){setImmediate(function(){s||a.emit("error",u)})}),a.destroy=function(){s=!0,o.unpipe(a),o.destroy()},i.pipe(o).pipe(a)};Fl.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")};Fl.prototype.read=function(e,t,r,n,i){var s=this.createReadStream({start:n,end:n+r}),o=new R6t,a=0;o._write=function(u,c,f){u.copy(e,t+a,0,u.length),a+=u.length,f()},o.on("finish",i),s.on("error",function(u){i(u)}),s.pipe(o)};Fl.prototype.close=function(e){setImmediate(e)};TC.inherits(CC,pj);function CC(e){pj.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}CC.prototype._flush=function(e){this.unref(),e()};CC.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var N6t="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function EC(e,t,r,n){if(n)return e.toString("utf8",t,r);for(var i="",s=t;s<r;s++)i+=N6t[e[s]];return i}function lg(e,t){var r=e.readUInt32LE(t),n=e.readUInt32LE(t+4);return n*4294967296+r}var Va;typeof Buffer.allocUnsafe=="function"?Va=function(e){return Buffer.allocUnsafe(e)}:Va=function(e){return new Buffer(e)};function SC(e){if(e)throw e}});var wTe=m((yEr,bTe)=>{"use strict";var xTe=L1e(),q6t=J1e(),_Te=rTe(),k6t=yTe(),P6t=(e,t)=>{let s=e.versionMadeBy>>8;return(t&61440)===40960?"symlink":(t&61440)===16384||s===0&&e.externalFileAttributes===16?"directory":"file"},D6t=(e,t)=>{let r={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};return r.type=P6t(e,r.mode),r.mode===0&&r.type==="directory"&&(r.mode=493),r.mode===0&&(r.mode=420),_Te(t.openReadStream.bind(t))(e).then(q6t.buffer).then(n=>(r.data=n,r.type==="symlink"&&(r.linkname=n.toString()),r)).catch(n=>{throw t.close(),n})},L6t=e=>new Promise((t,r)=>{let n=[];e.readEntry(),e.on("entry",i=>{D6t(i,e).catch(r).then(s=>{n.push(s),e.readEntry()})}),e.on("error",r),e.on("end",()=>t(n))});bTe.exports=()=>e=>Buffer.isBuffer(e)?!xTe(e)||xTe(e).ext!=="zip"?Promise.resolve([]):_Te(k6t.fromBuffer)(e,{lazyEntries:!0}).then(L6t):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))});var TTe=m((xEr,STe)=>{"use strict";var ETe=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{t.errorFirst?n.push(function(o,a){if(t.multiArgs){let u=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)u[c-1]=arguments[c];o?(u.unshift(o),s(u)):i(u)}else o?s(o):i(a)}):n.push(function(o){if(t.multiArgs){let a=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)a[u]=arguments[u];i(a)}else i(o)}),e.apply(this,n)})};STe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):ETe(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&r(i)?ETe(s,t):s}return n}});var OTe=m((_Er,hj)=>{"use strict";var F6t=require("fs"),jp=require("path"),ATe=TTe(),CTe={mode:511&~process.umask(),fs:F6t},RTe=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(jp.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}};hj.exports=(e,t)=>Promise.resolve().then(()=>{RTe(e),t=Object.assign({},CTe,t);let r=ATe(t.fs.mkdir),n=ATe(t.fs.stat),i=s=>r(s,t.mode).then(()=>s).catch(o=>{if(o.code==="ENOENT"){if(o.message.includes("null bytes")||jp.dirname(s)===s)throw o;return i(jp.dirname(s)).then(()=>i(s))}return n(s).then(a=>a.isDirectory()?s:Promise.reject()).catch(()=>{throw o})});return i(jp.resolve(e))});hj.exports.sync=(e,t)=>{RTe(e),t=Object.assign({},CTe,t);let r=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="ENOENT"){if(i.message.includes("null bytes")||jp.dirname(n)===n)throw i;return r(jp.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(jp.resolve(e))}});var kTe=m((bEr,qTe)=>{"use strict";var ITe=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),s=0;s<arguments.length;s++)i[s]=arguments[s];return new t(function(o,a){i.push(function(u,c){if(u)a(u);else if(r.multiArgs){for(var f=new Array(arguments.length-1),p=1;p<arguments.length;p++)f[p-1]=arguments[p];o(f)}else o(c)}),e.apply(n,i)})}},NTe=qTe.exports=function(e,t,r){typeof t!="function"&&(r=t,t=Promise),r=r||{},r.exclude=r.exclude||[/.+Sync$/];var n=function(s){var o=function(a){return typeof a=="string"?s===a:a.test(s)};return r.include?r.include.some(o):!r.exclude.some(o)},i=typeof e=="function"?function(){return r.excludeMain?e.apply(this,arguments):ITe(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce(function(s,o){var a=e[o];return s[o]=typeof a=="function"&&n(o)?ITe(a,t,r):a,s},i)};NTe.all=NTe});var DTe=m((wEr,PTe)=>{"use strict";PTe.exports=function(t,r){if(r){if(typeof r!="object")throw new TypeError(String(r)+" is not an object. Expected an object that has boolean `includeZero` property.");if("includeZero"in r){if(typeof r.includeZero!="boolean")throw new TypeError(String(r.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.");if(r.includeZero&&t===0)return!0}}return Number.isSafeInteger(t)&&t>=1}});var FTe=m((EEr,LTe)=>{"use strict";var Mx=require("path"),jx=require("util"),M6t=DTe();LTe.exports=function(t,r,n){if(typeof t!="string")throw new TypeError(jx.inspect(t)+" is not a string. First argument to strip-dirs must be a path string.");if(Mx.posix.isAbsolute(t)||Mx.win32.isAbsolute(t))throw new Error(`${t} is an absolute path. strip-dirs requires a relative path.`);if(!M6t(r,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+jx.inspect(r)+".");if(n){if(typeof n!="object")throw new TypeError(jx.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(jx.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&typeof n.disallowOverflow!="boolean")throw new TypeError(jx.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};let i=Mx.normalize(t).split(Mx.sep);if(i.length>1&&i[0]==="."&&i.shift(),r>i.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");r=i.length-1}return Mx.join.apply(null,i.slice(r))}});var vj=m((SEr,MTe)=>{"use strict";var RC=require("path"),j6t=Kn(),B6t=fC(),U6t=O1e(),W6t=P1e(),H6t=wTe(),mj=OTe(),$6t=kTe(),z6t=FTe(),qs=$6t(j6t),G6t=(e,t)=>t.plugins.length===0?Promise.resolve([]):Promise.all(t.plugins.map(r=>r(e,t))).then(r=>r.reduce((n,i)=>n.concat(i))),gj=(e,t)=>qs.realpath(e).catch(r=>{let n=RC.dirname(e);return gj(n,t)}).then(r=>{if(r.indexOf(t)!==0)throw new Error("Refusing to create a directory outside the output path.");return mj(e).then(qs.realpath)}),V6t=(e,t)=>qs.readlink(e).catch(r=>null).then(r=>{if(r)throw new Error("Refusing to write into a symlink");return t}),K6t=(e,t,r)=>G6t(e,r).then(n=>(r.strip>0&&(n=n.map(i=>(i.path=z6t(i.path,r.strip),i)).filter(i=>i.path!==".")),typeof r.filter=="function"&&(n=n.filter(r.filter)),typeof r.map=="function"&&(n=n.map(r.map)),t?Promise.all(n.map(i=>{let s=RC.join(t,i.path),o=i.mode&~process.umask(),a=new Date;return i.type==="directory"?mj(t).then(u=>qs.realpath(u)).then(u=>gj(s,u)).then(()=>qs.utimes(s,a,i.mtime)).then(()=>i):mj(t).then(u=>qs.realpath(u)).then(u=>gj(RC.dirname(s),u).then(()=>u)).then(u=>i.type==="file"?V6t(s,u):u).then(u=>qs.realpath(RC.dirname(s)).then(c=>{if(c.indexOf(u)!==0)throw new Error("Refusing to write outside output directory: "+c)})).then(()=>i.type==="link"||i.type==="symlink"&&process.platform==="win32"?qs.link(i.linkname,s):i.type==="symlink"?qs.symlink(i.linkname,s):qs.writeFile(s,i.data,{mode:o})).then(()=>i.type==="file"&&qs.utimes(s,a,i.mtime)).then(()=>i)})):n));MTe.exports=(e,t,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?Promise.reject(new TypeError("Input file required")):(typeof t=="object"&&(r=t,t=null),r=Object.assign({plugins:[B6t(),U6t(),W6t(),H6t()]},r),(typeof e=="string"?qs.readFile(e):Promise.resolve(e)).then(i=>K6t(i,t,r)))});var BTe=m((TEr,jTe)=>{"use strict";var X6t=/[|\\{}()[\]^$+*?.]/g;jTe.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(X6t,"\\$&")}});var yj=m((AEr,UTe)=>{"use strict";var Y6t=BTe();UTe.exports=function(e,t){if(typeof e!="string"||typeof t!="string")throw new TypeError("Expected a string");return e.replace(new RegExp("(?:"+Y6t(t)+"){2,}","g"),t)}});var _j=m((CEr,xj)=>{"use strict";xj.exports=()=>/[<>:"\/\\|?*\x00-\x1F]/g;xj.exports.windowsNames=()=>/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i});var HTe=m((REr,WTe)=>{"use strict";var Z6t=/[|\\{}()[\]^$+*?.]/g;WTe.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Z6t,"\\$&")}});var bj=m((OEr,$Te)=>{"use strict";var J6t=HTe();$Te.exports=function(e,t){if(typeof e!="string"||typeof t!="string")throw new TypeError;return t=J6t(t),e.replace(new RegExp("^"+t+"|"+t+"$","g"),"")}});var GTe=m((IEr,Ej)=>{"use strict";var OC=require("path"),Q6t=yj(),wj=_j(),ejt=bj(),tjt=100,zTe=/[\u0000-\u001f\u0080-\u009f]/g,rjt=/^\.+/,IC=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t.replacement===void 0?"!":t.replacement;if(wj().test(r)&&zTe.test(r))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(wj(),r),e=e.replace(zTe,r),e=e.replace(rjt,r),r.length>0&&(e=Q6t(e,r),e=e.length>1?ejt(e,r):e),e=wj.windowsNames().test(e)?e+r:e,e=e.slice(0,tjt),e};IC.path=(e,t)=>(e=OC.resolve(e),OC.join(OC.dirname(e),IC(OC.basename(e),t)));Ej.exports=IC;Ej.exports.default=IC});var KTe=m((NEr,VTe)=>{"use strict";var{PassThrough:njt}=require("stream");VTe.exports=e=>{e=Object.assign({},e);let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new njt({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var XTe=m((qEr,Bx)=>{"use strict";var ijt=Fk(),sjt=KTe(),NC=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};function Sj(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let{maxBuffer:r}=t,n;return new Promise((i,s)=>{let o=a=>{a&&(a.bufferedData=n.getBufferedValue()),s(a)};n=ijt(e,sjt(t),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new NC)})}).then(()=>n.getBufferedValue())}Bx.exports=Sj;Bx.exports.buffer=(e,t)=>Sj(e,Object.assign({},t,{encoding:"buffer"}));Bx.exports.array=(e,t)=>Sj(e,Object.assign({},t,{array:!0}));Bx.exports.MaxBufferError=NC});var ZTe=m((kEr,YTe)=>{"use strict";YTe.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}});var rAe=m((PEr,tAe)=>{"use strict";var eAe="%[a-f0-9]{2}",JTe=new RegExp("("+eAe+")|([^%]+?)","gi"),QTe=new RegExp("("+eAe+")+","gi");function Tj(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Tj(r),Tj(n))}function ojt(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(JTe)||[],r=1;r<t.length;r++)e=Tj(t,r).join(""),t=e.match(JTe)||[];return e}}function ajt(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=QTe.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ojt(r[0]);n!==r[0]&&(t[r[0]]=n)}r=QTe.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),s=0;s<i.length;s++){var o=i[s];e=e.replace(new RegExp(o,"g"),t[o])}return e}tAe.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return ajt(e)}}});var uAe=m(Ux=>{"use strict";var ujt=ZTe(),iAe=gC(),nAe=rAe();function cjt(e){switch(e.arrayFormat){case"index":return function(t,r,n){return r===null?[ks(t,e),"[",n,"]"].join(""):[ks(t,e),"[",ks(n,e),"]=",ks(r,e)].join("")};case"bracket":return function(t,r){return r===null?ks(t,e):[ks(t,e),"[]=",ks(r,e)].join("")};default:return function(t,r){return r===null?ks(t,e):[ks(t,e),"=",ks(r,e)].join("")}}}function ljt(e){var t;switch(e.arrayFormat){case"index":return function(r,n,i){if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return function(r,n,i){if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),t){if(i[r]===void 0){i[r]=[n];return}}else{i[r]=n;return}i[r]=[].concat(i[r],n)};default:return function(r,n,i){if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function ks(e,t){return t.encode?t.strict?ujt(e):encodeURIComponent(e):e}function sAe(e){return Array.isArray(e)?e.sort():typeof e=="object"?sAe(Object.keys(e)).sort(function(t,r){return Number(t)-Number(r)}).map(function(t){return e[t]}):e}function oAe(e){var t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function aAe(e,t){t=iAe({arrayFormat:"none"},t);var r=ljt(t),n=Object.create(null);return typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e)?n:(e.split("&").forEach(function(i){var s=i.replace(/\+/g," ").split("="),o=s.shift(),a=s.length>0?s.join("="):void 0;a=a===void 0?null:nAe(a),r(nAe(o),a,n)}),Object.keys(n).sort().reduce(function(i,s){var o=n[s];return o&&typeof o=="object"&&!Array.isArray(o)?i[s]=sAe(o):i[s]=o,i},Object.create(null)))}Ux.extract=oAe;Ux.parse=aAe;Ux.stringify=function(e,t){var r={encode:!0,strict:!0,arrayFormat:"none"};t=iAe(r,t),t.sort===!1&&(t.sort=function(){});var n=cjt(t);return e?Object.keys(e).sort(t.sort).map(function(i){var s=e[i];if(s===void 0)return"";if(s===null)return ks(i,t);if(Array.isArray(s)){var o=[];return s.slice().forEach(function(a){a!==void 0&&o.push(n(i,a,o.length))}),o.join("&")}return ks(i,t)+"="+ks(s,t)}).filter(function(i){return i.length>0}).join("&"):""};Ux.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:aAe(oAe(e),t)}}});var Aj=m((LEr,cAe)=>{"use strict";cAe.exports=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``);return e=e.trim(),t=Object.assign({https:!1},t),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")}});var Cj=m((FEr,lAe)=>{"use strict";var fjt=Object.prototype.toString;lAe.exports=function(e){var t;return fjt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var pAe=m((MEr,fAe)=>{"use strict";var Rj=Cj();fAe.exports=(e,t)=>{if(!Rj(e))throw new TypeError("Expected a plain object");if(t=t||{},typeof t=="function")throw new TypeError("Specify the compare function as an option instead");let r=t.deep,n=[],i=[],s=o=>{let a=n.indexOf(o);if(a!==-1)return i[a];let u={},c=Object.keys(o).sort(t.compare);n.push(o),i.push(u);for(let f=0;f<c.length;f++){let p=c[f],h=o[p];if(r&&Array.isArray(h)){let g=[];for(let v=0;v<h.length;v++)g[v]=Rj(h[v])?s(h[v]):h[v];u[p]=g;continue}u[p]=r&&Rj(h)?s(h):h}return u};return s(e)}});var gAe=m((jEr,mAe)=>{"use strict";var Oj=require("url"),pjt=require("punycode"),dAe=uAe(),djt=Aj(),hjt=pAe(),mjt={"http:":80,"https:":443,"ftp:":21},gjt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function hAe(e,t){return t.some(r=>r instanceof RegExp?r.test(e):r===e)}mAe.exports=(e,t)=>{if(t=Object.assign({normalizeProtocol:!0,normalizeHttps:!1,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),typeof e!="string")throw new TypeError("Expected a string");let r=e.startsWith("//");e=djt(e.trim()).replace(/^\/\//,"http://");let n=Oj.parse(e);if(t.normalizeHttps&&n.protocol==="https:"&&(n.protocol="http:"),!n.hostname&&!n.pathname)throw new Error("Invalid URL");delete n.host,delete n.query,t.stripFragment&&delete n.hash;let i=mjt[n.protocol];if(Number(n.port)===i&&delete n.port,n.pathname&&(n.pathname=n.pathname.replace(/\/{2,}/g,"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];hAe(a,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(gjt[n.protocol]){let o=n.protocol+"//"+n.hostname,a=Oj.resolve(o,n.pathname);n.pathname=a.replace(o,"")}n.hostname&&(n.hostname=pjt.toUnicode(n.hostname).toLowerCase(),n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&(n.hostname=n.hostname.replace(/^www\./,""))),n.search==="?"&&delete n.search;let s=dAe.parse(n.search);if(Array.isArray(t.removeQueryParameters))for(let o in s)hAe(o,t.removeQueryParameters)&&delete s[o];return t.sortQueryParameters&&(n.search=dAe.stringify(hjt(s))),n.search!==null&&(n.search=decodeURIComponent(n.search)),e=Oj.format(n),(t.removeTrailingSlash||n.pathname==="/")&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e}});var yAe=m((BEr,vAe)=>{"use strict";var vjt=require("stream").PassThrough;vAe.exports=e=>{e=Object.assign({},e);let t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new vjt({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var xAe=m((UEr,qC)=>{"use strict";var yjt=yAe();function Ij(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer,n,i,s=new Promise((o,a)=>{let u=c=>{c&&(c.bufferedData=n.getBufferedValue()),a(c)};n=yjt(t),e.once("error",u),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return s.then(i,i),s.then(()=>n.getBufferedValue())}qC.exports=Ij;qC.exports.buffer=(e,t)=>Ij(e,Object.assign({},t,{encoding:"buffer"}));qC.exports.array=(e,t)=>Ij(e,Object.assign({},t,{array:!0}))});var bAe=m((WEr,_Ae)=>{"use strict";function xjt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _jt=[200,203,204,206,300,301,404,405,410,414,501],bjt=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],wjt={connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Ejt={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Nj(e){var t={};if(!e)return t;for(var r=e.trim().split(/\s*,\s*/),s=r,n=Array.isArray(s),i=0,s=n?s:s[Symbol.iterator]();;){var o;if(n){if(i>=s.length)break;o=s[i++]}else{if(i=s.next(),i.done)break;o=i.value}var a=o,u=a.split(/\s*=\s*/,2),c=u[0],f=u[1];t[c]=f===void 0?!0:f.replace(/^"|"$/g,"")}return t}function Sjt(e){var t=[];for(var r in e){var n=e[r];t.push(n===!0?r:r+"="+n)}if(t.length)return t.join(", ")}_Ae.exports=function(){function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.shared,s=n.cacheHeuristic,o=n.immutableMinTimeToLive,a=n.ignoreCargoCult,u=n._fromObject;if(xjt(this,e),u){this._fromObject(u);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=i!==!1,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=o!==void 0?o:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Nj(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=Nj(t.headers["cache-control"]),a&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Sjt(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!r.headers["cache-control"]&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}return e.prototype.now=function(){return Date.now()},e.prototype.storable=function(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&bjt.indexOf(this._status)!==-1&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||_jt.indexOf(this._status)!==-1))},e.prototype._hasExplicitExpiration=function(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires},e.prototype._assertRequestHasHeaders=function(r){if(!r||!r.headers)throw Error("Request headers missing")},e.prototype.satisfiesWithoutRevalidation=function(r){this._assertRequestHasHeaders(r);var n=Nj(r.headers["cache-control"]);if(n["no-cache"]||/no-cache/.test(r.headers.pragma)||n["max-age"]&&this.age()>n["max-age"]||n["min-fresh"]&&this.timeToLive()<1e3*n["min-fresh"])return!1;if(this.stale()){var i=n["max-stale"]&&!this._rescc["must-revalidate"]&&(n["max-stale"]===!0||n["max-stale"]>this.age()-this.maxAge());if(!i)return!1}return this._requestMatches(r,!1)},e.prototype._requestMatches=function(r,n){return(!this._url||this._url===r.url)&&this._host===r.headers.host&&(!r.method||this._method===r.method||n&&r.method==="HEAD")&&this._varyMatches(r)},e.prototype._allowsStoringAuthenticated=function(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]},e.prototype._varyMatches=function(r){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;for(var n=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/),o=n,i=Array.isArray(o),s=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if(s=o.next(),s.done)break;a=s.value}var u=a;if(r.headers[u]!==this._reqHeaders[u])return!1}return!0},e.prototype._copyWithoutHopByHopHeaders=function(r){var n={};for(var i in r)wjt[i]||(n[i]=r[i]);if(r.connection)for(var s=r.connection.trim().split(/\s*,\s*/),u=s,o=Array.isArray(u),a=0,u=o?u:u[Symbol.iterator]();;){var c;if(o){if(a>=u.length)break;c=u[a++]}else{if(a=u.next(),a.done)break;c=a.value}var f=c;delete n[f]}if(n.warning){var p=n.warning.split(/,/).filter(function(h){return!/^\s*1[0-9][0-9]/.test(h)});p.length?n.warning=p.join(",").trim():delete n.warning}return n},e.prototype.responseHeaders=function(){var r=this._copyWithoutHopByHopHeaders(this._resHeaders),n=this.age();return n>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(r.warning=(r.warning?`${r.warning}, `:"")+'113 - "rfc7234 5.5.4"'),r.age=`${Math.round(n)}`,r},e.prototype.date=function(){var r=Date.parse(this._resHeaders.date),n=8*3600*1e3;return Number.isNaN(r)||r<this._responseTime-n||r>this._responseTime+n?this._responseTime:r},e.prototype.age=function(){var r=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var n=this._ageValue();n>r&&(r=n)}var i=(this.now()-this._responseTime)/1e3;return r+i},e.prototype._ageValue=function(){var r=parseInt(this._resHeaders.age);return isFinite(r)?r:0},e.prototype.maxAge=function(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);var r=this._rescc.immutable?this._immutableMinTtl:0,n=this.date();if(this._resHeaders.expires){var i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<n?0:Math.max(r,(i-n)/1e3)}if(this._resHeaders["last-modified"]){var s=Date.parse(this._resHeaders["last-modified"]);if(isFinite(s)&&n>s)return Math.max(r,(n-s)/1e3*this._cacheHeuristic)}return r},e.prototype.timeToLive=function(){return Math.max(0,this.maxAge()-this.age())*1e3},e.prototype.stale=function(){return this.maxAge()<=this.age()},e.fromObject=function(r){return new this(void 0,void 0,{_fromObject:r})},e.prototype._fromObject=function(r){if(this._responseTime)throw Error("Reinitialized");if(!r||r.v!==1)throw Error("Invalid serialization");this._responseTime=r.t,this._isShared=r.sh,this._cacheHeuristic=r.ch,this._immutableMinTtl=r.imm!==void 0?r.imm:24*3600*1e3,this._status=r.st,this._resHeaders=r.resh,this._rescc=r.rescc,this._method=r.m,this._url=r.u,this._host=r.h,this._noAuthorization=r.a,this._reqHeaders=r.reqh,this._reqcc=r.reqcc},e.prototype.toObject=function(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}},e.prototype.revalidationHeaders=function(r){this._assertRequestHasHeaders(r);var n=this._copyWithoutHopByHopHeaders(r.headers);if(delete n["if-range"],!this._requestMatches(r,!0)||!this.storable())return delete n["if-none-match"],delete n["if-modified-since"],n;this._resHeaders.etag&&(n["if-none-match"]=n["if-none-match"]?`${n["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag);var i=n["accept-ranges"]||n["if-match"]||n["if-unmodified-since"]||this._method&&this._method!="GET";if(i){if(delete n["if-modified-since"],n["if-none-match"]){var s=n["if-none-match"].split(/,/).filter(function(o){return!/^\s*W\//.test(o)});s.length?n["if-none-match"]=s.join(",").trim():delete n["if-none-match"]}}else this._resHeaders["last-modified"]&&!n["if-modified-since"]&&(n["if-modified-since"]=this._resHeaders["last-modified"]);return n},e.prototype.revalidatedPolicy=function(r,n){if(this._assertRequestHasHeaders(r),!n||!n.headers)throw Error("Response headers missing");var i=!1;if(n.status!==void 0&&n.status!=304?i=!1:n.headers.etag&&!/^\s*W\//.test(n.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===n.headers.etag:this._resHeaders.etag&&n.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===n.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===n.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!n.headers.etag&&!n.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(r,n),modified:!0};var s={};for(var o in this._resHeaders)s[o]=o in n.headers&&!Ejt[o]?n.headers[o]:this._resHeaders[o];var a=Object.assign({},n,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(r,a),modified:!1}},e}()});var qj=m((HEr,wAe)=>{"use strict";wAe.exports=function(e){for(var t={},r=Object.keys(Object(e)),n=0;n<r.length;n++)t[r[n].toLowerCase()]=e[r[n]];return t}});var SAe=m(($Er,EAe)=>{"use strict";var Tjt=require("stream").Readable,Ajt=qj(),kj=class extends Tjt{constructor(t,r,n,i){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=Ajt(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};EAe.exports=kj});var AAe=m((zEr,TAe)=>{"use strict";TAe.exports=function(e){for(var t={},r=Object.keys(Object(e)),n=0;n<r.length;n++)t[r[n].toLowerCase()]=e[r[n]];return t}});var kC=m((GEr,CAe)=>{"use strict";var Cjt=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];CAe.exports=(e,t)=>{let r=new Set(Object.keys(e).concat(Cjt));for(let n of r)n in t||(t[n]=typeof e[n]=="function"?e[n].bind(e):e[n])}});var OAe=m((VEr,RAe)=>{"use strict";var Rjt=require("stream").PassThrough,Ojt=kC(),Ijt=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new Rjt;return Ojt(e,t),e.pipe(t)};RAe.exports=Ijt});var IAe=m(Pj=>{Pj.stringify=function e(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var s in t){var o=typeof t[s]=="function"||!n&&typeof t[s]>"u";Object.hasOwnProperty.call(t,s)&&!o&&(i||(r+=","),i=!1,n?t[s]==null?r+="null":r+=e(t[s]):t[s]!==void 0&&(r+=e(s)+":"+e(t[s])))}return r+=n?"]":"}",r}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)};Pj.parse=function(e){return JSON.parse(e,function(t,r){return typeof r=="string"?/^:base64:/.test(r)?new Buffer(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var kAe=m((XEr,qAe)=>{"use strict";var Njt=require("events"),NAe=IAe(),qjt=e=>{let t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){let r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map},Dj=class extends Njt{constructor(t,r){if(super(),this.opts=Object.assign({namespace:"keyv"},typeof t=="string"?{uri:t}:t,r),!this.opts.store){let n=Object.assign({},this.opts);this.opts.store=qjt(n)}typeof this.opts.store.on=="function"&&this.opts.store.on("error",n=>this.emit("error",n)),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}get(t){t=this._getKeyPrefix(t);let r=this.opts.store;return Promise.resolve().then(()=>r.get(t)).then(n=>{if(n=typeof n=="string"?NAe.parse(n):n,n!==void 0){if(typeof n.expires=="number"&&Date.now()>n.expires){this.delete(t);return}return n.value}})}set(t,r,n){t=this._getKeyPrefix(t),typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let i=this.opts.store;return Promise.resolve().then(()=>{let s=typeof n=="number"?Date.now()+n:null;return r={value:r,expires:s},i.set(t,NAe.stringify(r),n)}).then(()=>!0)}delete(t){t=this._getKeyPrefix(t);let r=this.opts.store;return Promise.resolve().then(()=>r.delete(t))}clear(){let t=this.opts.store;return Promise.resolve().then(()=>t.clear())}};qAe.exports=Dj});var FAe=m((YEr,LAe)=>{"use strict";var kjt=require("events"),PAe=require("url"),Pjt=gAe(),Djt=xAe(),Lj=bAe(),DAe=SAe(),Ljt=AAe(),Fjt=OAe(),Mjt=kAe(),ea=class{constructor(t,r){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new Mjt({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(r,n)=>{typeof r=="string"&&(r=PAe.parse(r)),r=Object.assign({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},r),r.headers=Ljt(r.headers);let i=new kjt,s=Pjt(PAe.format(r)),o=`${r.method}:${s}`,a=!1,u=!1,c=p=>{u=!0;let h=g=>{if(a){let _=Lj.fromObject(a.cachePolicy).revalidatedPolicy(p,g);if(!_.modified){let w=_.policy.responseHeaders();g=new DAe(g.statusCode,w,a.body,a.url),g.cachePolicy=_.policy,g.fromCache=!0}}g.fromCache||(g.cachePolicy=new Lj(p,g),g.fromCache=!1);let v;p.cache&&g.cachePolicy.storable()?(v=Fjt(g),Djt.buffer(g).then(_=>{let w={cachePolicy:g.cachePolicy.toObject(),url:g.url,statusCode:g.fromCache?a.statusCode:g.statusCode,body:_},y=p.strictTtl?g.cachePolicy.timeToLive():void 0;return this.cache.set(o,w,y)}).catch(_=>i.emit("error",new ea.CacheError(_)))):p.cache&&a&&this.cache.delete(o).catch(_=>i.emit("error",new ea.CacheError(_))),i.emit("response",v||g),typeof n=="function"&&n(v||g)};try{let g=t(p,h);i.emit("request",g)}catch(g){i.emit("error",new ea.RequestError(g))}},f=p=>Promise.resolve().then(()=>p.cache?this.cache.get(o):void 0).then(h=>{if(typeof h>"u")return c(p);let g=Lj.fromObject(h.cachePolicy);if(g.satisfiesWithoutRevalidation(p)){let v=g.responseHeaders(),_=new DAe(h.statusCode,v,h.body,h.url);_.cachePolicy=g,_.fromCache=!0,i.emit("response",_),typeof n=="function"&&n(_)}else a=h,p.headers=g.revalidationHeaders(p),c(p)});return this.cache.on("error",p=>i.emit("error",new ea.CacheError(p))),f(r).catch(p=>{r.automaticFailover&&!u&&c(r),i.emit("error",new ea.CacheError(p))}),i}}};ea.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};ea.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};LAe.exports=ea});var MAe=m((QEr,Mj)=>{"use strict";var Fj=require("stream");function fg(e,t,r){typeof r>"u"&&(r=t,t=e,e=null),Fj.Duplex.call(this,e),typeof r.read!="function"&&(r=new Fj.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var n=this;t.once("finish",function(){n.end()}),this.once("finish",function(){t.end()}),r.on("readable",function(){n._waiting&&(n._waiting=!1,n._read())}),r.once("end",function(){n.push(null)}),(!e||typeof e.bubbleErrors>"u"||e.bubbleErrors)&&(t.on("error",function(i){n.emit("error",i)}),r.on("error",function(i){n.emit("error",i)}))}fg.prototype=Object.create(Fj.Duplex.prototype,{constructor:{value:fg}});fg.prototype._write=function(t,r,n){this._writable.write(t,r,n)};fg.prototype._read=function(){for(var t,r=0;(t=this._readable.read())!==null;)this.push(t),r++;r===0&&(this._waiting=!0)};Mj.exports=function(t,r,n){return new fg(t,r,n)};Mj.exports.DuplexWrapper=fg});var jj=m((eSr,jAe)=>{jAe.exports=require("stream")});var UAe=m((tSr,Bj)=>{"use strict";function jjt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var BAe=vo().Buffer,Wx=require("util");function Bjt(e,t,r){e.copy(t,r)}Bj.exports=function(){function e(){jjt(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return BAe.alloc(0);for(var n=BAe.allocUnsafe(r>>>0),i=this.head,s=0;i;)Bjt(i.data,n,s),s+=i.data.length,i=i.next;return n},e}();Wx&&Wx.inspect&&Wx.inspect.custom&&(Bj.exports.prototype[Wx.inspect.custom]=function(){var e=Wx.inspect({length:this.length});return this.constructor.name+" "+e})});var Uj=m((rSr,WAe)=>{"use strict";var PC=rc();function Ujt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,PC.nextTick(DC,this,e)):PC.nextTick(DC,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,PC.nextTick(DC,r,s)):PC.nextTick(DC,r,s):t&&t(s)}),this)}function Wjt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function DC(e,t){e.emit("error",t)}WAe.exports={destroy:Ujt,undestroy:Wjt}});var Hj=m((nSr,YAe)=>{"use strict";var Bp=rc();YAe.exports=dn;function $Ae(e){var t=this;this.next=null,this.entry=null,this.finish=function(){oBt(t,e)}}var Hjt=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Bp.nextTick,pg;dn.WritableState=$x;var zAe=Object.create(Jo());zAe.inherits=Pn();var $jt={deprecate:Hw()},GAe=jj(),FC=vo().Buffer,zjt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Gjt(e){return FC.from(e)}function Vjt(e){return FC.isBuffer(e)||e instanceof zjt}var VAe=Uj();zAe.inherits(dn,GAe);function Kjt(){}function $x(e,t){pg=pg||Up(),e=e||{};var r=t instanceof pg;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){tBt(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new $Ae(this)}$x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty($x.prototype,"buffer",{get:$jt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var LC;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(LC=Function.prototype[Symbol.hasInstance],Object.defineProperty(dn,Symbol.hasInstance,{value:function(e){return LC.call(this,e)?!0:this!==dn?!1:e&&e._writableState instanceof $x}})):LC=function(e){return e instanceof this};function dn(e){if(pg=pg||Up(),!LC.call(dn,this)&&!(this instanceof pg))return new dn(e);this._writableState=new $x(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),GAe.call(this)}dn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Xjt(e,t){var r=new Error("write after end");e.emit("error",r),Bp.nextTick(t,r)}function Yjt(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),Bp.nextTick(n,s),i=!1),i}dn.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&Vjt(e);return s&&!FC.isBuffer(e)&&(e=Gjt(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Kjt),n.ended?Xjt(this,r):(s||Yjt(this,n,e,r))&&(n.pendingcb++,i=Jjt(this,n,s,e,t,r)),i};dn.prototype.cork=function(){var e=this._writableState;e.corked++};dn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&KAe(this,e))};dn.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Zjt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=FC.from(t,r)),t}Object.defineProperty(dn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Jjt(e,t,r,n,i,s){if(!r){var o=Zjt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Wj(e,t,!1,a,n,i,s);return u}function Wj(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Qjt(e,t,r,n,i){--t.pendingcb,r?(Bp.nextTick(i,n),Bp.nextTick(Hx,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),Hx(e,t))}function eBt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function tBt(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(eBt(r),t)Qjt(e,r,n,t,i);else{var s=XAe(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&KAe(e,r),n?Hjt(HAe,e,r,s,i):HAe(e,r,s,i)}}function HAe(e,t,r,n){r||rBt(e,t),t.pendingcb--,n(),Hx(e,t)}function rBt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function KAe(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Wj(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new $Ae(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback,p=t.objectMode?1:u.length;if(Wj(e,t,!1,p,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}dn.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};dn.prototype._writev=null;dn.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||sBt(this,n,r)};function XAe(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function nBt(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Hx(e,t)})}function iBt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Bp.nextTick(nBt,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Hx(e,t){var r=XAe(t);return r&&(iBt(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function sBt(e,t,r){t.ending=!0,Hx(e,t),r&&(t.finished?Bp.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function oBt(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(dn.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});dn.prototype.destroy=VAe.destroy;dn.prototype._undestroy=VAe.undestroy;dn.prototype._destroy=function(e,t){this.end(),t(e)}});var Up=m((iSr,eCe)=>{"use strict";var ZAe=rc(),aBt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};eCe.exports=cc;var JAe=Object.create(Jo());JAe.inherits=Pn();var QAe=Gj(),zj=Hj();JAe.inherits(cc,QAe);for($j=aBt(zj.prototype),MC=0;MC<$j.length;MC++)jC=$j[MC],cc.prototype[jC]||(cc.prototype[jC]=zj.prototype[jC]);var $j,jC,MC;function cc(e){if(!(this instanceof cc))return new cc(e);QAe.call(this,e),zj.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",uBt)}Object.defineProperty(cc.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uBt(){this.allowHalfOpen||this._writableState.ended||ZAe.nextTick(cBt,this)}function cBt(e){e.end()}Object.defineProperty(cc.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});cc.prototype._destroy=function(e,t){this.push(null),this.end(),ZAe.nextTick(t,e)}});var Xj=m(rCe=>{"use strict";var Kj=vo().Buffer,tCe=Kj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function lBt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function fBt(e){var t=lBt(e);if(typeof t!="string"&&(Kj.isEncoding===tCe||!tCe(e)))throw new Error("Unknown encoding: "+e);return t||e}rCe.StringDecoder=zx;function zx(e){this.encoding=fBt(e);var t;switch(this.encoding){case"utf16le":this.text=vBt,this.end=yBt,t=4;break;case"utf8":this.fillLast=hBt,t=4;break;case"base64":this.text=xBt,this.end=_Bt,t=3;break;default:this.write=bBt,this.end=wBt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Kj.allocUnsafe(t)}zx.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};zx.prototype.end=gBt;zx.prototype.text=mBt;zx.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Vj(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function pBt(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Vj(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Vj(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Vj(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function dBt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function hBt(e){var t=this.lastTotal-this.lastNeed,r=dBt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function mBt(e,t){var r=pBt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function gBt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function vBt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function yBt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function xBt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function _Bt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function bBt(e){return e.toString(this.encoding)}function wBt(e){return e&&e.length?this.write(e):""}});var Gj=m((aSr,hCe)=>{"use strict";var hg=rc();hCe.exports=br;var EBt=S6(),Gx;br.ReadableState=cCe;var oSr=require("events").EventEmitter,oCe=function(e,t){return e.listeners(t).length},eB=jj(),Vx=vo().Buffer,SBt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function TBt(e){return Vx.from(e)}function ABt(e){return Vx.isBuffer(e)||e instanceof SBt}var aCe=Object.create(Jo());aCe.inherits=Pn();var Yj=require("util"),Ht=void 0;Yj&&Yj.debuglog?Ht=Yj.debuglog("stream"):Ht=function(){};var CBt=UAe(),uCe=Uj(),dg;aCe.inherits(br,eB);var Zj=["error","close","destroy","pause","resume"];function RBt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):EBt(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function cCe(e,t){Gx=Gx||Up(),e=e||{};var r=t instanceof Gx;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new CBt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(dg||(dg=Xj().StringDecoder),this.decoder=new dg(e.encoding),this.encoding=e.encoding)}function br(e){if(Gx=Gx||Up(),!(this instanceof br))return new br(e);this._readableState=new cCe(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),eB.call(this)}Object.defineProperty(br.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});br.prototype.destroy=uCe.destroy;br.prototype._undestroy=uCe.undestroy;br.prototype._destroy=function(e,t){this.push(null),t(e)};br.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Vx.from(e,t),t=""),n=!0),lCe(this,e,t,!1,n)};br.prototype.unshift=function(e){return lCe(this,e,null,!0,!1)};function lCe(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,qBt(e,s);else{var o;i||(o=OBt(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Vx.prototype&&(t=TBt(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Jj(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Jj(e,s,t,!1):fCe(e,s)):Jj(e,s,t,!1))):n||(s.reading=!1)}return IBt(s)}function Jj(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&BC(e)),fCe(e,t)}function OBt(e,t){var r;return!ABt(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function IBt(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}br.prototype.isPaused=function(){return this._readableState.flowing===!1};br.prototype.setEncoding=function(e){return dg||(dg=Xj().StringDecoder),this._readableState.decoder=new dg(e),this._readableState.encoding=e,this};var nCe=8388608;function NBt(e){return e>=nCe?e=nCe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function iCe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=NBt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}br.prototype.read=function(e){Ht("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Ht("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Qj(this):BC(this),null;if(e=iCe(e,t),e===0&&t.ended)return t.length===0&&Qj(this),null;var n=t.needReadable;Ht("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Ht("length less than watermark",n)),t.ended||t.reading?(n=!1,Ht("reading or ended",n)):n&&(Ht("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=iCe(r,t)));var i;return e>0?i=pCe(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Qj(this)),i!==null&&this.emit("data",i),i};function qBt(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,BC(e)}}function BC(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Ht("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?hg.nextTick(sCe,e):sCe(e))}function sCe(e){Ht("emit readable"),e.emit("readable"),tB(e)}function fCe(e,t){t.readingMore||(t.readingMore=!0,hg.nextTick(kBt,e,t))}function kBt(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Ht("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}br.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};br.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Ht("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:w;n.endEmitted?hg.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(y,b){Ht("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){Ht("onend"),e.end()}var u=PBt(r);e.on("drain",u);var c=!1;function f(){Ht("cleanup"),e.removeListener("close",v),e.removeListener("finish",_),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var p=!1;r.on("data",h);function h(y){Ht("ondata"),p=!1;var b=e.write(y);b===!1&&!p&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&dCe(n.pipes,e)!==-1)&&!c&&(Ht("false write response, pause",n.awaitDrain),n.awaitDrain++,p=!0),r.pause())}function g(y){Ht("onerror",y),w(),e.removeListener("error",g),oCe(e,"error")===0&&e.emit("error",y)}RBt(e,"error",g);function v(){e.removeListener("finish",_),w()}e.once("close",v);function _(){Ht("onfinish"),e.removeListener("close",v),w()}e.once("finish",_);function w(){Ht("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Ht("pipe resume"),r.resume()),e};function PBt(e){return function(){var t=e._readableState;Ht("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&oCe(e,"data")&&(t.flowing=!0,tB(e))}}br.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=dCe(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};br.prototype.on=function(e,t){var r=eB.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&BC(this):hg.nextTick(DBt,this))}return r};br.prototype.addListener=br.prototype.on;function DBt(e){Ht("readable nexttick read 0"),e.read(0)}br.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ht("resume"),e.flowing=!0,LBt(this,e)),this};function LBt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,hg.nextTick(FBt,e,t))}function FBt(e,t){t.reading||(Ht("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),tB(e),t.flowing&&!t.reading&&e.read(0)}br.prototype.pause=function(){return Ht("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ht("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function tB(e){var t=e._readableState;for(Ht("flow",t.flowing);t.flowing&&e.read()!==null;);}br.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Ht("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Ht("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(o){return function(){return e[o].apply(e,arguments)}}(i));for(var s=0;s<Zj.length;s++)e.on(Zj[s],this.emit.bind(this,Zj[s]));return this._read=function(o){Ht("wrapped _read",o),n&&(n=!1,e.resume())},this};Object.defineProperty(br.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});br._fromList=pCe;function pCe(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=MBt(e,t.buffer,t.decoder),r}function MBt(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?jBt(e,t):BBt(e,t),n}function jBt(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),e-=o,e===0){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function BBt(e,t){var r=Vx.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),e-=o,e===0){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}function Qj(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,hg.nextTick(UBt,t,e))}function UBt(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function dCe(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var rB=m((uSr,vCe)=>{"use strict";vCe.exports=lc;var UC=Up(),gCe=Object.create(Jo());gCe.inherits=Pn();gCe.inherits(lc,UC);function WBt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function lc(e){if(!(this instanceof lc))return new lc(e);UC.call(this,e),this._transformState={afterTransform:WBt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",HBt)}function HBt(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){mCe(e,t,r)}):mCe(this,null,null)}lc.prototype.push=function(e,t){return this._transformState.needTransform=!1,UC.prototype.push.call(this,e,t)};lc.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};lc.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};lc.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};lc.prototype._destroy=function(e,t){var r=this;UC.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function mCe(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var bCe=m((cSr,_Ce)=>{"use strict";_Ce.exports=Kx;var yCe=rB(),xCe=Object.create(Jo());xCe.inherits=Pn();xCe.inherits(Kx,yCe);function Kx(e){if(!(this instanceof Kx))return new Kx(e);yCe.call(this,e)}Kx.prototype._transform=function(e,t,r){r(null,e)}});var wCe=m((ci,WC)=>{var Xa=require("stream");process.env.READABLE_STREAM==="disable"&&Xa?(WC.exports=Xa,ci=WC.exports=Xa.Readable,ci.Readable=Xa.Readable,ci.Writable=Xa.Writable,ci.Duplex=Xa.Duplex,ci.Transform=Xa.Transform,ci.PassThrough=Xa.PassThrough,ci.Stream=Xa):(ci=WC.exports=Gj(),ci.Stream=Xa||ci,ci.Readable=ci,ci.Writable=Hj(),ci.Duplex=Up(),ci.Transform=rB(),ci.PassThrough=bCe())});var RCe=m((lSr,CCe)=>{var ECe=wCe().Readable,$Bt=Pn();CCe.exports=HC;HC.ctor=SCe;HC.obj=VBt;var zBt=SCe();function GBt(e){return e=e.slice(),function(t,r){var n=null,i=e.length?e.shift():null;i instanceof Error&&(n=i,i=null),r(n,i)}}function HC(e,t){(typeof e!="object"||Array.isArray(e))&&(t=e,e={});var r=new zBt(e);return r._from=Array.isArray(t)?GBt(t):t||TCe,r}function SCe(e,t){typeof e=="function"&&(t=e,e={}),e=ACe(e),$Bt(r,ECe);function r(n){if(!(this instanceof r))return new r(n);this._reading=!1,this._callback=o,this.destroyed=!1,ECe.call(this,n||e);var i=this,s=this._readableState.highWaterMark;function o(a,u){if(!i.destroyed){if(a)return i.destroy(a);if(u===null)return i.push(null);i._reading=!1,i.push(u)&&i._read(s)}}}return r.prototype._from=t||TCe,r.prototype._read=function(n){this._reading||this.destroyed||(this._reading=!0,this._from(n,this._callback))},r.prototype.destroy=function(n){if(!this.destroyed){this.destroyed=!0;var i=this;process.nextTick(function(){n&&i.emit("error",n),i.emit("close")})}},r}function VBt(e,t){return(typeof e=="function"||Array.isArray(e))&&(t=e,e={}),e=ACe(e),e.objectMode=!0,e.highWaterMark=16,HC(e,t)}function TCe(){}function ACe(e){return e=e||{},e}});var ICe=m((fSr,OCe)=>{"use strict";OCe.exports=e=>e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"});var kCe=m((pSr,nB)=>{"use strict";var NCe=RCe(),qCe=ICe();nB.exports=e=>{Array.isArray(e)&&(e=e.slice());let t,r;n(e);function n(i){e=i,t=qCe(e)?e:null,r=!t&&e[Symbol.iterator]&&typeof e!="string"&&!Buffer.isBuffer(e)?e[Symbol.iterator]():null}return NCe(function i(s,o){if(t){t.then(n).then(()=>i.call(this,s,o),o);return}if(r){let u=r.next();setImmediate(o,null,u.done?null:u.value);return}if(e.length===0){setImmediate(o,null,null);return}let a=e.slice(0,s);e=e.slice(s),setImmediate(o,null,a)})};nB.exports.obj=e=>{Array.isArray(e)&&(e=e.slice());let t,r;n(e);function n(i){e=i,t=qCe(e)?e:null,r=!t&&e[Symbol.iterator]?e[Symbol.iterator]():null}return NCe.obj(function i(s,o){if(t){t.then(n).then(()=>i.call(this,s,o),o);return}if(r){let a=r.next();setImmediate(o,null,a.done?null:a.value);return}this.push(e),setImmediate(o,null,null)})}});var oB=m((iB,sB)=>{"use strict";Object.defineProperty(iB,"__esModule",{value:!0});var PCe=require("util"),KBt=Object.prototype.toString,Xx=e=>t=>typeof t===e,$C=e=>{let t=KBt.call(e).slice(8,-1);return t||null},hn=e=>t=>$C(t)===e;function Ya(e){if(e===null)return"null";if(e===!0||e===!1)return"boolean";let t=typeof e;if(t==="undefined")return"undefined";if(t==="string")return"string";if(t==="number")return"number";if(t==="symbol")return"symbol";if(Ya.function_(e))return"Function";if(Array.isArray(e))return"Array";if(Buffer.isBuffer(e))return"Buffer";let r=$C(e);if(r)return r;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}(function(e){let t=y=>typeof y=="object";e.undefined=Xx("undefined"),e.string=Xx("string"),e.number=Xx("number"),e.function_=Xx("function"),e.null_=y=>y===null,e.class_=y=>e.function_(y)&&y.toString().startsWith("class "),e.boolean=y=>y===!0||y===!1,e.symbol=Xx("symbol"),e.array=Array.isArray,e.buffer=Buffer.isBuffer,e.nullOrUndefined=y=>e.null_(y)||e.undefined(y),e.object=y=>!e.nullOrUndefined(y)&&(e.function_(y)||t(y)),e.iterable=y=>!e.nullOrUndefined(y)&&e.function_(y[Symbol.iterator]),e.generator=y=>e.iterable(y)&&e.function_(y.next)&&e.function_(y.throw),e.nativePromise=hn("Promise");let r=y=>!e.null_(y)&&t(y)&&e.function_(y.then)&&e.function_(y.catch);e.promise=y=>e.nativePromise(y)||r(y);let n=y=>b=>e.function_(b)&&e.function_(b.constructor)&&b.constructor.name===y;e.generatorFunction=n("GeneratorFunction"),e.asyncFunction=n("AsyncFunction"),e.boundFunction=y=>e.function_(y)&&!y.hasOwnProperty("prototype"),e.regExp=hn("RegExp"),e.date=hn("Date"),e.error=hn("Error"),e.map=hn("Map"),e.set=hn("Set"),e.weakMap=hn("WeakMap"),e.weakSet=hn("WeakSet"),e.int8Array=hn("Int8Array"),e.uint8Array=hn("Uint8Array"),e.uint8ClampedArray=hn("Uint8ClampedArray"),e.int16Array=hn("Int16Array"),e.uint16Array=hn("Uint16Array"),e.int32Array=hn("Int32Array"),e.uint32Array=hn("Uint32Array"),e.float32Array=hn("Float32Array"),e.float64Array=hn("Float64Array"),e.arrayBuffer=hn("ArrayBuffer"),e.sharedArrayBuffer=hn("SharedArrayBuffer"),e.dataView=hn("DataView"),e.directInstanceOf=(y,b)=>e.object(y)&&e.object(b)&&Object.getPrototypeOf(y)===b.prototype,e.truthy=y=>!!y,e.falsy=y=>!y,e.nan=y=>Number.isNaN(y);let i=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=y=>e.null_(y)||i.has(typeof y),e.integer=y=>Number.isInteger(y),e.safeInteger=y=>Number.isSafeInteger(y),e.plainObject=y=>{let b;return $C(y)==="Object"&&(b=Object.getPrototypeOf(y),b===null||b===Object.getPrototypeOf({}))};let s=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=y=>{let b=$C(y);return b===null?!1:s.has(b)};let o=y=>e.safeInteger(y)&&y>-1;e.arrayLike=y=>!e.nullOrUndefined(y)&&!e.function_(y)&&o(y.length),e.inRange=(y,b)=>{if(e.number(b))return y>=Math.min(0,b)&&y<=Math.max(b,0);if(e.array(b)&&b.length===2)return y>=Math.min.apply(null,b)&&y<=Math.max.apply(null,b);throw new TypeError(`Invalid range: ${PCe.inspect(b)}`)};let a=1,u=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=y=>e.object(y)&&y.nodeType===a&&e.string(y.nodeName)&&!e.plainObject(y)&&u.every(b=>b in y),e.nodeStream=y=>!e.nullOrUndefined(y)&&t(y)&&e.function_(y.pipe),e.infinite=y=>y===1/0||y===-1/0;let c=y=>b=>e.integer(b)&&Math.abs(b%2)===y;e.even=c(0),e.odd=c(1);let f=y=>e.string(y)&&/\S/.test(y)===!1,p=y=>(e.string(y)||e.array(y))&&y.length===0,h=y=>!e.map(y)&&!e.set(y)&&e.object(y)&&Object.keys(y).length===0,g=y=>(e.map(y)||e.set(y))&&y.size===0;e.empty=y=>e.falsy(y)||p(y)||h(y)||g(y),e.emptyOrWhitespace=y=>e.empty(y)||f(y);let v=(y,b,S)=>{let T=Array.prototype.slice.call(S,1);if(e.function_(b)===!1)throw new TypeError(`Invalid predicate: ${PCe.inspect(b)}`);if(T.length===0)throw new TypeError("Invalid number of values");return y.call(T,b)};function _(y){return v(Array.prototype.some,y,arguments)}e.any=_;function w(y){return v(Array.prototype.every,y,arguments)}e.all=w})(Ya||(Ya={}));Object.defineProperties(Ya,{class:{value:Ya.class_},function:{value:Ya.function_},null:{value:Ya.null_}});iB.default=Ya;sB.exports=Ya;sB.exports.default=Ya});var LCe=m((dSr,DCe)=>{"use strict";var XBt=require("stream").PassThrough;DCe.exports=e=>{e=Object.assign({},e);let t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new XBt({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var FCe=m((hSr,zC)=>{"use strict";var YBt=LCe();function aB(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer,n,i,s=new Promise((o,a)=>{let u=c=>{c&&(c.bufferedData=n.getBufferedValue()),a(c)};n=YBt(t),e.once("error",u),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return s.then(i,i),s.then(()=>n.getBufferedValue())}zC.exports=aB;zC.exports.buffer=(e,t)=>aB(e,Object.assign({},t,{encoding:"buffer"}));zC.exports.array=(e,t)=>aB(e,Object.assign({},t,{array:!0}))});var jCe=m((mSr,MCe)=>{"use strict";MCe.exports=function(e,t){if(e.timeoutTimer)return e;var r=isNaN(t)?t:{socket:t,connect:t},n=e._headers?" to "+e._headers.host:"";r.connect!==void 0&&(e.timeoutTimer=setTimeout(function(){e.abort();var a=new Error("Connection timed out on request"+n);a.code="ETIMEDOUT",e.emit("error",a)},r.connect)),e.on("socket",function(a){if(!(a.connecting||a._connecting)){s();return}a.once("connect",s)});function i(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function s(){i(),r.socket!==void 0&&e.setTimeout(r.socket,function(){e.abort();var a=new Error("Socket timed out on request"+n);a.code="ESOCKETTIMEDOUT",e.emit("error",a)})}return e.on("error",i)}});var UCe=m((gSr,BCe)=>{"use strict";var ZBt=require("url"),JBt=Aj();BCe.exports=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);let r=JBt(e,Object.assign({https:!0},t));return ZBt.parse(r)}});var uB=m((vSr,WCe)=>{"use strict";function QBt(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return e.port!==""&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}WCe.exports=QBt});var $Ce=m((ySr,HCe)=>{"use strict";var eUt=require("stream").PassThrough,tUt=require("zlib"),rUt=kC();HCe.exports=e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1)return e;let t=tUt.createUnzip(),r=new eUt;return rUt(e,r),t.on("error",n=>{if(n.code==="Z_BUF_ERROR"){r.end();return}r.emit("error",n)}),e.pipe(t).pipe(r),r}});var GCe=m((xSr,zCe)=>{"use strict";var nUt=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],iUt=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];zCe.exports=function(e){return!e||!e.code||nUt.indexOf(e.code)!==-1?!0:iUt.indexOf(e.code)===-1}});var KCe=m((_Sr,VCe)=>{"use strict";VCe.exports=typeof Symbol=="function"&&typeof Symbol("")=="symbol"});var YCe=m((bSr,XCe)=>{"use strict";XCe.exports=KCe()&&typeof Symbol.toStringTag=="symbol"});var JCe=m((wSr,ZCe)=>{"use strict";ZCe.exports=function(t){return typeof t=="object"&&t!==null}});var lB=m((ESr,eRe)=>{"use strict";var sUt=YCe(),QCe=JCe(),oUt=Object.prototype.toString,aUt="[object URL]",uUt="hash",cUt="host",lUt="hostname",fUt="href",pUt="password",dUt="pathname",hUt="port",mUt="protocol",gUt="search",vUt="username",cB=(e,t)=>QCe(e)?!sUt&&oUt.call(e)===aUt?!0:!(!(fUt in e)||!(mUt in e)||!(vUt in e)||!(pUt in e)||!(lUt in e)||!(hUt in e)||!(cUt in e)||!(dUt in e)||!(gUt in e)||!(uUt in e)||t!==!0&&!QCe(e.searchParams)):!1;cB.lenient=e=>cB(e,!0);eRe.exports=cB});var pB=m((SSr,fB)=>{"use strict";var GC=class extends Error{constructor(){super("Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},mg=class{static fn(t){return function(){let r=[].slice.apply(arguments);return new mg((n,i,s)=>{r.push(s),t.apply(null,r).then(n,i)})}}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._promise=new Promise((r,n)=>(this._reject=n,t(i=>{this._isPending=!1,r(i)},i=>{this._isPending=!1,n(i)},i=>{this._cancelHandlers.push(i)})))}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(){if(!(!this._isPending||this._isCanceled)){if(this._cancelHandlers.length>0)try{for(let t of this._cancelHandlers)t()}catch(t){this._reject(t)}this._isCanceled=!0,this._reject(new GC)}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(mg.prototype,Promise.prototype);fB.exports=mg;fB.exports.CancelError=GC});var rRe=m((TSr,tRe)=>{"use strict";tRe.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var hB=m((ASr,dB)=>{"use strict";var yUt=rRe(),VC=class extends Error{constructor(t){super(t),this.name="TimeoutError"}};dB.exports=(e,t,r)=>new Promise((n,i)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `ms` to be a positive number");let s=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(u){i(u)}return}let o=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,a=r instanceof Error?r:new VC(o);typeof e.cancel=="function"&&e.cancel(),i(a)},t);yUt(e.then(n,i),()=>{clearTimeout(s)})});dB.exports.TimeoutError=VC});var sRe=m((CSr,iRe)=>{"use strict";var nRe=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{t.errorFirst?n.push(function(o,a){if(t.multiArgs){let u=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)u[c-1]=arguments[c];o?(u.unshift(o),s(u)):i(u)}else o?s(o):i(a)}):n.push(function(o){if(t.multiArgs){let a=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)a[u]=arguments[u];i(a)}else i(o)}),e.apply(this,n)})};iRe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):nRe(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&r(i)?nRe(s,t):s}return n}});var oRe=m((RSr,xUt)=>{xUt.exports={name:"got",version:"8.3.2",description:"Simplified HTTP requests",license:"MIT",repository:"sindresorhus/got",maintainers:[{name:"Sindre Sorhus",email:"sindresorhus@gmail.com",url:"sindresorhus.com"},{name:"Vsevolod Strukchinsky",email:"floatdrop@gmail.com",url:"github.com/floatdrop"},{name:"Alexander Tesfamichael",email:"alex.tesfamichael@gmail.com",url:"alextes.me"}],engines:{node:">=4"},scripts:{test:"xo && nyc ava",coveralls:"nyc report --reporter=text-lcov | coveralls"},files:["index.js","errors.js"],keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],dependencies:{"@sindresorhus/is":"^0.7.0","cacheable-request":"^2.1.1","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^3.0.0","into-stream":"^3.1.0","is-retry-allowed":"^1.1.0",isurl:"^1.0.0-alpha5","lowercase-keys":"^1.0.0","mimic-response":"^1.0.0","p-cancelable":"^0.4.0","p-timeout":"^2.0.1",pify:"^3.0.0","safe-buffer":"^5.1.1","timed-out":"^4.0.1","url-parse-lax":"^3.0.0","url-to-options":"^1.0.1"},devDependencies:{ava:"^0.25.0",coveralls:"^3.0.0","form-data":"^2.1.1","get-port":"^3.0.0",nyc:"^11.0.2","p-event":"^1.3.0",pem:"^1.4.4",proxyquire:"^1.8.0",sinon:"^4.0.0","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","universal-url":"1.0.0-alpha",xo:"^0.20.0"},ava:{concurrency:4},browser:{"decompress-response":!1,electron:!1}}});var aRe=m((OSr,Ja)=>{"use strict";var _Ut=require("url"),mB=require("http"),bUt=pB(),wUt=oB(),Za=class extends Error{constructor(t,r,n){super(t),Error.captureStackTrace(this,this.constructor),this.name="GotError",wUt.undefined(r.code)||(this.code=r.code),Object.assign(this,{host:n.host,hostname:n.hostname,method:n.method,path:n.path,protocol:n.protocol,url:n.href})}};Ja.exports.GotError=Za;Ja.exports.CacheError=class extends Za{constructor(e,t){super(e.message,e,t),this.name="CacheError"}};Ja.exports.RequestError=class extends Za{constructor(e,t){super(e.message,e,t),this.name="RequestError"}};Ja.exports.ReadError=class extends Za{constructor(e,t){super(e.message,e,t),this.name="ReadError"}};Ja.exports.ParseError=class extends Za{constructor(e,t,r,n){super(`${e.message} in "${_Ut.format(r)}":
|
|
212
|
+
`);return y3t(t)};sg.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&e[r]!==32;)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var i=e.slice(r+1,n-1).toString(),s=i.indexOf("=");if(s===-1)return t;t[i.slice(0,s)]=i.slice(s+1),e=e.slice(n)}return t};sg.encode=function(e){var t=x3t(512),r=e.name,n="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var i=r.indexOf("/");if(i===-1)return null;n+=n?"/"+r.slice(0,i):r.slice(0,i),r=r.slice(i+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(n)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(r),t.write(ql(e.mode&E3t,6),100),t.write(ql(e.uid,6),108),t.write(ql(e.gid,6),116),t.write(ql(e.size,11),124),t.write(ql(e.mtime.getTime()/1e3|0,11),136),t[156]=NSe+A3t(e.type),e.linkname&&t.write(e.linkname,157),t.write(w3t,257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(ql(e.devmajor||0,6),329),t.write(ql(e.devminor||0,6),337),n&&t.write(n,345),t.write(ql(kSe(t),6),148),t)};sg.decode=function(e,t){var r=e[156]===0?0:e[156]-NSe,n=ig(e,0,100,t),i=kl(e,100,8),s=kl(e,108,8),o=kl(e,116,8),a=kl(e,124,12),u=kl(e,136,12),c=T3t(r),f=e[157]===0?null:ig(e,157,100,t),p=ig(e,265,32),h=ig(e,297,32),g=kl(e,329,8),v=kl(e,337,8);e[345]&&(n=ig(e,345,155,t)+"/"+n),r===0&&n&&n[n.length-1]==="/"&&(r=5);var _=kSe(e);if(_===8*32)return null;if(_!==kl(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:n,mode:i,uid:s,gid:o,size:a,mtime:new Date(1e3*u),type:c,linkname:f,uname:p,gname:h,devmajor:g,devminor:v}}});var BSe=m(($wr,jSe)=>{var DSe=require("util"),R3t=_Se(),O3t=wSe(),Rx=K6(),LSe=rg().Writable,FSe=rg().PassThrough,MSe=function(){},PSe=function(e){return e&=511,e&&512-e},I3t=function(e,t){var r=new oC(e,t);return r.end(),r},N3t=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},oC=function(e,t){this._parent=e,this.offset=t,FSe.call(this)};DSe.inherits(oC,FSe);oC.prototype.destroy=function(e){this._parent.destroy(e)};var oc=function(e){if(!(this instanceof oc))return new oc(e);LSe.call(this,e),e=e||{},this._offset=0,this._buffer=R3t(),this._missing=0,this._partial=!1,this._onparse=MSe,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},i=function(h){if(t._locked=!1,h)return t.destroy(h);t._stream||n()},s=function(){t._stream=null;var h=PSe(t._header.size);h?t._parse(h,o):t._parse(512,p),t._locked||n()},o=function(){t._buffer.consume(PSe(t._header.size)),t._parse(512,p),n()},a=function(){var h=t._header.size;t._paxGlobal=Rx.decodePax(r.slice(0,h)),r.consume(h),s()},u=function(){var h=t._header.size;t._pax=Rx.decodePax(r.slice(0,h)),t._paxGlobal&&(t._pax=O3t(t._paxGlobal,t._pax)),r.consume(h),s()},c=function(){var h=t._header.size;this._gnuLongPath=Rx.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},f=function(){var h=t._header.size;this._gnuLongLinkPath=Rx.decodeLongPath(r.slice(0,h),e.filenameEncoding),r.consume(h),s()},p=function(){var h=t._offset,g;try{g=t._header=Rx.decode(r.slice(0,512),e.filenameEncoding)}catch(v){t.emit("error",v)}if(r.consume(512),!g){t._parse(512,p),n();return}if(g.type==="gnu-long-path"){t._parse(g.size,c),n();return}if(g.type==="gnu-long-link-path"){t._parse(g.size,f),n();return}if(g.type==="pax-global-header"){t._parse(g.size,a),n();return}if(g.type==="pax-header"){t._parse(g.size,u),n();return}if(t._gnuLongPath&&(g.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(g.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=g=N3t(g,t._pax),t._pax=null),t._locked=!0,!g.size||g.type==="directory"){t._parse(512,p),t.emit("entry",g,I3t(t,h),i);return}t._stream=new oC(t,h),t.emit("entry",g,t._stream,i),t._parse(g.size,s),n()};this._onheader=p,this._parse(512,p)};DSe.inherits(oc,LSe);oc.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))};oc.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)};oc.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=MSe,this._overflow?this._write(this._overflow,void 0,e):e()}};oc.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,i=this._buffer,s=this._missing;if(e.length&&(this._partial=!0),e.length<s)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(i.append(e),r());this._cb=r,this._missing=0;var o=null;e.length>s&&(o=e.slice(s),e=e.slice(0,s)),n?n.end(e):i.append(e),this._overflow=o,this._onparse()}};oc.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};jSe.exports=oc});var WSe=m((zwr,USe)=>{USe.exports=require("fs").constants||require("constants")});var VSe=m((Gwr,GSe)=>{var og=WSe(),HSe=Dk(),uC=require("util"),q3t=G6(),k3t=z6(),$Se=rg().Readable,ag=rg().Writable,P3t=require("string_decoder").StringDecoder,aC=K6(),D3t=parseInt("755",8),L3t=parseInt("644",8),zSe=q3t(1024),Y6=function(){},X6=function(e,t){t&=511,t&&e.push(zSe.slice(0,512-t))};function F3t(e){switch(e&og.S_IFMT){case og.S_IFBLK:return"block-device";case og.S_IFCHR:return"character-device";case og.S_IFDIR:return"directory";case og.S_IFIFO:return"fifo";case og.S_IFLNK:return"symlink"}return"file"}var cC=function(e){ag.call(this),this.written=0,this._to=e,this._destroyed=!1};uC.inherits(cC,ag);cC.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r};cC.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var lC=function(){ag.call(this),this.linkname="",this._decoder=new P3t("utf-8"),this._destroyed=!1};uC.inherits(lC,ag);lC.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()};lC.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Ox=function(){ag.call(this),this._destroyed=!1};uC.inherits(Ox,ag);Ox.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Ox.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var za=function(e){if(!(this instanceof za))return new za(e);$Se.call(this,e),this._drain=Y6,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};uC.inherits(za,$Se);za.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof t=="function"&&(r=t,t=null),r||(r=Y6);var n=this;if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=F3t(e.mode)),e.mode||(e.mode=e.type==="directory"?D3t:L3t),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof t=="string"&&(t=k3t(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),X6(n,e.size),process.nextTick(r),new Ox;if(e.type==="symlink"&&!e.linkname){var i=new lC;return HSe(i,function(o){if(o)return n.destroy(),r(o);e.linkname=i.linkname,n._encode(e),r()}),i}if(this._encode(e),e.type!=="file"&&e.type!=="contiguous-file")return process.nextTick(r),new Ox;var s=new cC(this);return this._stream=s,HSe(s,function(o){if(n._stream=null,o)return n.destroy(),r(o);if(s.written!==e.size)return n.destroy(),r(new Error("size mismatch"));X6(n,e.size),n._finalizing&&n.finalize(),r()}),s}};za.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(zSe),this.push(null))};za.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};za.prototype._encode=function(e){if(!e.pax){var t=aC.encode(e);if(t){this.push(t);return}}this._encodePax(e)};za.prototype._encodePax=function(e){var t=aC.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(aC.encode(r)),this.push(t),X6(this,t.length),r.size=e.size,r.type=e.type,this.push(aC.encode(r))};za.prototype._read=function(e){var t=this._drain;this._drain=Y6,t()};GSe.exports=za});var KSe=m(Z6=>{Z6.extract=BSe();Z6.pack=VSe()});var fC=m((Kwr,YSe)=>{"use strict";var XSe=IEe(),M3t=Wv(),j3t=KSe();YSe.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!M3t(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!XSe(e)||XSe(e).ext!=="tar"))return Promise.resolve([]);let t=j3t.extract(),r=[];t.on("entry",(i,s,o)=>{let a=[];s.on("data",u=>a.push(u)),s.on("end",()=>{let u={data:Buffer.concat(a),mode:i.mode,mtime:i.mtime,path:i.name,type:i.type};(i.type==="symlink"||i.type==="link")&&(u.linkname=i.linkname),r.push(u),o()})});let n=new Promise((i,s)=>{Buffer.isBuffer(e)||e.on("error",s),t.on("finish",()=>i(r)),t.on("error",s)});return t.then=n.then.bind(n),t.catch=n.catch.bind(n),Buffer.isBuffer(e)?t.end(e):e.pipe(t),t}});var JSe=m((Xwr,ZSe)=>{"use strict";var ug=e=>Array.from(e).map(t=>t.charCodeAt(0)),B3t=ug("META-INF/mozilla.rsa"),U3t=ug("[Content_Types].xml"),W3t=ug("_rels/.rels");ZSe.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,i)=>{i=Object.assign({offset:0},i);for(let s=0;s<n.length;s++)if(i.mask){if(n[s]!==(i.mask[s]&t[s+i.offset]))return!1}else if(n[s]!==t[s+i.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(B3t,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r(U3t,{offset:30})||r(W3t,{offset:30})){let n=t.subarray(4,2004),i=o=>o.findIndex((a,u,c)=>c[u]===80&&c[u+1]===75&&c[u+2]===3&&c[u+3]===4),s=i(n);if(s!==-1){let o=t.subarray(s+8,s+8+1e3),a=i(o);if(a!==-1){let u=8+s+a+30;if(r(ug("word/"),{offset:u}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(r(ug("ppt/"),{offset:u}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(r(ug("xl/"),{offset:u}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((s,o,a)=>a[o]===66&&a[o+1]===130);if(i!==-1){let s=i+3,o=a=>Array.from(a).every((u,c)=>n[s+c]===u.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])&&r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(r([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(r([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let n=0;n<2&&n<t.length-16;n++)if(r([73,68,51],{offset:n})||r([255,226],{offset:n,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var t1e=m((Ywr,e1e)=>{var QSe=[0,1,3,7,15,31,63,127,255],Ix=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};Ix.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)};Ix.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=QSe[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var n=r-e;t|=(this.curByte&QSe[e]<<n)>>n,this.bitOffset+=e,e=0}}return t};Ix.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1};Ix.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t<e.length;t++)e[t]=this.read(8);return e.toString("hex")};e1e.exports=Ix});var n1e=m((Zwr,r1e)=>{var Mp=function(){};Mp.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};Mp.prototype.read=function(e,t,r){for(var n=0;n<r;){var i=this.readByte();if(i<0)return n===0?-1:n;e[t++]=i,n++}return n};Mp.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")};Mp.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")};Mp.prototype.write=function(e,t,r){var n;for(n=0;n<r;n++)this.writeByte(e[t++]);return r};Mp.prototype.flush=function(){};r1e.exports=Mp});var s1e=m((Jwr,i1e)=>{i1e.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),t=function(){var r=4294967295;this.getCRC=function(){return~r>>>0},this.updateCRC=function(n){r=r<<8^e[(r>>>24^n)&255]},this.updateCRCRun=function(n,i){for(;i-- >0;)r=r<<8^e[(r>>>24^n)&255]}};return t}()});var o1e=m((Qwr,H3t)=>{H3t.exports={name:"seek-bzip",version:"1.0.6",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"^2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}});var h1e=m((eEr,d1e)=>{var $3t=t1e(),Nx=n1e(),l1e=s1e(),f1e=o1e(),pC=20,a1e=258,u1e=0,z3t=1,G3t=2,V3t=6,K3t=50,X3t="314159265359",Y3t="177245385090",c1e=function(e,t){var r=e[t],n;for(n=t;n>0;n--)e[n]=e[n-1];return e[0]=r,r},_r={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},Pl={};Pl[_r.LAST_BLOCK]="Bad file checksum";Pl[_r.NOT_BZIP_DATA]="Not bzip data";Pl[_r.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";Pl[_r.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";Pl[_r.DATA_ERROR]="Data error";Pl[_r.OUT_OF_MEMORY]="Out of memory";Pl[_r.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var ai=function(e,t){var r=Pl[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},$i=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};$i.prototype._init_block=function(){var e=this._get_next_block();return e?(this.blockCRC=new l1e,!0):(this.writeCount=-1,!1)};$i.prototype._start_bunzip=function(e,t){var r=new Buffer(4);(e.read(r,0,4)!==4||String.fromCharCode(r[0],r[1],r[2])!=="BZh")&&ai(_r.NOT_BZIP_DATA,"bad magic");var n=r[3]-48;(n<1||n>9)&&ai(_r.NOT_BZIP_DATA,"level out of range"),this.reader=new $3t(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0};$i.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if(i===Y3t)return!1;i!==X3t&&ai(_r.NOT_BZIP_DATA),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&ai(_r.OBSOLETE_INPUT);var s=n.read(24);s>this.dbufSize&&ai(_r.DATA_ERROR,"initial position out of bounds");var o=n.read(16),a=new Buffer(256),u=0;for(e=0;e<16;e++)if(o&1<<15-e){var c=e*16;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(a[u++]=c+t)}var f=n.read(3);(f<G3t||f>V3t)&&ai(_r.DATA_ERROR);var p=n.read(15);p===0&&ai(_r.DATA_ERROR);var h=new Buffer(256);for(e=0;e<f;e++)h[e]=e;var g=new Buffer(p);for(e=0;e<p;e++){for(t=0;n.read(1);t++)t>=f&&ai(_r.DATA_ERROR);g[e]=c1e(h,t)}var v=u+2,_=[],w;for(t=0;t<f;t++){var y=new Buffer(v),b=new Uint16Array(pC+1);for(o=n.read(5),e=0;e<v;e++){for(;(o<1||o>pC)&&ai(_r.DATA_ERROR),!!n.read(1);)n.read(1)?o--:o++;y[e]=o}var S,T;for(S=T=y[0],e=1;e<v;e++)y[e]>T?T=y[e]:y[e]<S&&(S=y[e]);w={},_.push(w),w.permute=new Uint16Array(a1e),w.limit=new Uint32Array(pC+2),w.base=new Uint32Array(pC+1),w.minLen=S,w.maxLen=T;var R=0;for(e=S;e<=T;e++)for(b[e]=w.limit[e]=0,o=0;o<v;o++)y[o]===e&&(w.permute[R++]=o);for(e=0;e<v;e++)b[y[e]]++;for(R=o=0,e=S;e<T;e++)R+=b[e],w.limit[e]=R-1,R<<=1,o+=b[e],w.base[e+1]=R-o;w.limit[T+1]=Number.MAX_VALUE,w.limit[T]=R+b[T]-1,w.base[S]=0}var q=new Uint32Array(256);for(e=0;e<256;e++)h[e]=e;var O=0,M=0,U=0,z,L=this.dbuf=new Uint32Array(this.dbufSize);for(v=0;;){for(v--||(v=K3t-1,U>=p&&ai(_r.DATA_ERROR),w=_[g[U++]]),e=w.minLen,t=n.read(e);e>w.maxLen&&ai(_r.DATA_ERROR),!(t<=w.limit[e]);e++)t=t<<1|n.read(1);t-=w.base[e],(t<0||t>=a1e)&&ai(_r.DATA_ERROR);var D=w.permute[t];if(D===u1e||D===z3t){O||(O=1,o=0),D===u1e?o+=O:o+=2*O,O<<=1;continue}if(O)for(O=0,M+o>this.dbufSize&&ai(_r.DATA_ERROR),z=a[h[0]],q[z]+=o;o--;)L[M++]=z;if(D>u)break;M>=this.dbufSize&&ai(_r.DATA_ERROR),e=D-1,z=c1e(h,e),z=a[z],q[z]++,L[M++]=z}for((s<0||s>=M)&&ai(_r.DATA_ERROR),t=0,e=0;e<256;e++)r=t+q[e],q[e]=t,t=r;for(e=0;e<M;e++)z=L[e]&255,L[q[z]]|=e<<8,q[z]++;var Z=0,le=0,B=0;return M&&(Z=L[s],le=Z&255,Z>>=8,B=-1),this.writePos=Z,this.writeCurrent=le,this.writeCount=M,this.writeRun=B,!0};$i.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;for(var s=0,o=this.dbuf,a=this.writePos,u=this.writeCurrent,c=this.writeCount,f=this.outputsize,p=this.writeRun;c;){for(c--,n=u,a=o[a],u=a&255,a>>=8,p++===3?(r=u,i=n,u=-1):(r=1,i=u),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;u!=n&&(p=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&ai(_r.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var J6=function(e){if("readByte"in e)return e;var t=new Nx;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(r){this.pos=r},t.eof=function(){return this.pos>=e.length},t},p1e=function(e){var t=new Nx,r=!0;if(e)if(typeof e=="number")t.buffer=new Buffer(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(n){if(r&&this.pos>=this.buffer.length){var i=new Buffer(this.buffer.length*2);this.buffer.copy(i),this.buffer=i}this.buffer[this.pos++]=n},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var n=new Buffer(this.pos);this.buffer.copy(n,0,0,this.pos),this.buffer=n}return this.buffer},t._coerced=!0,t};$i.Err=_r;$i.decode=function(e,t,r){for(var n=J6(e),i=p1e(t),s=new $i(n,i);!("eof"in n&&n.eof());)if(s._init_block())s._read_bunzip();else{var o=s.reader.read(32)>>>0;if(o!==s.streamCRC&&ai(_r.DATA_ERROR,"Bad stream CRC (got "+s.streamCRC.toString(16)+" expected "+o.toString(16)+")"),r&&"eof"in n&&!n.eof())s._start_bunzip(n,i);else break}if("getBuffer"in i)return i.getBuffer()};$i.decodeBlock=function(e,t,r){var n=J6(e),i=p1e(r),s=new $i(n,i);s.reader.seek(t);var o=s._get_next_block();if(o&&(s.blockCRC=new l1e,s.writeCopies=0,s._read_bunzip()),"getBuffer"in i)return i.getBuffer()};$i.table=function(e,t,r){var n=new Nx;n.delegate=J6(e),n.pos=0,n.readByte=function(){return this.pos++,this.delegate.readByte()},n.delegate.eof&&(n.eof=n.delegate.eof.bind(n.delegate));var i=new Nx;i.pos=0,i.writeByte=function(){this.pos++};for(var s=new $i(n,i),o=s.dbufSize;!("eof"in n&&n.eof());){var a=n.pos*8+s.reader.bitOffset;if(s.reader.hasByte&&(a-=8),s._init_block()){var u=i.pos;s._read_bunzip(),t(a,i.pos-u)}else{var c=s.reader.read(32);if(r&&"eof"in n&&!n.eof())s._start_bunzip(n,i),console.assert(s.dbufSize===o,"shouldn't change block size within multistream file");else break}}};$i.Stream=Nx;$i.version=f1e.version;$i.license=f1e.license;d1e.exports=$i});var v1e=m((m1e,g1e)=>{var Z3t=require("stream");m1e=g1e.exports=Q6;Q6.through=Q6;function Q6(e,t,r){e=e||function(f){this.queue(f)},t=t||function(){this.queue(null)};var n=!1,i=!1,s=[],o=!1,a=new Z3t;a.readable=a.writable=!0,a.paused=!1,a.autoDestroy=!(r&&r.autoDestroy===!1),a.write=function(f){return e.call(this,f),!a.paused};function u(){for(;s.length&&!a.paused;){var f=s.shift();if(f===null)return a.emit("end");a.emit("data",f)}}a.queue=a.push=function(f){return o||(f===null&&(o=!0),s.push(f),u()),a},a.on("end",function(){a.readable=!1,!a.writable&&a.autoDestroy&&process.nextTick(function(){a.destroy()})});function c(){a.writable=!1,t.call(a),!a.readable&&a.autoDestroy&&a.destroy()}return a.end=function(f){if(!n)return n=!0,arguments.length&&a.write(f),c(),a},a.destroy=function(){if(!i)return i=!0,n=!0,s.length=0,a.writable=a.readable=!1,a.emit("close"),a},a.pause=function(){if(!a.paused)return a.paused=!0,a},a.resume=function(){return a.paused&&(a.paused=!1,a.emit("resume")),u(),a.paused||a.emit("drain"),a},a}});var x1e=m((tEr,y1e)=>{function ej(e){this.name="Bzip2Error",this.message=e,this.stack=new Error().stack}ej.prototype=new Error;var ui={Error:function(e){throw new ej(e)}},Ga={};Ga.Bzip2Error=ej;Ga.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];Ga.array=function(e){var t=0,r=0,n=[0,1,3,7,15,31,63,127,255];return function(i){for(var s=0;i>0;){var o=8-t;i>=o?(s<<=o,s|=n[o]&e[r++],t=0,i-=o):(s<<=i,s|=(e[r]&n[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return s}};Ga.simple=function(e,t){var r=Ga.array(e),n=Ga.header(r),i=!1,s=1e5*n,o=new Int32Array(s);do i=Ga.decompress(r,t,o,s);while(!i)};Ga.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),e(8*3)!=4348520&&ui.Error("No magic number found");var t=e(8)-48;return(t<1||t>9)&&ui.Error("Not a BZIP archive"),t};Ga.decompress=function(e,t,r,n,i){for(var s=20,o=258,a=0,u=1,c=50,f=-1,p="",h=0;h<6;h++)p+=e(8).toString(16);if(p=="177245385090"){var g=e(32)|0;return g!==i&&ui.Error("Error in bzip2: crc32 do not match"),e(null),null}p!="314159265359"&&ui.Error("eek not valid bzip data");var v=e(32)|0;e(1)&&ui.Error("unsupported obsolete version");var _=e(24);_>n&&ui.Error("Initial position larger than buffer size");var w=e(16),y=0;for(h=0;h<16;h++)if(w&1<<15-h){var b=e(16);for(se=0;se<16;se++)b&1<<15-se&&(this.symToByte[y++]=16*h+se)}var S=e(3);(S<2||S>6)&&ui.Error("another error");var T=e(15);T==0&&ui.Error("meh");for(var h=0;h<S;h++)this.mtfSymbol[h]=h;for(var h=0;h<T;h++){for(var se=0;e(1);se++)se>=S&&ui.Error("whoops another error");for(var R=this.mtfSymbol[se],b=se-1;b>=0;b--)this.mtfSymbol[b+1]=this.mtfSymbol[b];this.mtfSymbol[0]=R,this.selectors[h]=R}for(var he=y+2,q=[],O=new Uint8Array(o),M=new Uint16Array(s+1),U,se=0;se<S;se++){w=e(5);for(var h=0;h<he;h++){for(;(w<1||w>s)&&ui.Error("I gave up a while ago on writing error messages"),!!e(1);)e(1)?w--:w++;O[h]=w}var z,L;z=L=O[0];for(var h=1;h<he;h++)O[h]>L?L=O[h]:O[h]<z&&(z=O[h]);U=q[se]={},U.permute=new Int32Array(o),U.limit=new Int32Array(s+1),U.base=new Int32Array(s+1),U.minLen=z,U.maxLen=L;for(var D=U.base,Z=U.limit,le=0,h=z;h<=L;h++)for(var w=0;w<he;w++)O[w]==h&&(U.permute[le++]=w);for(h=z;h<=L;h++)M[h]=Z[h]=0;for(h=0;h<he;h++)M[O[h]]++;for(le=w=0,h=z;h<L;h++)le+=M[h],Z[h]=le-1,le<<=1,D[h+1]=le-(w+=M[h]);Z[L]=le+M[L]-1,D[z]=0}for(var h=0;h<256;h++)this.mtfSymbol[h]=h,this.byteCount[h]=0;var B,V,he,fe;for(B=V=he=fe=0;;){for(he--||(he=c-1,fe>=T&&ui.Error("meow i'm a kitty, that's an error"),U=q[this.selectors[fe++]],D=U.base,Z=U.limit),h=U.minLen,se=e(h);h>U.maxLen&&ui.Error("rawr i'm a dinosaur"),!(se<=Z[h]);)h++,se=se<<1|e(1);se-=D[h],(se<0||se>=o)&&ui.Error("moo i'm a cow");var xe=U.permute[se];if(xe==a||xe==u){B||(B=1,w=0),xe==a?w+=B:w+=2*B,B<<=1;continue}if(B)for(B=0,V+w>n&&ui.Error("Boom."),R=this.symToByte[this.mtfSymbol[0]],this.byteCount[R]+=w;w--;)r[V++]=R;if(xe>y)break;V>=n&&ui.Error("I can't think of anything. Error"),h=xe-1,R=this.mtfSymbol[h];for(var b=h-1;b>=0;b--)this.mtfSymbol[b+1]=this.mtfSymbol[b];this.mtfSymbol[0]=R,R=this.symToByte[R],this.byteCount[R]++,r[V++]=R}(_<0||_>=V)&&ui.Error("I'm a monkey and I'm throwing something at someone, namely you");for(var se=0,h=0;h<256;h++)b=se+this.byteCount[h],this.byteCount[h]=se,se=b;for(var h=0;h<V;h++)R=r[h]&255,r[this.byteCount[R]]|=h<<8,this.byteCount[R]++;var Ve=0,Le=0,Ee=0;V&&(Ve=r[_],Le=Ve&255,Ve>>=8,Ee=-1),V=V;for(var it,Vt,Te;V;){for(V--,Vt=Le,Ve=r[Ve],Le=Ve&255,Ve>>=8,Ee++==3?(it=Le,Te=Vt,Le=-1):(it=1,Te=Le);it--;)f=(f<<8^this.crcTable[(f>>24^Te)&255])&4294967295,t(Te);Le!=Vt&&(Ee=0)}return f=(f^-1)>>>0,(f|0)!=(v|0)&&ui.Error("Error in bzip2: crc32 do not match"),i=(f^(i<<1|i>>>31))&4294967295,i};y1e.exports=Ga});var w1e=m((rEr,b1e)=>{var _1e=[0,1,3,7,15,31,63,127,255];b1e.exports=function(t){var r=0,n=0,i=t(),s=function(o){if(o===null&&r!=0){r=0,n++;return}for(var a=0;o>0;){n>=i.length&&(n=0,i=t());var u=8-r;r===0&&o>0&&s.bytesRead++,o>=u?(a<<=u,a|=_1e[u]&i[n++],r=0,o-=u):(a<<=o,a|=(i[n]&_1e[o]<<8-o-r)>>8-o-r,r+=o,o=0)}return a};return s.bytesRead=0,s}});var T1e=m((nEr,S1e)=>{var J3t=v1e(),E1e=x1e(),Q3t=w1e();S1e.exports=e6t;function e6t(){var e=[],t=0,r=0,n=!1,i=!1,s=null,o=null;function a(f){if(r){var p=1e5*r,h=new Int32Array(p),g=[],v=function(_){g.push(_)};return o=E1e.decompress(s,v,h,p,o),o===null?(r=0,!1):(f(Buffer.from(g)),!0)}else return r=E1e.header(s),o=0,!0}var u=0;function c(f){if(!n)try{return a(function(p){f.queue(p),p!==null&&(u+=p.length)})}catch(p){return f.emit("error",p),n=!0,!1}}return J3t(function(p){for(e.push(p),t+=p.length,s===null&&(s=Q3t(function(){return e.shift()}));!n&&t-s.bytesRead+1>=(25e3+1e5*r||4);)c(this)},function(p){for(;!n&&s&&t>s.bytesRead;)c(this);n||(o!==null&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}});var O1e=m((iEr,R1e)=>{"use strict";var A1e=fC(),C1e=JSe(),t6t=Wv(),r6t=h1e(),n6t=T1e();R1e.exports=()=>e=>!Buffer.isBuffer(e)&&!t6t(e)?Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`)):Buffer.isBuffer(e)&&(!C1e(e)||C1e(e).ext!=="bz2")?Promise.resolve([]):Buffer.isBuffer(e)?A1e()(r6t.decode(e)):A1e()(e.pipe(n6t()))});var N1e=m((sEr,I1e)=>{"use strict";I1e.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,i)=>{i=Object.assign({offset:0},i);for(let s=0;s<n.length;s++)if(n[s]!==t[s+i.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(t[3]===24||t[3]===32)&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((s,o,a)=>a[o]===66&&a[o+1]===130);if(i>=0){let s=i+3,o=a=>Array.from(a).every((u,c)=>n[s+c]===u.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var P1e=m((oEr,k1e)=>{"use strict";var i6t=require("zlib"),s6t=fC(),q1e=N1e(),o6t=Wv();k1e.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!o6t(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!q1e(e)||q1e(e).ext!=="gz"))return Promise.resolve([]);let t=i6t.createGunzip(),r=s6t()(t);return Buffer.isBuffer(e)?t.end(e):e.pipe(t),r}});var L1e=m((aEr,D1e)=>{"use strict";D1e.exports=function(e){return e&&e.length>1?e[0]===255&&e[1]===216&&e[2]===255?{ext:"jpg",mime:"image/jpeg"}:e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71?{ext:"png",mime:"image/png"}:e[0]===71&&e[1]===73&&e[2]===70?{ext:"gif",mime:"image/gif"}:e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80?{ext:"webp",mime:"image/webp"}:e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70?{ext:"flif",mime:"image/flif"}:(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82?{ext:"cr2",mime:"image/x-canon-cr2"}:e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42?{ext:"tif",mime:"image/tiff"}:e[0]===66&&e[1]===77?{ext:"bmp",mime:"image/bmp"}:e[0]===73&&e[1]===73&&e[2]===188?{ext:"jxr",mime:"image/vnd.ms-photo"}:e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112?{ext:"epub",mime:"application/epub+zip"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97?{ext:"xpi",mime:"application/x-xpinstall"}:e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)?{ext:"zip",mime:"application/zip"}:e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114?{ext:"tar",mime:"application/x-tar"}:e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)?{ext:"rar",mime:"application/x-rar-compressed"}:e[0]===31&&e[1]===139&&e[2]===8?{ext:"gz",mime:"application/gzip"}:e[0]===66&&e[1]===90&&e[2]===104?{ext:"bz2",mime:"application/x-bzip2"}:e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28?{ext:"7z",mime:"application/x-7z-compressed"}:e[0]===120&&e[1]===1?{ext:"dmg",mime:"application/x-apple-diskimage"}:e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0?{ext:"mp4",mime:"video/mp4"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86?{ext:"m4v",mime:"video/x-m4v"}:e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100?{ext:"mid",mime:"audio/midi"}:e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97?{ext:"mkv",mime:"video/x-matroska"}:e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163?{ext:"webm",mime:"video/webm"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112?{ext:"mov",mime:"video/quicktime"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73?{ext:"avi",mime:"video/x-msvideo"}:e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217?{ext:"wmv",mime:"video/x-ms-wmv"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"?{ext:"mpg",mime:"video/mpeg"}:e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251?{ext:"mp3",mime:"audio/mpeg"}:e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32?{ext:"m4a",mime:"audio/m4a"}:e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100?{ext:"opus",mime:"audio/opus"}:e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83?{ext:"ogg",mime:"audio/ogg"}:e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67?{ext:"flac",mime:"audio/x-flac"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69?{ext:"wav",mime:"audio/x-wav"}:e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10?{ext:"amr",mime:"audio/amr"}:e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70?{ext:"pdf",mime:"application/pdf"}:e[0]===77&&e[1]===90?{ext:"exe",mime:"application/x-msdownload"}:(e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83?{ext:"swf",mime:"application/x-shockwave-flash"}:e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102?{ext:"rtf",mime:"application/rtf"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff",mime:"application/font-woff"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff2",mime:"application/font-woff"}:e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)?{ext:"eot",mime:"application/octet-stream"}:e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0?{ext:"ttf",mime:"application/font-sfnt"}:e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0?{ext:"otf",mime:"application/font-sfnt"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0?{ext:"ico",mime:"image/x-icon"}:e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1?{ext:"flv",mime:"video/x-flv"}:e[0]===37&&e[1]===33?{ext:"ps",mime:"application/postscript"}:e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0?{ext:"xz",mime:"application/x-xz"}:e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105?{ext:"sqlite",mime:"application/x-sqlite3"}:e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52?{ext:"crx",mime:"application/x-google-chrome-extension"}:e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121?{ext:"deb",mime:"application/x-deb"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62?{ext:"ar",mime:"application/x-unix-archive"}:e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219?{ext:"rpm",mime:"application/x-rpm"}:e[0]===31&&e[1]===160||e[0]===31&&e[1]===157?{ext:"Z",mime:"application/x-compress"}:e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80?{ext:"lz",mime:"application/x-lzip"}:e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225?{ext:"msi",mime:"application/x-msi"}:null:null}});var $1e=m((uEr,H1e)=>{"use strict";var rj="pending",F1e="settled",dC="fulfilled",hC="rejected",a6t=function(){},M1e=typeof global<"u"&&typeof global.process<"u"&&typeof global.process.emit=="function",u6t=typeof setImmediate>"u"?setTimeout:setImmediate,qx=[],tj;function c6t(){for(var e=0;e<qx.length;e++)qx[e][0](qx[e][1]);qx=[],tj=!1}function mC(e,t){qx.push([e,t]),tj||(tj=!0,u6t(c6t,0))}function l6t(e,t){function r(i){nj(t,i)}function n(i){kx(t,i)}try{e(r,n)}catch(i){n(i)}}function j1e(e){var t=e.owner,r=t._state,n=t._data,i=e[r],s=e.then;if(typeof i=="function"){r=dC;try{n=i(n)}catch(o){kx(s,o)}}B1e(s,n)||(r===dC&&nj(s,n),r===hC&&kx(s,n))}function B1e(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&(typeof t=="function"||typeof t=="object")){var n=t.then;if(typeof n=="function")return n.call(t,function(i){r||(r=!0,t===i?U1e(e,i):nj(e,i))},function(i){r||(r=!0,kx(e,i))}),!0}}catch(i){return r||kx(e,i),!0}return!1}function nj(e,t){(e===t||!B1e(e,t))&&U1e(e,t)}function U1e(e,t){e._state===rj&&(e._state=F1e,e._data=t,mC(f6t,e))}function kx(e,t){e._state===rj&&(e._state=F1e,e._data=t,mC(p6t,e))}function W1e(e){e._then=e._then.forEach(j1e)}function f6t(e){e._state=dC,W1e(e)}function p6t(e){e._state=hC,W1e(e),!e._handled&&M1e&&global.process.emit("unhandledRejection",e._data,e)}function d6t(e){global.process.emit("rejectionHandled",e)}function Ns(e){if(typeof e!="function")throw new TypeError("Promise resolver "+e+" is not a function");if(!(this instanceof Ns))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],l6t(e,this)}Ns.prototype={constructor:Ns,_state:rj,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(a6t),fulfilled:e,rejected:t};return(t||e)&&!this._handled&&(this._handled=!0,this._state===hC&&M1e&&mC(d6t,this)),this._state===dC||this._state===hC?mC(j1e,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}};Ns.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new Ns(function(t,r){var n=[],i=0;function s(u){return i++,function(c){n[u]=c,--i||t(n)}}for(var o=0,a;o<e.length;o++)a=e[o],a&&typeof a.then=="function"?a.then(s(o),r):n[o]=a;i||t(n)})};Ns.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new Ns(function(t,r){for(var n=0,i;n<e.length;n++)i=e[n],i&&typeof i.then=="function"?i.then(t,r):t(i)})};Ns.resolve=function(e){return e&&typeof e=="object"&&e.constructor===Ns?e:new Ns(function(t){t(e)})};Ns.reject=function(e){return new Ns(function(t,r){r(e)})};H1e.exports=Ns});var G1e=m((cEr,z1e)=>{"use strict";z1e.exports=typeof Promise=="function"?Promise:$1e()});var gC=m((lEr,K1e)=>{"use strict";var V1e=Object.getOwnPropertySymbols,h6t=Object.prototype.hasOwnProperty,m6t=Object.prototype.propertyIsEnumerable;function g6t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function v6t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}K1e.exports=v6t()?Object.assign:function(e,t){for(var r,n=g6t(e),i,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var o in r)h6t.call(r,o)&&(n[o]=r[o]);if(V1e){i=V1e(r);for(var a=0;a<i.length;a++)m6t.call(r,i[a])&&(n[i[a]]=r[i[a]])}}return n}});var Y1e=m((fEr,X1e)=>{var y6t=require("stream").PassThrough,x6t=gC();X1e.exports=function(e){e=x6t({},e);var t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);var s=0,o=[],a=new y6t({objectMode:i});return r&&a.setEncoding(r),a.on("data",function(u){o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=function(){return t?o:n?Buffer.concat(o,s):o.join("")},a.getBufferedLength=function(){return s},a}});var J1e=m((pEr,vC)=>{"use strict";var Z1e=G1e(),ij=gC(),_6t=Y1e();function sj(e,t){if(!e)return Z1e.reject(new Error("Expected a stream"));t=ij({maxBuffer:1/0},t);var r=t.maxBuffer,n,i,s=new Z1e(function(o,a){n=_6t(t),e.once("error",u),e.pipe(n),n.on("data",function(){n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=function(){e.unpipe&&e.unpipe(n)};function u(c){c&&(c.bufferedData=n.getBufferedValue()),a(c)}});return s.then(i,i),s.then(function(){return n.getBufferedValue()})}vC.exports=sj;vC.exports.buffer=function(e,t){return sj(e,ij({},t,{encoding:"buffer"}))};vC.exports.array=function(e,t){return sj(e,ij({},t,{array:!0}))}});var rTe=m((dEr,tTe)=>{"use strict";var Q1e=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),s=0;s<arguments.length;s++)i[s]=arguments[s];return new t(function(o,a){i.push(function(u,c){if(u)a(u);else if(r.multiArgs){for(var f=new Array(arguments.length-1),p=1;p<arguments.length;p++)f[p-1]=arguments[p];o(f)}else o(c)}),e.apply(n,i)})}},eTe=tTe.exports=function(e,t,r){typeof t!="function"&&(r=t,t=Promise),r=r||{},r.exclude=r.exclude||[/.+Sync$/];var n=function(s){var o=function(a){return typeof a=="string"?s===a:a.test(s)};return r.include?r.include.some(o):!r.exclude.some(o)},i=typeof e=="function"?function(){return r.excludeMain?e.apply(this,arguments):Q1e(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce(function(s,o){var a=e[o];return s[o]=typeof a=="function"&&n(o)?Q1e(a,t,r):a,s},i)};eTe.all=eTe});var oTe=m((hEr,sTe)=>{sTe.exports=yC;function yC(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}yC.prototype.go=function(e){this.pending<this.max?iTe(this,e):this.waiting.push(e)};yC.prototype.wait=function(e){this.pending===0?e(this.error):this.listeners.push(e)};yC.prototype.hold=function(){return nTe(this)};function nTe(e){e.pending+=1;var t=!1;return r;function r(i){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||i,e.pending-=1,e.waiting.length>0&&e.pending<e.max)iTe(e,e.waiting.shift());else if(e.pending===0){var s=e.listeners;e.listeners=[],s.forEach(n)}}function n(i){i(e.error)}}function iTe(e,t){t(nTe(e))}});var uTe=m(Dx=>{var Px=require("fs"),xC=require("util"),oj=require("stream"),aTe=oj.Readable,aj=oj.Writable,b6t=oj.PassThrough,w6t=oTe(),_C=require("events").EventEmitter;Dx.createFromBuffer=E6t;Dx.createFromFd=S6t;Dx.BufferSlicer=uc;Dx.FdSlicer=ac;xC.inherits(ac,_C);function ac(e,t){t=t||{},_C.call(this),this.fd=e,this.pend=new w6t,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}ac.prototype.read=function(e,t,r,n,i){var s=this;s.pend.go(function(o){Px.read(s.fd,e,t,r,n,function(a,u,c){o(),i(a,u,c)})})};ac.prototype.write=function(e,t,r,n,i){var s=this;s.pend.go(function(o){Px.write(s.fd,e,t,r,n,function(a,u,c){o(),i(a,u,c)})})};ac.prototype.createReadStream=function(e){return new bC(this,e)};ac.prototype.createWriteStream=function(e){return new wC(this,e)};ac.prototype.ref=function(){this.refCount+=1};ac.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&Px.close(e.fd,t);function t(r){r?e.emit("error",r):e.emit("close")}};xC.inherits(bC,aTe);function bC(e,t){t=t||{},aTe.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}bC.prototype._read=function(e){var t=this;if(!t.destroyed){var r=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null&&(r=Math.min(r,t.endOffset-t.pos)),r<=0){t.destroyed=!0,t.push(null),t.context.unref();return}t.context.pend.go(function(n){if(t.destroyed)return n();var i=new Buffer(r);Px.read(t.context.fd,i,0,r,t.pos,function(s,o){s?t.destroy(s):o===0?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=o,t.push(i.slice(0,o))),n()})})}};bC.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())};xC.inherits(wC,aj);function wC(e,t){t=t||{},aj.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end==null?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}wC.prototype._write=function(e,t,r){var n=this;if(!n.destroyed){if(n.pos+e.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(s){if(n.destroyed)return s();Px.write(n.context.fd,e,0,e.length,n.pos,function(o,a){o?(n.destroy(),s(),r(o)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),s(),r())})})}};wC.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};xC.inherits(uc,_C);function uc(e,t){_C.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}uc.prototype.read=function(e,t,r,n,i){var s=n+r,o=s-this.buffer.length,a=o>0?o:r;this.buffer.copy(e,t,n,s),setImmediate(function(){i(null,a)})};uc.prototype.write=function(e,t,r,n,i){e.copy(this.buffer,n,t,t+r),setImmediate(function(){i(null,r,e)})};uc.prototype.createReadStream=function(e){e=e||{};var t=new b6t(e);t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var r=this.buffer.slice(t.start,t.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&t.write(r.slice(n,r.length));break}t.write(r.slice(n,i)),n=i}return t.end(),t.destroy=function(){t.destroyed=!0},t};uc.prototype.createWriteStream=function(e){var t=this;e=e||{};var r=new aj(e);return r.start=e.start||0,r.endOffset=e.end==null?this.buffer.length:+e.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,s){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,s(a);return}n.copy(t.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),s()}},r.destroy=function(){r.destroyed=!0},r};uc.prototype.ref=function(){this.refCount+=1};uc.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function E6t(e,t){return new uc(e,t)}function S6t(e,t){return new ac(e,t)}});var fTe=m((gEr,lTe)=>{var Dl=require("buffer").Buffer,uj=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(uj=new Int32Array(uj));function cTe(e){if(Dl.isBuffer(e))return e;var t=typeof Dl.alloc=="function"&&typeof Dl.from=="function";if(typeof e=="number")return t?Dl.alloc(e):new Dl(e);if(typeof e=="string")return t?Dl.from(e):new Dl(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function T6t(e){var t=cTe(4);return t.writeInt32BE(e,0),t}function cj(e,t){e=cTe(e),Dl.isBuffer(t)&&(t=t.readUInt32BE(0));for(var r=~~t^-1,n=0;n<e.length;n++)r=uj[(r^e[n])&255]^r>>>8;return r^-1}function lj(){return T6t(cj.apply(null,arguments))}lj.signed=function(){return cj.apply(null,arguments)};lj.unsigned=function(){return cj.apply(null,arguments)>>>0};lTe.exports=lj});var yTe=m(Ka=>{var fj=require("fs"),A6t=require("zlib"),pTe=uTe(),C6t=fTe(),TC=require("util"),AC=require("events").EventEmitter,dTe=require("stream").Transform,pj=require("stream").PassThrough,R6t=require("stream").Writable;Ka.open=O6t;Ka.fromFd=hTe;Ka.fromBuffer=I6t;Ka.fromRandomAccessReader=dj;Ka.dosDateTimeToDate=gTe;Ka.validateFileName=vTe;Ka.ZipFile=Ll;Ka.Entry=Lx;Ka.RandomAccessReader=Fl;function O6t(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!0),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),r==null&&(r=SC),fj.open(e,"r",function(n,i){if(n)return r(n);hTe(i,t,function(s,o){s&&fj.close(i,SC),r(s,o)})})}function hTe(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!1),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),r==null&&(r=SC),fj.fstat(e,function(n,i){if(n)return r(n);var s=pTe.createFromFd(e,{autoClose:!0});dj(s,i.size,t,r)})}function I6t(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose=!1,t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1);var n=pTe.createFromBuffer(e,{maxChunkSize:65536});dj(n,e.length,t,r)}function dj(e,t,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=SC),typeof t!="number")throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var s=22,o=65535,a=Math.min(s+o,t),u=Va(a),c=t-u.length;cg(e,u,0,a,c,function(f){if(f)return n(f);for(var p=a-s;p>=0;p-=1)if(u.readUInt32LE(p)===101010256){var h=u.slice(p),g=h.readUInt16LE(4);if(g!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+g));var v=h.readUInt16LE(10),_=h.readUInt32LE(16),w=h.readUInt16LE(20),y=h.length-s;if(w!==y)return n(new Error("invalid comment length. expected: "+y+". found: "+w));var b=i?EC(h,22,h.length,!1):h.slice(22);if(!(v===65535||_===4294967295))return n(null,new Ll(e,_,t,v,b,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var S=Va(20),T=c+p-S.length;cg(e,S,0,S.length,T,function(R){if(R)return n(R);if(S.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var q=lg(S,8),O=Va(56);cg(e,O,0,O.length,q,function(M){return M?n(M):O.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(v=lg(O,32),_=lg(O,48),n(null,new Ll(e,_,t,v,b,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}TC.inherits(Ll,AC);function Ll(e,t,r,n,i,s,o,a,u,c){var f=this;AC.call(f),f.reader=e,f.reader.on("error",function(p){mTe(f,p)}),f.reader.once("close",function(){f.emit("close")}),f.readEntryCursor=t,f.fileSize=r,f.entryCount=n,f.comment=i,f.entriesRead=0,f.autoClose=!!s,f.lazyEntries=!!o,f.decodeStrings=!!a,f.validateEntrySizes=!!u,f.strictFileNames=!!c,f.isOpen=!0,f.emittedError=!1,f.lazyEntries||f._readEntry()}Ll.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function Qo(e,t){e.autoClose&&e.close(),mTe(e,t)}function mTe(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}Ll.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};Ll.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate(function(){e.autoClose&&e.close(),!e.emittedError&&e.emit("end")});return}if(!e.emittedError){var t=Va(46);cg(e.reader,t,0,t.length,e.readEntryCursor,function(r){if(r)return Qo(e,r);if(!e.emittedError){var n=new Lx,i=t.readUInt32LE(0);if(i!==33639248)return Qo(e,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=t.readUInt16LE(4),n.versionNeededToExtract=t.readUInt16LE(6),n.generalPurposeBitFlag=t.readUInt16LE(8),n.compressionMethod=t.readUInt16LE(10),n.lastModFileTime=t.readUInt16LE(12),n.lastModFileDate=t.readUInt16LE(14),n.crc32=t.readUInt32LE(16),n.compressedSize=t.readUInt32LE(20),n.uncompressedSize=t.readUInt32LE(24),n.fileNameLength=t.readUInt16LE(28),n.extraFieldLength=t.readUInt16LE(30),n.fileCommentLength=t.readUInt16LE(32),n.internalFileAttributes=t.readUInt16LE(36),n.externalFileAttributes=t.readUInt32LE(38),n.relativeOffsetOfLocalHeader=t.readUInt32LE(42),n.generalPurposeBitFlag&64)return Qo(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=Va(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),cg(e.reader,t,0,t.length,e.readEntryCursor,function(s){if(s)return Qo(e,s);if(!e.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=e.decodeStrings?EC(t,0,n.fileNameLength,o):t.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,u=t.slice(n.fileNameLength,a);n.extraFields=[];for(var c=0;c<u.length-3;){var f=u.readUInt16LE(c+0),p=u.readUInt16LE(c+2),h=c+4,g=h+p;if(g>u.length)return Qo(e,new Error("extra field length exceeds extra field buffer size"));var v=Va(p);u.copy(v,0,h,g),n.extraFields.push({id:f,data:v}),c=g}if(n.fileComment=e.decodeStrings?EC(t,a,a+n.fileCommentLength,o):t.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var _=null,c=0;c<n.extraFields.length;c++){var w=n.extraFields[c];if(w.id===1){_=w.data;break}}if(_==null)return Qo(e,new Error("expected zip64 extended information extra field"));var y=0;if(n.uncompressedSize===4294967295){if(y+8>_.length)return Qo(e,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=lg(_,y),y+=8}if(n.compressedSize===4294967295){if(y+8>_.length)return Qo(e,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=lg(_,y),y+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(y+8>_.length)return Qo(e,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=lg(_,y),y+=8}}if(e.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var w=n.extraFields[c];if(w.id===28789){if(w.data.length<6||w.data.readUInt8(0)!==1)continue;var b=w.data.readUInt32LE(1);if(C6t.unsigned(t.slice(0,n.fileNameLength))!==b)continue;n.fileName=EC(w.data,5,w.data.length,!0);break}}if(e.validateEntrySizes&&n.compressionMethod===0){var S=n.uncompressedSize;if(n.isEncrypted()&&(S+=12),n.compressedSize!==S){var T="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return Qo(e,new Error(T))}}if(e.decodeStrings){e.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var R=vTe(n.fileName,e.validateFileNameOptions);if(R!=null)return Qo(e,new Error(R))}e.emit("entry",n),e.lazyEntries||e._readEntry()}})}})}};Ll.prototype.openReadStream=function(e,t,r){var n=this,i=0,s=e.compressedSize;if(r==null)r=t,t={};else{if(t.decrypt!=null){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(t.decrypt!==!1)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&t.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(t.decompress!=null){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(t.decompress===!1||t.decompress===!0))throw new Error("invalid options.decompress value: "+t.decompress)}if(t.start!=null||t.end!=null){if(e.isCompressed()&&t.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&t.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(t.start!=null){if(i=t.start,i<0)throw new Error("options.start < 0");if(i>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(t.end!=null){if(s=t.end,s<0)throw new Error("options.end < 0");if(s>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(s<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(e.isEncrypted()&&t.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=Va(30);cg(n.reader,o,0,o.length,e.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var u=o.readUInt32LE(0);if(u!==67324752)return r(new Error("invalid local file header signature: 0x"+u.toString(16)));var c=o.readUInt16LE(26),f=o.readUInt16LE(28),p=e.relativeOffsetOfLocalHeader+o.length+c+f,h;if(e.compressionMethod===0)h=!1;else if(e.compressionMethod===8)h=t.decompress!=null?t.decompress:!0;else return r(new Error("unsupported compression method: "+e.compressionMethod));var g=p,v=g+e.compressedSize;if(e.compressedSize!==0&&v>n.fileSize)return r(new Error("file data overflows file bounds: "+g+" + "+e.compressedSize+" > "+n.fileSize));var _=n.reader.createReadStream({start:g+i,end:g+s}),w=_;if(h){var y=!1,b=A6t.createInflateRaw();_.on("error",function(S){setImmediate(function(){y||b.emit("error",S)})}),_.pipe(b),n.validateEntrySizes?(w=new Fx(e.uncompressedSize),b.on("error",function(S){setImmediate(function(){y||w.emit("error",S)})}),b.pipe(w)):w=b,w.destroy=function(){y=!0,b!==w&&b.unpipe(w),_.unpipe(b),_.destroy()}}r(null,w)}finally{n.reader.unref()}})};function Lx(){}Lx.prototype.getLastModDate=function(){return gTe(this.lastModFileDate,this.lastModFileTime)};Lx.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Lx.prototype.isCompressed=function(){return this.compressionMethod===8};function gTe(e,t){var r=e&31,n=(e>>5&15)-1,i=(e>>9&127)+1980,s=0,o=(t&31)*2,a=t>>5&63,u=t>>11&31;return new Date(i,n,r,u,a,o,s)}function vTe(e){return e.indexOf("\\")!==-1?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:e.split("/").indexOf("..")!==-1?"invalid relative path: "+e:null}function cg(e,t,r,n,i,s){if(n===0)return setImmediate(function(){s(null,Va(0))});e.read(t,r,n,i,function(o,a){if(o)return s(o);if(a<n)return s(new Error("unexpected EOF"));s()})}TC.inherits(Fx,dTe);function Fx(e){dTe.call(this),this.actualByteCount=0,this.expectedByteCount=e}Fx.prototype._transform=function(e,t,r){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,e)};Fx.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()};TC.inherits(Fl,AC);function Fl(){AC.call(this),this.refCount=0}Fl.prototype.ref=function(){this.refCount+=1};Fl.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(t);function t(r){if(r)return e.emit("error",r);e.emit("close")}};Fl.prototype.createReadStream=function(e){var t=e.start,r=e.end;if(t===r){var n=new pj;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(t,r),s=!1,o=new CC(this);i.on("error",function(u){setImmediate(function(){s||o.emit("error",u)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var a=new Fx(r-t);return o.on("error",function(u){setImmediate(function(){s||a.emit("error",u)})}),a.destroy=function(){s=!0,o.unpipe(a),o.destroy()},i.pipe(o).pipe(a)};Fl.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")};Fl.prototype.read=function(e,t,r,n,i){var s=this.createReadStream({start:n,end:n+r}),o=new R6t,a=0;o._write=function(u,c,f){u.copy(e,t+a,0,u.length),a+=u.length,f()},o.on("finish",i),s.on("error",function(u){i(u)}),s.pipe(o)};Fl.prototype.close=function(e){setImmediate(e)};TC.inherits(CC,pj);function CC(e){pj.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}CC.prototype._flush=function(e){this.unref(),e()};CC.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var N6t="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function EC(e,t,r,n){if(n)return e.toString("utf8",t,r);for(var i="",s=t;s<r;s++)i+=N6t[e[s]];return i}function lg(e,t){var r=e.readUInt32LE(t),n=e.readUInt32LE(t+4);return n*4294967296+r}var Va;typeof Buffer.allocUnsafe=="function"?Va=function(e){return Buffer.allocUnsafe(e)}:Va=function(e){return new Buffer(e)};function SC(e){if(e)throw e}});var wTe=m((yEr,bTe)=>{"use strict";var xTe=L1e(),q6t=J1e(),_Te=rTe(),k6t=yTe(),P6t=(e,t)=>{let s=e.versionMadeBy>>8;return(t&61440)===40960?"symlink":(t&61440)===16384||s===0&&e.externalFileAttributes===16?"directory":"file"},D6t=(e,t)=>{let r={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};return r.type=P6t(e,r.mode),r.mode===0&&r.type==="directory"&&(r.mode=493),r.mode===0&&(r.mode=420),_Te(t.openReadStream.bind(t))(e).then(q6t.buffer).then(n=>(r.data=n,r.type==="symlink"&&(r.linkname=n.toString()),r)).catch(n=>{throw t.close(),n})},L6t=e=>new Promise((t,r)=>{let n=[];e.readEntry(),e.on("entry",i=>{D6t(i,e).catch(r).then(s=>{n.push(s),e.readEntry()})}),e.on("error",r),e.on("end",()=>t(n))});bTe.exports=()=>e=>Buffer.isBuffer(e)?!xTe(e)||xTe(e).ext!=="zip"?Promise.resolve([]):_Te(k6t.fromBuffer)(e,{lazyEntries:!0}).then(L6t):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))});var TTe=m((xEr,STe)=>{"use strict";var ETe=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{t.errorFirst?n.push(function(o,a){if(t.multiArgs){let u=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)u[c-1]=arguments[c];o?(u.unshift(o),s(u)):i(u)}else o?s(o):i(a)}):n.push(function(o){if(t.multiArgs){let a=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)a[u]=arguments[u];i(a)}else i(o)}),e.apply(this,n)})};STe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):ETe(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&r(i)?ETe(s,t):s}return n}});var OTe=m((_Er,hj)=>{"use strict";var F6t=require("fs"),jp=require("path"),ATe=TTe(),CTe={mode:511&~process.umask(),fs:F6t},RTe=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(jp.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}};hj.exports=(e,t)=>Promise.resolve().then(()=>{RTe(e),t=Object.assign({},CTe,t);let r=ATe(t.fs.mkdir),n=ATe(t.fs.stat),i=s=>r(s,t.mode).then(()=>s).catch(o=>{if(o.code==="ENOENT"){if(o.message.includes("null bytes")||jp.dirname(s)===s)throw o;return i(jp.dirname(s)).then(()=>i(s))}return n(s).then(a=>a.isDirectory()?s:Promise.reject()).catch(()=>{throw o})});return i(jp.resolve(e))});hj.exports.sync=(e,t)=>{RTe(e),t=Object.assign({},CTe,t);let r=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="ENOENT"){if(i.message.includes("null bytes")||jp.dirname(n)===n)throw i;return r(jp.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(jp.resolve(e))}});var kTe=m((bEr,qTe)=>{"use strict";var ITe=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),s=0;s<arguments.length;s++)i[s]=arguments[s];return new t(function(o,a){i.push(function(u,c){if(u)a(u);else if(r.multiArgs){for(var f=new Array(arguments.length-1),p=1;p<arguments.length;p++)f[p-1]=arguments[p];o(f)}else o(c)}),e.apply(n,i)})}},NTe=qTe.exports=function(e,t,r){typeof t!="function"&&(r=t,t=Promise),r=r||{},r.exclude=r.exclude||[/.+Sync$/];var n=function(s){var o=function(a){return typeof a=="string"?s===a:a.test(s)};return r.include?r.include.some(o):!r.exclude.some(o)},i=typeof e=="function"?function(){return r.excludeMain?e.apply(this,arguments):ITe(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce(function(s,o){var a=e[o];return s[o]=typeof a=="function"&&n(o)?ITe(a,t,r):a,s},i)};NTe.all=NTe});var DTe=m((wEr,PTe)=>{"use strict";PTe.exports=function(t,r){if(r){if(typeof r!="object")throw new TypeError(String(r)+" is not an object. Expected an object that has boolean `includeZero` property.");if("includeZero"in r){if(typeof r.includeZero!="boolean")throw new TypeError(String(r.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.");if(r.includeZero&&t===0)return!0}}return Number.isSafeInteger(t)&&t>=1}});var FTe=m((EEr,LTe)=>{"use strict";var Mx=require("path"),jx=require("util"),M6t=DTe();LTe.exports=function(t,r,n){if(typeof t!="string")throw new TypeError(jx.inspect(t)+" is not a string. First argument to strip-dirs must be a path string.");if(Mx.posix.isAbsolute(t)||Mx.win32.isAbsolute(t))throw new Error(`${t} is an absolute path. strip-dirs requires a relative path.`);if(!M6t(r,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+jx.inspect(r)+".");if(n){if(typeof n!="object")throw new TypeError(jx.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(jx.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&typeof n.disallowOverflow!="boolean")throw new TypeError(jx.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};let i=Mx.normalize(t).split(Mx.sep);if(i.length>1&&i[0]==="."&&i.shift(),r>i.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");r=i.length-1}return Mx.join.apply(null,i.slice(r))}});var vj=m((SEr,MTe)=>{"use strict";var RC=require("path"),j6t=Kn(),B6t=fC(),U6t=O1e(),W6t=P1e(),H6t=wTe(),mj=OTe(),$6t=kTe(),z6t=FTe(),qs=$6t(j6t),G6t=(e,t)=>t.plugins.length===0?Promise.resolve([]):Promise.all(t.plugins.map(r=>r(e,t))).then(r=>r.reduce((n,i)=>n.concat(i))),gj=(e,t)=>qs.realpath(e).catch(r=>{let n=RC.dirname(e);return gj(n,t)}).then(r=>{if(r.indexOf(t)!==0)throw new Error("Refusing to create a directory outside the output path.");return mj(e).then(qs.realpath)}),V6t=(e,t)=>qs.readlink(e).catch(r=>null).then(r=>{if(r)throw new Error("Refusing to write into a symlink");return t}),K6t=(e,t,r)=>G6t(e,r).then(n=>(r.strip>0&&(n=n.map(i=>(i.path=z6t(i.path,r.strip),i)).filter(i=>i.path!==".")),typeof r.filter=="function"&&(n=n.filter(r.filter)),typeof r.map=="function"&&(n=n.map(r.map)),t?Promise.all(n.map(i=>{let s=RC.join(t,i.path),o=i.mode&~process.umask(),a=new Date;return i.type==="directory"?mj(t).then(u=>qs.realpath(u)).then(u=>gj(s,u)).then(()=>qs.utimes(s,a,i.mtime)).then(()=>i):mj(t).then(u=>qs.realpath(u)).then(u=>gj(RC.dirname(s),u).then(()=>u)).then(u=>i.type==="file"?V6t(s,u):u).then(u=>qs.realpath(RC.dirname(s)).then(c=>{if(c.indexOf(u)!==0)throw new Error("Refusing to write outside output directory: "+c)})).then(()=>i.type==="link"||i.type==="symlink"&&process.platform==="win32"?qs.link(i.linkname,s):i.type==="symlink"?qs.symlink(i.linkname,s):qs.writeFile(s,i.data,{mode:o})).then(()=>i.type==="file"&&qs.utimes(s,a,i.mtime)).then(()=>i)})):n));MTe.exports=(e,t,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?Promise.reject(new TypeError("Input file required")):(typeof t=="object"&&(r=t,t=null),r=Object.assign({plugins:[B6t(),U6t(),W6t(),H6t()]},r),(typeof e=="string"?qs.readFile(e):Promise.resolve(e)).then(i=>K6t(i,t,r)))});var BTe=m((TEr,jTe)=>{"use strict";var X6t=/[|\\{}()[\]^$+*?.]/g;jTe.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(X6t,"\\$&")}});var yj=m((AEr,UTe)=>{"use strict";var Y6t=BTe();UTe.exports=function(e,t){if(typeof e!="string"||typeof t!="string")throw new TypeError("Expected a string");return e.replace(new RegExp("(?:"+Y6t(t)+"){2,}","g"),t)}});var _j=m((CEr,xj)=>{"use strict";xj.exports=()=>/[<>:"\/\\|?*\x00-\x1F]/g;xj.exports.windowsNames=()=>/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i});var HTe=m((REr,WTe)=>{"use strict";var Z6t=/[|\\{}()[\]^$+*?.]/g;WTe.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Z6t,"\\$&")}});var bj=m((OEr,$Te)=>{"use strict";var J6t=HTe();$Te.exports=function(e,t){if(typeof e!="string"||typeof t!="string")throw new TypeError;return t=J6t(t),e.replace(new RegExp("^"+t+"|"+t+"$","g"),"")}});var GTe=m((IEr,Ej)=>{"use strict";var OC=require("path"),Q6t=yj(),wj=_j(),ejt=bj(),tjt=100,zTe=/[\u0000-\u001f\u0080-\u009f]/g,rjt=/^\.+/,IC=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t.replacement===void 0?"!":t.replacement;if(wj().test(r)&&zTe.test(r))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(wj(),r),e=e.replace(zTe,r),e=e.replace(rjt,r),r.length>0&&(e=Q6t(e,r),e=e.length>1?ejt(e,r):e),e=wj.windowsNames().test(e)?e+r:e,e=e.slice(0,tjt),e};IC.path=(e,t)=>(e=OC.resolve(e),OC.join(OC.dirname(e),IC(OC.basename(e),t)));Ej.exports=IC;Ej.exports.default=IC});var KTe=m((NEr,VTe)=>{"use strict";var{PassThrough:njt}=require("stream");VTe.exports=e=>{e=Object.assign({},e);let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new njt({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var XTe=m((qEr,Bx)=>{"use strict";var ijt=Fk(),sjt=KTe(),NC=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};function Sj(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let{maxBuffer:r}=t,n;return new Promise((i,s)=>{let o=a=>{a&&(a.bufferedData=n.getBufferedValue()),s(a)};n=ijt(e,sjt(t),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new NC)})}).then(()=>n.getBufferedValue())}Bx.exports=Sj;Bx.exports.buffer=(e,t)=>Sj(e,Object.assign({},t,{encoding:"buffer"}));Bx.exports.array=(e,t)=>Sj(e,Object.assign({},t,{array:!0}));Bx.exports.MaxBufferError=NC});var ZTe=m((kEr,YTe)=>{"use strict";YTe.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}});var rAe=m((PEr,tAe)=>{"use strict";var eAe="%[a-f0-9]{2}",JTe=new RegExp("("+eAe+")|([^%]+?)","gi"),QTe=new RegExp("("+eAe+")+","gi");function Tj(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Tj(r),Tj(n))}function ojt(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(JTe)||[],r=1;r<t.length;r++)e=Tj(t,r).join(""),t=e.match(JTe)||[];return e}}function ajt(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=QTe.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ojt(r[0]);n!==r[0]&&(t[r[0]]=n)}r=QTe.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),s=0;s<i.length;s++){var o=i[s];e=e.replace(new RegExp(o,"g"),t[o])}return e}tAe.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return ajt(e)}}});var uAe=m(Ux=>{"use strict";var ujt=ZTe(),iAe=gC(),nAe=rAe();function cjt(e){switch(e.arrayFormat){case"index":return function(t,r,n){return r===null?[ks(t,e),"[",n,"]"].join(""):[ks(t,e),"[",ks(n,e),"]=",ks(r,e)].join("")};case"bracket":return function(t,r){return r===null?ks(t,e):[ks(t,e),"[]=",ks(r,e)].join("")};default:return function(t,r){return r===null?ks(t,e):[ks(t,e),"=",ks(r,e)].join("")}}}function ljt(e){var t;switch(e.arrayFormat){case"index":return function(r,n,i){if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return function(r,n,i){if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),t){if(i[r]===void 0){i[r]=[n];return}}else{i[r]=n;return}i[r]=[].concat(i[r],n)};default:return function(r,n,i){if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function ks(e,t){return t.encode?t.strict?ujt(e):encodeURIComponent(e):e}function sAe(e){return Array.isArray(e)?e.sort():typeof e=="object"?sAe(Object.keys(e)).sort(function(t,r){return Number(t)-Number(r)}).map(function(t){return e[t]}):e}function oAe(e){var t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function aAe(e,t){t=iAe({arrayFormat:"none"},t);var r=ljt(t),n=Object.create(null);return typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e)?n:(e.split("&").forEach(function(i){var s=i.replace(/\+/g," ").split("="),o=s.shift(),a=s.length>0?s.join("="):void 0;a=a===void 0?null:nAe(a),r(nAe(o),a,n)}),Object.keys(n).sort().reduce(function(i,s){var o=n[s];return o&&typeof o=="object"&&!Array.isArray(o)?i[s]=sAe(o):i[s]=o,i},Object.create(null)))}Ux.extract=oAe;Ux.parse=aAe;Ux.stringify=function(e,t){var r={encode:!0,strict:!0,arrayFormat:"none"};t=iAe(r,t),t.sort===!1&&(t.sort=function(){});var n=cjt(t);return e?Object.keys(e).sort(t.sort).map(function(i){var s=e[i];if(s===void 0)return"";if(s===null)return ks(i,t);if(Array.isArray(s)){var o=[];return s.slice().forEach(function(a){a!==void 0&&o.push(n(i,a,o.length))}),o.join("&")}return ks(i,t)+"="+ks(s,t)}).filter(function(i){return i.length>0}).join("&"):""};Ux.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:aAe(oAe(e),t)}}});var Aj=m((LEr,cAe)=>{"use strict";cAe.exports=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``);return e=e.trim(),t=Object.assign({https:!1},t),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")}});var Cj=m((FEr,lAe)=>{"use strict";var fjt=Object.prototype.toString;lAe.exports=function(e){var t;return fjt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var pAe=m((MEr,fAe)=>{"use strict";var Rj=Cj();fAe.exports=(e,t)=>{if(!Rj(e))throw new TypeError("Expected a plain object");if(t=t||{},typeof t=="function")throw new TypeError("Specify the compare function as an option instead");let r=t.deep,n=[],i=[],s=o=>{let a=n.indexOf(o);if(a!==-1)return i[a];let u={},c=Object.keys(o).sort(t.compare);n.push(o),i.push(u);for(let f=0;f<c.length;f++){let p=c[f],h=o[p];if(r&&Array.isArray(h)){let g=[];for(let v=0;v<h.length;v++)g[v]=Rj(h[v])?s(h[v]):h[v];u[p]=g;continue}u[p]=r&&Rj(h)?s(h):h}return u};return s(e)}});var gAe=m((jEr,mAe)=>{"use strict";var Oj=require("url"),pjt=require("punycode"),dAe=uAe(),djt=Aj(),hjt=pAe(),mjt={"http:":80,"https:":443,"ftp:":21},gjt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function hAe(e,t){return t.some(r=>r instanceof RegExp?r.test(e):r===e)}mAe.exports=(e,t)=>{if(t=Object.assign({normalizeProtocol:!0,normalizeHttps:!1,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),typeof e!="string")throw new TypeError("Expected a string");let r=e.startsWith("//");e=djt(e.trim()).replace(/^\/\//,"http://");let n=Oj.parse(e);if(t.normalizeHttps&&n.protocol==="https:"&&(n.protocol="http:"),!n.hostname&&!n.pathname)throw new Error("Invalid URL");delete n.host,delete n.query,t.stripFragment&&delete n.hash;let i=mjt[n.protocol];if(Number(n.port)===i&&delete n.port,n.pathname&&(n.pathname=n.pathname.replace(/\/{2,}/g,"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];hAe(a,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(gjt[n.protocol]){let o=n.protocol+"//"+n.hostname,a=Oj.resolve(o,n.pathname);n.pathname=a.replace(o,"")}n.hostname&&(n.hostname=pjt.toUnicode(n.hostname).toLowerCase(),n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&(n.hostname=n.hostname.replace(/^www\./,""))),n.search==="?"&&delete n.search;let s=dAe.parse(n.search);if(Array.isArray(t.removeQueryParameters))for(let o in s)hAe(o,t.removeQueryParameters)&&delete s[o];return t.sortQueryParameters&&(n.search=dAe.stringify(hjt(s))),n.search!==null&&(n.search=decodeURIComponent(n.search)),e=Oj.format(n),(t.removeTrailingSlash||n.pathname==="/")&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e}});var yAe=m((BEr,vAe)=>{"use strict";var vjt=require("stream").PassThrough;vAe.exports=e=>{e=Object.assign({},e);let t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new vjt({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var xAe=m((UEr,qC)=>{"use strict";var yjt=yAe();function Ij(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer,n,i,s=new Promise((o,a)=>{let u=c=>{c&&(c.bufferedData=n.getBufferedValue()),a(c)};n=yjt(t),e.once("error",u),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return s.then(i,i),s.then(()=>n.getBufferedValue())}qC.exports=Ij;qC.exports.buffer=(e,t)=>Ij(e,Object.assign({},t,{encoding:"buffer"}));qC.exports.array=(e,t)=>Ij(e,Object.assign({},t,{array:!0}))});var bAe=m((WEr,_Ae)=>{"use strict";function xjt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _jt=[200,203,204,206,300,301,404,405,410,414,501],bjt=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],wjt={connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Ejt={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Nj(e){var t={};if(!e)return t;for(var r=e.trim().split(/\s*,\s*/),s=r,n=Array.isArray(s),i=0,s=n?s:s[Symbol.iterator]();;){var o;if(n){if(i>=s.length)break;o=s[i++]}else{if(i=s.next(),i.done)break;o=i.value}var a=o,u=a.split(/\s*=\s*/,2),c=u[0],f=u[1];t[c]=f===void 0?!0:f.replace(/^"|"$/g,"")}return t}function Sjt(e){var t=[];for(var r in e){var n=e[r];t.push(n===!0?r:r+"="+n)}if(t.length)return t.join(", ")}_Ae.exports=function(){function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.shared,s=n.cacheHeuristic,o=n.immutableMinTimeToLive,a=n.ignoreCargoCult,u=n._fromObject;if(xjt(this,e),u){this._fromObject(u);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=i!==!1,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=o!==void 0?o:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Nj(r.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=r.headers.vary?t.headers:null,this._reqcc=Nj(t.headers["cache-control"]),a&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Sjt(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!r.headers["cache-control"]&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}return e.prototype.now=function(){return Date.now()},e.prototype.storable=function(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&bjt.indexOf(this._status)!==-1&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||_jt.indexOf(this._status)!==-1))},e.prototype._hasExplicitExpiration=function(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires},e.prototype._assertRequestHasHeaders=function(r){if(!r||!r.headers)throw Error("Request headers missing")},e.prototype.satisfiesWithoutRevalidation=function(r){this._assertRequestHasHeaders(r);var n=Nj(r.headers["cache-control"]);if(n["no-cache"]||/no-cache/.test(r.headers.pragma)||n["max-age"]&&this.age()>n["max-age"]||n["min-fresh"]&&this.timeToLive()<1e3*n["min-fresh"])return!1;if(this.stale()){var i=n["max-stale"]&&!this._rescc["must-revalidate"]&&(n["max-stale"]===!0||n["max-stale"]>this.age()-this.maxAge());if(!i)return!1}return this._requestMatches(r,!1)},e.prototype._requestMatches=function(r,n){return(!this._url||this._url===r.url)&&this._host===r.headers.host&&(!r.method||this._method===r.method||n&&r.method==="HEAD")&&this._varyMatches(r)},e.prototype._allowsStoringAuthenticated=function(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]},e.prototype._varyMatches=function(r){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;for(var n=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/),o=n,i=Array.isArray(o),s=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if(s=o.next(),s.done)break;a=s.value}var u=a;if(r.headers[u]!==this._reqHeaders[u])return!1}return!0},e.prototype._copyWithoutHopByHopHeaders=function(r){var n={};for(var i in r)wjt[i]||(n[i]=r[i]);if(r.connection)for(var s=r.connection.trim().split(/\s*,\s*/),u=s,o=Array.isArray(u),a=0,u=o?u:u[Symbol.iterator]();;){var c;if(o){if(a>=u.length)break;c=u[a++]}else{if(a=u.next(),a.done)break;c=a.value}var f=c;delete n[f]}if(n.warning){var p=n.warning.split(/,/).filter(function(h){return!/^\s*1[0-9][0-9]/.test(h)});p.length?n.warning=p.join(",").trim():delete n.warning}return n},e.prototype.responseHeaders=function(){var r=this._copyWithoutHopByHopHeaders(this._resHeaders),n=this.age();return n>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(r.warning=(r.warning?`${r.warning}, `:"")+'113 - "rfc7234 5.5.4"'),r.age=`${Math.round(n)}`,r},e.prototype.date=function(){var r=Date.parse(this._resHeaders.date),n=8*3600*1e3;return Number.isNaN(r)||r<this._responseTime-n||r>this._responseTime+n?this._responseTime:r},e.prototype.age=function(){var r=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var n=this._ageValue();n>r&&(r=n)}var i=(this.now()-this._responseTime)/1e3;return r+i},e.prototype._ageValue=function(){var r=parseInt(this._resHeaders.age);return isFinite(r)?r:0},e.prototype.maxAge=function(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);var r=this._rescc.immutable?this._immutableMinTtl:0,n=this.date();if(this._resHeaders.expires){var i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<n?0:Math.max(r,(i-n)/1e3)}if(this._resHeaders["last-modified"]){var s=Date.parse(this._resHeaders["last-modified"]);if(isFinite(s)&&n>s)return Math.max(r,(n-s)/1e3*this._cacheHeuristic)}return r},e.prototype.timeToLive=function(){return Math.max(0,this.maxAge()-this.age())*1e3},e.prototype.stale=function(){return this.maxAge()<=this.age()},e.fromObject=function(r){return new this(void 0,void 0,{_fromObject:r})},e.prototype._fromObject=function(r){if(this._responseTime)throw Error("Reinitialized");if(!r||r.v!==1)throw Error("Invalid serialization");this._responseTime=r.t,this._isShared=r.sh,this._cacheHeuristic=r.ch,this._immutableMinTtl=r.imm!==void 0?r.imm:24*3600*1e3,this._status=r.st,this._resHeaders=r.resh,this._rescc=r.rescc,this._method=r.m,this._url=r.u,this._host=r.h,this._noAuthorization=r.a,this._reqHeaders=r.reqh,this._reqcc=r.reqcc},e.prototype.toObject=function(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}},e.prototype.revalidationHeaders=function(r){this._assertRequestHasHeaders(r);var n=this._copyWithoutHopByHopHeaders(r.headers);if(delete n["if-range"],!this._requestMatches(r,!0)||!this.storable())return delete n["if-none-match"],delete n["if-modified-since"],n;this._resHeaders.etag&&(n["if-none-match"]=n["if-none-match"]?`${n["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag);var i=n["accept-ranges"]||n["if-match"]||n["if-unmodified-since"]||this._method&&this._method!="GET";if(i){if(delete n["if-modified-since"],n["if-none-match"]){var s=n["if-none-match"].split(/,/).filter(function(o){return!/^\s*W\//.test(o)});s.length?n["if-none-match"]=s.join(",").trim():delete n["if-none-match"]}}else this._resHeaders["last-modified"]&&!n["if-modified-since"]&&(n["if-modified-since"]=this._resHeaders["last-modified"]);return n},e.prototype.revalidatedPolicy=function(r,n){if(this._assertRequestHasHeaders(r),!n||!n.headers)throw Error("Response headers missing");var i=!1;if(n.status!==void 0&&n.status!=304?i=!1:n.headers.etag&&!/^\s*W\//.test(n.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===n.headers.etag:this._resHeaders.etag&&n.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===n.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===n.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!n.headers.etag&&!n.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(r,n),modified:!0};var s={};for(var o in this._resHeaders)s[o]=o in n.headers&&!Ejt[o]?n.headers[o]:this._resHeaders[o];var a=Object.assign({},n,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(r,a),modified:!1}},e}()});var qj=m((HEr,wAe)=>{"use strict";wAe.exports=function(e){for(var t={},r=Object.keys(Object(e)),n=0;n<r.length;n++)t[r[n].toLowerCase()]=e[r[n]];return t}});var SAe=m(($Er,EAe)=>{"use strict";var Tjt=require("stream").Readable,Ajt=qj(),kj=class extends Tjt{constructor(t,r,n,i){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=Ajt(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};EAe.exports=kj});var AAe=m((zEr,TAe)=>{"use strict";TAe.exports=function(e){for(var t={},r=Object.keys(Object(e)),n=0;n<r.length;n++)t[r[n].toLowerCase()]=e[r[n]];return t}});var kC=m((GEr,CAe)=>{"use strict";var Cjt=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];CAe.exports=(e,t)=>{let r=new Set(Object.keys(e).concat(Cjt));for(let n of r)n in t||(t[n]=typeof e[n]=="function"?e[n].bind(e):e[n])}});var OAe=m((VEr,RAe)=>{"use strict";var Rjt=require("stream").PassThrough,Ojt=kC(),Ijt=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new Rjt;return Ojt(e,t),e.pipe(t)};RAe.exports=Ijt});var IAe=m(Pj=>{Pj.stringify=function e(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var r="",n=Array.isArray(t);r=n?"[":"{";var i=!0;for(var s in t){var o=typeof t[s]=="function"||!n&&typeof t[s]>"u";Object.hasOwnProperty.call(t,s)&&!o&&(i||(r+=","),i=!1,n?t[s]==null?r+="null":r+=e(t[s]):t[s]!==void 0&&(r+=e(s)+":"+e(t[s])))}return r+=n?"]":"}",r}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)};Pj.parse=function(e){return JSON.parse(e,function(t,r){return typeof r=="string"?/^:base64:/.test(r)?new Buffer(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var kAe=m((XEr,qAe)=>{"use strict";var Njt=require("events"),NAe=IAe(),qjt=e=>{let t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){let r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map},Dj=class extends Njt{constructor(t,r){if(super(),this.opts=Object.assign({namespace:"keyv"},typeof t=="string"?{uri:t}:t,r),!this.opts.store){let n=Object.assign({},this.opts);this.opts.store=qjt(n)}typeof this.opts.store.on=="function"&&this.opts.store.on("error",n=>this.emit("error",n)),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}get(t){t=this._getKeyPrefix(t);let r=this.opts.store;return Promise.resolve().then(()=>r.get(t)).then(n=>{if(n=typeof n=="string"?NAe.parse(n):n,n!==void 0){if(typeof n.expires=="number"&&Date.now()>n.expires){this.delete(t);return}return n.value}})}set(t,r,n){t=this._getKeyPrefix(t),typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let i=this.opts.store;return Promise.resolve().then(()=>{let s=typeof n=="number"?Date.now()+n:null;return r={value:r,expires:s},i.set(t,NAe.stringify(r),n)}).then(()=>!0)}delete(t){t=this._getKeyPrefix(t);let r=this.opts.store;return Promise.resolve().then(()=>r.delete(t))}clear(){let t=this.opts.store;return Promise.resolve().then(()=>t.clear())}};qAe.exports=Dj});var FAe=m((YEr,LAe)=>{"use strict";var kjt=require("events"),PAe=require("url"),Pjt=gAe(),Djt=xAe(),Lj=bAe(),DAe=SAe(),Ljt=AAe(),Fjt=OAe(),Mjt=kAe(),ea=class{constructor(t,r){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new Mjt({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(r,n)=>{typeof r=="string"&&(r=PAe.parse(r)),r=Object.assign({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},r),r.headers=Ljt(r.headers);let i=new kjt,s=Pjt(PAe.format(r)),o=`${r.method}:${s}`,a=!1,u=!1,c=p=>{u=!0;let h=g=>{if(a){let _=Lj.fromObject(a.cachePolicy).revalidatedPolicy(p,g);if(!_.modified){let w=_.policy.responseHeaders();g=new DAe(g.statusCode,w,a.body,a.url),g.cachePolicy=_.policy,g.fromCache=!0}}g.fromCache||(g.cachePolicy=new Lj(p,g),g.fromCache=!1);let v;p.cache&&g.cachePolicy.storable()?(v=Fjt(g),Djt.buffer(g).then(_=>{let w={cachePolicy:g.cachePolicy.toObject(),url:g.url,statusCode:g.fromCache?a.statusCode:g.statusCode,body:_},y=p.strictTtl?g.cachePolicy.timeToLive():void 0;return this.cache.set(o,w,y)}).catch(_=>i.emit("error",new ea.CacheError(_)))):p.cache&&a&&this.cache.delete(o).catch(_=>i.emit("error",new ea.CacheError(_))),i.emit("response",v||g),typeof n=="function"&&n(v||g)};try{let g=t(p,h);i.emit("request",g)}catch(g){i.emit("error",new ea.RequestError(g))}},f=p=>Promise.resolve().then(()=>p.cache?this.cache.get(o):void 0).then(h=>{if(typeof h>"u")return c(p);let g=Lj.fromObject(h.cachePolicy);if(g.satisfiesWithoutRevalidation(p)){let v=g.responseHeaders(),_=new DAe(h.statusCode,v,h.body,h.url);_.cachePolicy=g,_.fromCache=!0,i.emit("response",_),typeof n=="function"&&n(_)}else a=h,p.headers=g.revalidationHeaders(p),c(p)});return this.cache.on("error",p=>i.emit("error",new ea.CacheError(p))),f(r).catch(p=>{r.automaticFailover&&!u&&c(r),i.emit("error",new ea.CacheError(p))}),i}}};ea.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};ea.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};LAe.exports=ea});var MAe=m((QEr,Mj)=>{"use strict";var Fj=require("stream");function fg(e,t,r){typeof r>"u"&&(r=t,t=e,e=null),Fj.Duplex.call(this,e),typeof r.read!="function"&&(r=new Fj.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var n=this;t.once("finish",function(){n.end()}),this.once("finish",function(){t.end()}),r.on("readable",function(){n._waiting&&(n._waiting=!1,n._read())}),r.once("end",function(){n.push(null)}),(!e||typeof e.bubbleErrors>"u"||e.bubbleErrors)&&(t.on("error",function(i){n.emit("error",i)}),r.on("error",function(i){n.emit("error",i)}))}fg.prototype=Object.create(Fj.Duplex.prototype,{constructor:{value:fg}});fg.prototype._write=function(t,r,n){this._writable.write(t,r,n)};fg.prototype._read=function(){for(var t,r=0;(t=this._readable.read())!==null;)this.push(t),r++;r===0&&(this._waiting=!0)};Mj.exports=function(t,r,n){return new fg(t,r,n)};Mj.exports.DuplexWrapper=fg});var jj=m((eSr,jAe)=>{jAe.exports=require("stream")});var UAe=m((tSr,Bj)=>{"use strict";function jjt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var BAe=vo().Buffer,Wx=require("util");function Bjt(e,t,r){e.copy(t,r)}Bj.exports=function(){function e(){jjt(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return BAe.alloc(0);for(var n=BAe.allocUnsafe(r>>>0),i=this.head,s=0;i;)Bjt(i.data,n,s),s+=i.data.length,i=i.next;return n},e}();Wx&&Wx.inspect&&Wx.inspect.custom&&(Bj.exports.prototype[Wx.inspect.custom]=function(){var e=Wx.inspect({length:this.length});return this.constructor.name+" "+e})});var Uj=m((rSr,WAe)=>{"use strict";var PC=rc();function Ujt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,PC.nextTick(DC,this,e)):PC.nextTick(DC,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,PC.nextTick(DC,r,s)):PC.nextTick(DC,r,s):t&&t(s)}),this)}function Wjt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function DC(e,t){e.emit("error",t)}WAe.exports={destroy:Ujt,undestroy:Wjt}});var Hj=m((nSr,YAe)=>{"use strict";var Bp=rc();YAe.exports=dn;function $Ae(e){var t=this;this.next=null,this.entry=null,this.finish=function(){oBt(t,e)}}var Hjt=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Bp.nextTick,pg;dn.WritableState=$x;var zAe=Object.create(Jo());zAe.inherits=Pn();var $jt={deprecate:Hw()},GAe=jj(),FC=vo().Buffer,zjt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Gjt(e){return FC.from(e)}function Vjt(e){return FC.isBuffer(e)||e instanceof zjt}var VAe=Uj();zAe.inherits(dn,GAe);function Kjt(){}function $x(e,t){pg=pg||Up(),e=e||{};var r=t instanceof pg;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){tBt(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new $Ae(this)}$x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty($x.prototype,"buffer",{get:$jt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var LC;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(LC=Function.prototype[Symbol.hasInstance],Object.defineProperty(dn,Symbol.hasInstance,{value:function(e){return LC.call(this,e)?!0:this!==dn?!1:e&&e._writableState instanceof $x}})):LC=function(e){return e instanceof this};function dn(e){if(pg=pg||Up(),!LC.call(dn,this)&&!(this instanceof pg))return new dn(e);this._writableState=new $x(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),GAe.call(this)}dn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Xjt(e,t){var r=new Error("write after end");e.emit("error",r),Bp.nextTick(t,r)}function Yjt(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),Bp.nextTick(n,s),i=!1),i}dn.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&Vjt(e);return s&&!FC.isBuffer(e)&&(e=Gjt(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Kjt),n.ended?Xjt(this,r):(s||Yjt(this,n,e,r))&&(n.pendingcb++,i=Jjt(this,n,s,e,t,r)),i};dn.prototype.cork=function(){var e=this._writableState;e.corked++};dn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&KAe(this,e))};dn.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Zjt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=FC.from(t,r)),t}Object.defineProperty(dn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Jjt(e,t,r,n,i,s){if(!r){var o=Zjt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Wj(e,t,!1,a,n,i,s);return u}function Wj(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Qjt(e,t,r,n,i){--t.pendingcb,r?(Bp.nextTick(i,n),Bp.nextTick(Hx,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),Hx(e,t))}function eBt(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function tBt(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(eBt(r),t)Qjt(e,r,n,t,i);else{var s=XAe(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&KAe(e,r),n?Hjt(HAe,e,r,s,i):HAe(e,r,s,i)}}function HAe(e,t,r,n){r||rBt(e,t),t.pendingcb--,n(),Hx(e,t)}function rBt(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function KAe(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Wj(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new $Ae(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback,p=t.objectMode?1:u.length;if(Wj(e,t,!1,p,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}dn.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};dn.prototype._writev=null;dn.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||sBt(this,n,r)};function XAe(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function nBt(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Hx(e,t)})}function iBt(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Bp.nextTick(nBt,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Hx(e,t){var r=XAe(t);return r&&(iBt(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function sBt(e,t,r){t.ending=!0,Hx(e,t),r&&(t.finished?Bp.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function oBt(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(dn.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});dn.prototype.destroy=VAe.destroy;dn.prototype._undestroy=VAe.undestroy;dn.prototype._destroy=function(e,t){this.end(),t(e)}});var Up=m((iSr,eCe)=>{"use strict";var ZAe=rc(),aBt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};eCe.exports=cc;var JAe=Object.create(Jo());JAe.inherits=Pn();var QAe=Gj(),zj=Hj();JAe.inherits(cc,QAe);for($j=aBt(zj.prototype),MC=0;MC<$j.length;MC++)jC=$j[MC],cc.prototype[jC]||(cc.prototype[jC]=zj.prototype[jC]);var $j,jC,MC;function cc(e){if(!(this instanceof cc))return new cc(e);QAe.call(this,e),zj.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",uBt)}Object.defineProperty(cc.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uBt(){this.allowHalfOpen||this._writableState.ended||ZAe.nextTick(cBt,this)}function cBt(e){e.end()}Object.defineProperty(cc.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});cc.prototype._destroy=function(e,t){this.push(null),this.end(),ZAe.nextTick(t,e)}});var Xj=m(rCe=>{"use strict";var Kj=vo().Buffer,tCe=Kj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function lBt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function fBt(e){var t=lBt(e);if(typeof t!="string"&&(Kj.isEncoding===tCe||!tCe(e)))throw new Error("Unknown encoding: "+e);return t||e}rCe.StringDecoder=zx;function zx(e){this.encoding=fBt(e);var t;switch(this.encoding){case"utf16le":this.text=vBt,this.end=yBt,t=4;break;case"utf8":this.fillLast=hBt,t=4;break;case"base64":this.text=xBt,this.end=_Bt,t=3;break;default:this.write=bBt,this.end=wBt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Kj.allocUnsafe(t)}zx.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};zx.prototype.end=gBt;zx.prototype.text=mBt;zx.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Vj(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function pBt(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Vj(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Vj(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Vj(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function dBt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function hBt(e){var t=this.lastTotal-this.lastNeed,r=dBt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function mBt(e,t){var r=pBt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function gBt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function vBt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function yBt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function xBt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function _Bt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function bBt(e){return e.toString(this.encoding)}function wBt(e){return e&&e.length?this.write(e):""}});var Gj=m((aSr,hCe)=>{"use strict";var hg=rc();hCe.exports=br;var EBt=S6(),Gx;br.ReadableState=cCe;var oSr=require("events").EventEmitter,oCe=function(e,t){return e.listeners(t).length},eB=jj(),Vx=vo().Buffer,SBt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function TBt(e){return Vx.from(e)}function ABt(e){return Vx.isBuffer(e)||e instanceof SBt}var aCe=Object.create(Jo());aCe.inherits=Pn();var Yj=require("util"),Ht=void 0;Yj&&Yj.debuglog?Ht=Yj.debuglog("stream"):Ht=function(){};var CBt=UAe(),uCe=Uj(),dg;aCe.inherits(br,eB);var Zj=["error","close","destroy","pause","resume"];function RBt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):EBt(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function cCe(e,t){Gx=Gx||Up(),e=e||{};var r=t instanceof Gx;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new CBt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(dg||(dg=Xj().StringDecoder),this.decoder=new dg(e.encoding),this.encoding=e.encoding)}function br(e){if(Gx=Gx||Up(),!(this instanceof br))return new br(e);this._readableState=new cCe(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),eB.call(this)}Object.defineProperty(br.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});br.prototype.destroy=uCe.destroy;br.prototype._undestroy=uCe.undestroy;br.prototype._destroy=function(e,t){this.push(null),t(e)};br.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Vx.from(e,t),t=""),n=!0),lCe(this,e,t,!1,n)};br.prototype.unshift=function(e){return lCe(this,e,null,!0,!1)};function lCe(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,qBt(e,s);else{var o;i||(o=OBt(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Vx.prototype&&(t=TBt(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Jj(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Jj(e,s,t,!1):fCe(e,s)):Jj(e,s,t,!1))):n||(s.reading=!1)}return IBt(s)}function Jj(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&BC(e)),fCe(e,t)}function OBt(e,t){var r;return!ABt(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function IBt(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}br.prototype.isPaused=function(){return this._readableState.flowing===!1};br.prototype.setEncoding=function(e){return dg||(dg=Xj().StringDecoder),this._readableState.decoder=new dg(e),this._readableState.encoding=e,this};var nCe=8388608;function NBt(e){return e>=nCe?e=nCe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function iCe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=NBt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}br.prototype.read=function(e){Ht("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Ht("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Qj(this):BC(this),null;if(e=iCe(e,t),e===0&&t.ended)return t.length===0&&Qj(this),null;var n=t.needReadable;Ht("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Ht("length less than watermark",n)),t.ended||t.reading?(n=!1,Ht("reading or ended",n)):n&&(Ht("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=iCe(r,t)));var i;return e>0?i=pCe(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Qj(this)),i!==null&&this.emit("data",i),i};function qBt(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,BC(e)}}function BC(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Ht("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?hg.nextTick(sCe,e):sCe(e))}function sCe(e){Ht("emit readable"),e.emit("readable"),tB(e)}function fCe(e,t){t.readingMore||(t.readingMore=!0,hg.nextTick(kBt,e,t))}function kBt(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Ht("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}br.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};br.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Ht("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:w;n.endEmitted?hg.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(y,b){Ht("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){Ht("onend"),e.end()}var u=PBt(r);e.on("drain",u);var c=!1;function f(){Ht("cleanup"),e.removeListener("close",v),e.removeListener("finish",_),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var p=!1;r.on("data",h);function h(y){Ht("ondata"),p=!1;var b=e.write(y);b===!1&&!p&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&dCe(n.pipes,e)!==-1)&&!c&&(Ht("false write response, pause",n.awaitDrain),n.awaitDrain++,p=!0),r.pause())}function g(y){Ht("onerror",y),w(),e.removeListener("error",g),oCe(e,"error")===0&&e.emit("error",y)}RBt(e,"error",g);function v(){e.removeListener("finish",_),w()}e.once("close",v);function _(){Ht("onfinish"),e.removeListener("close",v),w()}e.once("finish",_);function w(){Ht("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Ht("pipe resume"),r.resume()),e};function PBt(e){return function(){var t=e._readableState;Ht("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&oCe(e,"data")&&(t.flowing=!0,tB(e))}}br.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=dCe(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};br.prototype.on=function(e,t){var r=eB.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&BC(this):hg.nextTick(DBt,this))}return r};br.prototype.addListener=br.prototype.on;function DBt(e){Ht("readable nexttick read 0"),e.read(0)}br.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ht("resume"),e.flowing=!0,LBt(this,e)),this};function LBt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,hg.nextTick(FBt,e,t))}function FBt(e,t){t.reading||(Ht("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),tB(e),t.flowing&&!t.reading&&e.read(0)}br.prototype.pause=function(){return Ht("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ht("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function tB(e){var t=e._readableState;for(Ht("flow",t.flowing);t.flowing&&e.read()!==null;);}br.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Ht("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Ht("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(o){return function(){return e[o].apply(e,arguments)}}(i));for(var s=0;s<Zj.length;s++)e.on(Zj[s],this.emit.bind(this,Zj[s]));return this._read=function(o){Ht("wrapped _read",o),n&&(n=!1,e.resume())},this};Object.defineProperty(br.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});br._fromList=pCe;function pCe(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=MBt(e,t.buffer,t.decoder),r}function MBt(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?jBt(e,t):BBt(e,t),n}function jBt(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),e-=o,e===0){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function BBt(e,t){var r=Vx.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),e-=o,e===0){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}function Qj(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,hg.nextTick(UBt,t,e))}function UBt(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function dCe(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var rB=m((uSr,vCe)=>{"use strict";vCe.exports=lc;var UC=Up(),gCe=Object.create(Jo());gCe.inherits=Pn();gCe.inherits(lc,UC);function WBt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function lc(e){if(!(this instanceof lc))return new lc(e);UC.call(this,e),this._transformState={afterTransform:WBt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",HBt)}function HBt(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){mCe(e,t,r)}):mCe(this,null,null)}lc.prototype.push=function(e,t){return this._transformState.needTransform=!1,UC.prototype.push.call(this,e,t)};lc.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};lc.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};lc.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};lc.prototype._destroy=function(e,t){var r=this;UC.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function mCe(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var bCe=m((cSr,_Ce)=>{"use strict";_Ce.exports=Kx;var yCe=rB(),xCe=Object.create(Jo());xCe.inherits=Pn();xCe.inherits(Kx,yCe);function Kx(e){if(!(this instanceof Kx))return new Kx(e);yCe.call(this,e)}Kx.prototype._transform=function(e,t,r){r(null,e)}});var wCe=m((ci,WC)=>{var Xa=require("stream");process.env.READABLE_STREAM==="disable"&&Xa?(WC.exports=Xa,ci=WC.exports=Xa.Readable,ci.Readable=Xa.Readable,ci.Writable=Xa.Writable,ci.Duplex=Xa.Duplex,ci.Transform=Xa.Transform,ci.PassThrough=Xa.PassThrough,ci.Stream=Xa):(ci=WC.exports=Gj(),ci.Stream=Xa||ci,ci.Readable=ci,ci.Writable=Hj(),ci.Duplex=Up(),ci.Transform=rB(),ci.PassThrough=bCe())});var RCe=m((lSr,CCe)=>{var ECe=wCe().Readable,$Bt=Pn();CCe.exports=HC;HC.ctor=SCe;HC.obj=VBt;var zBt=SCe();function GBt(e){return e=e.slice(),function(t,r){var n=null,i=e.length?e.shift():null;i instanceof Error&&(n=i,i=null),r(n,i)}}function HC(e,t){(typeof e!="object"||Array.isArray(e))&&(t=e,e={});var r=new zBt(e);return r._from=Array.isArray(t)?GBt(t):t||TCe,r}function SCe(e,t){typeof e=="function"&&(t=e,e={}),e=ACe(e),$Bt(r,ECe);function r(n){if(!(this instanceof r))return new r(n);this._reading=!1,this._callback=o,this.destroyed=!1,ECe.call(this,n||e);var i=this,s=this._readableState.highWaterMark;function o(a,u){if(!i.destroyed){if(a)return i.destroy(a);if(u===null)return i.push(null);i._reading=!1,i.push(u)&&i._read(s)}}}return r.prototype._from=t||TCe,r.prototype._read=function(n){this._reading||this.destroyed||(this._reading=!0,this._from(n,this._callback))},r.prototype.destroy=function(n){if(!this.destroyed){this.destroyed=!0;var i=this;process.nextTick(function(){n&&i.emit("error",n),i.emit("close")})}},r}function VBt(e,t){return(typeof e=="function"||Array.isArray(e))&&(t=e,e={}),e=ACe(e),e.objectMode=!0,e.highWaterMark=16,HC(e,t)}function TCe(){}function ACe(e){return e=e||{},e}});var ICe=m((fSr,OCe)=>{"use strict";OCe.exports=e=>e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"});var kCe=m((pSr,nB)=>{"use strict";var NCe=RCe(),qCe=ICe();nB.exports=e=>{Array.isArray(e)&&(e=e.slice());let t,r;n(e);function n(i){e=i,t=qCe(e)?e:null,r=!t&&e[Symbol.iterator]&&typeof e!="string"&&!Buffer.isBuffer(e)?e[Symbol.iterator]():null}return NCe(function i(s,o){if(t){t.then(n).then(()=>i.call(this,s,o),o);return}if(r){let u=r.next();setImmediate(o,null,u.done?null:u.value);return}if(e.length===0){setImmediate(o,null,null);return}let a=e.slice(0,s);e=e.slice(s),setImmediate(o,null,a)})};nB.exports.obj=e=>{Array.isArray(e)&&(e=e.slice());let t,r;n(e);function n(i){e=i,t=qCe(e)?e:null,r=!t&&e[Symbol.iterator]?e[Symbol.iterator]():null}return NCe.obj(function i(s,o){if(t){t.then(n).then(()=>i.call(this,s,o),o);return}if(r){let a=r.next();setImmediate(o,null,a.done?null:a.value);return}this.push(e),setImmediate(o,null,null)})}});var oB=m((iB,sB)=>{"use strict";Object.defineProperty(iB,"__esModule",{value:!0});var PCe=require("util"),KBt=Object.prototype.toString,Xx=e=>t=>typeof t===e,$C=e=>{let t=KBt.call(e).slice(8,-1);return t||null},hn=e=>t=>$C(t)===e;function Ya(e){if(e===null)return"null";if(e===!0||e===!1)return"boolean";let t=typeof e;if(t==="undefined")return"undefined";if(t==="string")return"string";if(t==="number")return"number";if(t==="symbol")return"symbol";if(Ya.function_(e))return"Function";if(Array.isArray(e))return"Array";if(Buffer.isBuffer(e))return"Buffer";let r=$C(e);if(r)return r;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}(function(e){let t=y=>typeof y=="object";e.undefined=Xx("undefined"),e.string=Xx("string"),e.number=Xx("number"),e.function_=Xx("function"),e.null_=y=>y===null,e.class_=y=>e.function_(y)&&y.toString().startsWith("class "),e.boolean=y=>y===!0||y===!1,e.symbol=Xx("symbol"),e.array=Array.isArray,e.buffer=Buffer.isBuffer,e.nullOrUndefined=y=>e.null_(y)||e.undefined(y),e.object=y=>!e.nullOrUndefined(y)&&(e.function_(y)||t(y)),e.iterable=y=>!e.nullOrUndefined(y)&&e.function_(y[Symbol.iterator]),e.generator=y=>e.iterable(y)&&e.function_(y.next)&&e.function_(y.throw),e.nativePromise=hn("Promise");let r=y=>!e.null_(y)&&t(y)&&e.function_(y.then)&&e.function_(y.catch);e.promise=y=>e.nativePromise(y)||r(y);let n=y=>b=>e.function_(b)&&e.function_(b.constructor)&&b.constructor.name===y;e.generatorFunction=n("GeneratorFunction"),e.asyncFunction=n("AsyncFunction"),e.boundFunction=y=>e.function_(y)&&!y.hasOwnProperty("prototype"),e.regExp=hn("RegExp"),e.date=hn("Date"),e.error=hn("Error"),e.map=hn("Map"),e.set=hn("Set"),e.weakMap=hn("WeakMap"),e.weakSet=hn("WeakSet"),e.int8Array=hn("Int8Array"),e.uint8Array=hn("Uint8Array"),e.uint8ClampedArray=hn("Uint8ClampedArray"),e.int16Array=hn("Int16Array"),e.uint16Array=hn("Uint16Array"),e.int32Array=hn("Int32Array"),e.uint32Array=hn("Uint32Array"),e.float32Array=hn("Float32Array"),e.float64Array=hn("Float64Array"),e.arrayBuffer=hn("ArrayBuffer"),e.sharedArrayBuffer=hn("SharedArrayBuffer"),e.dataView=hn("DataView"),e.directInstanceOf=(y,b)=>e.object(y)&&e.object(b)&&Object.getPrototypeOf(y)===b.prototype,e.truthy=y=>!!y,e.falsy=y=>!y,e.nan=y=>Number.isNaN(y);let i=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=y=>e.null_(y)||i.has(typeof y),e.integer=y=>Number.isInteger(y),e.safeInteger=y=>Number.isSafeInteger(y),e.plainObject=y=>{let b;return $C(y)==="Object"&&(b=Object.getPrototypeOf(y),b===null||b===Object.getPrototypeOf({}))};let s=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=y=>{let b=$C(y);return b===null?!1:s.has(b)};let o=y=>e.safeInteger(y)&&y>-1;e.arrayLike=y=>!e.nullOrUndefined(y)&&!e.function_(y)&&o(y.length),e.inRange=(y,b)=>{if(e.number(b))return y>=Math.min(0,b)&&y<=Math.max(b,0);if(e.array(b)&&b.length===2)return y>=Math.min.apply(null,b)&&y<=Math.max.apply(null,b);throw new TypeError(`Invalid range: ${PCe.inspect(b)}`)};let a=1,u=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=y=>e.object(y)&&y.nodeType===a&&e.string(y.nodeName)&&!e.plainObject(y)&&u.every(b=>b in y),e.nodeStream=y=>!e.nullOrUndefined(y)&&t(y)&&e.function_(y.pipe),e.infinite=y=>y===1/0||y===-1/0;let c=y=>b=>e.integer(b)&&Math.abs(b%2)===y;e.even=c(0),e.odd=c(1);let f=y=>e.string(y)&&/\S/.test(y)===!1,p=y=>(e.string(y)||e.array(y))&&y.length===0,h=y=>!e.map(y)&&!e.set(y)&&e.object(y)&&Object.keys(y).length===0,g=y=>(e.map(y)||e.set(y))&&y.size===0;e.empty=y=>e.falsy(y)||p(y)||h(y)||g(y),e.emptyOrWhitespace=y=>e.empty(y)||f(y);let v=(y,b,S)=>{let T=Array.prototype.slice.call(S,1);if(e.function_(b)===!1)throw new TypeError(`Invalid predicate: ${PCe.inspect(b)}`);if(T.length===0)throw new TypeError("Invalid number of values");return y.call(T,b)};function _(y){return v(Array.prototype.some,y,arguments)}e.any=_;function w(y){return v(Array.prototype.every,y,arguments)}e.all=w})(Ya||(Ya={}));Object.defineProperties(Ya,{class:{value:Ya.class_},function:{value:Ya.function_},null:{value:Ya.null_}});iB.default=Ya;sB.exports=Ya;sB.exports.default=Ya});var LCe=m((dSr,DCe)=>{"use strict";var XBt=require("stream").PassThrough;DCe.exports=e=>{e=Object.assign({},e);let t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new XBt({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var FCe=m((hSr,zC)=>{"use strict";var YBt=LCe();function aB(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer,n,i,s=new Promise((o,a)=>{let u=c=>{c&&(c.bufferedData=n.getBufferedValue()),a(c)};n=YBt(t),e.once("error",u),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return s.then(i,i),s.then(()=>n.getBufferedValue())}zC.exports=aB;zC.exports.buffer=(e,t)=>aB(e,Object.assign({},t,{encoding:"buffer"}));zC.exports.array=(e,t)=>aB(e,Object.assign({},t,{array:!0}))});var jCe=m((mSr,MCe)=>{"use strict";MCe.exports=function(e,t){if(e.timeoutTimer)return e;var r=isNaN(t)?t:{socket:t,connect:t},n=e._headers?" to "+e._headers.host:"";r.connect!==void 0&&(e.timeoutTimer=setTimeout(function(){e.abort();var a=new Error("Connection timed out on request"+n);a.code="ETIMEDOUT",e.emit("error",a)},r.connect)),e.on("socket",function(a){if(!(a.connecting||a._connecting)){s();return}a.once("connect",s)});function i(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function s(){i(),r.socket!==void 0&&e.setTimeout(r.socket,function(){e.abort();var a=new Error("Socket timed out on request"+n);a.code="ESOCKETTIMEDOUT",e.emit("error",a)})}return e.on("error",i)}});var UCe=m((gSr,BCe)=>{"use strict";var ZBt=require("url"),JBt=Aj();BCe.exports=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);let r=JBt(e,Object.assign({https:!0},t));return ZBt.parse(r)}});var uB=m((vSr,WCe)=>{"use strict";function QBt(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return e.port!==""&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}WCe.exports=QBt});var $Ce=m((ySr,HCe)=>{"use strict";var eUt=require("stream").PassThrough,tUt=require("zlib"),rUt=kC();HCe.exports=e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1)return e;let t=tUt.createUnzip(),r=new eUt;return rUt(e,r),t.on("error",n=>{if(n.code==="Z_BUF_ERROR"){r.end();return}r.emit("error",n)}),e.pipe(t).pipe(r),r}});var GCe=m((xSr,zCe)=>{"use strict";var nUt=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],iUt=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];zCe.exports=function(e){return!e||!e.code||nUt.indexOf(e.code)!==-1?!0:iUt.indexOf(e.code)===-1}});var KCe=m((_Sr,VCe)=>{"use strict";VCe.exports=typeof Symbol=="function"&&typeof Symbol("")=="symbol"});var YCe=m((bSr,XCe)=>{"use strict";XCe.exports=KCe()&&typeof Symbol.toStringTag=="symbol"});var JCe=m((wSr,ZCe)=>{"use strict";ZCe.exports=function(t){return typeof t=="object"&&t!==null}});var lB=m((ESr,eRe)=>{"use strict";var sUt=YCe(),QCe=JCe(),oUt=Object.prototype.toString,aUt="[object URL]",uUt="hash",cUt="host",lUt="hostname",fUt="href",pUt="password",dUt="pathname",hUt="port",mUt="protocol",gUt="search",vUt="username",cB=(e,t)=>QCe(e)?!sUt&&oUt.call(e)===aUt?!0:!(!(fUt in e)||!(mUt in e)||!(vUt in e)||!(pUt in e)||!(lUt in e)||!(hUt in e)||!(cUt in e)||!(dUt in e)||!(gUt in e)||!(uUt in e)||t!==!0&&!QCe(e.searchParams)):!1;cB.lenient=e=>cB(e,!0);eRe.exports=cB});var pB=m((SSr,fB)=>{"use strict";var GC=class extends Error{constructor(){super("Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},mg=class{static fn(t){return function(){let r=[].slice.apply(arguments);return new mg((n,i,s)=>{r.push(s),t.apply(null,r).then(n,i)})}}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._promise=new Promise((r,n)=>(this._reject=n,t(i=>{this._isPending=!1,r(i)},i=>{this._isPending=!1,n(i)},i=>{this._cancelHandlers.push(i)})))}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(){if(!(!this._isPending||this._isCanceled)){if(this._cancelHandlers.length>0)try{for(let t of this._cancelHandlers)t()}catch(t){this._reject(t)}this._isCanceled=!0,this._reject(new GC)}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(mg.prototype,Promise.prototype);fB.exports=mg;fB.exports.CancelError=GC});var rRe=m((TSr,tRe)=>{"use strict";tRe.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var hB=m((ASr,dB)=>{"use strict";var yUt=rRe(),VC=class extends Error{constructor(t){super(t),this.name="TimeoutError"}};dB.exports=(e,t,r)=>new Promise((n,i)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `ms` to be a positive number");let s=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(u){i(u)}return}let o=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,a=r instanceof Error?r:new VC(o);typeof e.cancel=="function"&&e.cancel(),i(a)},t);yUt(e.then(n,i),()=>{clearTimeout(s)})});dB.exports.TimeoutError=VC});var sRe=m((CSr,iRe)=>{"use strict";var nRe=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{t.errorFirst?n.push(function(o,a){if(t.multiArgs){let u=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)u[c-1]=arguments[c];o?(u.unshift(o),s(u)):i(u)}else o?s(o):i(a)}):n.push(function(o){if(t.multiArgs){let a=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)a[u]=arguments[u];i(a)}else i(o)}),e.apply(this,n)})};iRe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):nRe(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&r(i)?nRe(s,t):s}return n}});var oRe=m((RSr,xUt)=>{xUt.exports={name:"got",version:"8.3.2",description:"Simplified HTTP requests",license:"MIT",repository:"sindresorhus/got",maintainers:[{name:"Sindre Sorhus",email:"sindresorhus@gmail.com",url:"sindresorhus.com"},{name:"Vsevolod Strukchinsky",email:"floatdrop@gmail.com",url:"github.com/floatdrop"},{name:"Alexander Tesfamichael",email:"alex.tesfamichael@gmail.com",url:"alextes.me"}],engines:{node:">=4"},scripts:{test:"xo && nyc ava",coveralls:"nyc report --reporter=text-lcov | coveralls"},files:["index.js","errors.js"],keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],dependencies:{"@sindresorhus/is":"^0.7.0","cacheable-request":"^2.1.1","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^3.0.0","into-stream":"^3.1.0","is-retry-allowed":"^1.1.0",isurl:"^1.0.0-alpha5","lowercase-keys":"^1.0.0","mimic-response":"^1.0.0","p-cancelable":"^0.4.0","p-timeout":"^2.0.1",pify:"^3.0.0","safe-buffer":"^5.1.1","timed-out":"^4.0.1","url-parse-lax":"^3.0.0","url-to-options":"^1.0.1"},devDependencies:{ava:"^0.25.0",coveralls:"^3.0.0","form-data":"^2.1.1","get-port":"^3.0.0",nyc:"^11.0.2","p-event":"^1.3.0",pem:"^1.4.4",proxyquire:"^1.8.0",sinon:"^4.0.0","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","universal-url":"1.0.0-alpha",xo:"^0.20.0"},ava:{concurrency:4},browser:{"decompress-response":!1,electron:!1}}});var aRe=m((OSr,Ja)=>{"use strict";var _Ut=require("url"),mB=require("http"),bUt=pB(),wUt=oB(),Za=class extends Error{constructor(t,r,n){super(t),Error.captureStackTrace(this,this.constructor),this.name="GotError",wUt.undefined(r.code)||(this.code=r.code),Object.assign(this,{host:n.host,hostname:n.hostname,method:n.method,path:n.path,protocol:n.protocol,url:n.href})}};Ja.exports.GotError=Za;Ja.exports.CacheError=class extends Za{constructor(e,t){super(e.message,e,t),this.name="CacheError"}};Ja.exports.RequestError=class extends Za{constructor(e,t){super(e.message,e,t),this.name="RequestError"}};Ja.exports.ReadError=class extends Za{constructor(e,t){super(e.message,e,t),this.name="ReadError"}};Ja.exports.ParseError=class extends Za{constructor(e,t,r,n){super(`${e.message} in "${_Ut.format(r)}":
|
|
213
213
|
${n.slice(0,77)}...`,e,r),this.name="ParseError",this.statusCode=t,this.statusMessage=mB.STATUS_CODES[this.statusCode]}};Ja.exports.HTTPError=class extends Za{constructor(e,t,r,n){t?t=t.replace(/\r?\n/g," ").trim():t=mB.STATUS_CODES[e],super(`Response code ${e} (${t})`,{},n),this.name="HTTPError",this.statusCode=e,this.statusMessage=t,this.headers=r}};Ja.exports.MaxRedirectsError=class extends Za{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=mB.STATUS_CODES[this.statusCode],this.redirectUrls=t}};Ja.exports.UnsupportedProtocolError=class extends Za{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}};Ja.exports.CancelError=bUt.CancelError});var vB=m((FSr,_Re)=>{"use strict";var gRe=require("events"),EUt=require("http"),SUt=require("https"),uRe=require("stream").PassThrough,TUt=require("stream").Transform,Yx=require("url"),cRe=require("fs"),lRe=require("querystring"),fRe=FAe(),AUt=MAe(),CUt=kCe(),Lt=oB(),pRe=FCe(),RUt=jCe(),OUt=UCe(),IUt=uB(),NUt=qj(),dRe=$Ce(),qUt=kC(),kUt=GCe(),PUt=lB(),DUt=pB(),LUt=hB(),hRe=sRe(),KC=vo().Buffer,mRe=oRe(),FUt=aRe(),MUt=new Set([300,301,302,303,304,305,307,308]),jUt=new Set([300,303,307,308]),gB=e=>Lt.nodeStream(e)&&Lt.function(e.getBoundary),BUt=e=>{let t=e.body;return e.headers["content-length"]?Number(e.headers["content-length"]):!t&&!e.stream?0:Lt.string(t)?KC.byteLength(t):gB(t)?hRe(t.getLength.bind(t))():t instanceof cRe.ReadStream?hRe(cRe.stat)(t.path).then(r=>r.size):Lt.nodeStream(t)&&Lt.buffer(t._buffer)?t._buffer.length:null};function vRe(e){e=e||{};let t=new gRe,r=e.href||Yx.resolve(Yx.format(e),e.path),n=[],i=Lt.object(e.agent)?e.agent:null,s=0,o,a,u=0,c=f=>{if(f.protocol!=="http:"&&f.protocol!=="https:"){t.emit("error",new Rn.UnsupportedProtocolError(f));return}let p=f.protocol==="https:"?SUt:EUt;if(i){let _=f.protocol==="https:"?"https":"http";f.agent=i[_]||f.agent}if(f.useElectronNet&&process.versions.electron){let _=require("electron");p=_.net||_.remote.net}let h,v=new fRe(p.request,f.cache)(f,_=>{clearInterval(h),t.emit("uploadProgress",{percent:1,transferred:u,total:a});let w=_.statusCode;_.url=o||r,_.requestUrl=r;let y=f.followRedirect&&"location"in _.headers,b=y&&MUt.has(w);if(y&&jUt.has(w)||b&&(f.method==="GET"||f.method==="HEAD")){if(_.resume(),w===303&&(f.method="GET"),n.length>=10){t.emit("error",new Rn.MaxRedirectsError(w,n,f),null,_);return}let T=KC.from(_.headers.location,"binary").toString();o=Yx.resolve(Yx.format(f),T),n.push(o);let R=Object.assign({},f,Yx.parse(o));t.emit("redirect",_,R),c(R);return}setImmediate(()=>{try{UUt(_,f,t,n)}catch(T){t.emit("error",T)}})});v.on("error",_=>{_ instanceof fRe.RequestError?t.emit("error",new Rn.RequestError(_,f)):t.emit("error",new Rn.CacheError(_,f))}),v.once("request",_=>{let w=!1;_.once("abort",y=>{w=!0}),_.once("error",y=>{if(clearInterval(h),w)return;let b=f.retries(++s,y);if(b){setTimeout(c,b,f);return}t.emit("error",new Rn.RequestError(y,f))}),t.once("request",y=>{t.emit("uploadProgress",{percent:0,transferred:0,total:a});let b=y.connection;if(b){let S=b.connecting===void 0?b._connecting:b.connecting,T=()=>{h=setInterval(()=>{if(b.destroyed){clearInterval(h);return}let q=u,O=y._header?KC.byteLength(y._header):0;u=b.bytesWritten-O,a&&u>a&&(u=a),!(u===q||u===a)&&t.emit("uploadProgress",{percent:a?u/a:0,transferred:u,total:a})},150)};S?b.once("connect",T):T()}}),f.gotTimeout&&(clearInterval(h),RUt(_,f.gotTimeout)),setImmediate(()=>{t.emit("request",_)})})};return setImmediate(()=>{Promise.resolve(BUt(e)).then(f=>{a=f,Lt.undefined(e.headers["content-length"])&&Lt.undefined(e.headers["transfer-encoding"])&&gB(e.body)&&(e.headers["content-length"]=f),c(e)}).catch(f=>{t.emit("error",f)})}),t}function UUt(e,t,r,n){let i=Number(e.headers["content-length"])||null,s=0,o=new TUt({transform(u,c,f){s+=u.length;let p=i?s/i:0;p<1&&r.emit("downloadProgress",{percent:p,transferred:s,total:i}),f(null,u)},flush(u){r.emit("downloadProgress",{percent:1,transferred:s,total:i}),u()}});qUt(e,o),o.redirectUrls=n;let a=t.decompress===!0&&Lt.function(dRe)&&t.method!=="HEAD"?dRe(o):o;!t.decompress&&["gzip","deflate"].indexOf(e.headers["content-encoding"])!==-1&&(t.encoding=null),r.emit("response",a),r.emit("downloadProgress",{percent:0,transferred:0,total:i}),e.pipe(o)}function WUt(e){let t=s=>e.gotTimeout&&e.gotTimeout.request?LUt(s,e.gotTimeout.request,new Rn.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e)):s,r=new gRe,n=new DUt((s,o,a)=>{let u=vRe(e),c=!1;a(()=>{c=!0}),u.on("request",f=>{if(c&&f.abort(),a(()=>{f.abort()}),Lt.nodeStream(e.body)){e.body.pipe(f),e.body=void 0;return}f.end(e.body)}),u.on("response",f=>{(Lt.null(e.encoding)?pRe.buffer(f):pRe(f,e)).catch(h=>o(new Rn.ReadError(h,e))).then(h=>{let g=f.statusCode,v=e.followRedirect?299:399;if(f.body=h,e.json&&f.body)try{f.body=JSON.parse(f.body)}catch(_){if(g>=200&&g<300)throw new Rn.ParseError(_,g,e,h)}if(e.throwHttpErrors&&g!==304&&(g<200||g>v))throw new Rn.HTTPError(g,f.statusMessage,f.headers,e);s(f)}).catch(h=>{Object.defineProperty(h,"response",{value:f}),o(h)})}),u.once("error",o),u.on("redirect",r.emit.bind(r,"redirect")),u.on("uploadProgress",r.emit.bind(r,"uploadProgress")),u.on("downloadProgress",r.emit.bind(r,"downloadProgress"))});Object.defineProperty(n,"canceled",{get(){return n.isCanceled}});let i=t(n);return i.cancel=n.cancel.bind(n),i.on=(s,o)=>(r.on(s,o),i),i}function yRe(e){e.stream=!0;let t=new uRe,r=new uRe,n=AUt(t,r),i;if(e.gotTimeout&&e.gotTimeout.request&&(i=setTimeout(()=>{n.emit("error",new Rn.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e))},e.gotTimeout.request)),e.json)throw new Error("Got can not be used as a stream when the `json` option is used");e.body&&(n.write=()=>{throw new Error("Got's stream is not writable when the `body` option is used")});let s=vRe(e);return s.on("request",o=>{if(n.emit("request",o),Lt.nodeStream(e.body)){e.body.pipe(o);return}if(e.body){o.end(e.body);return}if(e.method==="POST"||e.method==="PUT"||e.method==="PATCH"){t.pipe(o);return}o.end()}),s.on("response",o=>{clearTimeout(i);let a=o.statusCode;if(o.on("error",u=>{n.emit("error",new Rn.ReadError(u,e))}),o.pipe(r),e.throwHttpErrors&&a!==304&&(a<200||a>299)){n.emit("error",new Rn.HTTPError(a,o.statusMessage,o.headers,e),null,o);return}n.emit("response",o)}),s.on("error",n.emit.bind(n,"error")),s.on("redirect",n.emit.bind(n,"redirect")),s.on("uploadProgress",n.emit.bind(n,"uploadProgress")),s.on("downloadProgress",n.emit.bind(n,"downloadProgress")),n}function xRe(e,t){if(!Lt.string(e)&&!Lt.object(e))throw new TypeError(`Parameter \`url\` must be a string or object, not ${Lt(e)}`);if(Lt.string(e)){e=e.replace(/^unix:/,"http://$&");try{decodeURI(e)}catch{throw new Error("Parameter `url` must contain valid UTF-8 character sequences")}if(e=OUt(e),e.auth)throw new Error("Basic authentication must be done with the `auth` option")}else PUt.lenient(e)&&(e=IUt(e));t=Object.assign({path:"",retries:2,cache:!1,decompress:!0,useElectronNet:!1,throwHttpErrors:!0},e,{protocol:e.protocol||"http:"},t);let r=NUt(t.headers);for(let s of Object.keys(r))Lt.nullOrUndefined(r[s])&&delete r[s];t.headers=Object.assign({"user-agent":`${mRe.name}/${mRe.version} (https://github.com/sindresorhus/got)`},r),t.decompress&&Lt.undefined(t.headers["accept-encoding"])&&(t.headers["accept-encoding"]="gzip, deflate");let n=t.query;n&&(Lt.string(n)||(t.query=lRe.stringify(n)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&Lt.undefined(t.headers.accept)&&(t.headers.accept="application/json");let i=t.body;if(Lt.nullOrUndefined(i))t.method=(t.method||"GET").toUpperCase();else{let s=t.headers;if(!Lt.nodeStream(i)&&!Lt.string(i)&&!Lt.buffer(i)&&!(t.form||t.json))throw new TypeError("The `body` option must be a stream.Readable, string, Buffer or plain Object");let o=Lt.plainObject(i)||Lt.array(i);if((t.form||t.json)&&!o)throw new TypeError("The `body` option must be a plain Object or Array when the `form` or `json` option is used");if(gB(i)?s["content-type"]=s["content-type"]||`multipart/form-data; boundary=${i.getBoundary()}`:t.form&&o?(s["content-type"]=s["content-type"]||"application/x-www-form-urlencoded",t.body=lRe.stringify(i)):t.json&&o&&(s["content-type"]=s["content-type"]||"application/json",t.body=JSON.stringify(i)),Lt.undefined(s["content-length"])&&Lt.undefined(s["transfer-encoding"])&&!Lt.nodeStream(i)){let a=Lt.string(t.body)?KC.byteLength(t.body):t.body.length;s["content-length"]=a}Lt.buffer(i)&&(t.body=CUt(i),t.body._buffer=i),t.method=(t.method||"POST").toUpperCase()}if(t.hostname==="unix"){let s=/(.+?):(.+)/.exec(t.path);s&&(t.socketPath=s[1],t.path=s[2],t.host=null)}if(!Lt.function(t.retries)){let s=t.retries;t.retries=(o,a)=>{if(o>s||!kUt(a))return 0;let u=Math.random()*100;return(1<<o)*1e3+u}}return Lt.undefined(t.followRedirect)&&(t.followRedirect=!0),t.timeout&&(Lt.number(t.timeout)?t.gotTimeout={request:t.timeout}:t.gotTimeout=t.timeout,delete t.timeout),t}function Rn(e,t){try{let r=xRe(e,t);return r.stream?yRe(r):WUt(r)}catch(r){return Promise.reject(r)}}Rn.stream=(e,t)=>yRe(xRe(e,t));var HUt=["get","post","put","patch","head","delete"];for(let e of HUt)Rn[e]=(t,r)=>Rn(t,Object.assign({},r,{method:e})),Rn.stream[e]=(t,r)=>Rn.stream(t,Object.assign({},r,{method:e}));Object.assign(Rn,FUt);_Re.exports=Rn});var yB=m((MSr,wRe)=>{"use strict";var bRe=(e,t)=>function(...r){let n=t.promiseModule;return new n((i,s)=>{t.multiArgs?r.push((...o)=>{t.errorFirst?o[0]?s(o):(o.shift(),i(o)):i(o)}):t.errorFirst?r.push((o,a)=>{o?s(o):i(a)}):r.push(i),e.apply(this,r)})};wRe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=typeof e;if(!(e!==null&&(r==="object"||r==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``);let n=s=>{let o=a=>typeof a=="string"?s===a:a.test(s);return t.include?t.include.some(o):!t.exclude.some(o)},i;r==="function"?i=function(...s){return t.excludeMain?e(...s):bRe(e,t).apply(this,s)}:i=Object.create(Object.getPrototypeOf(e));for(let s in e){let o=e[s];i[s]=typeof o=="function"&&n(s)?bRe(o,t):o}return i}});var jRe=m((rt,MRe)=>{rt=MRe.exports=Dt;var er;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?er=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:er=function(){};rt.SEMVER_SPEC_VERSION="2.0.0";var _B=256,XC=Number.MAX_SAFE_INTEGER||9007199254740991,xB=16,lr=rt.re=[],ce=rt.src=[],It=0,gg=It++;ce[gg]="0|[1-9]\\d*";var vg=It++;ce[vg]="[0-9]+";var SB=It++;ce[SB]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var SRe=It++;ce[SRe]="("+ce[gg]+")\\.("+ce[gg]+")\\.("+ce[gg]+")";var TRe=It++;ce[TRe]="("+ce[vg]+")\\.("+ce[vg]+")\\.("+ce[vg]+")";var bB=It++;ce[bB]="(?:"+ce[gg]+"|"+ce[SB]+")";var wB=It++;ce[wB]="(?:"+ce[vg]+"|"+ce[SB]+")";var TB=It++;ce[TB]="(?:-("+ce[bB]+"(?:\\."+ce[bB]+")*))";var AB=It++;ce[AB]="(?:-?("+ce[wB]+"(?:\\."+ce[wB]+")*))";var EB=It++;ce[EB]="[0-9A-Za-z-]+";var Qx=It++;ce[Qx]="(?:\\+("+ce[EB]+"(?:\\."+ce[EB]+")*))";var CB=It++,ARe="v?"+ce[SRe]+ce[TB]+"?"+ce[Qx]+"?";ce[CB]="^"+ARe+"$";var RB="[v=\\s]*"+ce[TRe]+ce[AB]+"?"+ce[Qx]+"?",OB=It++;ce[OB]="^"+RB+"$";var _g=It++;ce[_g]="((?:<|>)?=?)";var YC=It++;ce[YC]=ce[vg]+"|x|X|\\*";var ZC=It++;ce[ZC]=ce[gg]+"|x|X|\\*";var Wp=It++;ce[Wp]="[v=\\s]*("+ce[ZC]+")(?:\\.("+ce[ZC]+")(?:\\.("+ce[ZC]+")(?:"+ce[TB]+")?"+ce[Qx]+"?)?)?";var xg=It++;ce[xg]="[v=\\s]*("+ce[YC]+")(?:\\.("+ce[YC]+")(?:\\.("+ce[YC]+")(?:"+ce[AB]+")?"+ce[Qx]+"?)?)?";var CRe=It++;ce[CRe]="^"+ce[_g]+"\\s*"+ce[Wp]+"$";var RRe=It++;ce[RRe]="^"+ce[_g]+"\\s*"+ce[xg]+"$";var ORe=It++;ce[ORe]="(?:^|[^\\d])(\\d{1,"+xB+"})(?:\\.(\\d{1,"+xB+"}))?(?:\\.(\\d{1,"+xB+"}))?(?:$|[^\\d])";var nR=It++;ce[nR]="(?:~>?)";var JC=It++;ce[JC]="(\\s*)"+ce[nR]+"\\s+";lr[JC]=new RegExp(ce[JC],"g");var $Ut="$1~",IRe=It++;ce[IRe]="^"+ce[nR]+ce[Wp]+"$";var NRe=It++;ce[NRe]="^"+ce[nR]+ce[xg]+"$";var iR=It++;ce[iR]="(?:\\^)";var QC=It++;ce[QC]="(\\s*)"+ce[iR]+"\\s+";lr[QC]=new RegExp(ce[QC],"g");var zUt="$1^",qRe=It++;ce[qRe]="^"+ce[iR]+ce[Wp]+"$";var kRe=It++;ce[kRe]="^"+ce[iR]+ce[xg]+"$";var IB=It++;ce[IB]="^"+ce[_g]+"\\s*("+RB+")$|^$";var NB=It++;ce[NB]="^"+ce[_g]+"\\s*("+ARe+")$|^$";var Zx=It++;ce[Zx]="(\\s*)"+ce[_g]+"\\s*("+RB+"|"+ce[Wp]+")";lr[Zx]=new RegExp(ce[Zx],"g");var GUt="$1$2$3",PRe=It++;ce[PRe]="^\\s*("+ce[Wp]+")\\s+-\\s+("+ce[Wp]+")\\s*$";var DRe=It++;ce[DRe]="^\\s*("+ce[xg]+")\\s+-\\s+("+ce[xg]+")\\s*$";var LRe=It++;ce[LRe]="(<|>)?=?\\s*\\*";for(Ml=0;Ml<It;Ml++)er(Ml,ce[Ml]),lr[Ml]||(lr[Ml]=new RegExp(ce[Ml]));var Ml;rt.parse=Hp;function Hp(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Dt)return e;if(typeof e!="string"||e.length>_B)return null;var r=t.loose?lr[OB]:lr[CB];if(!r.test(e))return null;try{return new Dt(e,t)}catch{return null}}rt.valid=VUt;function VUt(e,t){var r=Hp(e,t);return r?r.version:null}rt.clean=KUt;function KUt(e,t){var r=Hp(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}rt.SemVer=Dt;function Dt(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Dt){if(e.loose===t.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>_B)throw new TypeError("version is longer than "+_B+" characters");if(!(this instanceof Dt))return new Dt(e,t);er("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?lr[OB]:lr[CB]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>XC||this.major<0)throw new TypeError("Invalid major version");if(this.minor>XC||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>XC||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i<XC)return i}return n}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}Dt.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};Dt.prototype.toString=function(){return this.version};Dt.prototype.compare=function(e){return er("SemVer.compare",this.version,this.options,e),e instanceof Dt||(e=new Dt(e,this.options)),this.compareMain(e)||this.comparePre(e)};Dt.prototype.compareMain=function(e){return e instanceof Dt||(e=new Dt(e,this.options)),yg(this.major,e.major)||yg(this.minor,e.minor)||yg(this.patch,e.patch)};Dt.prototype.comparePre=function(e){if(e instanceof Dt||(e=new Dt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(er("prerelease compare",t,r,n),r===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(r===void 0)return-1;if(r===n)continue;return yg(r,n)}while(++t)};Dt.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};rt.inc=XUt;function XUt(e,t,r,n){typeof r=="string"&&(n=r,r=void 0);try{return new Dt(e,r).inc(t,n).version}catch{return null}}rt.diff=YUt;function YUt(e,t){if(qB(e,t))return null;var r=Hp(e),n=Hp(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r)if((o==="major"||o==="minor"||o==="patch")&&r[o]!==n[o])return i+o;return s}rt.compareIdentifiers=yg;var ERe=/^[0-9]+$/;function yg(e,t){var r=ERe.test(e),n=ERe.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}rt.rcompareIdentifiers=ZUt;function ZUt(e,t){return yg(t,e)}rt.major=JUt;function JUt(e,t){return new Dt(e,t).major}rt.minor=QUt;function QUt(e,t){return new Dt(e,t).minor}rt.patch=e5t;function e5t(e,t){return new Dt(e,t).patch}rt.compare=fc;function fc(e,t,r){return new Dt(e,r).compare(new Dt(t,r))}rt.compareLoose=t5t;function t5t(e,t){return fc(e,t,!0)}rt.rcompare=r5t;function r5t(e,t,r){return fc(t,e,r)}rt.sort=n5t;function n5t(e,t){return e.sort(function(r,n){return rt.compare(r,n,t)})}rt.rsort=i5t;function i5t(e,t){return e.sort(function(r,n){return rt.rcompare(r,n,t)})}rt.gt=Jx;function Jx(e,t,r){return fc(e,t,r)>0}rt.lt=eR;function eR(e,t,r){return fc(e,t,r)<0}rt.eq=qB;function qB(e,t,r){return fc(e,t,r)===0}rt.neq=FRe;function FRe(e,t,r){return fc(e,t,r)!==0}rt.gte=kB;function kB(e,t,r){return fc(e,t,r)>=0}rt.lte=PB;function PB(e,t,r){return fc(e,t,r)<=0}rt.cmp=tR;function tR(e,t,r,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return qB(e,r,n);case"!=":return FRe(e,r,n);case">":return Jx(e,r,n);case">=":return kB(e,r,n);case"<":return eR(e,r,n);case"<=":return PB(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}rt.Comparator=yo;function yo(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof yo){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof yo))return new yo(e,t);er("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===e_?this.value="":this.value=this.operator+this.semver.version,er("comp",this)}var e_={};yo.prototype.parse=function(e){var t=this.options.loose?lr[IB]:lr[NB],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],this.operator==="="&&(this.operator=""),r[2]?this.semver=new Dt(r[2],this.options.loose):this.semver=e_};yo.prototype.toString=function(){return this.value};yo.prototype.test=function(e){return er("Comparator.test",e,this.options.loose),this.semver===e_?!0:(typeof e=="string"&&(e=new Dt(e,this.options)),tR(e,this.operator,this.semver,this.options))};yo.prototype.intersects=function(e,t){if(!(e instanceof yo))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var r;if(this.operator==="")return r=new jr(e.value,t),rR(this.value,r,t);if(e.operator==="")return r=new jr(this.value,t),rR(e.semver,r,t);var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),a=tR(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),u=tR(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&o||a||u};rt.Range=jr;function jr(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof jr)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new jr(e.raw,t);if(e instanceof yo)return new jr(e.value,t);if(!(this instanceof jr))return new jr(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(r){return this.parseRange(r.trim())},this).filter(function(r){return r.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}jr.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};jr.prototype.toString=function(){return this.range};jr.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?lr[DRe]:lr[PRe];e=e.replace(r,h5t),er("hyphen replace",e),e=e.replace(lr[Zx],GUt),er("comparator trim",e,lr[Zx]),e=e.replace(lr[JC],$Ut),e=e.replace(lr[QC],zUt),e=e.split(/\s+/).join(" ");var n=t?lr[IB]:lr[NB],i=e.split(" ").map(function(s){return o5t(s,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(s){return!!s.match(n)})),i=i.map(function(s){return new yo(s,this.options)},this),i};jr.prototype.intersects=function(e,t){if(!(e instanceof jr))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(n){return e.set.some(function(i){return i.every(function(s){return n.intersects(s,t)})})})})};rt.toComparators=s5t;function s5t(e,t){return new jr(e,t).set.map(function(r){return r.map(function(n){return n.value}).join(" ").trim().split(" ")})}function o5t(e,t){return er("comp",e,t),e=c5t(e,t),er("caret",e),e=a5t(e,t),er("tildes",e),e=f5t(e,t),er("xrange",e),e=d5t(e,t),er("stars",e),e}function zi(e){return!e||e.toLowerCase()==="x"||e==="*"}function a5t(e,t){return e.trim().split(/\s+/).map(function(r){return u5t(r,t)}).join(" ")}function u5t(e,t){var r=t.loose?lr[NRe]:lr[IRe];return e.replace(r,function(n,i,s,o,a){er("tilde",e,n,i,s,o,a);var u;return zi(i)?u="":zi(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":zi(o)?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":a?(er("replaceTilde pr",a),u=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"):u=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0",er("tilde return",u),u})}function c5t(e,t){return e.trim().split(/\s+/).map(function(r){return l5t(r,t)}).join(" ")}function l5t(e,t){er("caret",e,t);var r=t.loose?lr[kRe]:lr[qRe];return e.replace(r,function(n,i,s,o,a){er("caret",e,n,i,s,o,a);var u;return zi(i)?u="":zi(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":zi(o)?i==="0"?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+".0 <"+(+i+1)+".0.0":a?(er("replaceCaret pr",a),i==="0"?s==="0"?u=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+s+"."+(+o+1):u=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+o+"-"+a+" <"+(+i+1)+".0.0"):(er("no pr"),i==="0"?s==="0"?u=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1):u=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"),er("caret return",u),u})}function f5t(e,t){return er("replaceXRanges",e,t),e.split(/\s+/).map(function(r){return p5t(r,t)}).join(" ")}function p5t(e,t){e=e.trim();var r=t.loose?lr[RRe]:lr[CRe];return e.replace(r,function(n,i,s,o,a,u){er("xRange",e,n,i,s,o,a,u);var c=zi(s),f=c||zi(o),p=f||zi(a),h=p;return i==="="&&h&&(i=""),c?i===">"||i==="<"?n="<0.0.0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),n=i+s+"."+o+"."+a):f?n=">="+s+".0.0 <"+(+s+1)+".0.0":p&&(n=">="+s+"."+o+".0 <"+s+"."+(+o+1)+".0"),er("xRange return",n),n})}function d5t(e,t){return er("replaceStars",e,t),e.trim().replace(lr[LRe],"")}function h5t(e,t,r,n,i,s,o,a,u,c,f,p,h){return zi(r)?t="":zi(n)?t=">="+r+".0.0":zi(i)?t=">="+r+"."+n+".0":t=">="+t,zi(u)?a="":zi(c)?a="<"+(+u+1)+".0.0":zi(f)?a="<"+u+"."+(+c+1)+".0":p?a="<="+u+"."+c+"."+f+"-"+p:a="<="+a,(t+" "+a).trim()}jr.prototype.test=function(e){if(!e)return!1;typeof e=="string"&&(e=new Dt(e,this.options));for(var t=0;t<this.set.length;t++)if(m5t(this.set[t],e,this.options))return!0;return!1};function m5t(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(er(e[n].semver),e[n].semver!==e_&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}rt.satisfies=rR;function rR(e,t,r){try{t=new jr(t,r)}catch{return!1}return t.test(e)}rt.maxSatisfying=g5t;function g5t(e,t,r){var n=null,i=null;try{var s=new jr(t,r)}catch{return null}return e.forEach(function(o){s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new Dt(n,r))}),n}rt.minSatisfying=v5t;function v5t(e,t,r){var n=null,i=null;try{var s=new jr(t,r)}catch{return null}return e.forEach(function(o){s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Dt(n,r))}),n}rt.minVersion=y5t;function y5t(e,t){e=new jr(e,t);var r=new Dt("0.0.0");if(e.test(r)||(r=new Dt("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(s){var o=new Dt(s.semver.version);switch(s.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!r||Jx(r,o))&&(r=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+s.operator)}})}return r&&e.test(r)?r:null}rt.validRange=x5t;function x5t(e,t){try{return new jr(e,t).range||"*"}catch{return null}}rt.ltr=_5t;function _5t(e,t,r){return DB(e,t,"<",r)}rt.gtr=b5t;function b5t(e,t,r){return DB(e,t,">",r)}rt.outside=DB;function DB(e,t,r,n){e=new Dt(e,n),t=new jr(t,n);var i,s,o,a,u;switch(r){case">":i=Jx,s=PB,o=eR,a=">",u=">=";break;case"<":i=eR,s=kB,o=Jx,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(rR(e,t,n))return!1;for(var c=0;c<t.set.length;++c){var f=t.set[c],p=null,h=null;if(f.forEach(function(g){g.semver===e_&&(g=new yo(">=0.0.0")),p=p||g,h=h||g,i(g.semver,p.semver,n)?p=g:o(g.semver,h.semver,n)&&(h=g)}),p.operator===a||p.operator===u||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===u&&o(e,h.semver))return!1}return!0}rt.prerelease=w5t;function w5t(e,t){var r=Hp(e,t);return r&&r.prerelease.length?r.prerelease:null}rt.intersects=E5t;function E5t(e,t,r){return e=new jr(e,r),t=new jr(t,r),e.intersects(t)}rt.coerce=S5t;function S5t(e){if(e instanceof Dt)return e;if(typeof e!="string")return null;var t=e.match(lr[ORe]);return t==null?null:Hp(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}});var GRe=m((jSr,oR)=>{"use strict";var sR=require("fs"),pc=require("path"),BRe=yB(),T5t=jRe(),URe={mode:511&~process.umask(),fs:sR},WRe=T5t.satisfies(process.version,">=10.12.0"),HRe=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(pc.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},$Re=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t},zRe=(e,t)=>Promise.resolve().then(()=>{HRe(e),t=Object.assign({},URe,t);let r=BRe(t.fs.mkdir),n=BRe(t.fs.stat);if(WRe&&t.fs.mkdir===sR.mkdir){let s=pc.resolve(e);return r(s,{mode:t.mode,recursive:!0}).then(()=>s)}let i=s=>r(s,t.mode).then(()=>s).catch(o=>{if(o.code==="EPERM")throw o;if(o.code==="ENOENT"){if(pc.dirname(s)===s)throw $Re(s);if(o.message.includes("null bytes"))throw o;return i(pc.dirname(s)).then(()=>i(s))}return n(s).then(a=>a.isDirectory()?s:Promise.reject()).catch(()=>{throw o})});return i(pc.resolve(e))});oR.exports=zRe;oR.exports.default=zRe;oR.exports.sync=(e,t)=>{if(HRe(e),t=Object.assign({},URe,t),WRe&&t.fs.mkdirSync===sR.mkdirSync){let n=pc.resolve(e);return sR.mkdirSync(n,{mode:t.mode,recursive:!0}),n}let r=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(pc.dirname(n)===n)throw $Re(n);if(i.message.includes("null bytes"))throw i;return r(pc.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(pc.resolve(e))}});var LB=m((BSr,aR)=>{"use strict";var A5t=hB(),C5t=Symbol.asyncIterator||"@@asyncIterator",VRe=e=>{let t=e.on||e.addListener||e.addEventListener,r=e.off||e.removeListener||e.removeEventListener;if(!t||!r)throw new TypeError("Emitter is not compatible");return{addListener:t.bind(e),removeListener:r.bind(e)}},KRe=e=>Array.isArray(e)?e:[e],XRe=(e,t,r)=>{let n,i=new Promise((s,o)=>{if(r=Object.assign({rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1},r),!(r.count>=0&&(r.count===1/0||Number.isInteger(r.count))))throw new TypeError("The `count` option should be at least 0 or more");let a=KRe(t),u=[],{addListener:c,removeListener:f}=VRe(e),p=(...g)=>{let v=r.multiArgs?g:g[0];r.filter&&!r.filter(v)||(u.push(v),r.count===u.length&&(n(),s(u)))},h=g=>{n(),o(g)};n=()=>{for(let g of a)f(g,p);for(let g of r.rejectionEvents)f(g,h)};for(let g of a)c(g,p);for(let g of r.rejectionEvents)c(g,h);r.resolveImmediately&&s(u)});if(i.cancel=n,typeof r.timeout=="number"){let s=A5t(i,r.timeout);return s.cancel=n,s}return i};aR.exports=(e,t,r)=>{typeof r=="function"&&(r={filter:r}),r=Object.assign({},r,{count:1,resolveImmediately:!1});let n=XRe(e,t,r),i=n.then(s=>s[0]);return i.cancel=n.cancel,i};aR.exports.multiple=XRe;aR.exports.iterator=(e,t,r)=>{typeof r=="function"&&(r={filter:r});let n=KRe(t);r=Object.assign({rejectionEvents:["error"],resolutionEvents:[],limit:1/0,multiArgs:!1},r);let{limit:i}=r;if(!(i>=0&&(i===1/0||Number.isInteger(i))))throw new TypeError("The `limit` option should be a non-negative integer or Infinity");if(i===0)return{[Symbol.asyncIterator](){return this},next(){return Promise.resolve({done:!0,value:void 0})}};let o=!1,{addListener:a,removeListener:u}=VRe(e),c=!1,f,p=!1,h=[],g=[],v=0,_=(...S)=>{v++,o=v===i;let T=r.multiArgs?S:S[0];if(h.length>0){let{resolve:R}=h.shift();R({done:!1,value:T}),o&&w();return}g.push(T),o&&w()},w=()=>{c=!0;for(let S of n)u(S,_);for(let S of r.rejectionEvents)u(S,y);for(let S of r.resolutionEvents)u(S,b);for(;h.length>0;){let{resolve:S}=h.shift();S({done:!0,value:void 0})}},y=(...S)=>{if(f=r.multiArgs?S:S[0],h.length>0){let{reject:T}=h.shift();T(f)}else p=!0;w()},b=(...S)=>{let T=r.multiArgs?S:S[0];if(!(r.filter&&!r.filter(T))){if(h.length>0){let{resolve:R}=h.shift();R({done:!0,value:T})}else g.push(T);w()}};for(let S of n)a(S,_);for(let S of r.rejectionEvents)a(S,y);for(let S of r.resolutionEvents)a(S,b);return{[C5t](){return this},next(){if(g.length>0){let S=g.shift();return Promise.resolve({done:c&&g.length===0&&!o,value:S})}return p?(p=!1,Promise.reject(f)):c?Promise.resolve({done:!0,value:void 0}):new Promise((S,T)=>h.push({resolve:S,reject:T}))},return(S){return w(),Promise.resolve({done:c,value:S})}}}});var ZRe=m(t_=>{"use strict";t_.stringToBytes=e=>[...e].map(t=>t.charCodeAt(0));var YRe=(e,t,r)=>String.fromCharCode(...e.slice(t,r));t_.readUInt64LE=(e,t=0)=>{let r=e[t],n=1,i=0;for(;++i<8;)n*=256,r+=e[t+i]*n;return r};t_.tarHeaderChecksumMatches=e=>{if(e.length<512)return!1;let t=128,r=256,n=0;for(let s=0;s<148;s++){let o=e[s];r+=o,n+=o&t}for(let s=156;s<512;s++){let o=e[s];r+=o,n+=o&t}let i=parseInt(YRe(e,148,154),8);return i===r||i===r-(n<<1)};t_.uint8ArrayUtf8ByteString=YRe});var JRe=m((exports,module)=>{"use strict";var{stringToBytes,readUInt64LE,tarHeaderChecksumMatches,uint8ArrayUtf8ByteString}=ZRe(),xpiZipFilename=stringToBytes("META-INF/mozilla.rsa"),oxmlContentTypes=stringToBytes("[Content_Types].xml"),oxmlRels=stringToBytes("_rels/.rels"),fileType=e=>{if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);let t=e instanceof Uint8Array?e:new Uint8Array(e);if(!(t&&t.length>1))return;let r=(i,s)=>{s=Object.assign({offset:0},s);for(let o=0;o<i.length;o++)if(s.mask){if(i[o]!==(s.mask[o]&t[o+s.offset]))return!1}else if(i[o]!==t[o+s.offset])return!1;return!0},n=(i,s)=>r(stringToBytes(i),s);if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(r([73,73,42,0,16,251,134,1]))return{ext:"arw",mime:"image/x-sony-arw"};if(r([73,73,42,0,8,0,0,0,45]))return{ext:"dng",mime:"image/x-adobe-dng"};if(r([73,73,42,0,48,61,114,1,28]))return{ext:"nef",mime:"image/x-nikon-nef"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(xpiZipFilename,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};let i=(u,c=0)=>u.findIndex((f,p,h)=>p>=c&&h[p]===80&&h[p+1]===75&&h[p+2]===3&&h[p+3]===4),s=0,o=!1,a;do{let u=s+30;if(o||(o=r(oxmlContentTypes,{offset:u})||r(oxmlRels,{offset:u})),a||(n("word/",{offset:u})?a={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:n("ppt/",{offset:u})?a={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:n("xl/",{offset:u})&&(a={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),o&&a)return a;s=i(t,u)}while(s>=0);if(a)return a}if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([48,48,48,48,48,48],{offset:148,mask:[248,248,248,248,248,248]})&&tarHeaderChecksumMatches(t))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([102,114,101,101],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([102,116,121,112],{offset:4})&&t[8]&96&&t[9]&96&&t[10]&96&&t[11]&96){let i=uint8ArrayUtf8ByteString(t,8,12);switch(i){case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt ":return{ext:"mov",mime:"video/quicktime"};case"M4V ":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P ":return{ext:"m4p",mime:"video/mp4"};case"M4B ":return{ext:"m4b",mime:"audio/mp4"};case"M4A ":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V ":return{ext:"f4v",mime:"video/mp4"};case"F4P ":return{ext:"f4p",mime:"video/mp4"};case"F4A ":return{ext:"f4a",mime:"audio/mp4"};case"F4B ":return{ext:"f4b",mime:"audio/mp4"};default:return i.startsWith("3g")?i.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let i=t.subarray(4,4100),s=i.findIndex((o,a,u)=>u[a]===66&&u[a+1]===130);if(s!==-1){let o=s+3,a=u=>[...u].every((c,f)=>i[o+f]===c.charCodeAt(0));if(a("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(a("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217])){let i=30;do{let s=readUInt64LE(t,i+16);if(r([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:i})){if(r([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:i+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(r([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:i+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}i+=s}while(i+24<=t.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};for(let i=0;i<2&&i<t.length-16;i++){if(r([73,68,51],{offset:i})||r([255,226],{offset:i,mask:[255,230]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:i,mask:[255,230]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:i,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:i,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([119,118,112,107]))return{ext:"wv",mime:"audio/wavpack"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((t[0]===67||t[0]===70)&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77]))return{ext:"aif",mime:"audio/aiff"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if(r([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(r([77,80,43]))return{ext:"mpc",mime:"audio/x-musepack"};if(r([77,80,67,75]))return{ext:"mpc",mime:"audio/x-musepack"};if(r([66,69,71,73,78,58]))return{ext:"ics",mime:"text/calendar"};if(r([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(r([212,195,178,161])||r([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(r([68,83,68,32]))return{ext:"dsf",mime:"audio/x-dsf"};if(r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(n("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(r([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"}};module.exports=fileType;Object.defineProperty(fileType,"minimumBytes",{value:4100});fileType.stream=readableStream=>new Promise((resolve,reject)=>{let stream=eval("require")("stream");readableStream.once("readable",()=>{let e=new stream.PassThrough,t=readableStream.read(module.exports.minimumBytes)||readableStream.read();try{e.fileType=fileType(t)}catch(r){reject(r)}readableStream.unshift(t),stream.pipeline?resolve(stream.pipeline(readableStream,e,()=>{})):resolve(readableStream.pipe(e))})})});var QRe=m((WSr,R5t)=>{R5t.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var tOe=m((HSr,eOe)=>{eOe.exports=QRe()});var iOe=m(($Sr,nOe)=>{"use strict";var rOe=tOe();nOe.exports=function(){var e={};return Object.keys(rOe).forEach(function(t){var r=rOe[t];r.extensions&&r.extensions.length>0&&r.extensions.forEach(function(n){e[n]=t})}),e}});var aOe=m((zSr,oOe)=>{"use strict";var sOe=Cj();oOe.exports=function(e,t){if(!sOe(e))throw new TypeError("Expected a plain object");t=t||{},typeof t=="function"&&(t={compare:t});var r=t.deep,n=[],i=[],s=function(o){var a=n.indexOf(o);if(a!==-1)return i[a];var u={},c=Object.keys(o).sort(t.compare);n.push(o),i.push(u);for(var f=0;f<c.length;f++){var p=c[f],h=o[p];u[p]=r&&sOe(h)?s(h):h}return u};return s(e)}});var cOe=m((GSr,FB)=>{"use strict";var uOe=aOe();FB.exports.desc=function(e){return uOe(e,function(t,r){return r.length-t.length})};FB.exports.asc=function(e){return uOe(e,function(t,r){return t.length-r.length})}});var jB=m((VSr,MB)=>{"use strict";var lOe=iOe(),fOe=cOe();MB.exports=e=>{let t=fOe.desc(lOe()),r=Object.keys(t).filter(n=>e.endsWith(n));return r.length===0?[]:r.map(n=>({ext:n,mime:t[n]}))};MB.exports.mime=e=>{let t=fOe.desc(lOe()),r=Object.keys(t).filter(n=>t[n]===e);return r.length===0?[]:r.map(n=>({ext:n,mime:t[n]}))}});var mOe=m((KSr,hOe)=>{"use strict";var O5t=require("fs"),r_=require("path"),{URL:I5t}=require("url"),N5t=b6(),pOe=w6(),dOe=vj(),q5t=GTe(),k5t=XTe(),P5t=vB(),D5t=GRe(),L5t=yB(),F5t=LB(),M5t=JRe(),j5t=jB(),B5t=L5t(O5t),U5t=e=>r_.basename(new I5t(e.requestUrl).pathname),W5t=e=>{let t=e.headers["content-type"];if(!t)return null;let r=j5t.mime(t);return r.length!==1?null:r[0].ext},H5t=(e,t)=>{let r=e.headers["content-disposition"];if(r){let i=N5t.parse(r);if(i.parameters&&i.parameters.filename)return i.parameters.filename}let n=U5t(e);if(!r_.extname(n)){let i=(M5t(t)||{}).ext||W5t(e);i&&(n=`${n}.${i}`)}return n};hOe.exports=(e,t,r)=>{typeof t=="object"&&(r=t,t=null),r=Object.assign({encoding:null,rejectUnauthorized:process.env.npm_config_strict_ssl!=="false"},r);let n=P5t.stream(e,r),i=F5t(n,"response").then(s=>{let o=r.encoding===null?"buffer":r.encoding;return Promise.all([k5t(n,{encoding:o}),s])}).then(s=>{let[o,a]=s;if(!t)return r.extract&&pOe(o)?dOe(o,r):o;let u=r.filename||q5t(H5t(a,o)),c=r_.join(t,u);return r.extract&&pOe(o)?dOe(o,r_.dirname(c),r):D5t(r_.dirname(c)).then(()=>B5t.writeFile(c,o)).then(()=>o)});return n.then=i.then.bind(i),n.catch=i.catch.bind(i),n}});var EOe=m((XSr,wOe)=>{"use strict";var i_=require("fs"),{Readable:$5t}=require("stream"),n_=require("path"),{promisify:lR}=require("util"),BB=PA(),z5t=lR(i_.readdir),G5t=lR(i_.stat),gOe=lR(i_.lstat),V5t=lR(i_.realpath),K5t="!",_Oe="READDIRP_RECURSIVE_ERROR",X5t=new Set(["ENOENT","EPERM","EACCES","ELOOP",_Oe]),UB="files",bOe="directories",cR="files_directories",uR="all",vOe=[UB,bOe,cR,uR],Y5t=e=>X5t.has(e.code),[yOe,Z5t]=process.versions.node.split(".").slice(0,2).map(e=>Number.parseInt(e,10)),J5t=process.platform==="win32"&&(yOe>10||yOe===10&&Z5t>=5),xOe=e=>{if(e!==void 0){if(typeof e=="function")return e;if(typeof e=="string"){let t=BB(e.trim());return r=>t(r.basename)}if(Array.isArray(e)){let t=[],r=[];for(let n of e){let i=n.trim();i.charAt(0)===K5t?r.push(BB(i.slice(1))):t.push(BB(i))}return r.length>0?t.length>0?n=>t.some(i=>i(n.basename))&&!r.some(i=>i(n.basename)):n=>!r.some(i=>i(n.basename)):n=>t.some(i=>i(n.basename))}}},bg=class extends $5t{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:UB,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let r={...bg.defaultOptions,...t},{root:n,type:i}=r;this._fileFilter=xOe(r.fileFilter),this._directoryFilter=xOe(r.directoryFilter);let s=r.lstat?gOe:G5t;J5t?this._stat=o=>s(o,{bigint:!0}):this._stat=s,this._maxDepth=r.depth,this._wantsDir=[bOe,cR,uR].includes(i),this._wantsFile=[UB,cR,uR].includes(i),this._wantsEverything=i===uR,this._root=n_.resolve(n),this._isDirent="Dirent"in i_&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:r,depth:n,files:i=[]}=this.parent||{};if(i.length>0){let s=i.splice(0,t).map(o=>this._formatEntry(o,r));for(let o of await Promise.all(s)){if(this.destroyed)return;let a=await this._getEntryType(o);a==="directory"&&this._directoryFilter(o)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(o.fullPath,n+1)),this._wantsDir&&(this.push(o),t--)):(a==="file"||this._includeAsFile(o))&&this._fileFilter(o)&&this._wantsFile&&(this.push(o),t--)}}else{let s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(t,r){let n;try{n=await z5t(t,this._rdOptions)}catch(i){this._onError(i)}return{files:n,depth:r,path:t}}async _formatEntry(t,r){let n;try{let i=this._isDirent?t.name:t,s=n_.resolve(n_.join(r,i));n={path:n_.relative(this._root,s),fullPath:s,basename:i},n[this._statsProp]=this._isDirent?t:await this._stat(s)}catch(i){this._onError(i)}return n}_onError(t){Y5t(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let r=t&&t[this._statsProp];if(r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let n=t.fullPath;try{let i=await V5t(n),s=await gOe(i);if(s.isFile())return"file";if(s.isDirectory()){let o=i.length;if(n.startsWith(i)&&n.substr(o,1)===n_.sep){let a=new Error(`Circular symlink detected: "${n}" points to "${i}"`);return a.code=_Oe,this._onError(a)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(t){let r=t&&t[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},wg=(e,t={})=>{let r=t.entryType||t.type;if(r==="both"&&(r=cR),r&&(t.type=r),e){if(typeof e!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!vOe.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${vOe.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=e,new bg(t)},Q5t=(e,t={})=>new Promise((r,n)=>{let i=[];wg(e,t).on("data",s=>i.push(s)).on("end",()=>r(i)).on("error",s=>n(s))});wg.promise=Q5t;wg.ReaddirpStream=bg;wg.default=wg;wOe.exports=wg});var WB=m((YSr,SOe)=>{SOe.exports=function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var s=e.split(/[/\\]+/);return t!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var IOe=m((ROe,OOe)=>{"use strict";Object.defineProperty(ROe,"__esModule",{value:!0});var COe=PA(),e8t=WB(),TOe="!",t8t={returnIndex:!1},r8t=e=>Array.isArray(e)?e:[e],n8t=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=COe(e,t);return n=>e===n||r(n)}return e instanceof RegExp?r=>e.test(r):r=>!1},AOe=(e,t,r,n)=>{let i=Array.isArray(r),s=i?r[0]:r;if(!i&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));let o=e8t(s,!1);for(let u=0;u<t.length;u++){let c=t[u];if(c(o))return n?-1:!1}let a=i&&[o].concat(r.slice(1));for(let u=0;u<e.length;u++){let c=e[u];if(i?c(...a):c(o))return n?u:!0}return n?-1:!1},HB=(e,t,r=t8t)=>{if(e==null)throw new TypeError("anymatch: specify first argument");let n=typeof r=="boolean"?{returnIndex:r}:r,i=n.returnIndex||!1,s=r8t(e),o=s.filter(u=>typeof u=="string"&&u.charAt(0)===TOe).map(u=>u.slice(1)).map(u=>COe(u,n)),a=s.filter(u=>typeof u!="string"||typeof u=="string"&&u.charAt(0)!==TOe).map(u=>n8t(u,n));return t==null?(u,c=!1)=>AOe(a,o,u,typeof c=="boolean"?c:!1):AOe(a,o,t,i)};HB.default=HB;OOe.exports=HB});var qOe=m((ZSr,NOe)=>{NOe.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var $B=m((JSr,POe)=>{var i8t=qOe(),kOe={"{":"}","(":")","[":"]"},s8t=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=kOe[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},o8t=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=kOe[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};POe.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(i8t(t))return!0;var n=s8t;return r&&r.strict===!1&&(n=o8t),n(t)}});var LOe=m((QSr,DOe)=>{"use strict";var a8t=$B(),u8t=require("path").posix.dirname,c8t=require("os").platform()==="win32",zB="/",l8t=/\\/g,f8t=/[\{\[].*[\}\]]$/,p8t=/(^|[^\\])([\{\[]|\([^\)]+$)/,d8t=/\\([\!\*\?\|\[\]\(\)\{\}])/g;DOe.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&c8t&&t.indexOf(zB)<0&&(t=t.replace(l8t,zB)),f8t.test(t)&&(t+=zB),t+="a";do t=u8t(t);while(a8t(t)||p8t.test(t));return t.replace(d8t,"$1")}});var FOe=m((e1r,h8t)=>{h8t.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var jOe=m((t1r,MOe)=>{MOe.exports=FOe()});var UOe=m((r1r,BOe)=>{"use strict";var m8t=require("path"),g8t=jOe(),v8t=new Set(g8t);BOe.exports=e=>v8t.has(m8t.extname(e).slice(1).toLowerCase())});var fR=m(ke=>{"use strict";var{sep:y8t}=require("path"),{platform:GB}=process,x8t=require("os");ke.EV_ALL="all";ke.EV_READY="ready";ke.EV_ADD="add";ke.EV_CHANGE="change";ke.EV_ADD_DIR="addDir";ke.EV_UNLINK="unlink";ke.EV_UNLINK_DIR="unlinkDir";ke.EV_RAW="raw";ke.EV_ERROR="error";ke.STR_DATA="data";ke.STR_END="end";ke.STR_CLOSE="close";ke.FSEVENT_CREATED="created";ke.FSEVENT_MODIFIED="modified";ke.FSEVENT_DELETED="deleted";ke.FSEVENT_MOVED="moved";ke.FSEVENT_CLONED="cloned";ke.FSEVENT_UNKNOWN="unknown";ke.FSEVENT_TYPE_FILE="file";ke.FSEVENT_TYPE_DIRECTORY="directory";ke.FSEVENT_TYPE_SYMLINK="symlink";ke.KEY_LISTENERS="listeners";ke.KEY_ERR="errHandlers";ke.KEY_RAW="rawEmitters";ke.HANDLER_KEYS=[ke.KEY_LISTENERS,ke.KEY_ERR,ke.KEY_RAW];ke.DOT_SLASH=`.${y8t}`;ke.BACK_SLASH_RE=/\\/g;ke.DOUBLE_SLASH_RE=/\/\//;ke.SLASH_OR_BACK_SLASH_RE=/[/\\]/;ke.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;ke.REPLACER_RE=/^\.[/\\]/;ke.SLASH="/";ke.SLASH_SLASH="//";ke.BRACE_START="{";ke.BANG="!";ke.ONE_DOT=".";ke.TWO_DOTS="..";ke.STAR="*";ke.GLOBSTAR="**";ke.ROOT_GLOBSTAR="/**/*";ke.SLASH_GLOBSTAR="/**";ke.DIR_SUFFIX="Dir";ke.ANYMATCH_OPTS={dot:!0};ke.STRING_TYPE="string";ke.FUNCTION_TYPE="function";ke.EMPTY_STR="";ke.EMPTY_FN=()=>{};ke.IDENTITY_FN=e=>e;ke.isWindows=GB==="win32";ke.isMacos=GB==="darwin";ke.isLinux=GB==="linux";ke.isIBMi=x8t.type()==="OS400"});var VOe=m((i1r,GOe)=>{"use strict";var dc=require("fs"),Fn=require("path"),{promisify:u_}=require("util"),_8t=UOe(),{isWindows:b8t,isLinux:w8t,EMPTY_FN:E8t,EMPTY_STR:S8t,KEY_LISTENERS:Eg,KEY_ERR:VB,KEY_RAW:s_,HANDLER_KEYS:T8t,EV_CHANGE:dR,EV_ADD:pR,EV_ADD_DIR:A8t,EV_ERROR:HOe,STR_DATA:C8t,STR_END:R8t,BRACE_START:O8t,STAR:I8t}=fR(),N8t="watch",q8t=u_(dc.open),$Oe=u_(dc.stat),k8t=u_(dc.lstat),P8t=u_(dc.close),KB=u_(dc.realpath),D8t={lstat:k8t,stat:$Oe},YB=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},o_=(e,t,r)=>{let n=e[t];n instanceof Set||(e[t]=n=new Set([n])),n.add(r)},L8t=e=>t=>{let r=e[t];r instanceof Set?r.clear():delete e[t]},a_=(e,t,r)=>{let n=e[t];n instanceof Set?n.delete(r):n===r&&delete e[t]},zOe=e=>e instanceof Set?e.size===0:!e,hR=new Map;function WOe(e,t,r,n,i){let s=(o,a)=>{r(e),i(o,a,{watchedPath:e}),a&&e!==a&&mR(Fn.resolve(e,a),Eg,Fn.join(e,a))};try{return dc.watch(e,t,s)}catch(o){n(o)}}var mR=(e,t,r,n,i)=>{let s=hR.get(e);s&&YB(s[t],o=>{o(r,n,i)})},F8t=(e,t,r,n)=>{let{listener:i,errHandler:s,rawEmitter:o}=n,a=hR.get(t),u;if(!r.persistent)return u=WOe(e,r,i,s,o),u.close.bind(u);if(a)o_(a,Eg,i),o_(a,VB,s),o_(a,s_,o);else{if(u=WOe(e,r,mR.bind(null,t,Eg),s,mR.bind(null,t,s_)),!u)return;u.on(HOe,async c=>{let f=mR.bind(null,t,VB);if(a.watcherUnusable=!0,b8t&&c.code==="EPERM")try{let p=await q8t(e,"r");await P8t(p),f(c)}catch{}else f(c)}),a={listeners:i,errHandlers:s,rawEmitters:o,watcher:u},hR.set(t,a)}return()=>{a_(a,Eg,i),a_(a,VB,s),a_(a,s_,o),zOe(a.listeners)&&(a.watcher.close(),hR.delete(t),T8t.forEach(L8t(a)),a.watcher=void 0,Object.freeze(a))}},XB=new Map,M8t=(e,t,r,n)=>{let{listener:i,rawEmitter:s}=n,o=XB.get(t),a=new Set,u=new Set,c=o&&o.options;return c&&(c.persistent<r.persistent||c.interval>r.interval)&&(a=o.listeners,u=o.rawEmitters,dc.unwatchFile(t),o=void 0),o?(o_(o,Eg,i),o_(o,s_,s)):(o={listeners:i,rawEmitters:s,options:r,watcher:dc.watchFile(t,r,(f,p)=>{YB(o.rawEmitters,g=>{g(dR,t,{curr:f,prev:p})});let h=f.mtimeMs;(f.size!==p.size||h>p.mtimeMs||h===0)&&YB(o.listeners,g=>g(e,f))})},XB.set(t,o)),()=>{a_(o,Eg,i),a_(o,s_,s),zOe(o.listeners)&&(XB.delete(t),dc.unwatchFile(t),o.options=o.watcher=void 0,Object.freeze(o))}},ZB=class{constructor(t){this.fsw=t,this._boundHandleError=r=>t._handleError(r)}_watchWithNodeFs(t,r){let n=this.fsw.options,i=Fn.dirname(t),s=Fn.basename(t);this.fsw._getWatchedDir(i).add(s);let a=Fn.resolve(t),u={persistent:n.persistent};r||(r=E8t);let c;return n.usePolling?(u.interval=n.enableBinaryInterval&&_8t(s)?n.binaryInterval:n.interval,c=M8t(t,a,u,{listener:r,rawEmitter:this.fsw._emitRaw})):c=F8t(t,a,u,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),c}_handleFile(t,r,n){if(this.fsw.closed)return;let i=Fn.dirname(t),s=Fn.basename(t),o=this.fsw._getWatchedDir(i),a=r;if(o.has(s))return;let u=async(f,p)=>{if(this.fsw._throttle(N8t,t,5)){if(!p||p.mtimeMs===0)try{let h=await $Oe(t);if(this.fsw.closed)return;let g=h.atimeMs,v=h.mtimeMs;(!g||g<=v||v!==a.mtimeMs)&&this.fsw._emit(dR,t,h),w8t&&a.ino!==h.ino?(this.fsw._closeFile(f),a=h,this.fsw._addPathCloser(f,this._watchWithNodeFs(t,u))):a=h}catch{this.fsw._remove(i,s)}else if(o.has(s)){let h=p.atimeMs,g=p.mtimeMs;(!h||h<=g||g!==a.mtimeMs)&&this.fsw._emit(dR,t,p),a=p}}},c=this._watchWithNodeFs(t,u);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(pR,t,0))return;this.fsw._emit(pR,t,r)}return c}async _handleSymlink(t,r,n,i){if(this.fsw.closed)return;let s=t.fullPath,o=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let a;try{a=await KB(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(o.has(i)?this.fsw._symlinkPaths.get(s)!==a&&(this.fsw._symlinkPaths.set(s,a),this.fsw._emit(dR,n,t.stats)):(o.add(i),this.fsw._symlinkPaths.set(s,a),this.fsw._emit(pR,n,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(t,r,n,i,s,o,a){if(t=Fn.join(t,S8t),!n.hasGlob&&(a=this.fsw._throttle("readdir",t,1e3),!a))return;let u=this.fsw._getWatchedDir(n.path),c=new Set,f=this.fsw._readdirp(t,{fileFilter:p=>n.filterPath(p),directoryFilter:p=>n.filterDir(p),depth:0}).on(C8t,async p=>{if(this.fsw.closed){f=void 0;return}let h=p.path,g=Fn.join(t,h);if(c.add(h),!(p.stats.isSymbolicLink()&&await this._handleSymlink(p,t,g,h))){if(this.fsw.closed){f=void 0;return}(h===i||!i&&!u.has(h))&&(this.fsw._incrReadyCount(),g=Fn.join(s,Fn.relative(s,g)),this._addToNodeFs(g,r,n,o+1))}}).on(HOe,this._boundHandleError);return new Promise(p=>f.once(R8t,()=>{if(this.fsw.closed){f=void 0;return}let h=a?a.clear():!1;p(),u.getChildren().filter(g=>g!==t&&!c.has(g)&&(!n.hasGlob||n.filterPath({fullPath:Fn.resolve(t,g)}))).forEach(g=>{this.fsw._remove(t,g)}),f=void 0,h&&this._handleRead(t,!1,n,i,s,o,a)}))}async _handleDir(t,r,n,i,s,o,a){let u=this.fsw._getWatchedDir(Fn.dirname(t)),c=u.has(Fn.basename(t));!(n&&this.fsw.options.ignoreInitial)&&!s&&!c&&(!o.hasGlob||o.globFilter(t))&&this.fsw._emit(A8t,t,r),u.add(Fn.basename(t)),this.fsw._getWatchedDir(t);let f,p,h=this.fsw.options.depth;if((h==null||i<=h)&&!this.fsw._symlinkPaths.has(a)){if(!s&&(await this._handleRead(t,n,o,s,t,i,f),this.fsw.closed))return;p=this._watchWithNodeFs(t,(g,v)=>{v&&v.mtimeMs===0||this._handleRead(g,!1,o,s,t,i,f)})}return p}async _addToNodeFs(t,r,n,i,s){let o=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return o(),!1;let a=this.fsw._getWatchHelpers(t,i);!a.hasGlob&&n&&(a.hasGlob=n.hasGlob,a.globFilter=n.globFilter,a.filterPath=u=>n.filterPath(u),a.filterDir=u=>n.filterDir(u));try{let u=await D8t[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,u))return o(),!1;let c=this.fsw.options.followSymlinks&&!t.includes(I8t)&&!t.includes(O8t),f;if(u.isDirectory()){let p=Fn.resolve(t),h=c?await KB(t):t;if(this.fsw.closed||(f=await this._handleDir(a.watchPath,u,r,i,s,a,h),this.fsw.closed))return;p!==h&&h!==void 0&&this.fsw._symlinkPaths.set(p,h)}else if(u.isSymbolicLink()){let p=c?await KB(t):t;if(this.fsw.closed)return;let h=Fn.dirname(a.watchPath);if(this.fsw._getWatchedDir(h).add(a.watchPath),this.fsw._emit(pR,a.watchPath,u),f=await this._handleDir(h,u,r,i,t,a,p),this.fsw.closed)return;p!==void 0&&this.fsw._symlinkPaths.set(Fn.resolve(t),p)}else f=this._handleFile(a.watchPath,u,r);return o(),this.fsw._addPathCloser(t,f),!1}catch(u){if(this.fsw._handleError(u))return o(),t}}};GOe.exports=ZB});var eIe=m((s1r,sU)=>{"use strict";var nU=require("fs"),Mn=require("path"),{promisify:iU}=require("util"),Sg;try{Sg=require("fsevents")}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(Sg){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let t=Number.parseInt(e[1],10),r=Number.parseInt(e[2],10);t===8&&r<16&&(Sg=void 0)}}var{EV_ADD:JB,EV_CHANGE:j8t,EV_ADD_DIR:KOe,EV_UNLINK:gR,EV_ERROR:B8t,STR_DATA:U8t,STR_END:W8t,FSEVENT_CREATED:H8t,FSEVENT_MODIFIED:$8t,FSEVENT_DELETED:z8t,FSEVENT_MOVED:G8t,FSEVENT_UNKNOWN:V8t,FSEVENT_TYPE_FILE:K8t,FSEVENT_TYPE_DIRECTORY:c_,FSEVENT_TYPE_SYMLINK:QOe,ROOT_GLOBSTAR:XOe,DIR_SUFFIX:X8t,DOT_SLASH:YOe,FUNCTION_TYPE:QB,EMPTY_FN:Y8t,IDENTITY_FN:Z8t}=fR(),J8t=e=>isNaN(e)?{}:{depth:e},tU=iU(nU.stat),Q8t=iU(nU.lstat),ZOe=iU(nU.realpath),e7t={stat:tU,lstat:Q8t},$p=new Map,t7t=10,r7t=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),n7t=(e,t)=>({stop:Sg.watch(e,t)});function i7t(e,t,r,n){let i=Mn.extname(t)?Mn.dirname(t):t,s=Mn.dirname(i),o=$p.get(i);s7t(s)&&(i=s);let a=Mn.resolve(e),u=a!==t,c=(p,h,g)=>{u&&(p=p.replace(t,a)),(p===a||!p.indexOf(a+Mn.sep))&&r(p,h,g)},f=!1;for(let p of $p.keys())if(t.indexOf(Mn.resolve(p)+Mn.sep)===0){i=p,o=$p.get(i),f=!0;break}return o||f?o.listeners.add(c):(o={listeners:new Set([c]),rawEmitter:n,watcher:n7t(i,(p,h)=>{if(!o.listeners.size)return;let g=Sg.getInfo(p,h);o.listeners.forEach(v=>{v(p,h,g)}),o.rawEmitter(g.event,p,g)})},$p.set(i,o)),()=>{let p=o.listeners;if(p.delete(c),!p.size&&($p.delete(i),o.watcher))return o.watcher.stop().then(()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o)})}}var s7t=e=>{let t=0;for(let r of $p.keys())if(r.indexOf(e)===0&&(t++,t>=t7t))return!0;return!1},o7t=()=>Sg&&$p.size<128,eU=(e,t)=>{let r=0;for(;!e.indexOf(t)&&(e=Mn.dirname(e))!==t;)r++;return r},JOe=(e,t)=>e.type===c_&&t.isDirectory()||e.type===QOe&&t.isSymbolicLink()||e.type===K8t&&t.isFile(),rU=class{constructor(t){this.fsw=t}checkIgnored(t,r){let n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,r))return n.add(t),r&&r.isDirectory()&&n.add(t+XOe),!0;n.delete(t),n.delete(t+XOe)}addOrChange(t,r,n,i,s,o,a,u){let c=s.has(o)?j8t:JB;this.handleEvent(c,t,r,n,i,s,o,a,u)}async checkExists(t,r,n,i,s,o,a,u){try{let c=await tU(t);if(this.fsw.closed)return;JOe(a,c)?this.addOrChange(t,r,n,i,s,o,a,u):this.handleEvent(gR,t,r,n,i,s,o,a,u)}catch(c){c.code==="EACCES"?this.addOrChange(t,r,n,i,s,o,a,u):this.handleEvent(gR,t,r,n,i,s,o,a,u)}}handleEvent(t,r,n,i,s,o,a,u,c){if(!(this.fsw.closed||this.checkIgnored(r)))if(t===gR){let f=u.type===c_;(f||o.has(a))&&this.fsw._remove(s,a,f)}else{if(t===JB){if(u.type===c_&&this.fsw._getWatchedDir(r),u.type===QOe&&c.followSymlinks){let p=c.depth===void 0?void 0:eU(n,i)+1;return this._addToFsEvents(r,!1,!0,p)}this.fsw._getWatchedDir(s).add(a)}let f=u.type===c_?t+X8t:t;this.fsw._emit(f,r),f===KOe&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(t,r,n,i){if(this.fsw.closed||this.fsw._isIgnored(t))return;let s=this.fsw.options,a=i7t(t,r,async(u,c,f)=>{if(this.fsw.closed||s.depth!==void 0&&eU(u,r)>s.depth)return;let p=n(Mn.join(t,Mn.relative(t,u)));if(i&&!i(p))return;let h=Mn.dirname(p),g=Mn.basename(p),v=this.fsw._getWatchedDir(f.type===c_?p:h);if(r7t.has(c)||f.event===V8t)if(typeof s.ignored===QB){let _;try{_=await tU(p)}catch{}if(this.fsw.closed||this.checkIgnored(p,_))return;JOe(f,_)?this.addOrChange(p,u,r,h,v,g,f,s):this.handleEvent(gR,p,u,r,h,v,g,f,s)}else this.checkExists(p,u,r,h,v,g,f,s);else switch(f.event){case H8t:case $8t:return this.addOrChange(p,u,r,h,v,g,f,s);case z8t:case G8t:return this.checkExists(p,u,r,h,v,g,f,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(t,r,n,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let s=await ZOe(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||t,o=>{let a=t;return s&&s!==YOe?a=o.replace(s,t):o!==YOe&&(a=Mn.join(t,o)),n(a)},!1,i)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(t,r,n,i,s){let o=n(t),a=r.isDirectory(),u=this.fsw._getWatchedDir(Mn.dirname(o)),c=Mn.basename(o);a&&this.fsw._getWatchedDir(o),!u.has(c)&&(u.add(c),(!i.ignoreInitial||s===!0)&&this.fsw._emit(a?KOe:JB,o,r))}initWatch(t,r,n,i){if(this.fsw.closed)return;let s=this._watchWithFsEvents(n.watchPath,Mn.resolve(t||n.watchPath),i,n.globFilter);this.fsw._addPathCloser(r,s)}async _addToFsEvents(t,r,n,i){if(this.fsw.closed)return;let s=this.fsw.options,o=typeof r===QB?r:Z8t,a=this.fsw._getWatchHelpers(t);try{let u=await e7t[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,u))throw null;if(u.isDirectory()){if(a.globFilter||this.emitAdd(o(t),u,o,s,n),i&&i>s.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:c=>a.filterPath(c),directoryFilter:c=>a.filterDir(c),...J8t(s.depth-(i||0))}).on(U8t,c=>{if(this.fsw.closed||c.stats.isDirectory()&&!a.filterPath(c))return;let f=Mn.join(a.watchPath,c.path),{fullPath:p}=c;if(a.followSymlinks&&c.stats.isSymbolicLink()){let h=s.depth===void 0?void 0:eU(f,Mn.resolve(a.watchPath))+1;this._handleFsEventsSymlink(f,p,o,h)}else this.emitAdd(f,c.stats,o,s,n)}).on(B8t,Y8t).on(W8t,()=>{this.fsw._emitReady()})}else this.emitAdd(a.watchPath,u,o,s,n),this.fsw._emitReady()}catch(u){(!u||this.fsw._handleError(u))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&n!==!0)if(typeof r===QB)this.initWatch(void 0,t,a,o);else{let u;try{u=await ZOe(a.watchPath)}catch{}this.initWatch(u,t,a,o)}}};sU.exports=rU;sU.exports.canUse=o7t});var fIe=m(_U=>{"use strict";var{EventEmitter:a7t}=require("events"),yU=require("fs"),tr=require("path"),{promisify:aIe}=require("util"),u7t=EOe(),fU=IOe().default,c7t=LOe(),oU=$B(),l7t=j3(),f7t=WB(),p7t=VOe(),tIe=eIe(),{EV_ALL:aU,EV_READY:d7t,EV_ADD:vR,EV_CHANGE:l_,EV_UNLINK:rIe,EV_ADD_DIR:h7t,EV_UNLINK_DIR:m7t,EV_RAW:g7t,EV_ERROR:uU,STR_CLOSE:v7t,STR_END:y7t,BACK_SLASH_RE:x7t,DOUBLE_SLASH_RE:nIe,SLASH_OR_BACK_SLASH_RE:_7t,DOT_RE:b7t,REPLACER_RE:w7t,SLASH:cU,SLASH_SLASH:E7t,BRACE_START:S7t,BANG:pU,ONE_DOT:uIe,TWO_DOTS:T7t,GLOBSTAR:A7t,SLASH_GLOBSTAR:lU,ANYMATCH_OPTS:dU,STRING_TYPE:xU,FUNCTION_TYPE:C7t,EMPTY_STR:hU,EMPTY_FN:R7t,isWindows:O7t,isMacos:I7t,isIBMi:N7t}=fR(),q7t=aIe(yU.stat),k7t=aIe(yU.readdir),mU=(e=[])=>Array.isArray(e)?e:[e],cIe=(e,t=[])=>(e.forEach(r=>{Array.isArray(r)?cIe(r,t):t.push(r)}),t),iIe=e=>{let t=cIe(mU(e));if(!t.every(r=>typeof r===xU))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(lIe)},sIe=e=>{let t=e.replace(x7t,cU),r=!1;for(t.startsWith(E7t)&&(r=!0);t.match(nIe);)t=t.replace(nIe,cU);return r&&(t=cU+t),t},lIe=e=>sIe(tr.normalize(sIe(e))),oIe=(e=hU)=>t=>typeof t!==xU?t:lIe(tr.isAbsolute(t)?t:tr.join(e,t)),P7t=(e,t)=>tr.isAbsolute(e)?e:e.startsWith(pU)?pU+tr.join(t,e.slice(1)):tr.join(t,e),ta=(e,t)=>e[t]===void 0,gU=class{constructor(t,r){this.path=t,this._removeWatcher=r,this.items=new Set}add(t){let{items:r}=this;r&&t!==uIe&&t!==T7t&&r.add(t)}async remove(t){let{items:r}=this;if(!r||(r.delete(t),r.size>0))return;let n=this.path;try{await k7t(n)}catch{this._removeWatcher&&this._removeWatcher(tr.dirname(n),tr.basename(n))}}has(t){let{items:r}=this;if(r)return r.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},D7t="stat",L7t="lstat",vU=class{constructor(t,r,n,i){this.fsw=i,this.path=t=t.replace(w7t,hU),this.watchPath=r,this.fullWatchPath=tr.resolve(r),this.hasGlob=r!==t,t===hU&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?fU(t,void 0,dU):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=n,this.statMethod=n?D7t:L7t}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return tr.join(this.watchPath,tr.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:r}=t;if(r&&r.isSymbolicLink())return this.filterDir(t);let n=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===C7t?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,r)&&this.fsw._hasReadPermissions(r)}getDirParts(t){if(!this.hasGlob)return[];let r=[];return(t.includes(S7t)?l7t.expand(t):[t]).forEach(i=>{r.push(tr.relative(this.watchPath,i).split(_7t))}),r}filterDir(t){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(t)),n=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((s,o)=>(s===A7t&&(n=!0),n||!r[0][o]||fU(s,r[0][o],dU))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},yR=class extends a7t{constructor(t){super();let r={};t&&Object.assign(r,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,ta(r,"persistent")&&(r.persistent=!0),ta(r,"ignoreInitial")&&(r.ignoreInitial=!1),ta(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),ta(r,"interval")&&(r.interval=100),ta(r,"binaryInterval")&&(r.binaryInterval=300),ta(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,ta(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),tIe.canUse()||(r.useFsEvents=!1),ta(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=I7t),N7t&&(r.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let u=i.toLowerCase();u==="false"||u==="0"?r.usePolling=!1:u==="true"||u==="1"?r.usePolling=!0:r.usePolling=!!u}let s=process.env.CHOKIDAR_INTERVAL;s&&(r.interval=Number.parseInt(s,10)),ta(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),ta(r,"followSymlinks")&&(r.followSymlinks=!0),ta(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let o=r.awaitWriteFinish;o&&(o.stabilityThreshold||(o.stabilityThreshold=2e3),o.pollInterval||(o.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=mU(r.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=R7t,this._readyEmitted=!0,process.nextTick(()=>this.emit(d7t)))},this._emitRaw=(...u)=>this.emit(g7t,...u),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new tIe(this):this._nodeFsHandler=new p7t(this),Object.freeze(r)}add(t,r,n){let{cwd:i,disableGlobbing:s}=this.options;this.closed=!1;let o=iIe(t);return i&&(o=o.map(a=>{let u=P7t(a,i);return s||!oU(a)?u:f7t(u)})),o=o.filter(a=>a.startsWith(pU)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+lU),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=o.length),this.options.persistent&&(this._readyCount*=2),o.forEach(a=>this._fsEventsHandler._addToFsEvents(a))):(this._readyCount||(this._readyCount=0),this._readyCount+=o.length,Promise.all(o.map(async a=>{let u=await this._nodeFsHandler._addToNodeFs(a,!n,0,0,r);return u&&this._emitReady(),u})).then(a=>{this.closed||a.filter(u=>u).forEach(u=>{this.add(tr.dirname(u),tr.basename(r||u))})})),this}unwatch(t){if(this.closed)return this;let r=iIe(t),{cwd:n}=this.options;return r.forEach(i=>{!tr.isAbsolute(i)&&!this._closers.has(i)&&(n&&(i=tr.join(n,i)),i=tr.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+lU),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(r=>r.forEach(n=>{let i=n();i instanceof Promise&&t.push(i)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((r,n)=>{let i=this.options.cwd?tr.relative(this.options.cwd,n):n;t[i||uIe]=r.getChildren().sort()}),t}emitWithAll(t,r){this.emit(...r),t!==uU&&this.emit(aU,...r)}async _emit(t,r,n,i,s){if(this.closed)return;let o=this.options;O7t&&(r=tr.normalize(r)),o.cwd&&(r=tr.relative(o.cwd,r));let a=[t,r];s!==void 0?a.push(n,i,s):i!==void 0?a.push(n,i):n!==void 0&&a.push(n);let u=o.awaitWriteFinish,c;if(u&&(c=this._pendingWrites.get(r)))return c.lastChange=new Date,this;if(o.atomic){if(t===rIe)return this._pendingUnlinks.set(r,a),setTimeout(()=>{this._pendingUnlinks.forEach((f,p)=>{this.emit(...f),this.emit(aU,...f),this._pendingUnlinks.delete(p)})},typeof o.atomic=="number"?o.atomic:100),this;t===vR&&this._pendingUnlinks.has(r)&&(t=a[0]=l_,this._pendingUnlinks.delete(r))}if(u&&(t===vR||t===l_)&&this._readyEmitted){let f=(p,h)=>{p?(t=a[0]=uU,a[1]=p,this.emitWithAll(t,a)):h&&(a.length>2?a[2]=h:a.push(h),this.emitWithAll(t,a))};return this._awaitWriteFinish(r,u.stabilityThreshold,t,f),this}if(t===l_&&!this._throttle(l_,r,50))return this;if(o.alwaysStat&&n===void 0&&(t===vR||t===h7t||t===l_)){let f=o.cwd?tr.join(o.cwd,r):r,p;try{p=await q7t(f)}catch{}if(!p||this.closed)return;a.push(p)}return this.emitWithAll(t,a),this}_handleError(t){let r=t&&t.code;return t&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(uU,t),t||this.closed}_throttle(t,r,n){this._throttled.has(t)||this._throttled.set(t,new Map);let i=this._throttled.get(t),s=i.get(r);if(s)return s.count++,!1;let o,a=()=>{let c=i.get(r),f=c?c.count:0;return i.delete(r),clearTimeout(o),c&&clearTimeout(c.timeoutObject),f};o=setTimeout(a,n);let u={timeoutObject:o,clear:a,count:0};return i.set(r,u),u}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,r,n,i){let s,o=t;this.options.cwd&&!tr.isAbsolute(t)&&(o=tr.join(this.options.cwd,t));let a=new Date,u=c=>{yU.stat(o,(f,p)=>{if(f||!this._pendingWrites.has(t)){f&&f.code!=="ENOENT"&&i(f);return}let h=Number(new Date);c&&p.size!==c.size&&(this._pendingWrites.get(t).lastChange=h);let g=this._pendingWrites.get(t);h-g.lastChange>=r?(this._pendingWrites.delete(t),i(void 0,p)):s=setTimeout(u,this.options.awaitWriteFinish.pollInterval,p)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:a,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(s),n)}),s=setTimeout(u,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,r){if(this.options.atomic&&b7t.test(t))return!0;if(!this._userIgnored){let{cwd:n}=this.options,i=this.options.ignored,s=i&&i.map(oIe(n)),o=mU(s).filter(u=>typeof u===xU&&!oU(u)).map(u=>u+lU),a=this._getGlobIgnored().map(oIe(n)).concat(s,o);this._userIgnored=fU(a,void 0,dU)}return this._userIgnored([t,r])}_isntIgnored(t,r){return!this._isIgnored(t,r)}_getWatchHelpers(t,r){let n=r||this.options.disableGlobbing||!oU(t)?t:c7t(t),i=this.options.followSymlinks;return new vU(t,n,i,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=tr.resolve(t);return this._watched.has(r)||this._watched.set(r,new gU(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let n=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(n.toString(8)[0],10))}_remove(t,r,n){let i=tr.join(t,r),s=tr.resolve(i);if(n=n??(this._watched.has(i)||this._watched.has(s)),!this._throttle("remove",i,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,r,!0),this._getWatchedDir(i).getChildren().forEach(h=>this._remove(i,h));let u=this._getWatchedDir(t),c=u.has(r);u.remove(r),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let f=i;if(this.options.cwd&&(f=tr.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===vR)return;this._watched.delete(i),this._watched.delete(s);let p=n?m7t:rIe;c&&!this._isIgnored(i)&&this._emit(p,i),this.options.useFsEvents||this._closePath(i)}_closePath(t){this._closeFile(t);let r=tr.dirname(t);this._getWatchedDir(r).remove(tr.basename(t))}_closeFile(t){let r=this._closers.get(t);r&&(r.forEach(n=>n()),this._closers.delete(t))}_addPathCloser(t,r){if(!r)return;let n=this._closers.get(t);n||(n=[],this._closers.set(t,n)),n.push(r)}_readdirp(t,r){if(this.closed)return;let n={type:aU,alwaysStat:!0,lstat:!0,...r},i=u7t(t,n);return this._streams.add(i),i.once(v7t,()=>{i=void 0}),i.once(y7t,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};_U.FSWatcher=yR;var F7t=(e,t)=>{let r=new yR(t);return r.add(e),r};_U.watch=F7t});var dIe=m((a1r,pIe)=>{var M7t=/^(?:@([^/]+)\/)?(([^\.]+)(?:\.(.*))?)$/;pIe.exports=function(t){var r={scope:null,fullName:"",projectName:"",moduleName:""},n=(typeof t=="object"?t.name||"":t||"").match(M7t);return n&&(r.scope=n[1]||null,r.fullName=n[2]||n[0],r.projectName=n[3]===n[2]?null:n[3],r.moduleName=n[4]||n[2]||null),r}});var mIe=m((u1r,hIe)=>{hIe.exports=function(t){var r=/(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/;return r.test(t)}});var yIe=m((c1r,vIe)=>{vIe.exports=gIe;function zp(e,t){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(e,t);e.__proto__=t}function gIe(){this.list=[];var e=null;Object.defineProperty(this,"root",{get:function(){return e},set:function(t){e=t,this.list.length&&zp(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}gIe.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!="object"&&(e={valueOf:e}),this.list.length>=1&&zp(this.list[this.list.length-1],e),zp(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&zp(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return zp(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&zp(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var r in this.list[0])e.call(t,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)zp(this.list[t],this.list[t+1]||this.root);return e}}});var wIe=m(Gp=>{Gp.parse=Gp.decode=j7t;Gp.stringify=Gp.encode=xIe;Gp.safe=Tg;Gp.unsafe=xR;var bU=typeof process<"u"&&process.platform==="win32"?`\r
|
|
214
214
|
`:`
|
|
215
215
|
`;function xIe(e,t){var r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var i=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(s,o,a){var u=e[s];u&&Array.isArray(u)?u.forEach(function(c){n+=Tg(s+"[]")+i+Tg(c)+`
|
|
216
216
|
`}):u&&typeof u=="object"?r.push(s):n+=Tg(s)+i+Tg(u)+bU}),t.section&&n.length&&(n="["+Tg(t.section)+"]"+bU+n),r.forEach(function(s,o,a){var u=_Ie(s).join("\\."),c=(t.section?t.section+".":"")+u,f=xIe(e[s],{section:c,whitespace:t.whitespace});n.length&&f.length&&(n+=bU),n+=f}),n}function _Ie(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function j7t(e){var t={},r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var c=o.match(i);if(c){if(c[1]!==void 0){if(n=xR(c[1]),n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var f=xR(c[2]);if(f!=="__proto__"){var p=c[3]?xR(c[4]):!0;switch(p){case"true":case"false":case"null":p=JSON.parse(p)}if(f.length>2&&f.slice(-2)==="[]"){if(f=f.substring(0,f.length-2),f==="__proto__")return;r[f]?Array.isArray(r[f])||(r[f]=[r[f]]):r[f]=[]}Array.isArray(r[f])?r[f].push(p):r[f]=p}}}}),Object.keys(t).filter(function(o,a,u){if(!t[o]||typeof t[o]!="object"||Array.isArray(t[o]))return!1;var c=_Ie(o),f=t,p=c.pop(),h=p.replace(/\\\./g,".");return c.forEach(function(g,v,_){g!=="__proto__"&&((!f[g]||typeof f[g]!="object")&&(f[g]={}),f=f[g])}),f===t&&h===p?!1:(f[h]=t[o],!0)}).forEach(function(o,a,u){delete t[o]}),t}function bIe(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function Tg(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&bIe(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function xR(e,t){if(e=(e||"").trim(),bIe(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var r=!1,n="",i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e}});var AIe=m((hc,TIe)=>{var EIe=yIe(),f_=require("path"),_R=require("fs"),wU=wIe(),EU=require("events").EventEmitter,B7t=require("url"),U7t=require("http"),hc=TIe.exports=function(){for(var e=[].slice.call(arguments),t=new Ti;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?H7t(r):r)}return t},f1r=hc.find=function(){var e=f_.join.apply(null,[].slice.call(arguments));function t(r,n){var i=f_.join(r,n);try{return _R.statSync(i),i}catch{if(f_.dirname(r)!==r)return t(f_.dirname(r),n)}}return t(__dirname,e)},W7t=hc.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(n){this.emit("error",n)}else return JSON.parse(e);else return wU.parse(e);else try{return JSON.parse(e)}catch{return wU.parse(e)}},H7t=hc.json=function(){var e=[].slice.call(arguments).filter(function(n){return n!=null}),t=f_.join.apply(null,e),r;try{r=_R.readFileSync(t,"utf-8")}catch{return}return W7t(r,t,"json")},p1r=hc.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)i.indexOf(e)===0&&(r[i.substring(n)]=t[i]);return r};hc.ConfigChain=Ti;function Ti(){EU.apply(this),EIe.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var SIe={constructor:{value:Ti}};Object.keys(EU.prototype).forEach(function(e){SIe[e]=Object.getOwnPropertyDescriptor(EU.prototype,e)});Ti.prototype=Object.create(EIe.prototype,SIe);Ti.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][e];return this};Ti.prototype.set=function(e,t,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[e]=t,this};Ti.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};Ti.prototype.save=function(e,s,r){typeof s=="function"&&(r=s,s=null);var n=this.sources[e];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+e));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(a){n.source[i+a]=n.data[a]}),this}var s=s||n.type,o=n.data;return n.type==="json"?o=JSON.stringify(o):o=wU.stringify(o),this._saving++,_R.writeFile(n.path,o,"utf8",function(a){if(this._saving--,a)return r?r(a):this.emit("error",a);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};Ti.prototype.addFile=function(e,t,r){r=r||e;var n={__source__:r};return this.sources[r]={path:e,type:t},this.push(n),this._await(),_R.readFile(e,"utf8",function(i,s){i&&this.emit("error",i),this.addString(s,e,t,n)}.bind(this)),this};Ti.prototype.addEnv=function(e,t,r){r=r||"env";var n=hc.env(e,t);return this.sources[r]={data:n,source:t,prefix:e},this.add(n,r)};Ti.prototype.addUrl=function(e,t,r){this._await();var n=B7t.format(e);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:t},this.push(i),U7t.request(e,function(s){var o=[],a=s.headers["content-type"];t||(t=a.indexOf("json")!==-1?"json":a.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=t),s.on("data",o.push.bind(o)).on("end",function(){this.addString(Buffer.concat(o),n,t,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};Ti.prototype.addString=function(e,t,r,n){return e=this.parse(e,t,r),this.add(e,n),this};Ti.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};Ti.prototype.parse=hc.parse;Ti.prototype._await=function(){this._awaiting++};Ti.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var OIe=m(RIe=>{"use strict";var Vp=require("path"),$7t=require("stream").Stream,bR=require("url"),z7t=()=>{},G7t=()=>[],CIe=()=>{};RIe.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:Vp,cache:Vp,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,global:Boolean,globalconfig:Vp,"global-style":Boolean,group:[Number,String],"https-proxy":[null,bR],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":Vp,"init-author-name":String,"init-author-email":String,"init-author-url":["",bR],"init-license":String,"init-version":CIe,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":G7t(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:$7t,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-version":[null,CIe],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:Vp,production:Boolean,progress:Boolean,"proprietary-attribs":Boolean,proxy:[null,!1,bR],"rebuild-bundle":Boolean,registry:[null,bR],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:Vp,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:Vp,umask:z7t,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var NIe=m(wR=>{"use strict";var V7t=require("fs"),Kp=require("path"),K7t=OIe(),IIe=e=>{if(typeof e!="string"||!e)return e;let t=/(\\*)\$\{([^}]+)\}/g;return e.replace(t,(r,n,i)=>{if(n=n.length>0&&n.length%2,n)return r;if(process.env[i]===void 0)throw new Error(`Failed to replace env in config: ${r}`);return process.env[i]})},X7t=(e,t)=>{if(typeof e!="string")return e;let r=[].concat(K7t[t]),n=r.indexOf(Kp)!==-1,i=r.indexOf(Boolean)!==-1,s=r.indexOf(String)!==-1,o=r.indexOf(Number)!==-1;if(e=`${e}`.trim(),/^".*"$/.test(e))try{e=JSON.parse(e)}catch{throw new Error(`Failed parsing JSON config key ${t}: ${e}`)}if(i&&!s&&e==="")return!0;switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}return e=IIe(e),n&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&process.env.HOME&&(e=Kp.resolve(process.env.HOME,e.substr(2))),e=Kp.resolve(e)),o&&!e.isNan()&&(e=Number(e)),e},Y7t=e=>{e=Kp.resolve(e);let t=!1;for(;Kp.basename(e)==="node_modules";)e=Kp.dirname(e),t=!0;if(t)return e;let r=(n,i)=>{let s=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&s.test(n))return i;try{let o=V7t.readdirSync(n);if(o.indexOf("node_modules")!==-1||o.indexOf("package.json")!==-1)return n;let a=Kp.dirname(n);return a===n?i:r(a,i)}catch(o){if(n===i){if(o.code==="ENOENT")return i;throw o}return i}};return r(e,e)};wR.envReplace=IIe;wR.findPrefix=Y7t;wR.parseField=X7t});var PIe=m((m1r,kIe)=>{"use strict";var SU=require("fs"),TU=require("path"),Z7t=AIe().ConfigChain,qIe=NIe(),AU=class extends Z7t{constructor(t){super(t),this.root=t}add(t,r){try{for(let n of Object.keys(t))t[n]=qIe.parseField(t[n],n)}catch(n){throw n}return super.add(t,r)}addFile(t,r){r=r||t;let n={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(n),this._await();try{let i=SU.readFileSync(t,"utf8");this.addString(i,t,"ini",n)}catch{this.add({},n)}return this}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{if(!t[n])return;let i=n.toLowerCase().replace(/^npm_config_/,"").replace(/(?!^)_/g,"-");r[i]=t[n]}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>TU.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=TU.resolve(t.prefix);else try{r=qIe.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(t){if(t)try{let r=SU.readFileSync(t,"utf8"),n="-----END CERTIFICATE-----",i=r.split(n).filter(s=>!!s.trim()).map(s=>s.trimLeft()+n);this.set("ca",i)}catch(r){if(r.code==="ENOENT")return;throw r}}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=TU.resolve(this.get("prefix"));try{let n=SU.statSync(r);t.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};kIe.exports=AU});var BIe=m(jIe=>{"use strict";var FIe=require("os"),mc=require("path"),MIe=FIe.tmpdir(),J7t=process.getuid?process.getuid():process.pid,Q7t=()=>!0,DIe=process.platform==="win32",LIe={editor:()=>process.env.EDITOR||process.env.VISUAL||(DIe?"notepad.exe":"vi"),shell:()=>DIe?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},e9t={fromString:()=>process.umask()},Ag=FIe.homedir();Ag?process.env.HOME=Ag:Ag=mc.resolve(MIe,"npm-"+J7t);var t9t=process.platform==="win32"?"npm-cache":".npm",r9t=process.platform==="win32"?process.env.APPDATA:Ag,n9t=mc.resolve(r9t,t9t),ER,Xp;Object.defineProperty(jIe,"defaults",{get:function(){return ER||(process.env.PREFIX?Xp=process.env.PREFIX:process.platform==="win32"?Xp=mc.dirname(process.execPath):(Xp=mc.dirname(mc.dirname(process.execPath)),process.env.DESTDIR&&(Xp=mc.join(process.env.DESTDIR,Xp))),ER={access:null,"allow-same-version":!1,"always-auth":!1,also:null,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:n9t,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,color:!0,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:LIe.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,global:!1,globalconfig:mc.resolve(Xp,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":mc.resolve(Ag,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-version":process.version,offline:!1,"onload-script":!1,only:null,optional:!0,"package-lock":!0,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:Xp,production:process.env.NODE_ENV==="production",progress:!process.env.TRAVIS&&!process.env.CI,"proprietary-attribs":!0,proxy:null,"https-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:15*60,"send-metrics":!1,shell:LIe.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:MIe,unicode:Q7t(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:mc.resolve(Ag,".npmrc"),umask:process.umask?process.umask():e9t.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},ER)}})});var WIe=m((v1r,CU)=>{"use strict";var SR=require("path"),i9t=PIe(),UIe=BIe();CU.exports=e=>{let t=new i9t(Object.assign({},UIe.defaults));t.add(Object.assign({},e),"cli"),t.addEnv(),t.loadPrefix();let r=SR.resolve(t.localPrefix,".npmrc"),n=t.get("userconfig");if(!t.get("global")&&r!==n?t.addFile(r,"project"):t.add({},"project"),t.addFile(t.get("userconfig"),"user"),t.get("prefix")){let s=SR.resolve(t.get("prefix"),"etc");t.root.globalconfig=SR.resolve(s,"npmrc"),t.root.globalignorefile=SR.resolve(s,"npmignore")}t.addFile(t.get("globalconfig"),"global"),t.loadUser();let i=t.get("cafile");return i&&t.loadCAFile(i),t};CU.exports.defaults=Object.assign({},UIe.defaults)});var $Ie=m((y1r,HIe)=>{"use strict";var RU=WIe()();HIe.exports=()=>process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||RU.get("https-proxy")||RU.get("http-proxy")||RU.get("proxy")||null});var KIe=m(Cg=>{"use strict";var x1r=require("net"),s9t=require("tls"),OU=require("http"),zIe=require("https"),o9t=require("events"),a9t=require("assert"),u9t=require("util"),c9t=vo().Buffer;Cg.httpOverHttp=l9t;Cg.httpsOverHttp=f9t;Cg.httpOverHttps=p9t;Cg.httpsOverHttps=d9t;function l9t(e){var t=new Qa(e);return t.request=OU.request,t}function f9t(e){var t=new Qa(e);return t.request=OU.request,t.createSocket=GIe,t.defaultPort=443,t}function p9t(e){var t=new Qa(e);return t.request=zIe.request,t}function d9t(e){var t=new Qa(e);return t.request=zIe.request,t.createSocket=GIe,t.defaultPort=443,t}function Qa(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||OU.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(n,i,s){for(var o=0,a=t.requests.length;o<a;++o){var u=t.requests[o];if(u.host===i&&u.port===s){t.requests.splice(o,1),u.request.onSocket(n);return}}n.destroy(),t.removeSocket(n)})}u9t.inherits(Qa,o9t.EventEmitter);Qa.prototype.addRequest=function(t,r){var n=this;if(typeof r=="string"&&(r={host:r,port:arguments[2],path:arguments[3]}),n.sockets.length>=this.maxSockets){n.requests.push({host:r.host,port:r.port,request:t});return}n.createConnection({host:r.host,port:r.port,request:t})};Qa.prototype.createConnection=function(t){var r=this;r.createSocket(t,function(n){n.on("free",i),n.on("close",s),n.on("agentRemove",s),t.request.onSocket(n);function i(){r.emit("free",n,t.host,t.port)}function s(o){r.removeSocket(n),n.removeListener("free",i),n.removeListener("close",s),n.removeListener("agentRemove",s)}})};Qa.prototype.createSocket=function(t,r){var n=this,i={};n.sockets.push(i);var s=VIe({},n.proxyOptions,{method:"CONNECT",path:t.host+":"+t.port,agent:!1});s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+c9t.from(s.proxyAuth).toString("base64")),Yp("making CONNECT request");var o=n.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",u),o.once("connect",c),o.once("error",f),o.end();function a(p){p.upgrade=!0}function u(p,h,g){process.nextTick(function(){c(p,h,g)})}function c(p,h,g){if(o.removeAllListeners(),h.removeAllListeners(),p.statusCode===200)a9t.equal(g.length,0),Yp("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h);else{Yp("tunneling socket could not be established, statusCode=%d",p.statusCode);var v=new Error("tunneling socket could not be established, statusCode="+p.statusCode);v.code="ECONNRESET",t.request.emit("error",v),n.removeSocket(i)}}function f(p){o.removeAllListeners(),Yp(`tunneling socket could not be established, cause=%s
|
|
217
|
-
`,p.message,p.stack);var h=new Error("tunneling socket could not be established, cause="+p.message);h.code="ECONNRESET",t.request.emit("error",h),n.removeSocket(i)}};Qa.prototype.removeSocket=function(t){var r=this.sockets.indexOf(t);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createConnection(n)}};function GIe(e,t){var r=this;Qa.prototype.createSocket.call(r,e,function(n){var i=s9t.connect(0,VIe({},r.options,{servername:e.host,socket:n}));r.sockets[r.sockets.indexOf(n)]=i,t(i)})}function VIe(e){for(var t=1,r=arguments.length;t<r;++t){var n=arguments[t];if(typeof n=="object")for(var i=Object.keys(n),s=0,o=i.length;s<o;++s){var a=i[s];n[a]!==void 0&&(e[a]=n[a])}}return e}var Yp;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Yp=function(){var e=Array.prototype.slice.call(arguments);typeof e[0]=="string"?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:Yp=function(){};Cg.debug=Yp});var ZIe=m((b1r,YIe)=>{"use strict";var h9t=require("url"),XIe=$Ie(),m9t=lB(),g9t=KIe(),v9t=uB();YIe.exports=(e,t)=>{if(e=e||XIe(),t=Object.assign({},t),typeof e=="object"&&(t=e,e=XIe()),!e)return null;e=m9t.lenient(e)?v9t(e):h9t.parse(e);let r=t.protocol==="https"?"https":"http",n=e.protocol==="https:"?"Https":"Http",i=e.port||(n==="Https"?443:80),s=`${r}Over${n}`;return delete t.protocol,g9t[s](Object.assign({proxy:{port:i,host:e.hostname,proxyAuth:e.auth}},t))}});var eNe=m((w1r,QIe)=>{"use strict";var TR=require("path"),y9t=yj(),IU=_j(),x9t=bj(),_9t=100,JIe=/[\u0000-\u001f\u0080-\u009f]/g,b9t=/^\.+/,NU=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");t=t||{};let r=t.replacement===void 0?"!":t.replacement;if(IU().test(r)&&JIe.test(r))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(IU(),r),e=e.replace(JIe,r),e=e.replace(b9t,r),r.length>0&&(e=y9t(e,r),e=e.length>1?x9t(e,r):e),e=IU.windowsNames().test(e)?e+r:e,e=e.slice(0,_9t),e};NU.path=(e,t)=>(e=TR.resolve(e),TR.join(TR.dirname(e),NU(TR.basename(e),t)));QIe.exports=NU});var rNe=m((E1r,tNe)=>{"use strict";var w9t=require("stream").PassThrough;tNe.exports=e=>{e=Object.assign({},e);let t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new w9t({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var nNe=m((S1r,AR)=>{"use strict";var E9t=rNe();function qU(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer,n,i,s=new Promise((o,a)=>{let u=c=>{c&&(c.bufferedData=n.getBufferedValue()),a(c)};n=E9t(t),e.once("error",u),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return s.then(i,i),s.then(()=>n.getBufferedValue())}AR.exports=qU;AR.exports.buffer=(e,t)=>qU(e,Object.assign({},t,{encoding:"buffer"}));AR.exports.array=(e,t)=>qU(e,Object.assign({},t,{array:!0}))});var kU=m((T1r,sNe)=>{"use strict";var iNe=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{t.errorFirst?n.push(function(o,a){if(t.multiArgs){let u=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)u[c-1]=arguments[c];o?(u.unshift(o),s(u)):i(u)}else o?s(o):i(a)}):n.push(function(o){if(t.multiArgs){let a=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)a[u]=arguments[u];i(a)}else i(o)}),e.apply(this,n)})};sNe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):iNe(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&r(i)?iNe(s,t):s}return n}});var cNe=m((A1r,PU)=>{"use strict";var S9t=require("fs"),Zp=require("path"),oNe=kU(),aNe={mode:511&~process.umask(),fs:S9t},uNe=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Zp.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}};PU.exports=(e,t)=>Promise.resolve().then(()=>{uNe(e),t=Object.assign({},aNe,t);let r=oNe(t.fs.mkdir),n=oNe(t.fs.stat),i=s=>r(s,t.mode).then(()=>s).catch(o=>{if(o.code==="ENOENT"){if(o.message.includes("null bytes")||Zp.dirname(s)===s)throw o;return i(Zp.dirname(s)).then(()=>i(s))}return n(s).then(a=>a.isDirectory()?s:Promise.reject()).catch(()=>{throw o})});return i(Zp.resolve(e))});PU.exports.sync=(e,t)=>{uNe(e),t=Object.assign({},aNe,t);let r=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="ENOENT"){if(i.message.includes("null bytes")||Zp.dirname(n)===n)throw i;return r(Zp.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(Zp.resolve(e))}});var fNe=m((C1r,lNe)=>{"use strict";var CR=e=>[...e].map(t=>t.charCodeAt(0)),T9t=CR("META-INF/mozilla.rsa"),A9t=CR("[Content_Types].xml"),C9t=CR("_rels/.rels");lNe.exports=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(i,s)=>{s=Object.assign({offset:0},s);for(let o=0;o<i.length;o++)if(s.mask){if(i[o]!==(s.mask[o]&t[o+s.offset]))return!1}else if(i[o]!==t[o+s.offset])return!1;return!0},n=(i,s)=>r(CR(i),s);if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(T9t,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};if(r(A9t,{offset:30})||r(C9t,{offset:30})){let i=t.subarray(4,2004),s=a=>a.findIndex((u,c,f)=>f[c]===80&&f[c+1]===75&&f[c+2]===3&&f[c+3]===4),o=s(i);if(o!==-1){let a=t.subarray(o+8,o+8+1e3),u=s(a);if(u!==-1){let c=8+o+u+30;if(n("word/",{offset:c}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(n("ppt/",{offset:c}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(n("xl/",{offset:c}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let i=t.subarray(4,4100),s=i.findIndex((o,a,u)=>u[a]===66&&u[a+1]===130);if(s!==-1){let o=s+3,a=u=>[...u].every((c,f)=>i[o+f]===c.charCodeAt(0));if(a("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(a("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/x-wav"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let i=0;i<2&&i<t.length-16;i++){if(r([73,68,51],{offset:i})||r([255,226],{offset:i,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:i,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:i,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:i,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32]))return{ext:"m4a",mime:"audio/m4a"};if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((t[0]===67||t[0]===70)&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/octet-stream"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77,0]))return{ext:"aif",mime:"audio/aiff"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([102,116,121,112],{offset:4})){if(r([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(r([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(r([104,101,105,99],{offset:8})||r([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(r([104,101,118,99],{offset:8})||r([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return r([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:null}});var yNe=m((R1r,vNe)=>{"use strict";var R9t=require("fs"),p_=require("path"),gNe=require("url"),pNe=ZIe(),O9t=b6(),dNe=w6(),hNe=vj(),I9t=eNe(),N9t=nNe(),q9t=vB(),k9t=cNe(),P9t=kU(),D9t=LB(),L9t=fNe(),F9t=jB(),M9t=P9t(R9t),j9t=e=>p_.basename(gNe.parse(e.requestUrl).pathname),B9t=e=>{let t=e.headers["content-type"];if(!t)return null;let r=F9t.mime(t);return r.length!==1?null:r[0].ext},U9t=(e,t)=>{let r=e.headers["content-disposition"];if(r){let i=O9t.parse(r);if(i.parameters&&i.parameters.filename)return i.parameters.filename}let n=j9t(e);if(!p_.extname(n)){let i=(L9t(t)||{}).ext||B9t(e);i&&(n=`${n}.${i}`)}return n},mNe=e=>{let{protocol:t}=gNe.parse(e);return t&&(t=t.slice(0,-1)),t};vNe.exports=(e,t,r)=>{typeof t=="object"&&(r=t,t=null);let n=mNe(e);r=Object.assign({encoding:null,rejectUnauthorized:process.env.npm_config_strict_ssl!=="false"},r);let i=pNe(r.proxy,{protocol:n}),s=q9t.stream(e,Object.assign({agent:i},r)).on("redirect",(a,u)=>{let c=mNe(u.href);c&&c!==n&&(u.agent=pNe(r.proxy,{protocol:c}))}),o=D9t(s,"response").then(a=>{let u=r.encoding===null?"buffer":r.encoding;return Promise.all([N9t(s,{encoding:u}),a])}).then(a=>{let[u,c]=a;if(!t)return r.extract&&dNe(u)?hNe(u,r):u;let f=r.filename||I9t(U9t(c,u)),p=p_.join(t,f);return r.extract&&dNe(u)?hNe(u,p_.dirname(p),r):k9t(p_.dirname(p)).then(()=>M9t.writeFile(p,u)).then(()=>u)});return s.then=o.then.bind(o),s.catch=o.catch.bind(o),s}});var bNe=m((O1r,_Ne)=>{var xNe=require("child_process").spawn;_Ne.exports=function(e,t,r,n){typeof r=="function"&&(n=r,r=null),r=r||{};var i=r.git||"git",s=["clone"];r.shallow&&(s.push("--depth"),s.push("1")),s.push("--"),s.push(e),s.push(t);var o=xNe(i,s);o.on("close",function(u){u==0?r.checkout?a():n&&n():n&&n(new Error("'git clone' failed with status "+u))});function a(){var u=["checkout",r.checkout],c=xNe(i,u,{cwd:t});c.on("close",function(f){f==0?n&&n():n&&n(new Error("'git checkout' failed with status "+f))})}}});var wNe=m(DU=>{var Jp=require("path"),Bl=process.platform==="win32",jl=require("fs"),W9t=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function H9t(){var e;if(W9t){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function $9t(e){return typeof e=="function"?e:H9t()}var I1r=Jp.normalize;Bl?gc=/(.*?)(?:[\/\\]+|$)/g:gc=/(.*?)(?:[\/]+|$)/g;var gc;Bl?d_=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:d_=/^[\/]*/;var d_;DU.realpathSync=function(t,r){if(t=Jp.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},o,a,u,c;f();function f(){var w=d_.exec(t);o=w[0].length,a=w[0],u=w[0],c="",Bl&&!s[u]&&(jl.lstatSync(u),s[u]=!0)}for(;o<t.length;){gc.lastIndex=o;var p=gc.exec(t);if(c=a,a+=p[0],u=c+p[1],o=gc.lastIndex,!(s[u]||r&&r[u]===u)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,u))h=r[u];else{var g=jl.lstatSync(u);if(!g.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var v=null;if(!Bl){var _=g.dev.toString(32)+":"+g.ino.toString(32);i.hasOwnProperty(_)&&(v=i[_])}v===null&&(jl.statSync(u),v=jl.readlinkSync(u)),h=Jp.resolve(c,v),r&&(r[u]=h),Bl||(i[_]=v)}t=Jp.resolve(h,t.slice(o)),f()}}return r&&(r[n]=t),t};DU.realpath=function(t,r,n){if(typeof n!="function"&&(n=$9t(r),r=null),t=Jp.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},o={},a,u,c,f;p();function p(){var w=d_.exec(t);a=w[0].length,u=w[0],c=w[0],f="",Bl&&!o[c]?jl.lstat(c,function(y){if(y)return n(y);o[c]=!0,h()}):process.nextTick(h)}function h(){if(a>=t.length)return r&&(r[i]=t),n(null,t);gc.lastIndex=a;var w=gc.exec(t);return f=u,u+=w[0],c=f+w[1],a=gc.lastIndex,o[c]||r&&r[c]===c?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,c)?_(r[c]):jl.lstat(c,g)}function g(w,y){if(w)return n(w);if(!y.isSymbolicLink())return o[c]=!0,r&&(r[c]=c),process.nextTick(h);if(!Bl){var b=y.dev.toString(32)+":"+y.ino.toString(32);if(s.hasOwnProperty(b))return v(null,s[b],c)}jl.stat(c,function(S){if(S)return n(S);jl.readlink(c,function(T,R){Bl||(s[b]=R),v(T,R)})})}function v(w,y,b){if(w)return n(w);var S=Jp.resolve(f,y);r&&(r[b]=S),_(S)}function _(w){t=Jp.resolve(w,t.slice(a)),p()}}});var jU=m((q1r,ANe)=>{ANe.exports=Ul;Ul.realpath=Ul;Ul.sync=MU;Ul.realpathSync=MU;Ul.monkeypatch=G9t;Ul.unmonkeypatch=V9t;var Rg=require("fs"),LU=Rg.realpath,FU=Rg.realpathSync,z9t=process.version,ENe=/^v[0-5]\./.test(z9t),SNe=wNe();function TNe(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function Ul(e,t,r){if(ENe)return LU(e,t,r);typeof t=="function"&&(r=t,t=null),LU(e,t,function(n,i){TNe(n)?SNe.realpath(e,t,r):r(n,i)})}function MU(e,t){if(ENe)return FU(e,t);try{return FU(e,t)}catch(r){if(TNe(r))return SNe.realpathSync(e,t);throw r}}function G9t(){Rg.realpath=Ul,Rg.realpathSync=MU}function V9t(){Rg.realpath=LU,Rg.realpathSync=FU}});var RNe=m((k1r,CNe)=>{CNe.exports=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);K9t(i)?r.push.apply(r,i):r.push(i)}return r};var K9t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var kNe=m((P1r,qNe)=>{"use strict";qNe.exports=INe;function INe(e,t,r){e instanceof RegExp&&(e=ONe(e,r)),t instanceof RegExp&&(t=ONe(t,r));var n=NNe(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function ONe(e,t){var r=t.match(e);return r?r[0]:null}INe.range=NNe;function NNe(e,t,r){var n,i,s,o,a,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(u>=0&&c>0){if(e===t)return[u,c];for(n=[],s=r.length;f>=0&&!a;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),c]:(i=n.pop(),i<s&&(s=i,o=c),c=r.indexOf(t,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[s,o])}return a}});var UNe=m((D1r,BNe)=>{var X9t=RNe(),PNe=kNe();BNe.exports=J9t;var DNe="\0SLASH"+Math.random()+"\0",LNe="\0OPEN"+Math.random()+"\0",UU="\0CLOSE"+Math.random()+"\0",FNe="\0COMMA"+Math.random()+"\0",MNe="\0PERIOD"+Math.random()+"\0";function BU(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Y9t(e){return e.split("\\\\").join(DNe).split("\\{").join(LNe).split("\\}").join(UU).split("\\,").join(FNe).split("\\.").join(MNe)}function Z9t(e){return e.split(DNe).join("\\").split(LNe).join("{").split(UU).join("}").split(FNe).join(",").split(MNe).join(".")}function jNe(e){if(!e)return[""];var t=[],r=PNe("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=jNe(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function J9t(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Og(Y9t(e),!0).map(Z9t)):[]}function Q9t(e){return"{"+e+"}"}function eWt(e){return/^-?0\d/.test(e)}function tWt(e,t){return e<=t}function rWt(e,t){return e>=t}function Og(e,t){var r=[],n=PNe("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=i||s,a=n.body.indexOf(",")>=0;if(!o&&!a)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+UU+n.post,Og(e)):[e];var u;if(o)u=n.body.split(/\.\./);else if(u=jNe(n.body),u.length===1&&(u=Og(u[0],!1).map(Q9t),u.length===1)){var f=n.post.length?Og(n.post,!1):[""];return f.map(function(L){return n.pre+u[0]+L})}var c=n.pre,f=n.post.length?Og(n.post,!1):[""],p;if(o){var h=BU(u[0]),g=BU(u[1]),v=Math.max(u[0].length,u[1].length),_=u.length==3?Math.abs(BU(u[2])):1,w=tWt,y=g<h;y&&(_*=-1,w=rWt);var b=u.some(eWt);p=[];for(var S=h;w(S,g);S+=_){var T;if(s)T=String.fromCharCode(S),T==="\\"&&(T="");else if(T=String(S),b){var R=v-T.length;if(R>0){var q=new Array(R+1).join("0");S<0?T="-"+q+T.slice(1):T=q+T}}p.push(T)}}else p=X9t(u,function(z){return Og(z,!1)});for(var O=0;O<p.length;O++)for(var M=0;M<f.length;M++){var U=c+p[O]+f[M];(!t||o||U)&&r.push(U)}return r}});var IR=m((L1r,GNe)=>{GNe.exports=Ps;Ps.Minimatch=li;var h_=function(){try{return require("path")}catch{}}()||{sep:"/"};Ps.sep=h_.sep;var $U=Ps.GLOBSTAR=li.GLOBSTAR={},nWt=UNe(),WNe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},WU="[^/]",HU=WU+"*?",iWt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",sWt="(?:(?!(?:\\/|^)\\.).)*?",HNe=oWt("().*{}+?[]^$\\!");function oWt(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var $Ne=/\/+/;Ps.filter=aWt;function aWt(e,t){return t=t||{},function(r,n,i){return Ps(r,e,t)}}function Wl(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}Ps.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return Ps;var t=Ps,r=function(i,s,o){return t(i,s,Wl(e,o))};return r.Minimatch=function(i,s){return new t.Minimatch(i,Wl(e,s))},r.Minimatch.defaults=function(i){return t.defaults(Wl(e,i)).Minimatch},r.filter=function(i,s){return t.filter(i,Wl(e,s))},r.defaults=function(i){return t.defaults(Wl(e,i))},r.makeRe=function(i,s){return t.makeRe(i,Wl(e,s))},r.braceExpand=function(i,s){return t.braceExpand(i,Wl(e,s))},r.match=function(n,i,s){return t.match(n,i,Wl(e,s))},r};li.defaults=function(e){return Ps.defaults(e).Minimatch};function Ps(e,t,r){return OR(t),r||(r={}),!r.nocomment&&t.charAt(0)==="#"?!1:new li(t,r).match(e)}function li(e,t){if(!(this instanceof li))return new li(e,t);OR(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&h_.sep!=="/"&&(e=e.split(h_.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}li.prototype.debug=function(){};li.prototype.make=uWt;function uWt(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split($Ne)}),this.debug(this.pattern,r),r=r.map(function(n,i,s){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}li.prototype.parseNegate=cWt;function cWt(){var e=this.pattern,t=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}}Ps.braceExpand=function(e,t){return zNe(e,t)};li.prototype.braceExpand=zNe;function zNe(e,t){return t||(this instanceof li?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,OR(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:nWt(e)}var lWt=1024*64,OR=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>lWt)throw new TypeError("pattern is too long")};li.prototype.parse=fWt;var RR={};function fWt(e,t){OR(e);var r=this.options;if(e==="**")if(r.noglobstar)e="*";else return $U;if(e==="")return"";var n="",i=!!r.nocase,s=!1,o=[],a=[],u,c=!1,f=-1,p=-1,h=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function v(){if(u){switch(u){case"*":n+=HU,i=!0;break;case"?":n+=WU,i=!0;break;default:n+="\\"+u;break}g.debug("clearStateChar %j %j",u,n),u=!1}}for(var _=0,w=e.length,y;_<w&&(y=e.charAt(_));_++){if(this.debug("%s %s %s %j",e,_,n,y),s&&HNe[y]){n+="\\"+y,s=!1;continue}switch(y){case"/":return!1;case"\\":v(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,_,n,y),c){this.debug(" in class"),y==="!"&&_===p+1&&(y="^"),n+=y;continue}g.debug("call clearStateChar %j",u),v(),u=y,r.noext&&v();continue;case"(":if(c){n+="(";continue}if(!u){n+="\\(";continue}o.push({type:u,start:_-1,reStart:n.length,open:WNe[u].open,close:WNe[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(c||!o.length){n+="\\)";continue}v(),i=!0;var b=o.pop();n+=b.close,b.type==="!"&&a.push(b),b.reEnd=n.length;continue;case"|":if(c||!o.length||s){n+="\\|",s=!1;continue}v(),n+="|";continue;case"[":if(v(),c){n+="\\"+y;continue}c=!0,p=_,f=n.length,n+=y;continue;case"]":if(_===p+1||!c){n+="\\"+y,s=!1;continue}var S=e.substring(p+1,_);try{RegExp("["+S+"]")}catch{var T=this.parse(S,RR);n=n.substr(0,f)+"\\["+T[0]+"\\]",i=i||T[1],c=!1;continue}i=!0,c=!1,n+=y;continue;default:v(),s?s=!1:HNe[y]&&!(y==="^"&&c)&&(n+="\\"),n+=y}}for(c&&(S=e.substr(p+1),T=this.parse(S,RR),n=n.substr(0,f)+"\\["+T[0],i=i||T[1]),b=o.pop();b;b=o.pop()){var R=n.slice(b.reStart+b.open.length);this.debug("setting tail",n,b),R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(se,Ge,Le){return Le||(Le="\\"),Ge+Ge+Le+"|"}),this.debug(`tail=%j
|
|
217
|
+
`,p.message,p.stack);var h=new Error("tunneling socket could not be established, cause="+p.message);h.code="ECONNRESET",t.request.emit("error",h),n.removeSocket(i)}};Qa.prototype.removeSocket=function(t){var r=this.sockets.indexOf(t);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createConnection(n)}};function GIe(e,t){var r=this;Qa.prototype.createSocket.call(r,e,function(n){var i=s9t.connect(0,VIe({},r.options,{servername:e.host,socket:n}));r.sockets[r.sockets.indexOf(n)]=i,t(i)})}function VIe(e){for(var t=1,r=arguments.length;t<r;++t){var n=arguments[t];if(typeof n=="object")for(var i=Object.keys(n),s=0,o=i.length;s<o;++s){var a=i[s];n[a]!==void 0&&(e[a]=n[a])}}return e}var Yp;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Yp=function(){var e=Array.prototype.slice.call(arguments);typeof e[0]=="string"?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:Yp=function(){};Cg.debug=Yp});var ZIe=m((b1r,YIe)=>{"use strict";var h9t=require("url"),XIe=$Ie(),m9t=lB(),g9t=KIe(),v9t=uB();YIe.exports=(e,t)=>{if(e=e||XIe(),t=Object.assign({},t),typeof e=="object"&&(t=e,e=XIe()),!e)return null;e=m9t.lenient(e)?v9t(e):h9t.parse(e);let r=t.protocol==="https"?"https":"http",n=e.protocol==="https:"?"Https":"Http",i=e.port||(n==="Https"?443:80),s=`${r}Over${n}`;return delete t.protocol,g9t[s](Object.assign({proxy:{port:i,host:e.hostname,proxyAuth:e.auth}},t))}});var eNe=m((w1r,QIe)=>{"use strict";var TR=require("path"),y9t=yj(),IU=_j(),x9t=bj(),_9t=100,JIe=/[\u0000-\u001f\u0080-\u009f]/g,b9t=/^\.+/,NU=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");t=t||{};let r=t.replacement===void 0?"!":t.replacement;if(IU().test(r)&&JIe.test(r))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(IU(),r),e=e.replace(JIe,r),e=e.replace(b9t,r),r.length>0&&(e=y9t(e,r),e=e.length>1?x9t(e,r):e),e=IU.windowsNames().test(e)?e+r:e,e=e.slice(0,_9t),e};NU.path=(e,t)=>(e=TR.resolve(e),TR.join(TR.dirname(e),NU(TR.basename(e),t)));QIe.exports=NU});var rNe=m((E1r,tNe)=>{"use strict";var w9t=require("stream").PassThrough;tNe.exports=e=>{e=Object.assign({},e);let t=e.array,r=e.encoding,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=0,o=[],a=new w9t({objectMode:i});return r&&a.setEncoding(r),a.on("data",u=>{o.push(u),i?s=o.length:s+=u.length}),a.getBufferedValue=()=>t?o:n?Buffer.concat(o,s):o.join(""),a.getBufferedLength=()=>s,a}});var nNe=m((S1r,AR)=>{"use strict";var E9t=rNe();function qU(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let r=t.maxBuffer,n,i,s=new Promise((o,a)=>{let u=c=>{c&&(c.bufferedData=n.getBufferedValue()),a(c)};n=E9t(t),e.once("error",u),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),n.once("error",u),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return s.then(i,i),s.then(()=>n.getBufferedValue())}AR.exports=qU;AR.exports.buffer=(e,t)=>qU(e,Object.assign({},t,{encoding:"buffer"}));AR.exports.array=(e,t)=>qU(e,Object.assign({},t,{array:!0}))});var kU=m((T1r,sNe)=>{"use strict";var iNe=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,s)=>{t.errorFirst?n.push(function(o,a){if(t.multiArgs){let u=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)u[c-1]=arguments[c];o?(u.unshift(o),s(u)):i(u)}else o?s(o):i(a)}):n.push(function(o){if(t.multiArgs){let a=new Array(arguments.length-1);for(let u=0;u<arguments.length;u++)a[u]=arguments[u];i(a)}else i(o)}),e.apply(this,n)})};sNe.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(s):!t.exclude.some(s)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):iNe(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&r(i)?iNe(s,t):s}return n}});var cNe=m((A1r,PU)=>{"use strict";var S9t=require("fs"),Zp=require("path"),oNe=kU(),aNe={mode:511&~process.umask(),fs:S9t},uNe=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Zp.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}};PU.exports=(e,t)=>Promise.resolve().then(()=>{uNe(e),t=Object.assign({},aNe,t);let r=oNe(t.fs.mkdir),n=oNe(t.fs.stat),i=s=>r(s,t.mode).then(()=>s).catch(o=>{if(o.code==="ENOENT"){if(o.message.includes("null bytes")||Zp.dirname(s)===s)throw o;return i(Zp.dirname(s)).then(()=>i(s))}return n(s).then(a=>a.isDirectory()?s:Promise.reject()).catch(()=>{throw o})});return i(Zp.resolve(e))});PU.exports.sync=(e,t)=>{uNe(e),t=Object.assign({},aNe,t);let r=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="ENOENT"){if(i.message.includes("null bytes")||Zp.dirname(n)===n)throw i;return r(Zp.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(Zp.resolve(e))}});var fNe=m((C1r,lNe)=>{"use strict";var CR=e=>[...e].map(t=>t.charCodeAt(0)),T9t=CR("META-INF/mozilla.rsa"),A9t=CR("[Content_Types].xml"),C9t=CR("_rels/.rels");lNe.exports=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(i,s)=>{s=Object.assign({offset:0},s);for(let o=0;o<i.length;o++)if(s.mask){if(i[o]!==(s.mask[o]&t[o+s.offset]))return!1}else if(i[o]!==t[o+s.offset])return!1;return!0},n=(i,s)=>r(CR(i),s);if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(T9t,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};if(r(A9t,{offset:30})||r(C9t,{offset:30})){let i=t.subarray(4,2004),s=a=>a.findIndex((u,c,f)=>f[c]===80&&f[c+1]===75&&f[c+2]===3&&f[c+3]===4),o=s(i);if(o!==-1){let a=t.subarray(o+8,o+8+1e3),u=s(a);if(u!==-1){let c=8+o+u+30;if(n("word/",{offset:c}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(n("ppt/",{offset:c}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(n("xl/",{offset:c}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let i=t.subarray(4,4100),s=i.findIndex((o,a,u)=>u[a]===66&&u[a+1]===130);if(s!==-1){let o=s+3,a=u=>[...u].every((c,f)=>i[o+f]===c.charCodeAt(0));if(a("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(a("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/x-wav"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let i=0;i<2&&i<t.length-16;i++){if(r([73,68,51],{offset:i})||r([255,226],{offset:i,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:i,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:i,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:i,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32]))return{ext:"m4a",mime:"audio/m4a"};if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((t[0]===67||t[0]===70)&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/octet-stream"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77,0]))return{ext:"aif",mime:"audio/aiff"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([102,116,121,112],{offset:4})){if(r([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(r([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(r([104,101,105,99],{offset:8})||r([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(r([104,101,118,99],{offset:8})||r([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return r([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:null}});var yNe=m((R1r,vNe)=>{"use strict";var R9t=require("fs"),p_=require("path"),gNe=require("url"),pNe=ZIe(),O9t=b6(),dNe=w6(),hNe=vj(),I9t=eNe(),N9t=nNe(),q9t=vB(),k9t=cNe(),P9t=kU(),D9t=LB(),L9t=fNe(),F9t=jB(),M9t=P9t(R9t),j9t=e=>p_.basename(gNe.parse(e.requestUrl).pathname),B9t=e=>{let t=e.headers["content-type"];if(!t)return null;let r=F9t.mime(t);return r.length!==1?null:r[0].ext},U9t=(e,t)=>{let r=e.headers["content-disposition"];if(r){let i=O9t.parse(r);if(i.parameters&&i.parameters.filename)return i.parameters.filename}let n=j9t(e);if(!p_.extname(n)){let i=(L9t(t)||{}).ext||B9t(e);i&&(n=`${n}.${i}`)}return n},mNe=e=>{let{protocol:t}=gNe.parse(e);return t&&(t=t.slice(0,-1)),t};vNe.exports=(e,t,r)=>{typeof t=="object"&&(r=t,t=null);let n=mNe(e);r=Object.assign({encoding:null,rejectUnauthorized:process.env.npm_config_strict_ssl!=="false"},r);let i=pNe(r.proxy,{protocol:n}),s=q9t.stream(e,Object.assign({agent:i},r)).on("redirect",(a,u)=>{let c=mNe(u.href);c&&c!==n&&(u.agent=pNe(r.proxy,{protocol:c}))}),o=D9t(s,"response").then(a=>{let u=r.encoding===null?"buffer":r.encoding;return Promise.all([N9t(s,{encoding:u}),a])}).then(a=>{let[u,c]=a;if(!t)return r.extract&&dNe(u)?hNe(u,r):u;let f=r.filename||I9t(U9t(c,u)),p=p_.join(t,f);return r.extract&&dNe(u)?hNe(u,p_.dirname(p),r):k9t(p_.dirname(p)).then(()=>M9t.writeFile(p,u)).then(()=>u)});return s.then=o.then.bind(o),s.catch=o.catch.bind(o),s}});var bNe=m((O1r,_Ne)=>{var xNe=require("child_process").spawn;_Ne.exports=function(e,t,r,n){typeof r=="function"&&(n=r,r=null),r=r||{};var i=r.git||"git",s=["clone"];r.shallow&&(s.push("--depth"),s.push("1")),s.push("--"),s.push(e),s.push(t);var o=xNe(i,s);o.on("close",function(u){u==0?r.checkout?a():n&&n():n&&n(new Error("'git clone' failed with status "+u))});function a(){var u=["checkout",r.checkout],c=xNe(i,u,{cwd:t});c.on("close",function(f){f==0?n&&n():n&&n(new Error("'git checkout' failed with status "+f))})}}});var wNe=m(DU=>{var Jp=require("path"),Bl=process.platform==="win32",jl=require("fs"),W9t=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function H9t(){var e;if(W9t){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function $9t(e){return typeof e=="function"?e:H9t()}var I1r=Jp.normalize;Bl?gc=/(.*?)(?:[\/\\]+|$)/g:gc=/(.*?)(?:[\/]+|$)/g;var gc;Bl?d_=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:d_=/^[\/]*/;var d_;DU.realpathSync=function(t,r){if(t=Jp.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},o,a,u,c;f();function f(){var w=d_.exec(t);o=w[0].length,a=w[0],u=w[0],c="",Bl&&!s[u]&&(jl.lstatSync(u),s[u]=!0)}for(;o<t.length;){gc.lastIndex=o;var p=gc.exec(t);if(c=a,a+=p[0],u=c+p[1],o=gc.lastIndex,!(s[u]||r&&r[u]===u)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,u))h=r[u];else{var g=jl.lstatSync(u);if(!g.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var v=null;if(!Bl){var _=g.dev.toString(32)+":"+g.ino.toString(32);i.hasOwnProperty(_)&&(v=i[_])}v===null&&(jl.statSync(u),v=jl.readlinkSync(u)),h=Jp.resolve(c,v),r&&(r[u]=h),Bl||(i[_]=v)}t=Jp.resolve(h,t.slice(o)),f()}}return r&&(r[n]=t),t};DU.realpath=function(t,r,n){if(typeof n!="function"&&(n=$9t(r),r=null),t=Jp.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},o={},a,u,c,f;p();function p(){var w=d_.exec(t);a=w[0].length,u=w[0],c=w[0],f="",Bl&&!o[c]?jl.lstat(c,function(y){if(y)return n(y);o[c]=!0,h()}):process.nextTick(h)}function h(){if(a>=t.length)return r&&(r[i]=t),n(null,t);gc.lastIndex=a;var w=gc.exec(t);return f=u,u+=w[0],c=f+w[1],a=gc.lastIndex,o[c]||r&&r[c]===c?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,c)?_(r[c]):jl.lstat(c,g)}function g(w,y){if(w)return n(w);if(!y.isSymbolicLink())return o[c]=!0,r&&(r[c]=c),process.nextTick(h);if(!Bl){var b=y.dev.toString(32)+":"+y.ino.toString(32);if(s.hasOwnProperty(b))return v(null,s[b],c)}jl.stat(c,function(S){if(S)return n(S);jl.readlink(c,function(T,R){Bl||(s[b]=R),v(T,R)})})}function v(w,y,b){if(w)return n(w);var S=Jp.resolve(f,y);r&&(r[b]=S),_(S)}function _(w){t=Jp.resolve(w,t.slice(a)),p()}}});var jU=m((q1r,ANe)=>{ANe.exports=Ul;Ul.realpath=Ul;Ul.sync=MU;Ul.realpathSync=MU;Ul.monkeypatch=G9t;Ul.unmonkeypatch=V9t;var Rg=require("fs"),LU=Rg.realpath,FU=Rg.realpathSync,z9t=process.version,ENe=/^v[0-5]\./.test(z9t),SNe=wNe();function TNe(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function Ul(e,t,r){if(ENe)return LU(e,t,r);typeof t=="function"&&(r=t,t=null),LU(e,t,function(n,i){TNe(n)?SNe.realpath(e,t,r):r(n,i)})}function MU(e,t){if(ENe)return FU(e,t);try{return FU(e,t)}catch(r){if(TNe(r))return SNe.realpathSync(e,t);throw r}}function G9t(){Rg.realpath=Ul,Rg.realpathSync=MU}function V9t(){Rg.realpath=LU,Rg.realpathSync=FU}});var RNe=m((k1r,CNe)=>{CNe.exports=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);K9t(i)?r.push.apply(r,i):r.push(i)}return r};var K9t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var kNe=m((P1r,qNe)=>{"use strict";qNe.exports=INe;function INe(e,t,r){e instanceof RegExp&&(e=ONe(e,r)),t instanceof RegExp&&(t=ONe(t,r));var n=NNe(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function ONe(e,t){var r=t.match(e);return r?r[0]:null}INe.range=NNe;function NNe(e,t,r){var n,i,s,o,a,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(u>=0&&c>0){if(e===t)return[u,c];for(n=[],s=r.length;f>=0&&!a;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),c]:(i=n.pop(),i<s&&(s=i,o=c),c=r.indexOf(t,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[s,o])}return a}});var UNe=m((D1r,BNe)=>{var X9t=RNe(),PNe=kNe();BNe.exports=J9t;var DNe="\0SLASH"+Math.random()+"\0",LNe="\0OPEN"+Math.random()+"\0",UU="\0CLOSE"+Math.random()+"\0",FNe="\0COMMA"+Math.random()+"\0",MNe="\0PERIOD"+Math.random()+"\0";function BU(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Y9t(e){return e.split("\\\\").join(DNe).split("\\{").join(LNe).split("\\}").join(UU).split("\\,").join(FNe).split("\\.").join(MNe)}function Z9t(e){return e.split(DNe).join("\\").split(LNe).join("{").split(UU).join("}").split(FNe).join(",").split(MNe).join(".")}function jNe(e){if(!e)return[""];var t=[],r=PNe("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=jNe(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function J9t(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Og(Y9t(e),!0).map(Z9t)):[]}function Q9t(e){return"{"+e+"}"}function eWt(e){return/^-?0\d/.test(e)}function tWt(e,t){return e<=t}function rWt(e,t){return e>=t}function Og(e,t){var r=[],n=PNe("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),o=i||s,a=n.body.indexOf(",")>=0;if(!o&&!a)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+UU+n.post,Og(e)):[e];var u;if(o)u=n.body.split(/\.\./);else if(u=jNe(n.body),u.length===1&&(u=Og(u[0],!1).map(Q9t),u.length===1)){var f=n.post.length?Og(n.post,!1):[""];return f.map(function(L){return n.pre+u[0]+L})}var c=n.pre,f=n.post.length?Og(n.post,!1):[""],p;if(o){var h=BU(u[0]),g=BU(u[1]),v=Math.max(u[0].length,u[1].length),_=u.length==3?Math.abs(BU(u[2])):1,w=tWt,y=g<h;y&&(_*=-1,w=rWt);var b=u.some(eWt);p=[];for(var S=h;w(S,g);S+=_){var T;if(s)T=String.fromCharCode(S),T==="\\"&&(T="");else if(T=String(S),b){var R=v-T.length;if(R>0){var q=new Array(R+1).join("0");S<0?T="-"+q+T.slice(1):T=q+T}}p.push(T)}}else p=X9t(u,function(z){return Og(z,!1)});for(var O=0;O<p.length;O++)for(var M=0;M<f.length;M++){var U=c+p[O]+f[M];(!t||o||U)&&r.push(U)}return r}});var IR=m((L1r,GNe)=>{GNe.exports=Ps;Ps.Minimatch=li;var h_=function(){try{return require("path")}catch{}}()||{sep:"/"};Ps.sep=h_.sep;var $U=Ps.GLOBSTAR=li.GLOBSTAR={},nWt=UNe(),WNe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},WU="[^/]",HU=WU+"*?",iWt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",sWt="(?:(?!(?:\\/|^)\\.).)*?",HNe=oWt("().*{}+?[]^$\\!");function oWt(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var $Ne=/\/+/;Ps.filter=aWt;function aWt(e,t){return t=t||{},function(r,n,i){return Ps(r,e,t)}}function Wl(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}Ps.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return Ps;var t=Ps,r=function(i,s,o){return t(i,s,Wl(e,o))};return r.Minimatch=function(i,s){return new t.Minimatch(i,Wl(e,s))},r.Minimatch.defaults=function(i){return t.defaults(Wl(e,i)).Minimatch},r.filter=function(i,s){return t.filter(i,Wl(e,s))},r.defaults=function(i){return t.defaults(Wl(e,i))},r.makeRe=function(i,s){return t.makeRe(i,Wl(e,s))},r.braceExpand=function(i,s){return t.braceExpand(i,Wl(e,s))},r.match=function(n,i,s){return t.match(n,i,Wl(e,s))},r};li.defaults=function(e){return Ps.defaults(e).Minimatch};function Ps(e,t,r){return OR(t),r||(r={}),!r.nocomment&&t.charAt(0)==="#"?!1:new li(t,r).match(e)}function li(e,t){if(!(this instanceof li))return new li(e,t);OR(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&h_.sep!=="/"&&(e=e.split(h_.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}li.prototype.debug=function(){};li.prototype.make=uWt;function uWt(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split($Ne)}),this.debug(this.pattern,r),r=r.map(function(n,i,s){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}li.prototype.parseNegate=cWt;function cWt(){var e=this.pattern,t=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}}Ps.braceExpand=function(e,t){return zNe(e,t)};li.prototype.braceExpand=zNe;function zNe(e,t){return t||(this instanceof li?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,OR(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:nWt(e)}var lWt=1024*64,OR=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>lWt)throw new TypeError("pattern is too long")};li.prototype.parse=fWt;var RR={};function fWt(e,t){OR(e);var r=this.options;if(e==="**")if(r.noglobstar)e="*";else return $U;if(e==="")return"";var n="",i=!!r.nocase,s=!1,o=[],a=[],u,c=!1,f=-1,p=-1,h=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function v(){if(u){switch(u){case"*":n+=HU,i=!0;break;case"?":n+=WU,i=!0;break;default:n+="\\"+u;break}g.debug("clearStateChar %j %j",u,n),u=!1}}for(var _=0,w=e.length,y;_<w&&(y=e.charAt(_));_++){if(this.debug("%s %s %s %j",e,_,n,y),s&&HNe[y]){n+="\\"+y,s=!1;continue}switch(y){case"/":return!1;case"\\":v(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,_,n,y),c){this.debug(" in class"),y==="!"&&_===p+1&&(y="^"),n+=y;continue}g.debug("call clearStateChar %j",u),v(),u=y,r.noext&&v();continue;case"(":if(c){n+="(";continue}if(!u){n+="\\(";continue}o.push({type:u,start:_-1,reStart:n.length,open:WNe[u].open,close:WNe[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(c||!o.length){n+="\\)";continue}v(),i=!0;var b=o.pop();n+=b.close,b.type==="!"&&a.push(b),b.reEnd=n.length;continue;case"|":if(c||!o.length||s){n+="\\|",s=!1;continue}v(),n+="|";continue;case"[":if(v(),c){n+="\\"+y;continue}c=!0,p=_,f=n.length,n+=y;continue;case"]":if(_===p+1||!c){n+="\\"+y,s=!1;continue}var S=e.substring(p+1,_);try{RegExp("["+S+"]")}catch{var T=this.parse(S,RR);n=n.substr(0,f)+"\\["+T[0]+"\\]",i=i||T[1],c=!1;continue}i=!0,c=!1,n+=y;continue;default:v(),s?s=!1:HNe[y]&&!(y==="^"&&c)&&(n+="\\"),n+=y}}for(c&&(S=e.substr(p+1),T=this.parse(S,RR),n=n.substr(0,f)+"\\["+T[0],i=i||T[1]),b=o.pop();b;b=o.pop()){var R=n.slice(b.reStart+b.open.length);this.debug("setting tail",n,b),R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(se,Ve,Le){return Le||(Le="\\"),Ve+Ve+Le+"|"}),this.debug(`tail=%j
|
|
218
218
|
%s`,R,R,b,n);var q=b.type==="*"?HU:b.type==="?"?WU:"\\"+b.type;i=!0,n=n.slice(0,b.reStart)+q+"\\("+R}v(),s&&(n+="\\\\");var O=!1;switch(n.charAt(0)){case"[":case".":case"(":O=!0}for(var M=a.length-1;M>-1;M--){var U=a[M],z=n.slice(0,U.reStart),L=n.slice(U.reStart,U.reEnd-8),D=n.slice(U.reEnd-8,U.reEnd),Z=n.slice(U.reEnd);D+=Z;var le=z.split("(").length-1,B=Z;for(_=0;_<le;_++)B=B.replace(/\)[+*?]?/,"");Z=B;var V="";Z===""&&t!==RR&&(V="$");var he=z+L+Z+V+D;n=he}if(n!==""&&i&&(n="(?=.)"+n),O&&(n=h+n),t===RR)return[n,i];if(!i)return dWt(e);var fe=r.nocase?"i":"";try{var xe=new RegExp("^"+n+"$",fe)}catch{return new RegExp("$.")}return xe._glob=e,xe._src=n,xe}Ps.makeRe=function(e,t){return new li(e,t||{}).makeRe()};li.prototype.makeRe=pWt;function pWt(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?HU:t.dot?iWt:sWt,n=t.nocase?"i":"",i=e.map(function(s){return s.map(function(o){return o===$U?r:typeof o=="string"?hWt(o):o._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}Ps.match=function(e,t,r){r=r||{};var n=new li(t,r);return e=e.filter(function(i){return n.match(i)}),n.options.nonull&&!e.length&&e.push(t),e};li.prototype.match=function(t,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;var n=this.options;h_.sep!=="/"&&(t=t.split(h_.sep).join("/")),t=t.split($Ne),this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var s,o;for(o=t.length-1;o>=0&&(s=t[o],!s);o--);for(o=0;o<i.length;o++){var a=i[o],u=t;n.matchBase&&a.length===1&&(u=[s]);var c=this.matchOne(u,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};li.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,o=e.length,a=t.length;i<o&&s<a;i++,s++){this.debug("matchOne loop");var u=t[s],c=e[i];if(this.debug(t,u,c),u===!1)return!1;if(u===$U){this.debug("GLOBSTAR",[t,u,c]);var f=i,p=s+1;if(p===a){for(this.debug("** at the end");i<o;i++)if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return!1;return!0}for(;f<o;){var h=e[f];if(this.debug(`
|
|
219
219
|
globstar while`,e,f,t,p,h),this.matchOne(e.slice(f),t.slice(p),r))return this.debug("globstar found match!",f,o,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
|
|
220
220
|
>>> no match, partial?`,e,f,t,p),f===o))}var g;if(typeof u=="string"?(g=c===u,this.debug("string match",u,c,g)):(g=c.match(u),this.debug("pattern match",u,c,g)),!g)return!1}if(i===o&&s===a)return!0;if(i===o)return r;if(s===a)return i===o-1&&e[i]==="";throw new Error("wtf?")};function dWt(e){return e.replace(/\\(.)/g,"$1")}function hWt(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var qR=m((F1r,NR)=>{"use strict";function VNe(e){return e.charAt(0)==="/"}function KNe(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),n=r[1]||"",i=!!(n&&n.charAt(1)!==":");return!!(r[2]||i)}NR.exports=process.platform==="win32"?KNe:VNe;NR.exports.posix=VNe;NR.exports.win32=KNe});var GU=m(Hl=>{Hl.setopts=_Wt;Hl.ownProp=XNe;Hl.makeAbs=m_;Hl.finish=bWt;Hl.mark=wWt;Hl.isIgnored=ZNe;Hl.childrenIgnored=EWt;function XNe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var mWt=require("fs"),Ig=require("path"),gWt=IR(),YNe=qR(),zU=gWt.Minimatch;function vWt(e,t){return e.localeCompare(t,"en")}function yWt(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(xWt))}function xWt(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new zU(r,{dot:!0})}return{matcher:new zU(e,{dot:!0}),gmatcher:t}}function _Wt(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||mWt,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),yWt(e,r),e.changedCwd=!1;var n=process.cwd();XNe(r,"cwd")?(e.cwd=Ig.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=r.root||Ig.resolve(e.cwd,"/"),e.root=Ig.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=YNe(e.cwd)?e.cwd:m_(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new zU(t,r),e.options=e.minimatch.options}function bWt(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];t?r.push(o):r[o]=!0}}else{var a=Object.keys(s);t?r.push.apply(r,a):a.forEach(function(u){r[u]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(vWt)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(u){var c=!/\/$/.test(u),f=e.cache[u]||e.cache[m_(e,u)];return c&&f&&(c=f!=="DIR"&&!Array.isArray(f)),c}))}e.ignore.length&&(r=r.filter(function(u){return!ZNe(e,u)})),e.found=r}function wWt(e,t){var r=m_(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),o=t.slice(-1)==="/";if(s&&!o?i+="/":!s&&o&&(i=i.slice(0,-1)),i!==t){var a=m_(e,i);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return i}function m_(e,t){var r=t;return t.charAt(0)==="/"?r=Ig.join(e.root,t):YNe(t)||t===""?r=t:e.changedCwd?r=Ig.resolve(e.cwd,t):r=Ig.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function ZNe(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function EWt(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var rqe=m((W1r,tqe)=>{tqe.exports=eqe;eqe.GlobSync=On;var SWt=jU(),JNe=IR(),j1r=JNe.Minimatch,B1r=XU().Glob,U1r=require("util"),VU=require("path"),QNe=require("assert"),kR=qR(),Qp=GU(),TWt=Qp.setopts,KU=Qp.ownProp,AWt=Qp.childrenIgnored,CWt=Qp.isIgnored;function eqe(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
@@ -228,8 +228,8 @@ ${i}`)}}_parseNameProperty(t){let{scope:r,fullName:n}=(0,Tqe.default)(t);return{
|
|
|
228
228
|
`+Object.keys(n).map(i=>`${i}: ${n[i]}`).join(`\r
|
|
229
229
|
`)+`\r
|
|
230
230
|
\r
|
|
231
|
-
`+r)),e.removeListener("error",M5),e.destroy()}function m$t(e){return e.trim()}});var X2e=m((STr,K2e)=>{"use strict";var I_=D5();I_.createWebSocketStream=W2e();I_.Server=V2e();I_.Receiver=E5();I_.Sender=S5();K2e.exports=I_});var Y2e,N_,Pg,zR=ye(()=>{"use strict";Y2e=require("events"),N_=de(X2e());cn();Pg=class extends Y2e.EventEmitter{url;socket;pingInterval;pingTimeout;reconnectTimeout;connectionState=0;onlineState=0;constructor(t){super(),this.url=t.url}onClose(){this.pingInterval&&(clearInterval(this.pingInterval),delete this.pingInterval),this.connectionState===2?setImmediate(this._connectInternal.bind(this)):this.connectionState===1&&(this.onlineState==1&&this.emit("offline"),this.onlineState=2,this.connectionState=0,setTimeout(this._connectInternal.bind(this),5e3).unref())}sendEvent(t){var r;((r=this.socket)==null?void 0:r.readyState)===N_.default.OPEN&&this.socket.send(JSON.stringify(t))}onMessage(t){let r;try{r=JSON.parse(t)}catch{this.emit("invalidMessage",new Error(`Unable to parse message: ${t}`));return}this.emit("event",r)}onOpen(){this.connectionState=2,this.pingInterval&&clearInterval(this.pingInterval),this.pingInterval=setInterval(this.ping.bind(this),2e3).unref(),this.emit("connected"),this.onlineState===2&&this.emit("online"),this.onlineState=1}onError(t){this.connectionState===2?setImmediate(this._connectInternal.bind(this)):this.connectionState===1&&(this.onlineState===1&&this.emit("offline"),this.onlineState=2,this.connectionState=0,setTimeout(this._connectInternal.bind(this),5e3).unref()),this.emit("connectionError",new Error(`Received connection error: ${t.message}`))}ping(){var t;this.pingTimeout&&clearTimeout(this.pingTimeout),((t=this.socket)==null?void 0:t.readyState)===N_.default.OPEN&&(this.socket.ping(),this.pingTimeout=setTimeout(this.onPingTimeout.bind(this),1e3).unref())}onPong(){this.pingTimeout&&clearTimeout(this.pingTimeout)}onPingTimeout(){this.socket&&this.socket.terminate(),this.connectionState===2&&setImmediate(this._connectInternal.bind(this))}_connectInternal(){this.connectionState!==1&&(this.connectionState=1,this.socket&&this.socket.removeAllListeners(),this.socket=new N_.default(this.url),this.socket.on("open",this.onOpen.bind(this)),this.socket.on("close",this.onClose.bind(this)),this.socket.on("message",this.onMessage.bind(this)),this.socket.on("pong",this.onPong.bind(this)),this.socket.on("error",this.onError.bind(this)))}async connect(){this._connectInternal(),await this.waitForConnection()}async waitForConnection(){await _T(this,()=>new Promise((t,r)=>{if(!this.socket){t();return}this.on("connected",t),this.on("connectionError",r),this.on("connectionFailure",r)}))}close(){this.connectionState=0,this.onlineState=0,this.pingInterval&&clearInterval(this.pingInterval),this.pingTimeout&&clearTimeout(this.pingTimeout),this.removeAllListeners(),this.socket&&(this.socket.removeAllListeners(),this.socket.readyState===N_.default.OPEN&&this.socket.close(),this.socket=void 0)}}});var J2e,Z2e,Dg,j5=ye(()=>{"use strict";J2e=require("events");zR();cn();Z2e=new Map,Dg=class extends J2e.EventEmitter{instanceWsUrl;cli;connection;static async get(t){let r=Z2e.get(t.url);return r||(r=new Dg,r.cli=t.cli,r.instanceWsUrl=t.url,t.cli&&(r.on("event",n=>wQ({cli:t.cli,event:n})),r.on("error",n=>t.cli.logError(`There was an issue initializing the dev session: ${n.message}`))),await r.connect(),Z2e.set(t.url,r)),r}async waitForEvent(t){let r=(t==null?void 0:t.eventType)||void 0,n=(t==null?void 0:t.timeout)||1e4;return await _T(this,()=>Promise.race([new Promise((i,s)=>{this.on("event",o=>{r&&o.event===r?i(o):r||i(o)}),this.on("error",s)}),new Promise((i,s)=>{setTimeout(()=>{s(new Error("waitForEvent timed out"))},n).unref()})]))}async connect(){var t;if(!this.instanceWsUrl){(t=this.cli)==null||t.logError("Unable to initialize developer sandbox. Please try again.");return}if(!this.connection){this.connection=new Pg({url:this.instanceWsUrl}),this.connection.on("event",r=>{this.emit("event",r)}),this.connection.on("offline",()=>{var r;(r=this.cli)==null||r.logError("Sandbox connection offline")}),this.connection.on("online",()=>{var r;(r=this.cli)==null||r.logSuccess("Sandbox connection restored")});try{await this.connection.connect()}catch(r){throw new Error(`Sandbox connection failed. Please quit and try again later. ${r.message}`)}}}close(){this.removeAllListeners(),this.connection&&(this.connection.removeAllListeners(),this.connection.close())}}});var Q2e,Br,eke=ye(()=>{"use strict";Q2e=de(y6());cn();j5();Br=class{org;service;instanceName;instanceType;url;cli;accountName;systemWsUrl;deploymentState;messenger;region;constructor(t={}){this.org=t.org,this.service=t.service,this.instanceName=t.instanceName,this.instanceType=t.instanceType,this.accountName=t.accountName,this.url=t.url,this.region=t.region||"us-east-1"}async get(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`},r=await Ve(t);return this.url=r.instanceUrl,this.instanceType=r.instanceType,this.systemWsUrl=r.systemWsUrl,this.deploymentState=r.deploymentState,this.accountName=r.accountName,this.region=r.region,r}async create(){let t={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`,body:{...this.instanceType&&{instanceType:this.instanceType},...this.region&&this.region!=="us-east-1"&&{region:this.region}}},r=await Ve(t);return this.url=r.instanceUrl,this.instanceType=r.instanceType,r}async update(t={}){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`,body:t};return await Ve(r)}async delete(){let t={method:"DELETE",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`};return await Ve(t)}async test(t){let r={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/test`,body:{...(t==null?void 0:t.coverage)&&{coverage:t==null?void 0:t.coverage},...(t==null?void 0:t.pattern)&&{pattern:t==null?void 0:t.pattern},...(t==null?void 0:t.workers)&&{workers:t==null?void 0:t.workers}}};return await Ve(r)}async getLogs(){let t=[],r;do{let n=r?`?nextToken=${r}`:"",i={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/logs${n}`},s=await Ve(i);t.push(...s.messages),r=s.nextToken}while(r);return t}async getParams(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/params`},{params:r}=await Ve(t);return r}async putParams(t){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/params`,body:{params:t}},{params:n}=await Ve(r);return n}async getDeployments(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/deployments`};return await Ve(t)}async getEndpoints(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/endpoints`};return await Ve(t)}async getDeploymentLogs(t){let r={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/deployments/${t}`};return await Ve(r)}async downloadTestCoverage(t){let r={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/test/coverage`,responseType:"arraybuffer"},n=await Ve(r);new Q2e.default(n).extractAllTo(t)}getDashboardDeploymentsUrl(){return`https://${process.env.AMPT_STAGE!=="prod"?"amptlabs.dev":"ampt.dev"}/orgs/${this.org.orgName}/apps/${this.service.serviceName}/instances/${this.instanceName}/deployments`}async connect(t={}){if(!this.systemWsUrl)throw new Error("Could not connect to Sandbox Session.");if(!this.messenger&&(this.messenger=await Dg.get({url:this.systemWsUrl,cli:t.cli}),!this.messenger))throw new Error(`Unable to connect to ${this.systemWsUrl}`);return this.messenger}}});var tke,GR,rke=ye(()=>{"use strict";tke=require("events"),GR=class extends tke.EventEmitter{constructor(r){super();this._timeoutMs=r;this._timeout=setTimeout(()=>{this.emit("timeout")},this._timeoutMs).unref()}_timeout;_running=!0;stop(){this._timeout&&(clearTimeout(this._timeout),this._timeout=void 0),this._running=!1}kick(){this._running&&(this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout(()=>{this.emit("timeout")},this._timeoutMs).unref())}}});var nke,Lg,ike=ye(()=>{"use strict";nke=require("events");e0();zR();cn();rke();Lg=class extends nke.EventEmitter{operation="DEPLOY";connection;orgName;appName;instanceName;operationId;eventTypes;failInterval=6e4;subscribed=!1;logger=tt.child({module:"OperationMessenger"});async waitForOperation(t){await this.subscribe({operationId:t.operationId,orgName:t.orgName,appName:t.appName});let r=new GR(this.failInterval),n,i=await Promise.race([new Promise(s=>{try{this.on("event",o=>{let a=o.event,u=o.message,c=o.data,f=c.id;if(tt.debug({event:o},"Got operation event"),r.kick(),a==="ampt.operation.complete")c!=null&&c.success?u&&t.context.logInfo(u):t.context.logError(`Operation ${c.operationId} failed: ${u||"unexpected error"}`),s(!!(c!=null&&c.success));else if(a==="ampt.operation.progress"){if(n&&f&&f<n)return;n=f,u?t.context.updateSpinnerStep(u.toLowerCase()):tt.error({event:o},"Got progress event without message")}})}catch(o){t.context.logError(o.message),s(!1)}}),new Promise(s=>{r.on("timeout",()=>{t.context.logError(`Timed out waiting for operation to complete: ${this.operationId}`),s(!1)})})]);return this.removeAllListeners("event"),r.stop(),i}async subscribe(t){var n;if(!this.connection)throw new Error("Messenger Connection is not initialized");this.orgName=t.orgName?t.orgName:this.orgName,this.appName=t.appName?t.appName:this.appName,this.instanceName=t.instanceName?t.instanceName:this.instanceName,this.operationId=t.operationId?t.operationId:this.operationId,this.eventTypes=t.types?t.types:this.eventTypes;let r={event:"subscribe",data:{orgName:this.orgName,operationId:this.operationId,appName:this.appName,instanceName:this.instanceName,eventTypes:this.eventTypes}};return this.on("connected",()=>{var i;this.subscribed&&((i=this.connection)==null||i.sendEvent(r))}),(n=this.connection)==null||n.sendEvent(r),await Promise.race([new Promise(i=>{let s=setInterval(()=>{if(this.subscribed)return clearInterval(s),i(!0)},1e3)}),new Promise((i,s)=>setTimeout(()=>s(new Error("Timed out waiting for subscription")),1e4))])}async unsubscribe(){var t;await((t=this.connection)==null?void 0:t.close())}async sendEvent(t){if(!this.connection)throw new Error("Messenger Connection is not initialized");await this.connection.sendEvent(t)}static create(){return new Lg}async connect(){if(!process.env.AMPT_WS_ENDPOINT)throw new Error("AMPT_WS_ENDPOINT is not set");this.connection||(this.connection=new Pg({url:process.env.AMPT_WS_ENDPOINT}),this.connection.on("event",t=>{t&&t.event&&(t.event==="SUBSCRIBE_SUCCESS"?(this.logger.debug({operationId:this.operationId},"Subscribed to Events"),this.subscribed=!0):(this.logger.debug({event:t},"emitting event"),this.emit("event",t)))}),this.connection.on("connected",()=>{this.emit("connected")}),this.connection.on("offline",()=>{this.emit("offline")}),this.connection.on("online",()=>{this.emit("online")}),this.connection.on("error",t=>{this.emit("error",t)}),await this.connection.connect(),this.logger.debug({operationId:this.operationId},"Messenger Connection initialized"))}isConnected(){var t;return((t=this.connection)==null?void 0:t.connectionState)===2}}});var oke=m((HTr,ske)=>{var g$t=function(){return!1};ske.exports=g$t});var uke=m(($Tr,ake)=>{var v$t=function(){return!0};ake.exports=v$t});var lke=m((zTr,cke)=>{cke.exports={"@@functional/placeholder":!0}});var q_=m((GTr,fke)=>{function y$t(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}fke.exports=y$t});var Pe=m((VTr,pke)=>{var x$t=q_();function _$t(e){return function t(r){return arguments.length===0||x$t(r)?t:e.apply(this,arguments)}}pke.exports=_$t});var J=m((KTr,dke)=>{var B5=Pe(),k_=q_();function b$t(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return k_(r)?t:B5(function(i){return e(r,i)});default:return k_(r)&&k_(n)?t:k_(r)?B5(function(i){return e(i,n)}):k_(n)?B5(function(i){return e(r,i)}):e(r,n)}}}dke.exports=b$t});var P_=m((XTr,hke)=>{var w$t=J(),E$t=w$t(function(t,r){return Number(t)+Number(r)});hke.exports=E$t});var xo=m((YTr,mke)=>{function S$t(e,t){e=e||[],t=t||[];var r,n=e.length,i=t.length,s=[];for(r=0;r<n;)s[s.length]=e[r],r+=1;for(r=0;r<i;)s[s.length]=t[r],r+=1;return s}mke.exports=S$t});var _o=m((ZTr,gke)=>{function T$t(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,i){return t.apply(this,arguments)};case 4:return function(r,n,i,s){return t.apply(this,arguments)};case 5:return function(r,n,i,s,o){return t.apply(this,arguments)};case 6:return function(r,n,i,s,o,a){return t.apply(this,arguments)};case 7:return function(r,n,i,s,o,a,u){return t.apply(this,arguments)};case 8:return function(r,n,i,s,o,a,u,c){return t.apply(this,arguments)};case 9:return function(r,n,i,s,o,a,u,c,f){return t.apply(this,arguments)};case 10:return function(r,n,i,s,o,a,u,c,f,p){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}gke.exports=T$t});var D_=m((JTr,xke)=>{var A$t=_o(),vke=q_();function yke(e,t,r){return function(){for(var n=[],i=0,s=e,o=0;o<t.length||i<arguments.length;){var a;o<t.length&&(!vke(t[o])||i>=arguments.length)?a=t[o]:(a=arguments[i],i+=1),n[o]=a,vke(a)||(s-=1),o+=1}return s<=0?r.apply(this,n):A$t(s,yke(e,n,r))}}xke.exports=yke});var jn=m((QTr,_ke)=>{var C$t=_o(),R$t=Pe(),O$t=J(),I$t=D_(),N$t=O$t(function(t,r){return t===1?R$t(r):C$t(t,I$t(t,[],r))});_ke.exports=N$t});var wke=m((eAr,bke)=>{var q$t=xo(),k$t=Pe(),P$t=jn(),D$t=k$t(function(t){return P$t(t.length,function(){var r=0,n=arguments[0],i=arguments[arguments.length-1],s=Array.prototype.slice.call(arguments,0);return s[0]=function(){var o=n.apply(this,q$t(arguments,[r,i]));return r+=1,o},t.apply(this,s)})});bke.exports=D$t});var ze=m((tAr,Eke)=>{var VR=Pe(),Fg=J(),fi=q_();function L$t(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return fi(r)?t:Fg(function(s,o){return e(r,s,o)});case 2:return fi(r)&&fi(n)?t:fi(r)?Fg(function(s,o){return e(s,n,o)}):fi(n)?Fg(function(s,o){return e(r,s,o)}):VR(function(s){return e(r,n,s)});default:return fi(r)&&fi(n)&&fi(i)?t:fi(r)&&fi(n)?Fg(function(s,o){return e(s,o,i)}):fi(r)&&fi(i)?Fg(function(s,o){return e(s,n,o)}):fi(n)&&fi(i)?Fg(function(s,o){return e(r,s,o)}):fi(r)?VR(function(s){return e(s,n,i)}):fi(n)?VR(function(s){return e(r,s,i)}):fi(i)?VR(function(s){return e(r,n,s)}):e(r,n,i)}}}Eke.exports=L$t});var U5=m((rAr,Ske)=>{var F$t=xo(),M$t=ze(),j$t=M$t(function(t,r,n){if(t>=n.length||t<-n.length)return n;var i=t<0?n.length:0,s=i+t,o=F$t(n);return o[s]=r(n[s]),o});Ske.exports=j$t});var iu=m((nAr,Tke)=>{Tke.exports=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"}});var KR=m((iAr,Ake)=>{function B$t(e){return e!=null&&typeof e["@@transducer/step"]=="function"}Ake.exports=B$t});var sn=m((sAr,Cke)=>{var U$t=iu(),W$t=KR();function H$t(e,t,r){return function(){if(arguments.length===0)return r();var n=Array.prototype.slice.call(arguments,0),i=n.pop();if(!U$t(i)){for(var s=0;s<e.length;){if(typeof i[e[s]]=="function")return i[e[s]].apply(i,n);s+=1}if(W$t(i)){var o=t.apply(null,n);return o(i)}}return r.apply(this,arguments)}}Cke.exports=H$t});var bc=m((oAr,Rke)=>{function $$t(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Rke.exports=$$t});var mn=m((aAr,Oke)=>{Oke.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}});var Nke=m((uAr,Ike)=>{var z$t=J(),G$t=bc(),V$t=mn(),K$t=function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=V$t.init,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=G$t(this.xf["@@transducer/step"](t,!1))),t},e}(),X$t=z$t(function(t,r){return new K$t(t,r)});Ike.exports=X$t});var W5=m((cAr,qke)=>{var Y$t=J(),Z$t=sn(),J$t=Nke(),Q$t=Y$t(Z$t(["all"],J$t,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));qke.exports=Q$t});var sd=m((lAr,kke)=>{var ezt=J(),tzt=ezt(function(t,r){return r>t?r:t});kke.exports=tzt});var L_=m((fAr,Pke)=>{function rzt(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}Pke.exports=rzt});var Mg=m((pAr,Dke)=>{function nzt(e){return Object.prototype.toString.call(e)==="[object String]"}Dke.exports=nzt});var F_=m((dAr,Lke)=>{var izt=Pe(),szt=iu(),ozt=Mg(),azt=izt(function(t){return szt(t)?!0:!t||typeof t!="object"||ozt(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});Lke.exports=azt});var H5=m((hAr,Fke)=>{var uzt=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function czt(e){return new uzt(e)}Fke.exports=czt});var $5=m((mAr,Mke)=>{var lzt=_o(),fzt=J(),pzt=fzt(function(t,r){return lzt(t.length,function(){return t.apply(r,arguments)})});Mke.exports=pzt});var us=m((gAr,Wke)=>{var dzt=F_(),hzt=H5(),mzt=$5();function gzt(e,t,r){for(var n=0,i=r.length;n<i;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function jke(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function Bke(e,t,r,n){return e["@@transducer/result"](r[n](mzt(e["@@transducer/step"],e),t))}var Uke=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function vzt(e,t,r){if(typeof e=="function"&&(e=hzt(e)),dzt(r))return gzt(e,t,r);if(typeof r["fantasy-land/reduce"]=="function")return Bke(e,t,r,"fantasy-land/reduce");if(r[Uke]!=null)return jke(e,t,r[Uke]());if(typeof r.next=="function")return jke(e,t,r);if(typeof r.reduce=="function")return Bke(e,t,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}Wke.exports=vzt});var zke=m((vAr,$ke)=>{var yzt=J(),Hke=mn(),xzt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Hke.init,e.prototype["@@transducer/result"]=Hke.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),_zt=yzt(function(t,r){return new xzt(t,r)});$ke.exports=_zt});var cs=m((yAr,Gke)=>{function bzt(e,t){return Object.prototype.hasOwnProperty.call(t,e)}Gke.exports=bzt});var z5=m((xAr,Kke)=>{var wzt=cs(),Vke=Object.prototype.toString,Ezt=function(){return Vke.call(arguments)==="[object Arguments]"?function(t){return Vke.call(t)==="[object Arguments]"}:function(t){return wzt("callee",t)}}();Kke.exports=Ezt});var bo=m((_Ar,Qke)=>{var Xke=Pe(),Yke=cs(),Szt=z5(),Tzt=!{toString:null}.propertyIsEnumerable("toString"),Zke=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Jke=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Azt=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},Czt=Xke(typeof Object.keys=="function"&&!Jke?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=Jke&&Szt(t);for(r in t)Yke(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(Tzt)for(n=Zke.length-1;n>=0;)r=Zke[n],Yke(r,t)&&!Azt(i,r)&&(i[i.length]=r),n-=1;return i});Qke.exports=Czt});var Ls=m((bAr,ePe)=>{var Rzt=J(),Ozt=sn(),Izt=L_(),Nzt=us(),qzt=zke(),kzt=jn(),Pzt=bo(),Dzt=Rzt(Ozt(["fantasy-land/map","map"],qzt,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return kzt(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return Nzt(function(n,i){return n[i]=t(r[i]),n},{},Pzt(r));default:return Izt(t,r)}}));ePe.exports=Dzt});var M_=m((wAr,tPe)=>{tPe.exports=Number.isInteger||function(t){return t<<0===t}});var od=m((EAr,rPe)=>{var Lzt=J(),Fzt=Mg(),Mzt=Lzt(function(t,r){var n=t<0?r.length+t:t;return Fzt(r)?r.charAt(n):r[n]});rPe.exports=Mzt});var G5=m((SAr,nPe)=>{var jzt=J(),Bzt=M_(),Uzt=od(),Wzt=jzt(function(t,r){return t.map(function(n){for(var i=r,s=0,o;s<n.length;){if(i==null)return;o=n[s],i=Bzt(o)?Uzt(o,i):i[o],s+=1}return i})});nPe.exports=Wzt});var Gl=m((TAr,iPe)=>{var Hzt=J(),$zt=G5(),zzt=Hzt(function(t,r){return $zt([t],r)[0]});iPe.exports=zzt});var XR=m((AAr,sPe)=>{var Gzt=J(),Vzt=Gl(),Kzt=Gzt(function(t,r){return Vzt([t],r)});sPe.exports=Kzt});var jg=m((CAr,oPe)=>{var Xzt=J(),Yzt=Ls(),Zzt=XR(),Jzt=Xzt(function(t,r){return Yzt(Zzt(t),r)});oPe.exports=Jzt});var na=m((RAr,aPe)=>{var Qzt=ze(),eGt=us(),tGt=Qzt(eGt);aPe.exports=tGt});var cPe=m((OAr,uPe)=>{var rGt=Pe(),nGt=jn(),iGt=sd(),sGt=jg(),oGt=na(),aGt=rGt(function(t){return nGt(oGt(iGt,0,sGt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})});uPe.exports=aGt});var j_=m((IAr,lPe)=>{var uGt=Pe(),cGt=uGt(function(t){return function(){return t}});lPe.exports=cGt});var V5=m((NAr,fPe)=>{var lGt=J(),fGt=lGt(function(t,r){return t&&r});fPe.exports=fGt});var dPe=m((qAr,pPe)=>{var pGt=J(),dGt=bc(),hGt=mn(),mGt=function(){function e(t,r){this.xf=r,this.f=t,this.any=!1}return e.prototype["@@transducer/init"]=hGt.init,e.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.any=!0,t=dGt(this.xf["@@transducer/step"](t,!0))),t},e}(),gGt=pGt(function(t,r){return new mGt(t,r)});pPe.exports=gGt});var mPe=m((kAr,hPe)=>{var vGt=J(),yGt=sn(),xGt=dPe(),_Gt=vGt(yGt(["any"],xGt,function(t,r){for(var n=0;n<r.length;){if(t(r[n]))return!0;n+=1}return!1}));hPe.exports=_Gt});var vPe=m((PAr,gPe)=>{var bGt=Pe(),wGt=jn(),EGt=sd(),SGt=jg(),TGt=na(),AGt=bGt(function(t){return wGt(TGt(EGt,0,SGt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})});gPe.exports=AGt});var YR=m((DAr,yPe)=>{var CGt=xo(),RGt=J(),OGt=us(),IGt=Ls(),NGt=RGt(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:OGt(function(n,i){return CGt(n,IGt(i,r))},[],t)});yPe.exports=NGt});var _Pe=m((LAr,xPe)=>{function qGt(e,t){for(var r=0,n=t.length-(e-1),i=new Array(n>=0?n:0);r<n;)i[r]=Array.prototype.slice.call(t,r,r+e),r+=1;return i}xPe.exports=qGt});var wPe=m((FAr,bPe)=>{var kGt=xo(),PGt=J(),DGt=mn(),LGt=function(){function e(t,r){this.xf=r,this.pos=0,this.full=!1,this.acc=new Array(t)}return e.prototype["@@transducer/init"]=DGt.init,e.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.store(r),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},e.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return kGt(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}(),FGt=PGt(function(t,r){return new LGt(t,r)});bPe.exports=FGt});var SPe=m((MAr,EPe)=>{var MGt=_Pe(),jGt=J(),BGt=sn(),UGt=wPe(),WGt=jGt(BGt([],UGt,MGt));EPe.exports=WGt});var APe=m((jAr,TPe)=>{var HGt=xo(),$Gt=J(),zGt=$Gt(function(t,r){return HGt(r,[t])});TPe.exports=zGt});var K5=m((BAr,CPe)=>{var GGt=J(),VGt=GGt(function(t,r){return t.apply(this,r)});CPe.exports=VGt});var X5=m((UAr,RPe)=>{var KGt=Pe(),XGt=bo(),YGt=KGt(function(t){for(var r=XGt(t),n=r.length,i=[],s=0;s<n;)i[s]=t[r[s]],s+=1;return i});RPe.exports=YGt});var NPe=m((WAr,IPe)=>{var ZGt=Pe(),JGt=K5(),QGt=jn(),eVt=sd(),tVt=jg(),rVt=na(),nVt=bo(),iVt=X5();function OPe(e,t){return nVt(t).reduce(function(r,n){return r[n]=e(t[n]),r},{})}var sVt=ZGt(function e(t){return t=OPe(function(r){return typeof r=="function"?r:e(r)},t),QGt(rVt(eVt,0,tVt("length",iVt(t))),function(){var r=arguments;return OPe(function(n){return JGt(n,r)},t)})});IPe.exports=sVt});var kPe=m((HAr,qPe)=>{var oVt=J(),aVt=oVt(function(t,r){return r(t)});qPe.exports=aVt});var DPe=m(($Ar,PPe)=>{var uVt=ze(),cVt=uVt(function(t,r,n){var i=t(r),s=t(n);return i<s?-1:i>s?1:0});PPe.exports=cVt});var B_=m((zAr,LPe)=>{var lVt=ze(),fVt=lVt(function(t,r,n){var i={};for(var s in n)i[s]=n[s];return i[t]=r,i});LPe.exports=fVt});var ZR=m((GAr,FPe)=>{var pVt=Pe(),dVt=pVt(function(t){return t==null});FPe.exports=dVt});var Y5=m((VAr,jPe)=>{var hVt=ze(),mVt=cs(),gVt=iu(),MPe=M_(),vVt=B_(),yVt=ZR(),xVt=hVt(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!yVt(n)&&mVt(i,n)?n[i]:MPe(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}if(MPe(i)&&gVt(n)){var o=[].concat(n);return o[i]=r,o}else return vVt(i,r,n)});jPe.exports=xVt});var U_=m((KAr,BPe)=>{var _Vt=J(),bVt=_Vt(function(t,r){switch(t){case 0:return function(){return r.call(this)};case 1:return function(n){return r.call(this,n)};case 2:return function(n,i){return r.call(this,n,i)};case 3:return function(n,i,s){return r.call(this,n,i,s)};case 4:return function(n,i,s,o){return r.call(this,n,i,s,o)};case 5:return function(n,i,s,o,a){return r.call(this,n,i,s,o,a)};case 6:return function(n,i,s,o,a,u){return r.call(this,n,i,s,o,a,u)};case 7:return function(n,i,s,o,a,u,c){return r.call(this,n,i,s,o,a,u,c)};case 8:return function(n,i,s,o,a,u,c,f){return r.call(this,n,i,s,o,a,u,c,f)};case 9:return function(n,i,s,o,a,u,c,f,p){return r.call(this,n,i,s,o,a,u,c,f,p)};case 10:return function(n,i,s,o,a,u,c,f,p,h){return r.call(this,n,i,s,o,a,u,c,f,p,h)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}});BPe.exports=bVt});var WPe=m((XAr,UPe)=>{var wVt=Pe(),EVt=U_(),SVt=wVt(function(t){return EVt(2,t)});UPe.exports=SVt});var Bg=m((YAr,HPe)=>{function TVt(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}HPe.exports=TVt});var Z5=m((ZAr,zPe)=>{var AVt=J(),CVt=us(),RVt=YR(),$Pe=jn(),OVt=Ls(),IVt=AVt(function(t,r){var n=$Pe(t,r);return $Pe(t,function(){return CVt(RVt,OVt(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});zPe.exports=IVt});var W_=m((JAr,GPe)=>{var NVt=Pe(),qVt=Z5(),kVt=NVt(function(t){return qVt(t.length,t)});GPe.exports=kVt});var KPe=m((QAr,VPe)=>{var PVt=J(),DVt=Bg(),LVt=V5(),FVt=W_(),MVt=PVt(function(t,r){return DVt(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:FVt(LVt)(t,r)});VPe.exports=MVt});var JR=m((eCr,XPe)=>{var jVt=Pe(),BVt=jn(),UVt=jVt(function(t){return BVt(t.length,t)});XPe.exports=UVt});var ZPe=m((tCr,YPe)=>{var WVt=JR(),HVt=WVt(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});YPe.exports=HVt});var J5=m((rCr,JPe)=>{var $Vt=F_();function zVt(e){return function t(r){for(var n,i,s,o=[],a=0,u=r.length;a<u;){if($Vt(r[a]))for(n=e?t(r[a]):r[a],s=0,i=n.length;s<i;)o[o.length]=n[s],s+=1;else o[o.length]=r[a];a+=1}return o}}JPe.exports=zVt});var eDe=m((nCr,QPe)=>{function GVt(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}QPe.exports=GVt});var iDe=m((iCr,nDe)=>{var VVt=eDe(),KVt=F_(),tDe=us(),rDe=mn(),XVt=function(e){return{"@@transducer/init":rDe.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,r){var n=e["@@transducer/step"](t,r);return n["@@transducer/reduced"]?VVt(n):n}}},YVt=function(t){var r=XVt(t);return{"@@transducer/init":rDe.init,"@@transducer/result":function(n){return r["@@transducer/result"](n)},"@@transducer/step":function(n,i){return KVt(i)?tDe(r,n,i):tDe(r,n,[i])}}};nDe.exports=YVt});var oDe=m((sCr,sDe)=>{var ZVt=J(),JVt=iDe(),QVt=Ls(),eKt=ZVt(function(t,r){return QVt(t,JVt(r))});sDe.exports=eKt});var QR=m((oCr,aDe)=>{var tKt=J(),rKt=sn(),nKt=J5(),iKt=oDe(),sKt=Ls(),oKt=tKt(rKt(["fantasy-land/chain","chain"],iKt,function(t,r){return typeof r=="function"?function(n){return t(r(n))(n)}:nKt(!1)(sKt(t,r))}));aDe.exports=oKt});var cDe=m((aCr,uDe)=>{var aKt=ze(),uKt=aKt(function(t,r,n){if(t>r)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:n>r?r:n});uDe.exports=uKt});var Q5=m((uCr,lDe)=>{function cKt(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}lDe.exports=cKt});var eO=m((cCr,fDe)=>{var lKt=Pe(),fKt=lKt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});fDe.exports=fKt});var tO=m((lCr,dDe)=>{var pKt=Q5(),dKt=eO();function pDe(e,t,r,n){var i=function(o){for(var a=t.length,u=0;u<a;){if(e===t[u])return r[u];u+=1}t[u+1]=e,r[u+1]=o;for(var c in e)o[c]=n?pDe(e[c],t,r,!0):e[c];return o};switch(dKt(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return pKt(e);default:return e}}dDe.exports=pDe});var mDe=m((fCr,hDe)=>{var hKt=tO(),mKt=Pe(),gKt=mKt(function(t){return t!=null&&typeof t.clone=="function"?t.clone():hKt(t,[],[],!0)});hDe.exports=gKt});var vDe=m((pCr,gDe)=>{var vKt=Pe(),yKt=vKt(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}});gDe.exports=yKt});var e8=m((dCr,yDe)=>{var xKt=Pe(),_Kt=xKt(function(t){return!t});yDe.exports=_Kt});var _De=m((hCr,xDe)=>{var bKt=W_(),wKt=e8(),EKt=bKt(wKt);xDe.exports=EKt});var wDe=m((mCr,bDe)=>{function SKt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}bDe.exports=SKt});var Ug=m((gCr,EDe)=>{var TKt=iu();function AKt(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return TKt(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}EDe.exports=AKt});var wo=m((vCr,SDe)=>{var CKt=Ug(),RKt=ze(),OKt=RKt(CKt("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)}));SDe.exports=OKt});var H_=m((yCr,TDe)=>{var IKt=Ug(),NKt=Pe(),qKt=wo(),kKt=NKt(IKt("tail",qKt(1,1/0)));TDe.exports=kKt});var t8=m((xCr,ADe)=>{var PKt=_o(),DKt=wDe(),LKt=na(),FKt=H_();function MKt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return PKt(arguments[0].length,LKt(DKt,arguments[0],FKt(arguments)))}ADe.exports=MKt});var Wg=m((_Cr,CDe)=>{var jKt=Pe(),BKt=Mg(),UKt=jKt(function(t){return BKt(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});CDe.exports=UKt});var rO=m((bCr,RDe)=>{var WKt=t8(),HKt=Wg();function $Kt(){if(arguments.length===0)throw new Error("compose requires at least one argument");return WKt.apply(this,HKt(arguments))}RDe.exports=$Kt});var r8=m((wCr,IDe)=>{var zKt=QR(),ODe=rO(),GKt=Ls();function VKt(){if(arguments.length===0)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return ODe(ODe.apply(this,GKt(zKt,e)),t)}IDe.exports=VKt});var qDe=m((ECr,NDe)=>{function KKt(e,t){return function(){var r=this;return e.apply(r,arguments).then(function(n){return t.call(r,n)})}}NDe.exports=KKt});var n8=m((SCr,kDe)=>{var XKt=_o(),YKt=qDe(),ZKt=na(),JKt=H_();function QKt(){if(arguments.length===0)throw new Error("pipeP requires at least one argument");return XKt(arguments[0].length,ZKt(YKt,arguments[0],JKt(arguments)))}kDe.exports=QKt});var DDe=m((TCr,PDe)=>{var eXt=n8(),tXt=Wg();function rXt(){if(arguments.length===0)throw new Error("composeP requires at least one argument");return eXt.apply(this,tXt(arguments))}PDe.exports=rXt});var i8=m((ACr,LDe)=>{var nXt=od(),iXt=nXt(0);LDe.exports=iXt});var nO=m((CCr,FDe)=>{function sXt(e){return e}FDe.exports=sXt});var $_=m((RCr,MDe)=>{var oXt=Pe(),aXt=nO(),uXt=oXt(aXt);MDe.exports=uXt});var s8=m((OCr,jDe)=>{var cXt=_o(),lXt=J(),fXt=i8(),pXt=us(),dXt=H_(),hXt=$_(),mXt=lXt(function(t,r){if(r.length<=0)return hXt;var n=fXt(r),i=dXt(r);return cXt(n.length,function(){return pXt(function(s,o){return t.call(this,o,s)},n.apply(this,arguments),i)})});jDe.exports=mXt});var UDe=m((ICr,BDe)=>{var gXt=J(),vXt=s8(),yXt=Wg(),xXt=gXt(function(t,r){return vXt.apply(this,[t,yXt(r)])});BDe.exports=xXt});var HDe=m((NCr,WDe)=>{function _Xt(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}WDe.exports=_Xt});var z_=m((qCr,$De)=>{function bXt(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}$De.exports=bXt});var GDe=m((kCr,zDe)=>{function wXt(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}zDe.exports=wXt});var o8=m((PCr,VDe)=>{function EXt(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}VDe.exports=typeof Object.is=="function"?Object.is:EXt});var eLe=m((DCr,QDe)=>{var KDe=HDe(),XDe=z_(),SXt=GDe(),TXt=cs(),a8=o8(),YDe=bo(),ZDe=eO();function JDe(e,t,r,n){var i=KDe(e),s=KDe(t);function o(a,u){return u8(a,u,r.slice(),n.slice())}return!XDe(function(a,u){return!XDe(o,u,a)},s,i)}function u8(e,t,r,n){if(a8(e,t))return!0;var i=ZDe(e);if(i!==ZDe(t)||e==null||t==null)return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&SXt(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&a8(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!a8(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var s=r.length-1;s>=0;){if(r[s]===e)return n[s]===t;s-=1}switch(i){case"Map":return e.size!==t.size?!1:JDe(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:JDe(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=YDe(e);if(o.length!==YDe(t).length)return!1;var a=r.concat([e]),u=n.concat([t]);for(s=o.length-1;s>=0;){var c=o[s];if(!(TXt(c,t)&&u8(t[c],e[c],a,u)))return!1;s-=1}return!0}QDe.exports=u8});var Fs=m((LCr,tLe)=>{var AXt=J(),CXt=eLe(),RXt=AXt(function(t,r){return CXt(t,r,[],[])});tLe.exports=RXt});var c8=m((FCr,rLe)=>{var OXt=Fs();function IXt(e,t,r){var n,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(i=e[r],i===0&&1/i===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(i=e[r],typeof i=="number"&&i!==i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(OXt(e[r],t))return r;r+=1}return-1}rLe.exports=IXt});var ad=m((MCr,nLe)=>{var NXt=c8();function qXt(e,t){return NXt(t,e,0)>=0}nLe.exports=qXt});var sLe=m((jCr,iLe)=>{function kXt(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}iLe.exports=kXt});var aLe=m((BCr,oLe)=>{var G_=function(t){return(t<10?"0":"")+t},PXt=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+G_(t.getUTCMonth()+1)+"-"+G_(t.getUTCDate())+"T"+G_(t.getUTCHours())+":"+G_(t.getUTCMinutes())+":"+G_(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};oLe.exports=PXt});var l8=m((UCr,uLe)=>{function DXt(e){return function(){return!e.apply(this,arguments)}}uLe.exports=DXt});var iO=m((WCr,cLe)=>{function LXt(e,t){for(var r=0,n=t.length,i=[];r<n;)e(t[r])&&(i[i.length]=t[r]),r+=1;return i}cLe.exports=LXt});var sO=m((HCr,lLe)=>{function FXt(e){return Object.prototype.toString.call(e)==="[object Object]"}lLe.exports=FXt});var dLe=m(($Cr,pLe)=>{var MXt=J(),fLe=mn(),jXt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=fLe.init,e.prototype["@@transducer/result"]=fLe.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}(),BXt=MXt(function(t,r){return new jXt(t,r)});pLe.exports=BXt});var oO=m((zCr,hLe)=>{var UXt=J(),WXt=sn(),HXt=iO(),$Xt=sO(),zXt=us(),GXt=dLe(),VXt=bo(),KXt=UXt(WXt(["filter"],GXt,function(e,t){return $Xt(t)?zXt(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},VXt(t)):HXt(e,t)}));hLe.exports=KXt});var V_=m((GCr,mLe)=>{var XXt=l8(),YXt=J(),ZXt=oO(),JXt=YXt(function(t,r){return ZXt(XXt(t),r)});mLe.exports=JXt});var d8=m((VCr,yLe)=>{var QXt=ad(),f8=L_(),p8=sLe(),eYt=aLe(),gLe=bo(),tYt=V_();function vLe(e,t){var r=function(o){var a=t.concat([e]);return QXt(o,a)?"<Circular>":vLe(o,a)},n=function(s,o){return f8(function(a){return p8(a)+": "+r(s[a])},o.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+f8(r,e).join(", ")+"))";case"[object Array]":return"["+f8(r,e).concat(n(e,tYt(function(s){return/^\d+$/.test(s)},gLe(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):p8(eYt(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":p8(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+n(e,gLe(e)).join(", ")+"}"}}yLe.exports=vLe});var K_=m((KCr,xLe)=>{var rYt=Pe(),nYt=d8(),iYt=rYt(function(t){return nYt(t,[])});xLe.exports=iYt});var aO=m((XCr,ELe)=>{var sYt=J(),_Le=iu(),bLe=Bg(),wLe=Mg(),h8=K_(),oYt=sYt(function(t,r){if(_Le(t)){if(_Le(r))return t.concat(r);throw new TypeError(h8(r)+" is not an array")}if(wLe(t)){if(wLe(r))return t+r;throw new TypeError(h8(r)+" is not a string")}if(t!=null&&bLe(t["fantasy-land/concat"]))return t["fantasy-land/concat"](r);if(t!=null&&bLe(t.concat))return t.concat(r);throw new TypeError(h8(t)+' does not have a method named "concat" or "fantasy-land/concat"')});ELe.exports=oYt});var TLe=m((YCr,SLe)=>{var aYt=_o(),uYt=Pe(),cYt=Ls(),lYt=sd(),fYt=na(),pYt=uYt(function(t){var r=fYt(lYt,0,cYt(function(n){return n[0].length},t));return aYt(r,function(){for(var n=0;n<t.length;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})});SLe.exports=pYt});var m8=m((ZCr,ALe)=>{var dYt=J(),hYt=JR(),mYt=U_(),gYt=dYt(function(t,r){if(t>10)throw new Error("Constructor with greater than ten arguments");return t===0?function(){return new r}:hYt(mYt(t,function(n,i,s,o,a,u,c,f,p,h){switch(arguments.length){case 1:return new r(n);case 2:return new r(n,i);case 3:return new r(n,i,s);case 4:return new r(n,i,s,o);case 5:return new r(n,i,s,o,a);case 6:return new r(n,i,s,o,a,u);case 7:return new r(n,i,s,o,a,u,c);case 8:return new r(n,i,s,o,a,u,c,f);case 9:return new r(n,i,s,o,a,u,c,f,p);case 10:return new r(n,i,s,o,a,u,c,f,p,h)}}))});ALe.exports=gYt});var RLe=m((JCr,CLe)=>{var vYt=Pe(),yYt=m8(),xYt=vYt(function(t){return yYt(t.length,t)});CLe.exports=xYt});var ILe=m((QCr,OLe)=>{var _Yt=ad(),bYt=J(),wYt=bYt(_Yt);OLe.exports=wYt});var g8=m((eRr,NLe)=>{var EYt=J(),SYt=L_(),TYt=jn(),AYt=sd(),CYt=jg(),RYt=na(),OYt=EYt(function(t,r){return TYt(RYt(AYt,0,CYt("length",r)),function(){var n=arguments,i=this;return t.apply(i,SYt(function(s){return s.apply(i,n)},r))})});NLe.exports=OYt});var kLe=m((tRr,qLe)=>{var IYt=D_(),NYt=cs(),qYt=mn(),kYt=function(){function e(t,r,n,i){this.valueFn=t,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=qYt.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(NYt(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e}(),PYt=IYt(4,[],function(t,r,n,i){return new kYt(t,r,n,i)});qLe.exports=PYt});var X_=m((rRr,PLe)=>{var DYt=tO(),LYt=D_(),FYt=sn(),MYt=cs(),jYt=us(),BYt=kLe(),UYt=LYt(4,[],FYt([],BYt,function(t,r,n,i){return jYt(function(s,o){var a=n(o);return s[a]=t(MYt(a,s)?s[a]:DYt(r,[],[],!1),o),s},{},i)}));PLe.exports=UYt});var LLe=m((nRr,DLe)=>{var WYt=X_(),HYt=WYt(function(e,t){return e+1},0);DLe.exports=HYt});var MLe=m((iRr,FLe)=>{var $Yt=P_(),zYt=$Yt(-1);FLe.exports=zYt});var v8=m((sRr,jLe)=>{var GYt=J(),VYt=GYt(function(t,r){return r==null||r!==r?t:r});jLe.exports=VYt});var ULe=m((oRr,BLe)=>{var KYt=ze(),XYt=KYt(function(t,r,n){var i=t(r),s=t(n);return i>s?-1:i<s?1:0});BLe.exports=XYt});var y8=m((aRr,$Le)=>{var WLe=ad(),YYt=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!HLe(t,!0,this)},e.prototype.has=function(t){return HLe(t,!1,this)},e}();function HLe(e,t,r){var n=typeof e,i,s;switch(n){case"string":case"number":return e===0&&1/e===-1/0?r._items["-0"]?!0:(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?e in r._items[n]?!0:(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var o=e?1:0;return r._items[n][o]?!0:(t&&(r._items[n][o]=!0),!1)}else return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?WLe(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return r._items[n]?!0:(t&&(r._items[n]=!0),!1);case"object":if(e===null)return r._items.null?!0:(t&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(e),n in r._items?WLe(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}$Le.exports=YYt});var x8=m((uRr,zLe)=>{var ZYt=J(),JYt=y8(),QYt=ZYt(function(t,r){for(var n=[],i=0,s=t.length,o=r.length,a=new JYt,u=0;u<o;u+=1)a.add(r[u]);for(;i<s;)a.add(t[i])&&(n[n.length]=t[i]),i+=1;return n});zLe.exports=QYt});var _8=m((cRr,VLe)=>{var GLe=z_(),eZt=ze(),tZt=eZt(function(t,r,n){for(var i=[],s=0,o=r.length;s<o;)!GLe(t,r[s],n)&&!GLe(t,r[s],i)&&i.push(r[s]),s+=1;return i});VLe.exports=tZt});var b8=m((lRr,KLe)=>{var rZt=J(),nZt=rZt(function(t,r){var n={};for(var i in r)n[i]=r[i];return delete n[t],n});KLe.exports=nZt});var w8=m((fRr,XLe)=>{var iZt=ze(),sZt=iZt(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});XLe.exports=sZt});var uO=m((pRr,YLe)=>{var oZt=ze(),aZt=U5(),uZt=j_(),cZt=oZt(function(t,r,n){return aZt(t,uZt(r),n)});YLe.exports=cZt});var eFe=m((dRr,QLe)=>{var lZt=J(),ZLe=M_(),JLe=iu(),fZt=B_(),pZt=b8(),dZt=w8(),hZt=uO(),mZt=lZt(function e(t,r){switch(t.length){case 0:return r;case 1:return ZLe(t[0])&&JLe(r)?dZt(t[0],1,r):pZt(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?r:ZLe(n)&&JLe(r)?hZt(n,e(i,r[n]),r):fZt(n,e(i,r[n]),r)}});QLe.exports=mZt});var rFe=m((hRr,tFe)=>{var gZt=J(),vZt=gZt(function(t,r){return t/r});tFe.exports=vZt});var sFe=m((mRr,iFe)=>{var yZt=J(),nFe=mn(),xZt=function(){function e(t,r){this.xf=r,this.n=t}return e.prototype["@@transducer/init"]=nFe.init,e.prototype["@@transducer/result"]=nFe.result,e.prototype["@@transducer/step"]=function(t,r){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,r)},e}(),_Zt=yZt(function(t,r){return new xZt(t,r)});iFe.exports=_Zt});var E8=m((gRr,oFe)=>{var bZt=J(),wZt=sn(),EZt=sFe(),SZt=wo(),TZt=bZt(wZt(["drop"],EZt,function(t,r){return SZt(Math.max(0,t),1/0,r)}));oFe.exports=TZt});var cFe=m((vRr,uFe)=>{var AZt=J(),CZt=bc(),aFe=mn(),RZt=function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=aFe.init,e.prototype["@@transducer/result"]=aFe.result,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var n=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?CZt(n):n},e}(),OZt=AZt(function(t,r){return new RZt(t,r)});uFe.exports=OZt});var cO=m((yRr,lFe)=>{var IZt=J(),NZt=sn(),qZt=cFe(),kZt=wo(),PZt=IZt(NZt(["take"],qZt,function(t,r){return kZt(0,t<0?1/0:t,r)}));lFe.exports=PZt});var pFe=m((xRr,fFe)=>{var DZt=cO();function LZt(e,t){return DZt(e<t.length?t.length-e:0,t)}fFe.exports=LZt});var hFe=m((_Rr,dFe)=>{var FZt=J(),MZt=mn(),jZt=function(){function e(t,r){this.xf=r,this.pos=0,this.full=!1,this.acc=new Array(t)}return e.prototype["@@transducer/init"]=MZt.init,e.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(r),t},e.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),BZt=FZt(function(t,r){return new jZt(t,r)});dFe.exports=BZt});var gFe=m((bRr,mFe)=>{var UZt=J(),WZt=sn(),HZt=pFe(),$Zt=hFe(),zZt=UZt(WZt([],$Zt,HZt));mFe.exports=zZt});var yFe=m((wRr,vFe)=>{var GZt=wo();function VZt(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return GZt(0,r+1,t)}vFe.exports=VZt});var _Fe=m((ERr,xFe)=>{var KZt=J(),XZt=us(),YZt=mn(),ZZt=function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=YZt.init,e.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},e.prototype.flush=function(t,r){return t=XZt(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},e.prototype.retain=function(t,r){return this.retained.push(r),t},e}(),JZt=KZt(function(t,r){return new ZZt(t,r)});xFe.exports=JZt});var wFe=m((SRr,bFe)=>{var QZt=J(),eJt=sn(),tJt=yFe(),rJt=_Fe(),nJt=QZt(eJt([],rJt,tJt));bFe.exports=nJt});var S8=m((TRr,SFe)=>{var iJt=J(),EFe=mn(),sJt=function(){function e(t,r){this.xf=r,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=EFe.init,e.prototype["@@transducer/result"]=EFe.result,e.prototype["@@transducer/step"]=function(t,r){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,r)&&(n=!0):this.seenFirstValue=!0,this.lastValue=r,n?t:this.xf["@@transducer/step"](t,r)},e}(),oJt=iJt(function(t,r){return new sJt(t,r)});SFe.exports=oJt});var T8=m((ARr,TFe)=>{var aJt=od(),uJt=aJt(-1);TFe.exports=uJt});var A8=m((CRr,AFe)=>{var cJt=J(),lJt=sn(),fJt=S8(),pJt=T8(),dJt=cJt(lJt([],fJt,function(t,r){var n=[],i=1,s=r.length;if(s!==0)for(n[0]=r[0];i<s;)t(pJt(n),r[i])||(n[n.length]=r[i]),i+=1;return n}));AFe.exports=dJt});var OFe=m((RRr,RFe)=>{var hJt=Pe(),mJt=sn(),gJt=S8(),vJt=A8(),CFe=Fs(),yJt=hJt(mJt([],gJt(CFe),vJt(CFe)));RFe.exports=yJt});var qFe=m((ORr,NFe)=>{var xJt=J(),IFe=mn(),_Jt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=IFe.init,e.prototype["@@transducer/result"]=IFe.result,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e}(),bJt=xJt(function(t,r){return new _Jt(t,r)});NFe.exports=bJt});var PFe=m((IRr,kFe)=>{var wJt=J(),EJt=sn(),SJt=qFe(),TJt=wo(),AJt=wJt(EJt(["dropWhile"],SJt,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return TJt(n,1/0,r)}));kFe.exports=AJt});var C8=m((NRr,DFe)=>{var CJt=J(),RJt=CJt(function(t,r){return t||r});DFe.exports=RJt});var FFe=m((qRr,LFe)=>{var OJt=J(),IJt=Bg(),NJt=W_(),qJt=C8(),kJt=OJt(function(t,r){return IJt(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:NJt(qJt)(t,r)});LFe.exports=kJt});var R8=m((kRr,MFe)=>{var PJt=Pe(),DJt=z5(),LJt=iu(),FJt=sO(),MJt=Mg(),jJt=PJt(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():LJt(t)?[]:MJt(t)?"":FJt(t)?{}:DJt(t)?function(){return arguments}():void 0});MFe.exports=jJt});var O8=m((PRr,jFe)=>{var BJt=J(),UJt=E8(),WJt=BJt(function(t,r){return UJt(t>=0?r.length-t:0,r)});jFe.exports=WJt});var UFe=m((DRr,BFe)=>{var HJt=J(),$Jt=Fs(),zJt=O8(),GJt=HJt(function(e,t){return $Jt(zJt(e.length,t),e)});BFe.exports=GJt});var HFe=m((LRr,WFe)=>{var VJt=ze(),KJt=Fs(),XJt=VJt(function(t,r,n){return KJt(t(r),t(n))});WFe.exports=XJt});var zFe=m((FRr,$Fe)=>{var YJt=ze(),ZJt=Fs(),JJt=YJt(function(t,r,n){return ZJt(r[t],n[t])});$Fe.exports=JJt});var VFe=m((MRr,GFe)=>{var QJt=J(),eQt=QJt(function e(t,r){var n=r instanceof Array?[]:{},i,s,o;for(s in r)i=t[s],o=typeof i,n[s]=o==="function"?i(r[s]):i&&o==="object"?e(i,r[s]):r[s];return n});GFe.exports=eQt});var XFe=m((jRr,KFe)=>{var tQt=J(),rQt=bc(),nQt=mn(),iQt=function(){function e(t,r){this.xf=r,this.f=t,this.found=!1}return e.prototype["@@transducer/init"]=nQt.init,e.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.found=!0,t=rQt(this.xf["@@transducer/step"](t,r))),t},e}(),sQt=tQt(function(t,r){return new iQt(t,r)});KFe.exports=sQt});var ZFe=m((BRr,YFe)=>{var oQt=J(),aQt=sn(),uQt=XFe(),cQt=oQt(aQt(["find"],uQt,function(t,r){for(var n=0,i=r.length;n<i;){if(t(r[n]))return r[n];n+=1}}));YFe.exports=cQt});var QFe=m((URr,JFe)=>{var lQt=J(),fQt=bc(),pQt=mn(),dQt=function(){function e(t,r){this.xf=r,this.f=t,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=pQt.init,e.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.idx+=1,this.f(r)&&(this.found=!0,t=fQt(this.xf["@@transducer/step"](t,this.idx))),t},e}(),hQt=lQt(function(t,r){return new dQt(t,r)});JFe.exports=hQt});var tMe=m((WRr,eMe)=>{var mQt=J(),gQt=sn(),vQt=QFe(),yQt=mQt(gQt([],vQt,function(t,r){for(var n=0,i=r.length;n<i;){if(t(r[n]))return n;n+=1}return-1}));eMe.exports=yQt});var nMe=m((HRr,rMe)=>{var xQt=J(),_Qt=mn(),bQt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=_Qt.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.last=r),t},e}(),wQt=xQt(function(t,r){return new bQt(t,r)});rMe.exports=wQt});var sMe=m(($Rr,iMe)=>{var EQt=J(),SQt=sn(),TQt=nMe(),AQt=EQt(SQt([],TQt,function(t,r){for(var n=r.length-1;n>=0;){if(t(r[n]))return r[n];n-=1}}));iMe.exports=AQt});var aMe=m((zRr,oMe)=>{var CQt=J(),RQt=mn(),OQt=function(){function e(t,r){this.xf=r,this.f=t,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=RQt.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},e.prototype["@@transducer/step"]=function(t,r){return this.idx+=1,this.f(r)&&(this.lastIdx=this.idx),t},e}(),IQt=CQt(function(t,r){return new OQt(t,r)});oMe.exports=IQt});var cMe=m((GRr,uMe)=>{var NQt=J(),qQt=sn(),kQt=aMe(),PQt=NQt(qQt([],kQt,function(t,r){for(var n=r.length-1;n>=0;){if(t(r[n]))return n;n-=1}return-1}));uMe.exports=PQt});var fMe=m((VRr,lMe)=>{var DQt=Pe(),LQt=J5(),FQt=DQt(LQt(!0));lMe.exports=FQt});var Y_=m((KRr,pMe)=>{var MQt=Pe(),jQt=jn(),BQt=MQt(function(t){return jQt(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})});pMe.exports=BQt});var hMe=m((XRr,dMe)=>{var UQt=Ug(),WQt=J(),HQt=WQt(UQt("forEach",function(t,r){for(var n=r.length,i=0;i<n;)t(r[i]),i+=1;return r}));dMe.exports=HQt});var gMe=m((YRr,mMe)=>{var $Qt=J(),zQt=bo(),GQt=$Qt(function(t,r){for(var n=zQt(r),i=0;i<n.length;){var s=n[i];t(r[s],s,r),i+=1}return r});mMe.exports=GQt});var yMe=m((ZRr,vMe)=>{var VQt=Pe(),KQt=VQt(function(t){for(var r={},n=0;n<t.length;)r[t[n][0]]=t[n][1],n+=1;return r});vMe.exports=KQt});var _Me=m((JRr,xMe)=>{var XQt=Ug(),YQt=J(),ZQt=X_(),JQt=YQt(XQt("groupBy",ZQt(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));xMe.exports=JQt});var wMe=m((QRr,bMe)=>{var QQt=J(),eer=QQt(function(e,t){for(var r=[],n=0,i=t.length;n<i;){for(var s=n+1;s<i&&e(t[s-1],t[s]);)s+=1;r.push(t.slice(n,s)),n=s}return r});bMe.exports=eer});var SMe=m((eOr,EMe)=>{var ter=J(),rer=ter(function(t,r){return t>r});EMe.exports=rer});var AMe=m((tOr,TMe)=>{var ner=J(),ier=ner(function(t,r){return t>=r});TMe.exports=ier});var I8=m((rOr,RMe)=>{var ser=J(),oer=cs(),CMe=ZR(),aer=ser(function(t,r){if(t.length===0||CMe(r))return!1;for(var n=r,i=0;i<t.length;)if(!CMe(n)&&oer(t[i],n))n=n[t[i]],i+=1;else return!1;return!0});RMe.exports=aer});var IMe=m((nOr,OMe)=>{var uer=J(),cer=I8(),ler=uer(function(t,r){return cer([t],r)});OMe.exports=ler});var qMe=m((iOr,NMe)=>{var fer=J(),per=fer(function(t,r){return t in r});NMe.exports=per});var PMe=m((sOr,kMe)=>{var der=o8(),her=J(),mer=her(der);kMe.exports=mer});var LMe=m((oOr,DMe)=>{var ger=ze(),ver=jn(),yer=ger(function(t,r,n){return ver(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})});DMe.exports=yer});var MMe=m((aOr,FMe)=>{var xer=P_(),_er=xer(1);FMe.exports=_er});var BMe=m((uOr,jMe)=>{var ber=ad(),wer=J(),Eer=wer(ber);jMe.exports=Eer});var WMe=m((cOr,UMe)=>{var Ser=X_(),Ter=Ser(function(e,t){return t},null);UMe.exports=Ter});var $Me=m((lOr,HMe)=>{var Aer=J(),Cer=c8(),Rer=iu(),Oer=Aer(function(t,r){return typeof r.indexOf=="function"&&!Rer(r)?r.indexOf(t):Cer(r,t,0)});HMe.exports=Oer});var GMe=m((fOr,zMe)=>{var Ier=wo(),Ner=Ier(0,-1);zMe.exports=Ner});var KMe=m((pOr,VMe)=>{var qer=z_(),ker=ze(),Per=iO(),Der=ker(function(t,r,n){return Per(function(i){return qer(t,i,n)},r)});VMe.exports=Der});var YMe=m((dOr,XMe)=>{var Ler=ze(),Fer=Ler(function(t,r,n){t=t<n.length&&t>=0?t:n.length;var i=Array.prototype.slice.call(n,0);return i.splice(t,0,r),i});XMe.exports=Fer});var JMe=m((hOr,ZMe)=>{var Mer=ze(),jer=Mer(function(t,r,n){return t=t<n.length&&t>=0?t:n.length,[].concat(Array.prototype.slice.call(n,0,t),r,Array.prototype.slice.call(n,t))});ZMe.exports=jer});var N8=m((mOr,QMe)=>{var Ber=y8(),Uer=J(),Wer=Uer(function(t,r){for(var n=new Ber,i=[],s=0,o,a;s<r.length;)a=r[s],o=t(a),n.add(o)&&i.push(a),s+=1;return i});QMe.exports=Wer});var lO=m((gOr,e4e)=>{var Her=$_(),$er=N8(),zer=$er(Her);e4e.exports=zer});var r4e=m((vOr,t4e)=>{var Ger=ad(),Ver=J(),Ker=iO(),Xer=Y_(),Yer=lO(),Zer=Ver(function(t,r){var n,i;return t.length>r.length?(n=t,i=r):(n=r,i=t),Yer(Ker(Xer(Ger)(n),i))});t4e.exports=Zer});var i4e=m((yOr,n4e)=>{var Jer=Ug(),Qer=J(),etr=Qer(Jer("intersperse",function(t,r){for(var n=[],i=0,s=r.length;i<s;)i===s-1?n.push(r[i]):n.push(r[i],t),i+=1;return n}));n4e.exports=etr});var Hg=m((xOr,s4e)=>{var ttr=cs();function rtr(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var i=arguments[r];if(i!=null)for(var s in i)ttr(s,i)&&(t[s]=i[s]);r+=1}return t}s4e.exports=typeof Object.assign=="function"?Object.assign:rtr});var q8=m((_Or,o4e)=>{var ntr=J(),itr=ntr(function(t,r){var n={};return n[t]=r,n});o4e.exports=itr});var c4e=m((bOr,u4e)=>{var str=Hg(),k8=nO(),a4e=F_(),otr=KR(),atr=q8(),utr={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":k8},ctr={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":k8},ltr={"@@transducer/init":Object,"@@transducer/step":function(e,t){return str(e,a4e(t)?atr(t[0],t[1]):t)},"@@transducer/result":k8};function ftr(e){if(otr(e))return e;if(a4e(e))return utr;if(typeof e=="string")return ctr;if(typeof e=="object")return ltr;throw new Error("Cannot create transformer for "+e)}u4e.exports=ftr});var p4e=m((wOr,f4e)=>{var ptr=tO(),dtr=ze(),htr=KR(),l4e=us(),mtr=c4e(),gtr=dtr(function(t,r,n){return htr(t)?l4e(r(t),t["@@transducer/init"](),n):l4e(r(mtr(t)),ptr(t,[],[],!1),n)});f4e.exports=gtr});var h4e=m((EOr,d4e)=>{var vtr=Pe(),ytr=cs(),xtr=bo(),_tr=vtr(function(t){for(var r=xtr(t),n=r.length,i=0,s={};i<n;){var o=r[i],a=t[o],u=ytr(a,s)?s[a]:s[a]=[];u[u.length]=o,i+=1}return s});d4e.exports=_tr});var g4e=m((SOr,m4e)=>{var btr=Pe(),wtr=bo(),Etr=btr(function(t){for(var r=wtr(t),n=r.length,i=0,s={};i<n;){var o=r[i];s[t[o]]=o,i+=1}return s});m4e.exports=Etr});var $g=m((TOr,v4e)=>{var Str=J(),Ttr=Bg(),Atr=jn(),Ctr=K_(),Rtr=Str(function(t,r){return Atr(t+1,function(){var n=arguments[t];if(n!=null&&Ttr(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ctr(n)+' does not have a method named "'+r+'"')})});v4e.exports=Rtr});var P8=m((AOr,y4e)=>{var Otr=J(),Itr=Otr(function(t,r){return r!=null&&r.constructor===t||r instanceof t});y4e.exports=Itr});var _4e=m((COr,x4e)=>{var Ntr=Pe(),qtr=R8(),ktr=Fs(),Ptr=Ntr(function(t){return t!=null&&ktr(t,qtr(t))});x4e.exports=Ptr});var w4e=m((ROr,b4e)=>{var Dtr=$g(),Ltr=Dtr(1,"join");b4e.exports=Ltr});var D8=m((OOr,E4e)=>{var Ftr=Pe(),Mtr=g8(),jtr=Ftr(function(t){return Mtr(function(){return Array.prototype.slice.call(arguments,0)},t)});E4e.exports=jtr});var T4e=m((IOr,S4e)=>{var Btr=Pe(),Utr=Btr(function(t){var r,n=[];for(r in t)n[n.length]=r;return n});S4e.exports=Utr});var C4e=m((NOr,A4e)=>{var Wtr=J(),Htr=iu(),$tr=Fs(),ztr=Wtr(function(t,r){if(typeof r.lastIndexOf=="function"&&!Htr(r))return r.lastIndexOf(t);for(var n=r.length-1;n>=0;){if($tr(r[n],t))return n;n-=1}return-1});A4e.exports=ztr});var L8=m((qOr,R4e)=>{function Gtr(e){return Object.prototype.toString.call(e)==="[object Number]"}R4e.exports=Gtr});var F8=m((kOr,O4e)=>{var Vtr=Pe(),Ktr=L8(),Xtr=Vtr(function(t){return t!=null&&Ktr(t.length)?t.length:NaN});O4e.exports=Xtr});var Z_=m((POr,I4e)=>{var Ytr=J(),Ztr=Ls(),Jtr=Ytr(function(t,r){return function(n){return function(i){return Ztr(function(s){return r(s,i)},n(t(i)))}}});I4e.exports=Jtr});var q4e=m((DOr,N4e)=>{var Qtr=Pe(),err=Z_(),trr=od(),rrr=uO(),nrr=Qtr(function(t){return err(trr(t),rrr(t))});N4e.exports=nrr});var P4e=m((LOr,k4e)=>{var irr=Pe(),srr=Y5(),orr=Z_(),arr=Gl(),urr=irr(function(t){return orr(arr(t),srr(t))});k4e.exports=urr});var L4e=m((FOr,D4e)=>{var crr=Pe(),lrr=B_(),frr=Z_(),prr=XR(),drr=crr(function(t){return frr(prr(t),lrr(t))});D4e.exports=drr});var M4e=m((MOr,F4e)=>{var hrr=J(),mrr=hrr(function(t,r){return t<r});F4e.exports=mrr});var B4e=m((jOr,j4e)=>{var grr=J(),vrr=grr(function(t,r){return t<=r});j4e.exports=vrr});var W4e=m((BOr,U4e)=>{var yrr=ze(),xrr=yrr(function(t,r,n){for(var i=0,s=n.length,o=[],a=[r];i<s;)a=t(a[0],n[i]),o[i]=a[1],i+=1;return[a[0],o]});U4e.exports=xrr});var $4e=m((UOr,H4e)=>{var _rr=ze(),brr=_rr(function(t,r,n){for(var i=n.length-1,s=[],o=[r];i>=0;)o=t(o[0],n[i]),s[i]=o[1],i-=1;return[o[0],s]});H4e.exports=brr});var G4e=m((WOr,z4e)=>{var wrr=J(),Err=us(),Srr=bo(),Trr=wrr(function(t,r){return Err(function(n,i){return n[i]=t(r[i],i,r),n},{},Srr(r))});z4e.exports=Trr});var K4e=m((HOr,V4e)=>{var Arr=J(),Crr=Arr(function(t,r){return r.match(t)||[]});V4e.exports=Crr});var Z4e=m(($Or,Y4e)=>{var Rrr=J(),X4e=M_(),Orr=Rrr(function(t,r){return X4e(t)?!X4e(r)||r<1?NaN:(t%r+r)%r:NaN});Y4e.exports=Orr});var Q4e=m((zOr,J4e)=>{var Irr=ze(),Nrr=Irr(function(t,r,n){return t(n)>t(r)?n:r});J4e.exports=Nrr});var M8=m((GOr,e3e)=>{var qrr=P_(),krr=na(),Prr=krr(qrr,0);e3e.exports=Prr});var j8=m((VOr,t3e)=>{var Drr=Pe(),Lrr=M8(),Frr=Drr(function(t){return Lrr(t)/t.length});t3e.exports=Frr});var n3e=m((KOr,r3e)=>{var Mrr=Pe(),jrr=j8(),Brr=Mrr(function(t){var r=t.length;if(r===0)return NaN;var n=2-r%2,i=(r-n)/2;return jrr(Array.prototype.slice.call(t,0).sort(function(s,o){return s<o?-1:s>o?1:0}).slice(i,i+n))});r3e.exports=Brr});var s3e=m((XOr,i3e)=>{var Urr=_o(),Wrr=J(),Hrr=cs(),$rr=Wrr(function(t,r){var n={};return Urr(r.length,function(){var i=t.apply(this,arguments);return Hrr(i,n)||(n[i]=r.apply(this,arguments)),n[i]})});i3e.exports=$rr});var a3e=m((YOr,o3e)=>{var zrr=Hg(),Grr=J(),Vrr=Grr(function(t,r){return zrr({},t,r)});o3e.exports=Vrr});var c3e=m((ZOr,u3e)=>{var Krr=Hg(),Xrr=Pe(),Yrr=Xrr(function(t){return Krr.apply(null,[{}].concat(t))});u3e.exports=Yrr});var pO=m((JOr,l3e)=>{var Zrr=ze(),fO=cs(),Jrr=Zrr(function(t,r,n){var i={},s;for(s in r)fO(s,r)&&(i[s]=fO(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)fO(s,n)&&!fO(s,i)&&(i[s]=n[s]);return i});l3e.exports=Jrr});var J_=m((QOr,p3e)=>{var Qrr=ze(),f3e=sO(),enr=pO(),tnr=Qrr(function e(t,r,n){return enr(function(i,s,o){return f3e(s)&&f3e(o)?e(t,s,o):t(i,s,o)},r,n)});p3e.exports=tnr});var h3e=m((eIr,d3e)=>{var rnr=J(),nnr=J_(),inr=rnr(function(t,r){return nnr(function(n,i,s){return i},t,r)});d3e.exports=inr});var g3e=m((tIr,m3e)=>{var snr=J(),onr=J_(),anr=snr(function(t,r){return onr(function(n,i,s){return s},t,r)});m3e.exports=anr});var y3e=m((rIr,v3e)=>{var unr=ze(),cnr=J_(),lnr=unr(function(t,r,n){return cnr(function(i,s,o){return t(s,o)},r,n)});v3e.exports=lnr});var _3e=m((nIr,x3e)=>{var fnr=Hg(),pnr=J(),dnr=pnr(function(t,r){return fnr({},r,t)});x3e.exports=dnr});var w3e=m((iIr,b3e)=>{var hnr=Hg(),mnr=J(),gnr=mnr(function(t,r){return hnr({},t,r)});b3e.exports=gnr});var S3e=m((sIr,E3e)=>{var vnr=ze(),ynr=pO(),xnr=vnr(function(t,r,n){return ynr(function(i,s,o){return t(s,o)},r,n)});E3e.exports=xnr});var A3e=m((oIr,T3e)=>{var _nr=J(),bnr=_nr(function(t,r){return r<t?r:t});T3e.exports=bnr});var R3e=m((aIr,C3e)=>{var wnr=ze(),Enr=wnr(function(t,r,n){return t(n)<t(r)?n:r});C3e.exports=Enr});var I3e=m((uIr,O3e)=>{var Snr=J(),Tnr=Snr(function(t,r){return t%r});O3e.exports=Tnr});var q3e=m((cIr,N3e)=>{var Anr=ze(),Cnr=Anr(function(e,t,r){var n=r.length,i=r.slice(),s=e<0?n+e:e,o=t<0?n+t:t,a=i.splice(s,1);return s<0||s>=r.length||o<0||o>=r.length?r:[].concat(i.slice(0,o)).concat(a).concat(i.slice(o,r.length))});N3e.exports=Cnr});var B8=m((lIr,k3e)=>{var Rnr=J(),Onr=Rnr(function(t,r){return t*r});k3e.exports=Onr});var D3e=m((fIr,P3e)=>{var Inr=Pe(),Nnr=Inr(function(t){return-t});P3e.exports=Nnr});var F3e=m((pIr,L3e)=>{var qnr=l8(),knr=J(),Pnr=W5(),Dnr=knr(function(t,r){return Pnr(qnr(t),r)});L3e.exports=Dnr});var j3e=m((dIr,M3e)=>{var Lnr=Pe(),Fnr=jn(),Mnr=od(),jnr=Lnr(function(t){var r=t<0?1:t+1;return Fnr(r,function(){return Mnr(t,arguments)})});M3e.exports=jnr});var U3e=m((hIr,B3e)=>{var Bnr=ze(),Unr=Bnr(function(t,r,n){return t(r(n))});B3e.exports=Unr});var H3e=m((mIr,W3e)=>{function Wnr(e){return[e]}W3e.exports=Wnr});var z3e=m((gIr,$3e)=>{var Hnr=Pe(),$nr=H3e(),znr=Hnr($nr);$3e.exports=znr});var V3e=m((vIr,G3e)=>{var Gnr=J(),Vnr=Gnr(function(t,r){for(var n={},i={},s=0,o=t.length;s<o;)i[t[s]]=1,s+=1;for(var a in r)i.hasOwnProperty(a)||(n[a]=r[a]);return n});G3e.exports=Vnr});var X3e=m((yIr,K3e)=>{var Knr=_o(),Xnr=Pe(),Ynr=Xnr(function(t){var r=!1,n;return Knr(t.length,function(){return r||(r=!0,n=t.apply(this,arguments)),n})});K3e.exports=Ynr});var U8=m((xIr,Y3e)=>{var Znr=Bg(),Jnr=d8();function Qnr(e,t){if(t==null||!Znr(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+Jnr(t,[]))}Y3e.exports=Qnr});var J3e=m((_Ir,Z3e)=>{var eir=J(),tir=U8(),rir=eir(function(t,r){return tir("otherwise",r),r.then(null,t)});Z3e.exports=rir});var W8=m((bIr,e6e)=>{var nir=ze(),Q3e=function(e){return{value:e,map:function(t){return Q3e(t(e))}}},iir=nir(function(t,r,n){return t(function(i){return Q3e(r(i))})(n).value});e6e.exports=iir});var r6e=m((wIr,t6e)=>{var sir=J(),oir=sir(function(t,r){return[t,r]});t6e.exports=oir});var H8=m((EIr,n6e)=>{var air=_o(),uir=J();function cir(e){return uir(function(t,r){return air(Math.max(0,t.length-r.length),function(){return t.apply(this,e(r,arguments))})})}n6e.exports=cir});var s6e=m((SIr,i6e)=>{var lir=xo(),fir=H8(),pir=fir(lir);i6e.exports=pir});var a6e=m((TIr,o6e)=>{var dir=xo(),hir=H8(),mir=Y_(),gir=hir(mir(dir));o6e.exports=gir});var c6e=m((AIr,u6e)=>{var vir=oO(),yir=D8(),xir=V_(),_ir=yir([vir,xir]);u6e.exports=_ir});var f6e=m((CIr,l6e)=>{var bir=ze(),wir=Fs(),Eir=Gl(),Sir=bir(function(t,r,n){return wir(Eir(t,n),r)});l6e.exports=Sir});var $8=m((RIr,p6e)=>{var Tir=ze(),Air=v8(),Cir=Gl(),Rir=Tir(function(t,r,n){return Air(t,Cir(r,n))});p6e.exports=Rir});var h6e=m((OIr,d6e)=>{var Oir=ze(),Iir=Gl(),Nir=Oir(function(t,r,n){return t(Iir(r,n))});d6e.exports=Nir});var g6e=m((IIr,m6e)=>{var qir=J(),kir=qir(function(t,r){for(var n={},i=0;i<t.length;)t[i]in r&&(n[t[i]]=r[t[i]]),i+=1;return n});m6e.exports=kir});var z8=m((NIr,v6e)=>{var Pir=J(),Dir=Pir(function(t,r){for(var n={},i=0,s=t.length;i<s;){var o=t[i];n[o]=r[o],i+=1}return n});v6e.exports=Dir});var x6e=m((qIr,y6e)=>{var Lir=J(),Fir=Lir(function(t,r){var n={};for(var i in r)t(r[i],i,r)&&(n[i]=r[i]);return n});y6e.exports=Fir});var b6e=m((kIr,_6e)=>{var Mir=r8(),jir=Wg();function Bir(){if(arguments.length===0)throw new Error("pipeK requires at least one argument");return Mir.apply(this,jir(arguments))}_6e.exports=Bir});var G8=m((PIr,w6e)=>{var Uir=xo(),Wir=J(),Hir=Wir(function(t,r){return Uir([t],r)});w6e.exports=Hir});var S6e=m((DIr,E6e)=>{var $ir=B8(),zir=na(),Gir=zir($ir,1);E6e.exports=Gir});var V8=m((LIr,T6e)=>{var Vir=J(),Kir=jn(),Xir=Vir(function(t,r){return Kir(r.length,function(){for(var n=[],i=0;i<r.length;)n.push(r[i].call(this,arguments[i])),i+=1;return t.apply(this,n.concat(Array.prototype.slice.call(arguments,r.length)))})});T6e.exports=Xir});var C6e=m((FIr,A6e)=>{var Yir=L_(),Zir=$_(),Jir=z8(),Qir=V8(),esr=Qir(Yir,[Jir,Zir]);A6e.exports=esr});var O6e=m((MIr,R6e)=>{var tsr=ze(),rsr=Fs(),nsr=tsr(function(t,r,n){return rsr(r,n[t])});R6e.exports=nsr});var N6e=m((jIr,I6e)=>{var isr=ze(),ssr=P8(),osr=isr(function(t,r,n){return ssr(t,n[r])});I6e.exports=osr});var k6e=m((BIr,q6e)=>{var asr=ze(),usr=$8(),csr=asr(function(t,r,n){return usr(t,[r],n)});q6e.exports=csr});var D6e=m((UIr,P6e)=>{var lsr=ze(),fsr=lsr(function(t,r,n){return t(n[r])});P6e.exports=fsr});var F6e=m((WIr,L6e)=>{var psr=J(),dsr=Gl(),hsr=psr(function(t,r){return t.map(function(n){return dsr([n],r)})});L6e.exports=hsr});var B6e=m((HIr,j6e)=>{var msr=J(),M6e=L8(),gsr=msr(function(t,r){if(!(M6e(t)&&M6e(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=[],i=t;i<r;)n.push(i),i+=1;return n});j6e.exports=gsr});var K8=m(($Ir,U6e)=>{var vsr=ze(),ysr=vsr(function(t,r,n){for(var i=n.length-1;i>=0;)r=t(n[i],r),i-=1;return r});U6e.exports=ysr});var H6e=m((zIr,W6e)=>{var xsr=D_(),_sr=us(),bsr=bc(),wsr=xsr(4,[],function(t,r,n,i){return _sr(function(s,o){return t(s,o)?r(s,o):bsr(s)},n,i)});W6e.exports=wsr});var z6e=m((GIr,$6e)=>{var Esr=Pe(),Ssr=bc(),Tsr=Esr(Ssr);$6e.exports=Tsr});var X8=m((VIr,G6e)=>{var Asr=J(),Csr=Asr(function(t,r){var n=Number(r),i=0,s;if(n<0||isNaN(n))throw new RangeError("n must be a non-negative number");for(s=new Array(n);i<n;)s[i]=t(i),i+=1;return s});G6e.exports=Csr});var K6e=m((KIr,V6e)=>{var Rsr=J(),Osr=j_(),Isr=X8(),Nsr=Rsr(function(t,r){return Isr(Osr(t),r)});V6e.exports=Nsr});var Y6e=m((XIr,X6e)=>{var qsr=ze(),ksr=qsr(function(t,r,n){return n.replace(t,r)});X6e.exports=ksr});var J6e=m((YIr,Z6e)=>{var Psr=ze(),Dsr=Psr(function(t,r,n){for(var i=0,s=n.length,o=[r];i<s;)r=t(r,n[i]),o[i+1]=r,i+=1;return o});Z6e.exports=Dsr});var Y8=m((ZIr,Q6e)=>{var Lsr=J(),Fsr=YR(),Msr=Ls(),jsr=G8(),Bsr=K8(),Usr=Lsr(function(t,r){return typeof r.sequence=="function"?r.sequence(t):Bsr(function(n,i){return Fsr(Msr(jsr,n),i)},t([]),r)});Q6e.exports=Usr});var tje=m((JIr,eje)=>{var Wsr=ze(),Hsr=j_(),$sr=W8(),zsr=Wsr(function(t,r,n){return $sr(t,Hsr(r),n)});eje.exports=zsr});var nje=m((QIr,rje)=>{var Gsr=J(),Vsr=Gsr(function(t,r){return Array.prototype.slice.call(r,0).sort(t)});rje.exports=Vsr});var sje=m((eNr,ije)=>{var Ksr=J(),Xsr=Ksr(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,i){var s=t(n),o=t(i);return s<o?-1:s>o?1:0})});ije.exports=Xsr});var aje=m((tNr,oje)=>{var Ysr=J(),Zsr=Ysr(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,i){for(var s=0,o=0;s===0&&o<t.length;)s=t[o](n,i),o+=1;return s})});oje.exports=Zsr});var cje=m((rNr,uje)=>{var Jsr=$g(),Qsr=Jsr(1,"split");uje.exports=Qsr});var pje=m((nNr,fje)=>{var eor=J(),tor=F8(),lje=wo(),ror=eor(function(t,r){return[lje(0,t,r),lje(t,tor(r),r)]});fje.exports=ror});var hje=m((iNr,dje)=>{var nor=J(),ior=wo(),sor=nor(function(t,r){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],i=0;i<r.length;)n.push(ior(i,i+=t,r));return n});dje.exports=sor});var gje=m((sNr,mje)=>{var oor=J(),aor=oor(function(t,r){for(var n=0,i=r.length,s=[];n<i&&!t(r[n]);)s.push(r[n]),n+=1;return[s,Array.prototype.slice.call(r,n)]});mje.exports=aor});var yje=m((oNr,vje)=>{var uor=J(),cor=Fs(),lor=cO(),por=uor(function(e,t){return cor(lor(e.length,t),e)});vje.exports=por});var _je=m((aNr,xje)=>{var dor=J(),hor=dor(function(t,r){return Number(t)-Number(r)});xje.exports=hor});var Eje=m((uNr,wje)=>{var mor=J(),gor=aO(),bje=x8(),vor=mor(function(t,r){return gor(bje(t,r),bje(r,t))});wje.exports=vor});var Aje=m((cNr,Tje)=>{var yor=ze(),xor=aO(),Sje=_8(),_or=yor(function(t,r,n){return xor(Sje(t,r,n),Sje(t,n,r))});Tje.exports=_or});var Rje=m((lNr,Cje)=>{var bor=J(),wor=wo(),Eor=bor(function(t,r){for(var n=r.length-1;n>=0&&t(r[n]);)n-=1;return wor(n+1,1/0,r)});Cje.exports=Eor});var Nje=m((fNr,Ije)=>{var Sor=J(),Tor=bc(),Oje=mn(),Aor=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Oje.init,e.prototype["@@transducer/result"]=Oje.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):Tor(t)},e}(),Cor=Sor(function(t,r){return new Aor(t,r)});Ije.exports=Cor});var kje=m((pNr,qje)=>{var Ror=J(),Oor=sn(),Ior=Nje(),Nor=wo(),qor=Ror(Oor(["takeWhile"],Ior,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return Nor(0,n,r)}));qje.exports=qor});var Lje=m((dNr,Dje)=>{var kor=J(),Pje=mn(),Por=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Pje.init,e.prototype["@@transducer/result"]=Pje.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r),this.xf["@@transducer/step"](t,r)},e}(),Dor=kor(function(t,r){return new Por(t,r)});Dje.exports=Dor});var Mje=m((hNr,Fje)=>{var Lor=J(),For=sn(),Mor=Lje(),jor=Lor(For([],Mor,function(t,r){return t(r),r}));Fje.exports=jor});var Bje=m((mNr,jje)=>{function Bor(e){return Object.prototype.toString.call(e)==="[object RegExp]"}jje.exports=Bor});var Wje=m((gNr,Uje)=>{var Uor=Q5(),Wor=J(),Hor=Bje(),$or=K_(),zor=Wor(function(t,r){if(!Hor(t))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+$or(t));return Uor(t).test(r)});Uje.exports=zor});var $je=m((vNr,Hje)=>{var Gor=J(),Vor=U8(),Kor=Gor(function(t,r){return Vor("andThen",r),r.then(t)});Hje.exports=Kor});var Gje=m((yNr,zje)=>{var Xor=$g(),Yor=Xor(0,"toLowerCase");zje.exports=Yor});var Kje=m((xNr,Vje)=>{var Zor=Pe(),Jor=cs(),Qor=Zor(function(t){var r=[];for(var n in t)Jor(n,t)&&(r[r.length]=[n,t[n]]);return r});Vje.exports=Qor});var Yje=m((_Nr,Xje)=>{var ear=Pe(),tar=ear(function(t){var r=[];for(var n in t)r[r.length]=[n,t[n]];return r});Xje.exports=tar});var Jje=m((bNr,Zje)=>{var rar=$g(),nar=rar(0,"toUpperCase");Zje.exports=nar});var eBe=m((wNr,Qje)=>{var iar=us(),sar=H5(),oar=jn(),aar=oar(4,function(t,r,n,i){return iar(t(typeof r=="function"?sar(r):r),n,i)});Qje.exports=aar});var rBe=m((ENr,tBe)=>{var uar=Pe(),car=uar(function(t){for(var r=0,n=[];r<t.length;){for(var i=t[r],s=0;s<i.length;)typeof n[s]>"u"&&(n[s]=[]),n[s].push(i[s]),s+=1;r+=1}return n});tBe.exports=car});var iBe=m((SNr,nBe)=>{var lar=ze(),far=Ls(),par=Y8(),dar=lar(function(t,r,n){return typeof n["fantasy-land/traverse"]=="function"?n["fantasy-land/traverse"](r,t):par(t,far(r,n))});nBe.exports=dar});var aBe=m((TNr,oBe)=>{var sBe=Pe(),Q_=`
|
|
232
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,har="\u200B",mar=typeof String.prototype.trim=="function",gar=sBe(!mar||Q_.trim()||!har.trim()?function(t){var r=new RegExp("^["+Q_+"]["+Q_+"]*"),n=new RegExp("["+Q_+"]["+Q_+"]*$");return t.replace(r,"").replace(n,"")}:function(t){return t.trim()});oBe.exports=gar});var cBe=m((ANr,uBe)=>{var yar=_o(),xar=xo(),_ar=J(),bar=_ar(function(t,r){return yar(t.length,function(){try{return t.apply(this,arguments)}catch(n){return r.apply(this,xar([n],arguments))}})});uBe.exports=bar});var fBe=m((CNr,lBe)=>{var war=Pe(),Ear=war(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});lBe.exports=Ear});var dBe=m((RNr,pBe)=>{var Sar=Pe(),Tar=U_(),Aar=Sar(function(t){return Tar(1,t)});pBe.exports=Aar});var mBe=m((ONr,hBe)=>{var Car=J(),Rar=jn(),Oar=Car(function(t,r){return Rar(t,function(){for(var n=1,i=r,s=0,o;n<=t&&typeof i=="function";)o=n===t?arguments.length:s+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,s,o)),n+=1,s=o;return i})});hBe.exports=Oar});var vBe=m((INr,gBe)=>{var Iar=J(),Nar=Iar(function(t,r){for(var n=t(r),i=[];n&&n.length;)i[i.length]=n[0],n=t(n[1]);return i});gBe.exports=Nar});var xBe=m((NNr,yBe)=>{var qar=xo(),kar=J(),Par=rO(),Dar=lO(),Lar=kar(Par(Dar,qar));yBe.exports=Lar});var Z8=m((qNr,_Be)=>{var Far=z_(),Mar=J(),jar=Mar(function(t,r){for(var n=0,i=r.length,s=[],o;n<i;)o=r[n],Far(t,o,s)||(s[s.length]=o),n+=1;return s});_Be.exports=jar});var wBe=m((kNr,bBe)=>{var Bar=xo(),Uar=ze(),War=Z8(),Har=Uar(function(t,r,n){return War(t,Bar(r,n))});bBe.exports=Har});var SBe=m((PNr,EBe)=>{var $ar=ze(),zar=$ar(function(t,r,n){return t(n)?n:r(n)});EBe.exports=zar});var ABe=m((DNr,TBe)=>{var Gar=nO(),Var=QR(),Kar=Var(Gar);TBe.exports=Kar});var RBe=m((LNr,CBe)=>{var Xar=ze(),Yar=Xar(function(t,r,n){for(var i=n;!t(i);)i=r(i);return i});CBe.exports=Yar});var IBe=m((FNr,OBe)=>{var Zar=Pe(),Jar=Zar(function(t){var r,n=[];for(r in t)n[n.length]=t[r];return n});OBe.exports=Jar});var qBe=m((MNr,NBe)=>{var Qar=J(),eur=function(e){return{value:e,"fantasy-land/map":function(){return this}}},tur=Qar(function(t,r){return t(eur)(r).value});NBe.exports=tur});var PBe=m((jNr,kBe)=>{var rur=ze(),nur=rur(function(t,r,n){return t(n)?r(n):n});kBe.exports=nur});var J8=m((BNr,DBe)=>{var iur=J(),sur=cs(),our=iur(function(t,r){for(var n in t)if(sur(n,t)&&!t[n](r[n]))return!1;return!0});DBe.exports=our});var FBe=m((UNr,LBe)=>{var aur=J(),uur=Fs(),cur=Ls(),lur=J8(),fur=aur(function(t,r){return lur(cur(uur,t),r)});LBe.exports=fur});var jBe=m((WNr,MBe)=>{var pur=ad(),dur=J(),hur=Y_(),mur=V_(),gur=dur(function(e,t){return mur(hur(pur)(e),t)});MBe.exports=gur});var UBe=m((HNr,BBe)=>{var vur=J(),yur=vur(function(t,r){return!!(!t^!r)});BBe.exports=yur});var HBe=m(($Nr,WBe)=>{var xur=J(),_ur=xur(function(t,r){for(var n=0,i=t.length,s,o=r.length,a=[];n<i;){for(s=0;s<o;)a[a.length]=[t[n],r[s]],s+=1;n+=1}return a});WBe.exports=_ur});var zBe=m((zNr,$Be)=>{var bur=J(),wur=bur(function(t,r){for(var n=[],i=0,s=Math.min(t.length,r.length);i<s;)n[i]=[t[i],r[i]],i+=1;return n});$Be.exports=wur});var VBe=m((GNr,GBe)=>{var Eur=J(),Sur=Eur(function(t,r){for(var n=0,i=Math.min(t.length,r.length),s={};n<i;)s[t[n]]=r[n],n+=1;return s});GBe.exports=Sur});var XBe=m((VNr,KBe)=>{var Tur=ze(),Aur=Tur(function(t,r,n){for(var i=[],s=0,o=Math.min(r.length,n.length);s<o;)i[s]=t(r[s],n[s]),s+=1;return i});KBe.exports=Aur});var ZBe=m((KNr,YBe)=>{var Cur=jn(),Rur=Pe(),Our=Rur(function(t){return Cur(t.length,function(){var n=arguments;return function(){return t.apply(this,n)}})});YBe.exports=Our});var JBe=m((XNr,F)=>{F.exports={};F.exports.F=oke();F.exports.T=uke();F.exports.__=lke();F.exports.add=P_();F.exports.addIndex=wke();F.exports.adjust=U5();F.exports.all=W5();F.exports.allPass=cPe();F.exports.always=j_();F.exports.and=V5();F.exports.any=mPe();F.exports.anyPass=vPe();F.exports.ap=YR();F.exports.aperture=SPe();F.exports.append=APe();F.exports.apply=K5();F.exports.applySpec=NPe();F.exports.applyTo=kPe();F.exports.ascend=DPe();F.exports.assoc=B_();F.exports.assocPath=Y5();F.exports.binary=WPe();F.exports.bind=$5();F.exports.both=KPe();F.exports.call=ZPe();F.exports.chain=QR();F.exports.clamp=cDe();F.exports.clone=mDe();F.exports.comparator=vDe();F.exports.complement=_De();F.exports.compose=rO();F.exports.composeK=r8();F.exports.composeP=DDe();F.exports.composeWith=UDe();F.exports.concat=aO();F.exports.cond=TLe();F.exports.construct=RLe();F.exports.constructN=m8();F.exports.contains=ILe();F.exports.converge=g8();F.exports.countBy=LLe();F.exports.curry=JR();F.exports.curryN=jn();F.exports.dec=MLe();F.exports.defaultTo=v8();F.exports.descend=ULe();F.exports.difference=x8();F.exports.differenceWith=_8();F.exports.dissoc=b8();F.exports.dissocPath=eFe();F.exports.divide=rFe();F.exports.drop=E8();F.exports.dropLast=gFe();F.exports.dropLastWhile=wFe();F.exports.dropRepeats=OFe();F.exports.dropRepeatsWith=A8();F.exports.dropWhile=PFe();F.exports.either=FFe();F.exports.empty=R8();F.exports.endsWith=UFe();F.exports.eqBy=HFe();F.exports.eqProps=zFe();F.exports.equals=Fs();F.exports.evolve=VFe();F.exports.filter=oO();F.exports.find=ZFe();F.exports.findIndex=tMe();F.exports.findLast=sMe();F.exports.findLastIndex=cMe();F.exports.flatten=fMe();F.exports.flip=Y_();F.exports.forEach=hMe();F.exports.forEachObjIndexed=gMe();F.exports.fromPairs=yMe();F.exports.groupBy=_Me();F.exports.groupWith=wMe();F.exports.gt=SMe();F.exports.gte=AMe();F.exports.has=IMe();F.exports.hasIn=qMe();F.exports.hasPath=I8();F.exports.head=i8();F.exports.identical=PMe();F.exports.identity=$_();F.exports.ifElse=LMe();F.exports.inc=MMe();F.exports.includes=BMe();F.exports.indexBy=WMe();F.exports.indexOf=$Me();F.exports.init=GMe();F.exports.innerJoin=KMe();F.exports.insert=YMe();F.exports.insertAll=JMe();F.exports.intersection=r4e();F.exports.intersperse=i4e();F.exports.into=p4e();F.exports.invert=h4e();F.exports.invertObj=g4e();F.exports.invoker=$g();F.exports.is=P8();F.exports.isEmpty=_4e();F.exports.isNil=ZR();F.exports.join=w4e();F.exports.juxt=D8();F.exports.keys=bo();F.exports.keysIn=T4e();F.exports.last=T8();F.exports.lastIndexOf=C4e();F.exports.length=F8();F.exports.lens=Z_();F.exports.lensIndex=q4e();F.exports.lensPath=P4e();F.exports.lensProp=L4e();F.exports.lift=W_();F.exports.liftN=Z5();F.exports.lt=M4e();F.exports.lte=B4e();F.exports.map=Ls();F.exports.mapAccum=W4e();F.exports.mapAccumRight=$4e();F.exports.mapObjIndexed=G4e();F.exports.match=K4e();F.exports.mathMod=Z4e();F.exports.max=sd();F.exports.maxBy=Q4e();F.exports.mean=j8();F.exports.median=n3e();F.exports.memoizeWith=s3e();F.exports.merge=a3e();F.exports.mergeAll=c3e();F.exports.mergeDeepLeft=h3e();F.exports.mergeDeepRight=g3e();F.exports.mergeDeepWith=y3e();F.exports.mergeDeepWithKey=J_();F.exports.mergeLeft=_3e();F.exports.mergeRight=w3e();F.exports.mergeWith=S3e();F.exports.mergeWithKey=pO();F.exports.min=A3e();F.exports.minBy=R3e();F.exports.modulo=I3e();F.exports.move=q3e();F.exports.multiply=B8();F.exports.nAry=U_();F.exports.negate=D3e();F.exports.none=F3e();F.exports.not=e8();F.exports.nth=od();F.exports.nthArg=j3e();F.exports.o=U3e();F.exports.objOf=q8();F.exports.of=z3e();F.exports.omit=V3e();F.exports.once=X3e();F.exports.or=C8();F.exports.otherwise=J3e();F.exports.over=W8();F.exports.pair=r6e();F.exports.partial=s6e();F.exports.partialRight=a6e();F.exports.partition=c6e();F.exports.path=Gl();F.exports.paths=G5();F.exports.pathEq=f6e();F.exports.pathOr=$8();F.exports.pathSatisfies=h6e();F.exports.pick=g6e();F.exports.pickAll=z8();F.exports.pickBy=x6e();F.exports.pipe=t8();F.exports.pipeK=b6e();F.exports.pipeP=n8();F.exports.pipeWith=s8();F.exports.pluck=jg();F.exports.prepend=G8();F.exports.product=S6e();F.exports.project=C6e();F.exports.prop=XR();F.exports.propEq=O6e();F.exports.propIs=N6e();F.exports.propOr=k6e();F.exports.propSatisfies=D6e();F.exports.props=F6e();F.exports.range=B6e();F.exports.reduce=na();F.exports.reduceBy=X_();F.exports.reduceRight=K8();F.exports.reduceWhile=H6e();F.exports.reduced=z6e();F.exports.reject=V_();F.exports.remove=w8();F.exports.repeat=K6e();F.exports.replace=Y6e();F.exports.reverse=Wg();F.exports.scan=J6e();F.exports.sequence=Y8();F.exports.set=tje();F.exports.slice=wo();F.exports.sort=nje();F.exports.sortBy=sje();F.exports.sortWith=aje();F.exports.split=cje();F.exports.splitAt=pje();F.exports.splitEvery=hje();F.exports.splitWhen=gje();F.exports.startsWith=yje();F.exports.subtract=_je();F.exports.sum=M8();F.exports.symmetricDifference=Eje();F.exports.symmetricDifferenceWith=Aje();F.exports.tail=H_();F.exports.take=cO();F.exports.takeLast=O8();F.exports.takeLastWhile=Rje();F.exports.takeWhile=kje();F.exports.tap=Mje();F.exports.test=Wje();F.exports.andThen=$je();F.exports.times=X8();F.exports.toLower=Gje();F.exports.toPairs=Kje();F.exports.toPairsIn=Yje();F.exports.toString=K_();F.exports.toUpper=Jje();F.exports.transduce=eBe();F.exports.transpose=rBe();F.exports.traverse=iBe();F.exports.trim=aBe();F.exports.tryCatch=cBe();F.exports.type=eO();F.exports.unapply=fBe();F.exports.unary=dBe();F.exports.uncurryN=mBe();F.exports.unfold=vBe();F.exports.union=xBe();F.exports.unionWith=wBe();F.exports.uniq=lO();F.exports.uniqBy=N8();F.exports.uniqWith=Z8();F.exports.unless=SBe();F.exports.unnest=ABe();F.exports.until=RBe();F.exports.update=uO();F.exports.useWith=V8();F.exports.values=X5();F.exports.valuesIn=IBe();F.exports.view=qBe();F.exports.when=PBe();F.exports.where=J8();F.exports.whereEq=FBe();F.exports.without=jBe();F.exports.xor=UBe();F.exports.xprod=HBe();F.exports.zip=zBe();F.exports.zipObj=VBe();F.exports.zipWith=XBe();F.exports.thunkify=ZBe()});var wr,QBe,Q8=ye(()=>{"use strict";cn();wr=class{org;serviceName;constructor(t={}){this.org=t.org,this.serviceName=t.serviceName||"my-app"}async copy(t={}){let r={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/copy`,body:t};return await Ve(r)}async create(t={}){let r={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}`,body:t};return await Ve(r)}async get(){var r;let t={method:"GET",endpoint:`/orgs/${(r=this.org)==null?void 0:r.orgName}/services/${this.serviceName}`};return await Ve(t)}async put(t={}){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}`,body:t};return await Ve(r)}async delete(){let t={method:"DELETE",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}`};return await Ve(t)}async listInstances(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/instances`};return await Ve(t)}async getParams(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/params`},{params:r}=await Ve(t);return r}async putParams(t){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/params`,body:{params:t}},{params:n}=await Ve(r);return n}getDashboardUrl(){let t=process.env.AMPT_STAGE||"prod";return process.env.AMPT_DASHBOARD_URL?process.env.AMPT_DASHBOARD_URL:t==="prod"?`https://ampt.dev/orgs/${this.org.orgName}/apps/${this.serviceName}`:`https://amptlabs.dev/orgs/${this.org.orgName}/apps/${this.serviceName}`}},QBe=wr});var dO,hr,eUe=ye(()=>{"use strict";dO=de(JBe());cn();Q8();hr=class{orgName;constructor(t){this.orgName=t.orgName}update(t={}){this.orgName=t.orgName||this.orgName}async isAuthorized(){try{await this._activate()}catch(t){if(t.message.includes("Your credentials do not have access to the Organization"))return tt.debug({orgName:this.orgName},"do not have access to org"),!1}return!0}async listServices(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/services`};return await Ve(t)}async listServicesWithInstances(){let t=await this.listServices(),r=await Promise.all(t.map(async n=>{let s=await new QBe({org:this,serviceName:n.serviceName}).listInstances();return!s||s.length===0?null:n}));return(0,dO.reject)(dO.isNil,r)}async getParams(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/params`},{params:r}=await Ve(t);return r}async putParams(t){let r={method:"PATCH",endpoint:`/orgs/${this.orgName}/params`,body:{params:t}},{params:n}=await Ve(r);return n}async _activate(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/is-activated`};return await Ve(t)}async proxy(t){let r={method:"POST",endpoint:`/orgs/${this.orgName}/proxy`,body:t};return await Ve(r)}async getUsage(t="total"){let r={method:"GET",endpoint:`/orgs/${this.orgName}/usage?window=${t}`};return await Ve(r)}async getRegions(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/regions`};return(await Ve(t)).regions}async fetch(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/details`};return await Ve(t)}async updateMetadata(t={}){let r={method:"PATCH",endpoint:`/orgs/${this.orgName}`,body:t};return await Ve(r)}}});var Iur,tUe,rUe=ye(()=>{"use strict";Iur=e=>e.replace(/([-_][a-z, 0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),tUe=e=>Object.keys(e).reduce((t,r)=>({...t,[Iur(r)]:e[r]}),{})});var hO,mO,wc,Vl,nUe=ye(()=>{"use strict";hO=de(WE());Em();mO=require("url");rUe();wc=class{static async refreshSession(t){var n;let r={method:"POST",url:`${wc.auth0Url}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:new mO.URLSearchParams({grant_type:"refresh_token",refresh_token:t,client_id:wc.clientId})};try{let i=await hO.default.request(r);if(i.data)return{accessToken:i.data.access_token,idToken:i.data.id_token};throw Error("Invalid response from Auth0")}catch(i){throw tt.error({err:(n=i==null?void 0:i.toJSON)==null?void 0:n.call(i)}),i}}static async requestDeviceCode(){var r;let t={method:"POST",url:`${wc.auth0Url}/oauth/device/code`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:new mO.URLSearchParams({client_id:wc.clientId,scope:"openid profile email offline_access",audience:wc.audience})};try{let n=await hO.default.request(t);if(n.data)return{verificationUrl:n.data.verification_uri_complete,deviceCode:n.data.device_code,userCode:n.data.user_code,pollInterval:n.data.interval+1,expiration:n.data.expires_in,loginData:wc.pollForToken(n.data.interval,n.data.device_code)};throw Error("Invalid response from Auth0")}catch(n){throw tt.error({err:(r=n==null?void 0:n.toJSON)==null?void 0:r.call(n)}),n}}static async pollForToken(t,r){return new Promise((n,i)=>{let s=setInterval(()=>{(async()=>{var a;let o={method:"POST",url:`${wc.auth0Url}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:new mO.URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:r,client_id:this.clientId})};try{let u=await hO.default.request(o);u.data&&(clearInterval(s),n(tUe(u.data)))}catch(u){return u.response&&((a=u.response.data)==null?void 0:a.error)==="authorization_pending"?void 0:i(u)}})().catch(o=>console.error(o))},t*1e3)})}},Vl=wc;_n(Vl,"auth0Url",process.env.AMPT_STAGE==="prod"?"https://ampt.us.auth0.com":"https://amptdev.us.auth0.com"),_n(Vl,"clientId",process.env.AMPT_STAGE==="prod"?"sVVRzSWM6OVwWBnnOv3idPqkZvgqKLGm":"soEd8ZHLP6RpLZNGjTlb7J462WtcZjZT"),_n(Vl,"audience",process.env.AMPT_STAGE==="prod"?"https://api.ampt.dev":"https://api.amptlabs.dev")});var e7,t7,Ms,iUe=ye(()=>{"use strict";cn();nUe();Hu();gn();cn();e7=de(require("assert")),t7=class extends Error{constructor(t){super(t||"Login failed")}},Ms=class{logger=tt.child({class:"User"});auth0Id;userId;email;name;username;accessToken;idToken;refreshToken;orgs;defaultOrgName;_loginData;config;loggedIn=!1;constructor(){this.config=new gO}static async init(){let t=new Ms;return await t.load(),t}isLoggedIn(){return process.env.AMPT_API_KEY?!0:this.loggedIn&&this._isValidUserIdSet()}async load(){if(process.env.AMPT_API_KEY){await Promise.all([this.hydrateUser(),this.getDefaultOrgName()]);return}let t=d4();if(this.logger.debug({func:"load",user:t},"loaded user"),!t||!t.refreshToken){this.loggedIn=!1;return}this.userId=t.userId,this.username=t.username,this.refreshToken=t.refreshToken,await this.refreshAccessToken(),await Promise.all([this.hydrateUser(),this.getDefaultOrgName()])}async refreshAccessToken(){(0,e7.default)(!!this.refreshToken,"no refresh token");let t=await Vl.refreshSession(this.refreshToken);this.accessToken=t.accessToken,this.idToken=t.idToken,zr.storeAuth({accessToken:t.accessToken,idToken:t.idToken})}async getDefaultOrgName(){var r;(!this.orgs||this.orgs.length===0)&&await this.listOrgs(),(0,e7.default)(!!((r=this.orgs)!=null&&r.length),"no orgs found");let t=this.orgs.find(n=>n.role==="owner");return t?(tt.debug({ownedOrg:t},"default org"),zr.orgName=t.orgName,zr.orgName):(zr.orgName=this.orgs[0].orgName,zr.orgName)}async restoreOrgLogin(t){throw new Error("not implemented")}hasAccessToOrg(t){var r;return((r=this.orgs)==null?void 0:r.some(({orgName:n})=>n===t))||!1}async listOrgs(){let t=await Ve({endpoint:"/orgs",method:"GET"});this.orgs=t}async performLogin(t){var i;let{userCode:r,verificationUrl:n}=await this.startLogin();t.logInfo("Your browser should open automatically."),t.logInfo("If not, open the following login url:"),t.logUrl(n),t.logInfo(`Your confirmation code is: ${(i=t.styles)==null?void 0:i.purple.bold(r)}`),t.logWarning("This code will expire in 15 minutes.");try{t.openUrl(n)}catch{}await this.endLogin(),await dr({eventName:"ampt.context.login"}),t.logSuccess("Successfully logged into Ampt!")}async startLogin(){let{userCode:t,expiration:r,verificationUrl:n,deviceCode:i,pollInterval:s,loginData:o}=await Vl.requestDeviceCode();return this._loginData=o,{userCode:t,expiration:r,verificationUrl:n,deviceCode:i,pollInterval:s}}async endLogin(){if(!this._loginData)throw new t7("Something went wrong during the login process.");let t=await this._loginData;if(zr.storeAuth({accessToken:t.accessToken,idToken:t.idToken}),await Promise.all([this.hydrateUser(),this.getDefaultOrgName()]),this.userId){let r={userId:this.userId,name:this.name,email:this.email,username:this.username,refreshToken:t.refreshToken},n={userId:this.userId,sessions:{[this.userId]:r,[this.username]:r}};Zhe(n)}}logout(){return Jhe()}async hydrateUser(t=0){let n=await Ve({method:"GET",endpoint:"/core/me"});if(n!=null&&n.userUid)this.loggedIn=!0,this.name=n.fullName,this.email=n.email,this.userId=n.userUid,this.username=n.userName,this.auth0Id=n.auth0Id;else{if(t>3)throw new Error("Hydrate user failed");return await hp(1e3),await this.hydrateUser(t+1)}}_isValidUserIdSet(){return!!this.userId}}});var gO,sUe=ye(()=>{"use strict";gO=class{}});var gn=ye(()=>{"use strict";Hbe();$be();Wwe();Pqe();eke();j5();ike();zR();eUe();Q8();iUe();sUe();Hu()});var oUe,Nur,aUe=ye(()=>{"use strict";oUe=de(Sm()),Nur=async e=>{let{darkPurple:t,bold:r}=e.styles;e.log(`
|
|
231
|
+
`+r)),e.removeListener("error",M5),e.destroy()}function m$t(e){return e.trim()}});var X2e=m((STr,K2e)=>{"use strict";var I_=D5();I_.createWebSocketStream=W2e();I_.Server=V2e();I_.Receiver=E5();I_.Sender=S5();K2e.exports=I_});var Y2e,N_,Pg,zR=ye(()=>{"use strict";Y2e=require("events"),N_=de(X2e());cn();Pg=class extends Y2e.EventEmitter{url;socket;pingInterval;pingTimeout;reconnectTimeout;connectionState=0;onlineState=0;constructor(t){super(),this.url=t.url}onClose(){this.pingInterval&&(clearInterval(this.pingInterval),delete this.pingInterval),this.connectionState===2?setImmediate(this._connectInternal.bind(this)):this.connectionState===1&&(this.onlineState==1&&this.emit("offline"),this.onlineState=2,this.connectionState=0,setTimeout(this._connectInternal.bind(this),5e3).unref())}sendEvent(t){var r;((r=this.socket)==null?void 0:r.readyState)===N_.default.OPEN&&this.socket.send(JSON.stringify(t))}onMessage(t){let r;try{r=JSON.parse(t)}catch{this.emit("invalidMessage",new Error(`Unable to parse message: ${t}`));return}this.emit("event",r)}onOpen(){this.connectionState=2,this.pingInterval&&clearInterval(this.pingInterval),this.pingInterval=setInterval(this.ping.bind(this),2e3).unref(),this.emit("connected"),this.onlineState===2&&this.emit("online"),this.onlineState=1}onError(t){this.connectionState===2?setImmediate(this._connectInternal.bind(this)):this.connectionState===1&&(this.onlineState===1&&this.emit("offline"),this.onlineState=2,this.connectionState=0,setTimeout(this._connectInternal.bind(this),5e3).unref()),this.emit("connectionError",new Error(`Received connection error: ${t.message}`))}ping(){var t;this.pingTimeout&&clearTimeout(this.pingTimeout),((t=this.socket)==null?void 0:t.readyState)===N_.default.OPEN&&(this.socket.ping(),this.pingTimeout=setTimeout(this.onPingTimeout.bind(this),1e3).unref())}onPong(){this.pingTimeout&&clearTimeout(this.pingTimeout)}onPingTimeout(){this.socket&&this.socket.terminate(),this.connectionState===2&&setImmediate(this._connectInternal.bind(this))}_connectInternal(){this.connectionState!==1&&(this.connectionState=1,this.socket&&this.socket.removeAllListeners(),this.socket=new N_.default(this.url),this.socket.on("open",this.onOpen.bind(this)),this.socket.on("close",this.onClose.bind(this)),this.socket.on("message",this.onMessage.bind(this)),this.socket.on("pong",this.onPong.bind(this)),this.socket.on("error",this.onError.bind(this)))}async connect(){this._connectInternal(),await this.waitForConnection()}async waitForConnection(){await _T(this,()=>new Promise((t,r)=>{if(!this.socket){t();return}this.on("connected",t),this.on("connectionError",r),this.on("connectionFailure",r)}))}close(){this.connectionState=0,this.onlineState=0,this.pingInterval&&clearInterval(this.pingInterval),this.pingTimeout&&clearTimeout(this.pingTimeout),this.removeAllListeners(),this.socket&&(this.socket.removeAllListeners(),this.socket.readyState===N_.default.OPEN&&this.socket.close(),this.socket=void 0)}}});var J2e,Z2e,Dg,j5=ye(()=>{"use strict";J2e=require("events");zR();cn();Z2e=new Map,Dg=class extends J2e.EventEmitter{instanceWsUrl;cli;connection;static async get(t){let r=Z2e.get(t.url);return r||(r=new Dg,r.cli=t.cli,r.instanceWsUrl=t.url,t.cli&&(r.on("event",n=>wQ({cli:t.cli,event:n})),r.on("error",n=>t.cli.logError(`There was an issue initializing the dev session: ${n.message}`))),await r.connect(),Z2e.set(t.url,r)),r}async waitForEvent(t){let r=(t==null?void 0:t.eventType)||void 0,n=(t==null?void 0:t.timeout)||1e4;return await _T(this,()=>Promise.race([new Promise((i,s)=>{this.on("event",o=>{r&&o.event===r?i(o):r||i(o)}),this.on("error",s)}),new Promise((i,s)=>{setTimeout(()=>{s(new Error("waitForEvent timed out"))},n).unref()})]))}async connect(){var t;if(!this.instanceWsUrl){(t=this.cli)==null||t.logError("Unable to initialize developer sandbox. Please try again.");return}if(!this.connection){this.connection=new Pg({url:this.instanceWsUrl}),this.connection.on("event",r=>{this.emit("event",r)}),this.connection.on("offline",()=>{var r;(r=this.cli)==null||r.logError("Sandbox connection offline")}),this.connection.on("online",()=>{var r;(r=this.cli)==null||r.logSuccess("Sandbox connection restored")});try{await this.connection.connect()}catch(r){throw new Error(`Sandbox connection failed. Please quit and try again later. ${r.message}`)}}}close(){this.removeAllListeners(),this.connection&&(this.connection.removeAllListeners(),this.connection.close())}}});var Q2e,Br,eke=ye(()=>{"use strict";Q2e=de(y6());cn();j5();Br=class{org;service;instanceName;instanceType;url;cli;accountName;systemWsUrl;deploymentState;messenger;region;constructor(t={}){this.org=t.org,this.service=t.service,this.instanceName=t.instanceName,this.instanceType=t.instanceType,this.accountName=t.accountName,this.url=t.url,this.region=t.region||"us-east-1"}async get(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`},r=await Ge(t);return this.url=r.instanceUrl,this.instanceType=r.instanceType,this.systemWsUrl=r.systemWsUrl,this.deploymentState=r.deploymentState,this.accountName=r.accountName,this.region=r.region,r}async create(){let t={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`,body:{...this.instanceType&&{instanceType:this.instanceType},...this.region&&this.region!=="us-east-1"&&{region:this.region}}},r=await Ge(t);return this.url=r.instanceUrl,this.instanceType=r.instanceType,r}async update(t={}){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`,body:t};return await Ge(r)}async delete(){let t={method:"DELETE",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}`};return await Ge(t)}async test(t){let r={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/test`,body:{...(t==null?void 0:t.coverage)&&{coverage:t==null?void 0:t.coverage},...(t==null?void 0:t.pattern)&&{pattern:t==null?void 0:t.pattern},...(t==null?void 0:t.workers)&&{workers:t==null?void 0:t.workers}}};return await Ge(r)}async getLogs(){let t=[],r;do{let n=r?`?nextToken=${r}`:"",i={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/logs${n}`},s=await Ge(i);t.push(...s.messages),r=s.nextToken}while(r);return t}async getParams(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/params`},{params:r}=await Ge(t);return r}async putParams(t){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/params`,body:{params:t}},{params:n}=await Ge(r);return n}async getDeployments(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/deployments`};return await Ge(t)}async getEndpoints(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/endpoints`};return await Ge(t)}async getDeploymentLogs(t){let r={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/deployments/${t}`};return await Ge(r)}async downloadTestCoverage(t){let r={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.service.serviceName}/instances/${this.instanceName}/test/coverage`,responseType:"arraybuffer"},n=await Ge(r);new Q2e.default(n).extractAllTo(t)}getDashboardDeploymentsUrl(){return`https://${process.env.AMPT_STAGE!=="prod"?"amptlabs.dev":"ampt.dev"}/orgs/${this.org.orgName}/apps/${this.service.serviceName}/instances/${this.instanceName}/deployments`}async connect(t={}){if(!this.systemWsUrl)throw new Error("Could not connect to Sandbox Session.");if(!this.messenger&&(this.messenger=await Dg.get({url:this.systemWsUrl,cli:t.cli}),!this.messenger))throw new Error(`Unable to connect to ${this.systemWsUrl}`);return this.messenger}}});var tke,GR,rke=ye(()=>{"use strict";tke=require("events"),GR=class extends tke.EventEmitter{constructor(r){super();this._timeoutMs=r;this._timeout=setTimeout(()=>{this.emit("timeout")},this._timeoutMs).unref()}_timeout;_running=!0;stop(){this._timeout&&(clearTimeout(this._timeout),this._timeout=void 0),this._running=!1}kick(){this._running&&(this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout(()=>{this.emit("timeout")},this._timeoutMs).unref())}}});var nke,Lg,ike=ye(()=>{"use strict";nke=require("events");e0();zR();cn();rke();Lg=class extends nke.EventEmitter{operation="DEPLOY";connection;orgName;appName;instanceName;operationId;eventTypes;failInterval=6e4;subscribed=!1;logger=tt.child({module:"OperationMessenger"});async waitForOperation(t){await this.subscribe({operationId:t.operationId,orgName:t.orgName,appName:t.appName});let r=new GR(this.failInterval),n,i=await Promise.race([new Promise(s=>{try{this.on("event",o=>{let a=o.event,u=o.message,c=o.data,f=c.id;if(tt.debug({event:o},"Got operation event"),r.kick(),a==="ampt.operation.complete")c!=null&&c.success?u&&t.context.logInfo(u):t.context.logError(`Operation ${c.operationId} failed: ${u||"unexpected error"}`),s(!!(c!=null&&c.success));else if(a==="ampt.operation.progress"){if(n&&f&&f<n)return;n=f,u?t.context.updateSpinnerStep(u.toLowerCase()):tt.error({event:o},"Got progress event without message")}})}catch(o){t.context.logError(o.message),s(!1)}}),new Promise(s=>{r.on("timeout",()=>{t.context.logError(`Timed out waiting for operation to complete: ${this.operationId}`),s(!1)})})]);return this.removeAllListeners("event"),r.stop(),i}async subscribe(t){var n;if(!this.connection)throw new Error("Messenger Connection is not initialized");this.orgName=t.orgName?t.orgName:this.orgName,this.appName=t.appName?t.appName:this.appName,this.instanceName=t.instanceName?t.instanceName:this.instanceName,this.operationId=t.operationId?t.operationId:this.operationId,this.eventTypes=t.types?t.types:this.eventTypes;let r={event:"subscribe",data:{orgName:this.orgName,operationId:this.operationId,appName:this.appName,instanceName:this.instanceName,eventTypes:this.eventTypes}};return this.on("connected",()=>{var i;this.subscribed&&((i=this.connection)==null||i.sendEvent(r))}),(n=this.connection)==null||n.sendEvent(r),await Promise.race([new Promise(i=>{let s=setInterval(()=>{if(this.subscribed)return clearInterval(s),i(!0)},1e3)}),new Promise((i,s)=>setTimeout(()=>s(new Error("Timed out waiting for subscription")),1e4))])}async unsubscribe(){var t;await((t=this.connection)==null?void 0:t.close())}async sendEvent(t){if(!this.connection)throw new Error("Messenger Connection is not initialized");await this.connection.sendEvent(t)}static create(){return new Lg}async connect(){if(!process.env.AMPT_WS_ENDPOINT)throw new Error("AMPT_WS_ENDPOINT is not set");this.connection||(this.connection=new Pg({url:process.env.AMPT_WS_ENDPOINT}),this.connection.on("event",t=>{t&&t.event&&(t.event==="SUBSCRIBE_SUCCESS"?(this.logger.debug({operationId:this.operationId},"Subscribed to Events"),this.subscribed=!0):(this.logger.debug({event:t},"emitting event"),this.emit("event",t)))}),this.connection.on("connected",()=>{this.emit("connected")}),this.connection.on("offline",()=>{this.emit("offline")}),this.connection.on("online",()=>{this.emit("online")}),this.connection.on("error",t=>{this.emit("error",t)}),await this.connection.connect(),this.logger.debug({operationId:this.operationId},"Messenger Connection initialized"))}isConnected(){var t;return((t=this.connection)==null?void 0:t.connectionState)===2}}});var oke=m((HTr,ske)=>{var g$t=function(){return!1};ske.exports=g$t});var uke=m(($Tr,ake)=>{var v$t=function(){return!0};ake.exports=v$t});var lke=m((zTr,cke)=>{cke.exports={"@@functional/placeholder":!0}});var q_=m((GTr,fke)=>{function y$t(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}fke.exports=y$t});var Pe=m((VTr,pke)=>{var x$t=q_();function _$t(e){return function t(r){return arguments.length===0||x$t(r)?t:e.apply(this,arguments)}}pke.exports=_$t});var J=m((KTr,dke)=>{var B5=Pe(),k_=q_();function b$t(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return k_(r)?t:B5(function(i){return e(r,i)});default:return k_(r)&&k_(n)?t:k_(r)?B5(function(i){return e(i,n)}):k_(n)?B5(function(i){return e(r,i)}):e(r,n)}}}dke.exports=b$t});var P_=m((XTr,hke)=>{var w$t=J(),E$t=w$t(function(t,r){return Number(t)+Number(r)});hke.exports=E$t});var xo=m((YTr,mke)=>{function S$t(e,t){e=e||[],t=t||[];var r,n=e.length,i=t.length,s=[];for(r=0;r<n;)s[s.length]=e[r],r+=1;for(r=0;r<i;)s[s.length]=t[r],r+=1;return s}mke.exports=S$t});var _o=m((ZTr,gke)=>{function T$t(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,i){return t.apply(this,arguments)};case 4:return function(r,n,i,s){return t.apply(this,arguments)};case 5:return function(r,n,i,s,o){return t.apply(this,arguments)};case 6:return function(r,n,i,s,o,a){return t.apply(this,arguments)};case 7:return function(r,n,i,s,o,a,u){return t.apply(this,arguments)};case 8:return function(r,n,i,s,o,a,u,c){return t.apply(this,arguments)};case 9:return function(r,n,i,s,o,a,u,c,f){return t.apply(this,arguments)};case 10:return function(r,n,i,s,o,a,u,c,f,p){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}gke.exports=T$t});var D_=m((JTr,xke)=>{var A$t=_o(),vke=q_();function yke(e,t,r){return function(){for(var n=[],i=0,s=e,o=0;o<t.length||i<arguments.length;){var a;o<t.length&&(!vke(t[o])||i>=arguments.length)?a=t[o]:(a=arguments[i],i+=1),n[o]=a,vke(a)||(s-=1),o+=1}return s<=0?r.apply(this,n):A$t(s,yke(e,n,r))}}xke.exports=yke});var jn=m((QTr,_ke)=>{var C$t=_o(),R$t=Pe(),O$t=J(),I$t=D_(),N$t=O$t(function(t,r){return t===1?R$t(r):C$t(t,I$t(t,[],r))});_ke.exports=N$t});var wke=m((eAr,bke)=>{var q$t=xo(),k$t=Pe(),P$t=jn(),D$t=k$t(function(t){return P$t(t.length,function(){var r=0,n=arguments[0],i=arguments[arguments.length-1],s=Array.prototype.slice.call(arguments,0);return s[0]=function(){var o=n.apply(this,q$t(arguments,[r,i]));return r+=1,o},t.apply(this,s)})});bke.exports=D$t});var ze=m((tAr,Eke)=>{var VR=Pe(),Fg=J(),fi=q_();function L$t(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return fi(r)?t:Fg(function(s,o){return e(r,s,o)});case 2:return fi(r)&&fi(n)?t:fi(r)?Fg(function(s,o){return e(s,n,o)}):fi(n)?Fg(function(s,o){return e(r,s,o)}):VR(function(s){return e(r,n,s)});default:return fi(r)&&fi(n)&&fi(i)?t:fi(r)&&fi(n)?Fg(function(s,o){return e(s,o,i)}):fi(r)&&fi(i)?Fg(function(s,o){return e(s,n,o)}):fi(n)&&fi(i)?Fg(function(s,o){return e(r,s,o)}):fi(r)?VR(function(s){return e(s,n,i)}):fi(n)?VR(function(s){return e(r,s,i)}):fi(i)?VR(function(s){return e(r,n,s)}):e(r,n,i)}}}Eke.exports=L$t});var U5=m((rAr,Ske)=>{var F$t=xo(),M$t=ze(),j$t=M$t(function(t,r,n){if(t>=n.length||t<-n.length)return n;var i=t<0?n.length:0,s=i+t,o=F$t(n);return o[s]=r(n[s]),o});Ske.exports=j$t});var iu=m((nAr,Tke)=>{Tke.exports=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"}});var KR=m((iAr,Ake)=>{function B$t(e){return e!=null&&typeof e["@@transducer/step"]=="function"}Ake.exports=B$t});var sn=m((sAr,Cke)=>{var U$t=iu(),W$t=KR();function H$t(e,t,r){return function(){if(arguments.length===0)return r();var n=Array.prototype.slice.call(arguments,0),i=n.pop();if(!U$t(i)){for(var s=0;s<e.length;){if(typeof i[e[s]]=="function")return i[e[s]].apply(i,n);s+=1}if(W$t(i)){var o=t.apply(null,n);return o(i)}}return r.apply(this,arguments)}}Cke.exports=H$t});var bc=m((oAr,Rke)=>{function $$t(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Rke.exports=$$t});var mn=m((aAr,Oke)=>{Oke.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}});var Nke=m((uAr,Ike)=>{var z$t=J(),G$t=bc(),V$t=mn(),K$t=function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=V$t.init,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=G$t(this.xf["@@transducer/step"](t,!1))),t},e}(),X$t=z$t(function(t,r){return new K$t(t,r)});Ike.exports=X$t});var W5=m((cAr,qke)=>{var Y$t=J(),Z$t=sn(),J$t=Nke(),Q$t=Y$t(Z$t(["all"],J$t,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));qke.exports=Q$t});var sd=m((lAr,kke)=>{var ezt=J(),tzt=ezt(function(t,r){return r>t?r:t});kke.exports=tzt});var L_=m((fAr,Pke)=>{function rzt(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}Pke.exports=rzt});var Mg=m((pAr,Dke)=>{function nzt(e){return Object.prototype.toString.call(e)==="[object String]"}Dke.exports=nzt});var F_=m((dAr,Lke)=>{var izt=Pe(),szt=iu(),ozt=Mg(),azt=izt(function(t){return szt(t)?!0:!t||typeof t!="object"||ozt(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});Lke.exports=azt});var H5=m((hAr,Fke)=>{var uzt=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function czt(e){return new uzt(e)}Fke.exports=czt});var $5=m((mAr,Mke)=>{var lzt=_o(),fzt=J(),pzt=fzt(function(t,r){return lzt(t.length,function(){return t.apply(r,arguments)})});Mke.exports=pzt});var us=m((gAr,Wke)=>{var dzt=F_(),hzt=H5(),mzt=$5();function gzt(e,t,r){for(var n=0,i=r.length;n<i;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function jke(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function Bke(e,t,r,n){return e["@@transducer/result"](r[n](mzt(e["@@transducer/step"],e),t))}var Uke=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function vzt(e,t,r){if(typeof e=="function"&&(e=hzt(e)),dzt(r))return gzt(e,t,r);if(typeof r["fantasy-land/reduce"]=="function")return Bke(e,t,r,"fantasy-land/reduce");if(r[Uke]!=null)return jke(e,t,r[Uke]());if(typeof r.next=="function")return jke(e,t,r);if(typeof r.reduce=="function")return Bke(e,t,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}Wke.exports=vzt});var zke=m((vAr,$ke)=>{var yzt=J(),Hke=mn(),xzt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Hke.init,e.prototype["@@transducer/result"]=Hke.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),_zt=yzt(function(t,r){return new xzt(t,r)});$ke.exports=_zt});var cs=m((yAr,Gke)=>{function bzt(e,t){return Object.prototype.hasOwnProperty.call(t,e)}Gke.exports=bzt});var z5=m((xAr,Kke)=>{var wzt=cs(),Vke=Object.prototype.toString,Ezt=function(){return Vke.call(arguments)==="[object Arguments]"?function(t){return Vke.call(t)==="[object Arguments]"}:function(t){return wzt("callee",t)}}();Kke.exports=Ezt});var bo=m((_Ar,Qke)=>{var Xke=Pe(),Yke=cs(),Szt=z5(),Tzt=!{toString:null}.propertyIsEnumerable("toString"),Zke=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Jke=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Azt=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},Czt=Xke(typeof Object.keys=="function"&&!Jke?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=Jke&&Szt(t);for(r in t)Yke(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(Tzt)for(n=Zke.length-1;n>=0;)r=Zke[n],Yke(r,t)&&!Azt(i,r)&&(i[i.length]=r),n-=1;return i});Qke.exports=Czt});var Ls=m((bAr,ePe)=>{var Rzt=J(),Ozt=sn(),Izt=L_(),Nzt=us(),qzt=zke(),kzt=jn(),Pzt=bo(),Dzt=Rzt(Ozt(["fantasy-land/map","map"],qzt,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return kzt(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return Nzt(function(n,i){return n[i]=t(r[i]),n},{},Pzt(r));default:return Izt(t,r)}}));ePe.exports=Dzt});var M_=m((wAr,tPe)=>{tPe.exports=Number.isInteger||function(t){return t<<0===t}});var od=m((EAr,rPe)=>{var Lzt=J(),Fzt=Mg(),Mzt=Lzt(function(t,r){var n=t<0?r.length+t:t;return Fzt(r)?r.charAt(n):r[n]});rPe.exports=Mzt});var G5=m((SAr,nPe)=>{var jzt=J(),Bzt=M_(),Uzt=od(),Wzt=jzt(function(t,r){return t.map(function(n){for(var i=r,s=0,o;s<n.length;){if(i==null)return;o=n[s],i=Bzt(o)?Uzt(o,i):i[o],s+=1}return i})});nPe.exports=Wzt});var Gl=m((TAr,iPe)=>{var Hzt=J(),$zt=G5(),zzt=Hzt(function(t,r){return $zt([t],r)[0]});iPe.exports=zzt});var XR=m((AAr,sPe)=>{var Gzt=J(),Vzt=Gl(),Kzt=Gzt(function(t,r){return Vzt([t],r)});sPe.exports=Kzt});var jg=m((CAr,oPe)=>{var Xzt=J(),Yzt=Ls(),Zzt=XR(),Jzt=Xzt(function(t,r){return Yzt(Zzt(t),r)});oPe.exports=Jzt});var na=m((RAr,aPe)=>{var Qzt=ze(),eGt=us(),tGt=Qzt(eGt);aPe.exports=tGt});var cPe=m((OAr,uPe)=>{var rGt=Pe(),nGt=jn(),iGt=sd(),sGt=jg(),oGt=na(),aGt=rGt(function(t){return nGt(oGt(iGt,0,sGt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})});uPe.exports=aGt});var j_=m((IAr,lPe)=>{var uGt=Pe(),cGt=uGt(function(t){return function(){return t}});lPe.exports=cGt});var V5=m((NAr,fPe)=>{var lGt=J(),fGt=lGt(function(t,r){return t&&r});fPe.exports=fGt});var dPe=m((qAr,pPe)=>{var pGt=J(),dGt=bc(),hGt=mn(),mGt=function(){function e(t,r){this.xf=r,this.f=t,this.any=!1}return e.prototype["@@transducer/init"]=hGt.init,e.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.any=!0,t=dGt(this.xf["@@transducer/step"](t,!0))),t},e}(),gGt=pGt(function(t,r){return new mGt(t,r)});pPe.exports=gGt});var mPe=m((kAr,hPe)=>{var vGt=J(),yGt=sn(),xGt=dPe(),_Gt=vGt(yGt(["any"],xGt,function(t,r){for(var n=0;n<r.length;){if(t(r[n]))return!0;n+=1}return!1}));hPe.exports=_Gt});var vPe=m((PAr,gPe)=>{var bGt=Pe(),wGt=jn(),EGt=sd(),SGt=jg(),TGt=na(),AGt=bGt(function(t){return wGt(TGt(EGt,0,SGt("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})});gPe.exports=AGt});var YR=m((DAr,yPe)=>{var CGt=xo(),RGt=J(),OGt=us(),IGt=Ls(),NGt=RGt(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:OGt(function(n,i){return CGt(n,IGt(i,r))},[],t)});yPe.exports=NGt});var _Pe=m((LAr,xPe)=>{function qGt(e,t){for(var r=0,n=t.length-(e-1),i=new Array(n>=0?n:0);r<n;)i[r]=Array.prototype.slice.call(t,r,r+e),r+=1;return i}xPe.exports=qGt});var wPe=m((FAr,bPe)=>{var kGt=xo(),PGt=J(),DGt=mn(),LGt=function(){function e(t,r){this.xf=r,this.pos=0,this.full=!1,this.acc=new Array(t)}return e.prototype["@@transducer/init"]=DGt.init,e.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.store(r),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},e.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return kGt(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}(),FGt=PGt(function(t,r){return new LGt(t,r)});bPe.exports=FGt});var SPe=m((MAr,EPe)=>{var MGt=_Pe(),jGt=J(),BGt=sn(),UGt=wPe(),WGt=jGt(BGt([],UGt,MGt));EPe.exports=WGt});var APe=m((jAr,TPe)=>{var HGt=xo(),$Gt=J(),zGt=$Gt(function(t,r){return HGt(r,[t])});TPe.exports=zGt});var K5=m((BAr,CPe)=>{var GGt=J(),VGt=GGt(function(t,r){return t.apply(this,r)});CPe.exports=VGt});var X5=m((UAr,RPe)=>{var KGt=Pe(),XGt=bo(),YGt=KGt(function(t){for(var r=XGt(t),n=r.length,i=[],s=0;s<n;)i[s]=t[r[s]],s+=1;return i});RPe.exports=YGt});var NPe=m((WAr,IPe)=>{var ZGt=Pe(),JGt=K5(),QGt=jn(),eVt=sd(),tVt=jg(),rVt=na(),nVt=bo(),iVt=X5();function OPe(e,t){return nVt(t).reduce(function(r,n){return r[n]=e(t[n]),r},{})}var sVt=ZGt(function e(t){return t=OPe(function(r){return typeof r=="function"?r:e(r)},t),QGt(rVt(eVt,0,tVt("length",iVt(t))),function(){var r=arguments;return OPe(function(n){return JGt(n,r)},t)})});IPe.exports=sVt});var kPe=m((HAr,qPe)=>{var oVt=J(),aVt=oVt(function(t,r){return r(t)});qPe.exports=aVt});var DPe=m(($Ar,PPe)=>{var uVt=ze(),cVt=uVt(function(t,r,n){var i=t(r),s=t(n);return i<s?-1:i>s?1:0});PPe.exports=cVt});var B_=m((zAr,LPe)=>{var lVt=ze(),fVt=lVt(function(t,r,n){var i={};for(var s in n)i[s]=n[s];return i[t]=r,i});LPe.exports=fVt});var ZR=m((GAr,FPe)=>{var pVt=Pe(),dVt=pVt(function(t){return t==null});FPe.exports=dVt});var Y5=m((VAr,jPe)=>{var hVt=ze(),mVt=cs(),gVt=iu(),MPe=M_(),vVt=B_(),yVt=ZR(),xVt=hVt(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!yVt(n)&&mVt(i,n)?n[i]:MPe(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}if(MPe(i)&&gVt(n)){var o=[].concat(n);return o[i]=r,o}else return vVt(i,r,n)});jPe.exports=xVt});var U_=m((KAr,BPe)=>{var _Vt=J(),bVt=_Vt(function(t,r){switch(t){case 0:return function(){return r.call(this)};case 1:return function(n){return r.call(this,n)};case 2:return function(n,i){return r.call(this,n,i)};case 3:return function(n,i,s){return r.call(this,n,i,s)};case 4:return function(n,i,s,o){return r.call(this,n,i,s,o)};case 5:return function(n,i,s,o,a){return r.call(this,n,i,s,o,a)};case 6:return function(n,i,s,o,a,u){return r.call(this,n,i,s,o,a,u)};case 7:return function(n,i,s,o,a,u,c){return r.call(this,n,i,s,o,a,u,c)};case 8:return function(n,i,s,o,a,u,c,f){return r.call(this,n,i,s,o,a,u,c,f)};case 9:return function(n,i,s,o,a,u,c,f,p){return r.call(this,n,i,s,o,a,u,c,f,p)};case 10:return function(n,i,s,o,a,u,c,f,p,h){return r.call(this,n,i,s,o,a,u,c,f,p,h)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}});BPe.exports=bVt});var WPe=m((XAr,UPe)=>{var wVt=Pe(),EVt=U_(),SVt=wVt(function(t){return EVt(2,t)});UPe.exports=SVt});var Bg=m((YAr,HPe)=>{function TVt(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}HPe.exports=TVt});var Z5=m((ZAr,zPe)=>{var AVt=J(),CVt=us(),RVt=YR(),$Pe=jn(),OVt=Ls(),IVt=AVt(function(t,r){var n=$Pe(t,r);return $Pe(t,function(){return CVt(RVt,OVt(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});zPe.exports=IVt});var W_=m((JAr,GPe)=>{var NVt=Pe(),qVt=Z5(),kVt=NVt(function(t){return qVt(t.length,t)});GPe.exports=kVt});var KPe=m((QAr,VPe)=>{var PVt=J(),DVt=Bg(),LVt=V5(),FVt=W_(),MVt=PVt(function(t,r){return DVt(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:FVt(LVt)(t,r)});VPe.exports=MVt});var JR=m((eCr,XPe)=>{var jVt=Pe(),BVt=jn(),UVt=jVt(function(t){return BVt(t.length,t)});XPe.exports=UVt});var ZPe=m((tCr,YPe)=>{var WVt=JR(),HVt=WVt(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});YPe.exports=HVt});var J5=m((rCr,JPe)=>{var $Vt=F_();function zVt(e){return function t(r){for(var n,i,s,o=[],a=0,u=r.length;a<u;){if($Vt(r[a]))for(n=e?t(r[a]):r[a],s=0,i=n.length;s<i;)o[o.length]=n[s],s+=1;else o[o.length]=r[a];a+=1}return o}}JPe.exports=zVt});var eDe=m((nCr,QPe)=>{function GVt(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}QPe.exports=GVt});var iDe=m((iCr,nDe)=>{var VVt=eDe(),KVt=F_(),tDe=us(),rDe=mn(),XVt=function(e){return{"@@transducer/init":rDe.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,r){var n=e["@@transducer/step"](t,r);return n["@@transducer/reduced"]?VVt(n):n}}},YVt=function(t){var r=XVt(t);return{"@@transducer/init":rDe.init,"@@transducer/result":function(n){return r["@@transducer/result"](n)},"@@transducer/step":function(n,i){return KVt(i)?tDe(r,n,i):tDe(r,n,[i])}}};nDe.exports=YVt});var oDe=m((sCr,sDe)=>{var ZVt=J(),JVt=iDe(),QVt=Ls(),eKt=ZVt(function(t,r){return QVt(t,JVt(r))});sDe.exports=eKt});var QR=m((oCr,aDe)=>{var tKt=J(),rKt=sn(),nKt=J5(),iKt=oDe(),sKt=Ls(),oKt=tKt(rKt(["fantasy-land/chain","chain"],iKt,function(t,r){return typeof r=="function"?function(n){return t(r(n))(n)}:nKt(!1)(sKt(t,r))}));aDe.exports=oKt});var cDe=m((aCr,uDe)=>{var aKt=ze(),uKt=aKt(function(t,r,n){if(t>r)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:n>r?r:n});uDe.exports=uKt});var Q5=m((uCr,lDe)=>{function cKt(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}lDe.exports=cKt});var eO=m((cCr,fDe)=>{var lKt=Pe(),fKt=lKt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});fDe.exports=fKt});var tO=m((lCr,dDe)=>{var pKt=Q5(),dKt=eO();function pDe(e,t,r,n){var i=function(o){for(var a=t.length,u=0;u<a;){if(e===t[u])return r[u];u+=1}t[u+1]=e,r[u+1]=o;for(var c in e)o[c]=n?pDe(e[c],t,r,!0):e[c];return o};switch(dKt(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return pKt(e);default:return e}}dDe.exports=pDe});var mDe=m((fCr,hDe)=>{var hKt=tO(),mKt=Pe(),gKt=mKt(function(t){return t!=null&&typeof t.clone=="function"?t.clone():hKt(t,[],[],!0)});hDe.exports=gKt});var vDe=m((pCr,gDe)=>{var vKt=Pe(),yKt=vKt(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}});gDe.exports=yKt});var e8=m((dCr,yDe)=>{var xKt=Pe(),_Kt=xKt(function(t){return!t});yDe.exports=_Kt});var _De=m((hCr,xDe)=>{var bKt=W_(),wKt=e8(),EKt=bKt(wKt);xDe.exports=EKt});var wDe=m((mCr,bDe)=>{function SKt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}bDe.exports=SKt});var Ug=m((gCr,EDe)=>{var TKt=iu();function AKt(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return TKt(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}EDe.exports=AKt});var wo=m((vCr,SDe)=>{var CKt=Ug(),RKt=ze(),OKt=RKt(CKt("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)}));SDe.exports=OKt});var H_=m((yCr,TDe)=>{var IKt=Ug(),NKt=Pe(),qKt=wo(),kKt=NKt(IKt("tail",qKt(1,1/0)));TDe.exports=kKt});var t8=m((xCr,ADe)=>{var PKt=_o(),DKt=wDe(),LKt=na(),FKt=H_();function MKt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return PKt(arguments[0].length,LKt(DKt,arguments[0],FKt(arguments)))}ADe.exports=MKt});var Wg=m((_Cr,CDe)=>{var jKt=Pe(),BKt=Mg(),UKt=jKt(function(t){return BKt(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});CDe.exports=UKt});var rO=m((bCr,RDe)=>{var WKt=t8(),HKt=Wg();function $Kt(){if(arguments.length===0)throw new Error("compose requires at least one argument");return WKt.apply(this,HKt(arguments))}RDe.exports=$Kt});var r8=m((wCr,IDe)=>{var zKt=QR(),ODe=rO(),GKt=Ls();function VKt(){if(arguments.length===0)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return ODe(ODe.apply(this,GKt(zKt,e)),t)}IDe.exports=VKt});var qDe=m((ECr,NDe)=>{function KKt(e,t){return function(){var r=this;return e.apply(r,arguments).then(function(n){return t.call(r,n)})}}NDe.exports=KKt});var n8=m((SCr,kDe)=>{var XKt=_o(),YKt=qDe(),ZKt=na(),JKt=H_();function QKt(){if(arguments.length===0)throw new Error("pipeP requires at least one argument");return XKt(arguments[0].length,ZKt(YKt,arguments[0],JKt(arguments)))}kDe.exports=QKt});var DDe=m((TCr,PDe)=>{var eXt=n8(),tXt=Wg();function rXt(){if(arguments.length===0)throw new Error("composeP requires at least one argument");return eXt.apply(this,tXt(arguments))}PDe.exports=rXt});var i8=m((ACr,LDe)=>{var nXt=od(),iXt=nXt(0);LDe.exports=iXt});var nO=m((CCr,FDe)=>{function sXt(e){return e}FDe.exports=sXt});var $_=m((RCr,MDe)=>{var oXt=Pe(),aXt=nO(),uXt=oXt(aXt);MDe.exports=uXt});var s8=m((OCr,jDe)=>{var cXt=_o(),lXt=J(),fXt=i8(),pXt=us(),dXt=H_(),hXt=$_(),mXt=lXt(function(t,r){if(r.length<=0)return hXt;var n=fXt(r),i=dXt(r);return cXt(n.length,function(){return pXt(function(s,o){return t.call(this,o,s)},n.apply(this,arguments),i)})});jDe.exports=mXt});var UDe=m((ICr,BDe)=>{var gXt=J(),vXt=s8(),yXt=Wg(),xXt=gXt(function(t,r){return vXt.apply(this,[t,yXt(r)])});BDe.exports=xXt});var HDe=m((NCr,WDe)=>{function _Xt(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}WDe.exports=_Xt});var z_=m((qCr,$De)=>{function bXt(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}$De.exports=bXt});var GDe=m((kCr,zDe)=>{function wXt(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}zDe.exports=wXt});var o8=m((PCr,VDe)=>{function EXt(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}VDe.exports=typeof Object.is=="function"?Object.is:EXt});var eLe=m((DCr,QDe)=>{var KDe=HDe(),XDe=z_(),SXt=GDe(),TXt=cs(),a8=o8(),YDe=bo(),ZDe=eO();function JDe(e,t,r,n){var i=KDe(e),s=KDe(t);function o(a,u){return u8(a,u,r.slice(),n.slice())}return!XDe(function(a,u){return!XDe(o,u,a)},s,i)}function u8(e,t,r,n){if(a8(e,t))return!0;var i=ZDe(e);if(i!==ZDe(t)||e==null||t==null)return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&SXt(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&a8(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!a8(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var s=r.length-1;s>=0;){if(r[s]===e)return n[s]===t;s-=1}switch(i){case"Map":return e.size!==t.size?!1:JDe(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:JDe(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=YDe(e);if(o.length!==YDe(t).length)return!1;var a=r.concat([e]),u=n.concat([t]);for(s=o.length-1;s>=0;){var c=o[s];if(!(TXt(c,t)&&u8(t[c],e[c],a,u)))return!1;s-=1}return!0}QDe.exports=u8});var Fs=m((LCr,tLe)=>{var AXt=J(),CXt=eLe(),RXt=AXt(function(t,r){return CXt(t,r,[],[])});tLe.exports=RXt});var c8=m((FCr,rLe)=>{var OXt=Fs();function IXt(e,t,r){var n,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(i=e[r],i===0&&1/i===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(i=e[r],typeof i=="number"&&i!==i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(OXt(e[r],t))return r;r+=1}return-1}rLe.exports=IXt});var ad=m((MCr,nLe)=>{var NXt=c8();function qXt(e,t){return NXt(t,e,0)>=0}nLe.exports=qXt});var sLe=m((jCr,iLe)=>{function kXt(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}iLe.exports=kXt});var aLe=m((BCr,oLe)=>{var G_=function(t){return(t<10?"0":"")+t},PXt=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+G_(t.getUTCMonth()+1)+"-"+G_(t.getUTCDate())+"T"+G_(t.getUTCHours())+":"+G_(t.getUTCMinutes())+":"+G_(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};oLe.exports=PXt});var l8=m((UCr,uLe)=>{function DXt(e){return function(){return!e.apply(this,arguments)}}uLe.exports=DXt});var iO=m((WCr,cLe)=>{function LXt(e,t){for(var r=0,n=t.length,i=[];r<n;)e(t[r])&&(i[i.length]=t[r]),r+=1;return i}cLe.exports=LXt});var sO=m((HCr,lLe)=>{function FXt(e){return Object.prototype.toString.call(e)==="[object Object]"}lLe.exports=FXt});var dLe=m(($Cr,pLe)=>{var MXt=J(),fLe=mn(),jXt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=fLe.init,e.prototype["@@transducer/result"]=fLe.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}(),BXt=MXt(function(t,r){return new jXt(t,r)});pLe.exports=BXt});var oO=m((zCr,hLe)=>{var UXt=J(),WXt=sn(),HXt=iO(),$Xt=sO(),zXt=us(),GXt=dLe(),VXt=bo(),KXt=UXt(WXt(["filter"],GXt,function(e,t){return $Xt(t)?zXt(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},VXt(t)):HXt(e,t)}));hLe.exports=KXt});var V_=m((GCr,mLe)=>{var XXt=l8(),YXt=J(),ZXt=oO(),JXt=YXt(function(t,r){return ZXt(XXt(t),r)});mLe.exports=JXt});var d8=m((VCr,yLe)=>{var QXt=ad(),f8=L_(),p8=sLe(),eYt=aLe(),gLe=bo(),tYt=V_();function vLe(e,t){var r=function(o){var a=t.concat([e]);return QXt(o,a)?"<Circular>":vLe(o,a)},n=function(s,o){return f8(function(a){return p8(a)+": "+r(s[a])},o.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+f8(r,e).join(", ")+"))";case"[object Array]":return"["+f8(r,e).concat(n(e,tYt(function(s){return/^\d+$/.test(s)},gLe(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):p8(eYt(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":p8(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+n(e,gLe(e)).join(", ")+"}"}}yLe.exports=vLe});var K_=m((KCr,xLe)=>{var rYt=Pe(),nYt=d8(),iYt=rYt(function(t){return nYt(t,[])});xLe.exports=iYt});var aO=m((XCr,ELe)=>{var sYt=J(),_Le=iu(),bLe=Bg(),wLe=Mg(),h8=K_(),oYt=sYt(function(t,r){if(_Le(t)){if(_Le(r))return t.concat(r);throw new TypeError(h8(r)+" is not an array")}if(wLe(t)){if(wLe(r))return t+r;throw new TypeError(h8(r)+" is not a string")}if(t!=null&&bLe(t["fantasy-land/concat"]))return t["fantasy-land/concat"](r);if(t!=null&&bLe(t.concat))return t.concat(r);throw new TypeError(h8(t)+' does not have a method named "concat" or "fantasy-land/concat"')});ELe.exports=oYt});var TLe=m((YCr,SLe)=>{var aYt=_o(),uYt=Pe(),cYt=Ls(),lYt=sd(),fYt=na(),pYt=uYt(function(t){var r=fYt(lYt,0,cYt(function(n){return n[0].length},t));return aYt(r,function(){for(var n=0;n<t.length;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})});SLe.exports=pYt});var m8=m((ZCr,ALe)=>{var dYt=J(),hYt=JR(),mYt=U_(),gYt=dYt(function(t,r){if(t>10)throw new Error("Constructor with greater than ten arguments");return t===0?function(){return new r}:hYt(mYt(t,function(n,i,s,o,a,u,c,f,p,h){switch(arguments.length){case 1:return new r(n);case 2:return new r(n,i);case 3:return new r(n,i,s);case 4:return new r(n,i,s,o);case 5:return new r(n,i,s,o,a);case 6:return new r(n,i,s,o,a,u);case 7:return new r(n,i,s,o,a,u,c);case 8:return new r(n,i,s,o,a,u,c,f);case 9:return new r(n,i,s,o,a,u,c,f,p);case 10:return new r(n,i,s,o,a,u,c,f,p,h)}}))});ALe.exports=gYt});var RLe=m((JCr,CLe)=>{var vYt=Pe(),yYt=m8(),xYt=vYt(function(t){return yYt(t.length,t)});CLe.exports=xYt});var ILe=m((QCr,OLe)=>{var _Yt=ad(),bYt=J(),wYt=bYt(_Yt);OLe.exports=wYt});var g8=m((eRr,NLe)=>{var EYt=J(),SYt=L_(),TYt=jn(),AYt=sd(),CYt=jg(),RYt=na(),OYt=EYt(function(t,r){return TYt(RYt(AYt,0,CYt("length",r)),function(){var n=arguments,i=this;return t.apply(i,SYt(function(s){return s.apply(i,n)},r))})});NLe.exports=OYt});var kLe=m((tRr,qLe)=>{var IYt=D_(),NYt=cs(),qYt=mn(),kYt=function(){function e(t,r,n,i){this.valueFn=t,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=qYt.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(NYt(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e}(),PYt=IYt(4,[],function(t,r,n,i){return new kYt(t,r,n,i)});qLe.exports=PYt});var X_=m((rRr,PLe)=>{var DYt=tO(),LYt=D_(),FYt=sn(),MYt=cs(),jYt=us(),BYt=kLe(),UYt=LYt(4,[],FYt([],BYt,function(t,r,n,i){return jYt(function(s,o){var a=n(o);return s[a]=t(MYt(a,s)?s[a]:DYt(r,[],[],!1),o),s},{},i)}));PLe.exports=UYt});var LLe=m((nRr,DLe)=>{var WYt=X_(),HYt=WYt(function(e,t){return e+1},0);DLe.exports=HYt});var MLe=m((iRr,FLe)=>{var $Yt=P_(),zYt=$Yt(-1);FLe.exports=zYt});var v8=m((sRr,jLe)=>{var GYt=J(),VYt=GYt(function(t,r){return r==null||r!==r?t:r});jLe.exports=VYt});var ULe=m((oRr,BLe)=>{var KYt=ze(),XYt=KYt(function(t,r,n){var i=t(r),s=t(n);return i>s?-1:i<s?1:0});BLe.exports=XYt});var y8=m((aRr,$Le)=>{var WLe=ad(),YYt=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!HLe(t,!0,this)},e.prototype.has=function(t){return HLe(t,!1,this)},e}();function HLe(e,t,r){var n=typeof e,i,s;switch(n){case"string":case"number":return e===0&&1/e===-1/0?r._items["-0"]?!0:(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?e in r._items[n]?!0:(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var o=e?1:0;return r._items[n][o]?!0:(t&&(r._items[n][o]=!0),!1)}else return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?WLe(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return r._items[n]?!0:(t&&(r._items[n]=!0),!1);case"object":if(e===null)return r._items.null?!0:(t&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(e),n in r._items?WLe(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}$Le.exports=YYt});var x8=m((uRr,zLe)=>{var ZYt=J(),JYt=y8(),QYt=ZYt(function(t,r){for(var n=[],i=0,s=t.length,o=r.length,a=new JYt,u=0;u<o;u+=1)a.add(r[u]);for(;i<s;)a.add(t[i])&&(n[n.length]=t[i]),i+=1;return n});zLe.exports=QYt});var _8=m((cRr,VLe)=>{var GLe=z_(),eZt=ze(),tZt=eZt(function(t,r,n){for(var i=[],s=0,o=r.length;s<o;)!GLe(t,r[s],n)&&!GLe(t,r[s],i)&&i.push(r[s]),s+=1;return i});VLe.exports=tZt});var b8=m((lRr,KLe)=>{var rZt=J(),nZt=rZt(function(t,r){var n={};for(var i in r)n[i]=r[i];return delete n[t],n});KLe.exports=nZt});var w8=m((fRr,XLe)=>{var iZt=ze(),sZt=iZt(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});XLe.exports=sZt});var uO=m((pRr,YLe)=>{var oZt=ze(),aZt=U5(),uZt=j_(),cZt=oZt(function(t,r,n){return aZt(t,uZt(r),n)});YLe.exports=cZt});var eFe=m((dRr,QLe)=>{var lZt=J(),ZLe=M_(),JLe=iu(),fZt=B_(),pZt=b8(),dZt=w8(),hZt=uO(),mZt=lZt(function e(t,r){switch(t.length){case 0:return r;case 1:return ZLe(t[0])&&JLe(r)?dZt(t[0],1,r):pZt(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?r:ZLe(n)&&JLe(r)?hZt(n,e(i,r[n]),r):fZt(n,e(i,r[n]),r)}});QLe.exports=mZt});var rFe=m((hRr,tFe)=>{var gZt=J(),vZt=gZt(function(t,r){return t/r});tFe.exports=vZt});var sFe=m((mRr,iFe)=>{var yZt=J(),nFe=mn(),xZt=function(){function e(t,r){this.xf=r,this.n=t}return e.prototype["@@transducer/init"]=nFe.init,e.prototype["@@transducer/result"]=nFe.result,e.prototype["@@transducer/step"]=function(t,r){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,r)},e}(),_Zt=yZt(function(t,r){return new xZt(t,r)});iFe.exports=_Zt});var E8=m((gRr,oFe)=>{var bZt=J(),wZt=sn(),EZt=sFe(),SZt=wo(),TZt=bZt(wZt(["drop"],EZt,function(t,r){return SZt(Math.max(0,t),1/0,r)}));oFe.exports=TZt});var cFe=m((vRr,uFe)=>{var AZt=J(),CZt=bc(),aFe=mn(),RZt=function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=aFe.init,e.prototype["@@transducer/result"]=aFe.result,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var n=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?CZt(n):n},e}(),OZt=AZt(function(t,r){return new RZt(t,r)});uFe.exports=OZt});var cO=m((yRr,lFe)=>{var IZt=J(),NZt=sn(),qZt=cFe(),kZt=wo(),PZt=IZt(NZt(["take"],qZt,function(t,r){return kZt(0,t<0?1/0:t,r)}));lFe.exports=PZt});var pFe=m((xRr,fFe)=>{var DZt=cO();function LZt(e,t){return DZt(e<t.length?t.length-e:0,t)}fFe.exports=LZt});var hFe=m((_Rr,dFe)=>{var FZt=J(),MZt=mn(),jZt=function(){function e(t,r){this.xf=r,this.pos=0,this.full=!1,this.acc=new Array(t)}return e.prototype["@@transducer/init"]=MZt.init,e.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(r),t},e.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e}(),BZt=FZt(function(t,r){return new jZt(t,r)});dFe.exports=BZt});var gFe=m((bRr,mFe)=>{var UZt=J(),WZt=sn(),HZt=pFe(),$Zt=hFe(),zZt=UZt(WZt([],$Zt,HZt));mFe.exports=zZt});var yFe=m((wRr,vFe)=>{var GZt=wo();function VZt(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return GZt(0,r+1,t)}vFe.exports=VZt});var _Fe=m((ERr,xFe)=>{var KZt=J(),XZt=us(),YZt=mn(),ZZt=function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=YZt.init,e.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},e.prototype.flush=function(t,r){return t=XZt(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},e.prototype.retain=function(t,r){return this.retained.push(r),t},e}(),JZt=KZt(function(t,r){return new ZZt(t,r)});xFe.exports=JZt});var wFe=m((SRr,bFe)=>{var QZt=J(),eJt=sn(),tJt=yFe(),rJt=_Fe(),nJt=QZt(eJt([],rJt,tJt));bFe.exports=nJt});var S8=m((TRr,SFe)=>{var iJt=J(),EFe=mn(),sJt=function(){function e(t,r){this.xf=r,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=EFe.init,e.prototype["@@transducer/result"]=EFe.result,e.prototype["@@transducer/step"]=function(t,r){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,r)&&(n=!0):this.seenFirstValue=!0,this.lastValue=r,n?t:this.xf["@@transducer/step"](t,r)},e}(),oJt=iJt(function(t,r){return new sJt(t,r)});SFe.exports=oJt});var T8=m((ARr,TFe)=>{var aJt=od(),uJt=aJt(-1);TFe.exports=uJt});var A8=m((CRr,AFe)=>{var cJt=J(),lJt=sn(),fJt=S8(),pJt=T8(),dJt=cJt(lJt([],fJt,function(t,r){var n=[],i=1,s=r.length;if(s!==0)for(n[0]=r[0];i<s;)t(pJt(n),r[i])||(n[n.length]=r[i]),i+=1;return n}));AFe.exports=dJt});var OFe=m((RRr,RFe)=>{var hJt=Pe(),mJt=sn(),gJt=S8(),vJt=A8(),CFe=Fs(),yJt=hJt(mJt([],gJt(CFe),vJt(CFe)));RFe.exports=yJt});var qFe=m((ORr,NFe)=>{var xJt=J(),IFe=mn(),_Jt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=IFe.init,e.prototype["@@transducer/result"]=IFe.result,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e}(),bJt=xJt(function(t,r){return new _Jt(t,r)});NFe.exports=bJt});var PFe=m((IRr,kFe)=>{var wJt=J(),EJt=sn(),SJt=qFe(),TJt=wo(),AJt=wJt(EJt(["dropWhile"],SJt,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return TJt(n,1/0,r)}));kFe.exports=AJt});var C8=m((NRr,DFe)=>{var CJt=J(),RJt=CJt(function(t,r){return t||r});DFe.exports=RJt});var FFe=m((qRr,LFe)=>{var OJt=J(),IJt=Bg(),NJt=W_(),qJt=C8(),kJt=OJt(function(t,r){return IJt(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:NJt(qJt)(t,r)});LFe.exports=kJt});var R8=m((kRr,MFe)=>{var PJt=Pe(),DJt=z5(),LJt=iu(),FJt=sO(),MJt=Mg(),jJt=PJt(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():LJt(t)?[]:MJt(t)?"":FJt(t)?{}:DJt(t)?function(){return arguments}():void 0});MFe.exports=jJt});var O8=m((PRr,jFe)=>{var BJt=J(),UJt=E8(),WJt=BJt(function(t,r){return UJt(t>=0?r.length-t:0,r)});jFe.exports=WJt});var UFe=m((DRr,BFe)=>{var HJt=J(),$Jt=Fs(),zJt=O8(),GJt=HJt(function(e,t){return $Jt(zJt(e.length,t),e)});BFe.exports=GJt});var HFe=m((LRr,WFe)=>{var VJt=ze(),KJt=Fs(),XJt=VJt(function(t,r,n){return KJt(t(r),t(n))});WFe.exports=XJt});var zFe=m((FRr,$Fe)=>{var YJt=ze(),ZJt=Fs(),JJt=YJt(function(t,r,n){return ZJt(r[t],n[t])});$Fe.exports=JJt});var VFe=m((MRr,GFe)=>{var QJt=J(),eQt=QJt(function e(t,r){var n=r instanceof Array?[]:{},i,s,o;for(s in r)i=t[s],o=typeof i,n[s]=o==="function"?i(r[s]):i&&o==="object"?e(i,r[s]):r[s];return n});GFe.exports=eQt});var XFe=m((jRr,KFe)=>{var tQt=J(),rQt=bc(),nQt=mn(),iQt=function(){function e(t,r){this.xf=r,this.f=t,this.found=!1}return e.prototype["@@transducer/init"]=nQt.init,e.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.found=!0,t=rQt(this.xf["@@transducer/step"](t,r))),t},e}(),sQt=tQt(function(t,r){return new iQt(t,r)});KFe.exports=sQt});var ZFe=m((BRr,YFe)=>{var oQt=J(),aQt=sn(),uQt=XFe(),cQt=oQt(aQt(["find"],uQt,function(t,r){for(var n=0,i=r.length;n<i;){if(t(r[n]))return r[n];n+=1}}));YFe.exports=cQt});var QFe=m((URr,JFe)=>{var lQt=J(),fQt=bc(),pQt=mn(),dQt=function(){function e(t,r){this.xf=r,this.f=t,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=pQt.init,e.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.idx+=1,this.f(r)&&(this.found=!0,t=fQt(this.xf["@@transducer/step"](t,this.idx))),t},e}(),hQt=lQt(function(t,r){return new dQt(t,r)});JFe.exports=hQt});var tMe=m((WRr,eMe)=>{var mQt=J(),gQt=sn(),vQt=QFe(),yQt=mQt(gQt([],vQt,function(t,r){for(var n=0,i=r.length;n<i;){if(t(r[n]))return n;n+=1}return-1}));eMe.exports=yQt});var nMe=m((HRr,rMe)=>{var xQt=J(),_Qt=mn(),bQt=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=_Qt.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.last=r),t},e}(),wQt=xQt(function(t,r){return new bQt(t,r)});rMe.exports=wQt});var sMe=m(($Rr,iMe)=>{var EQt=J(),SQt=sn(),TQt=nMe(),AQt=EQt(SQt([],TQt,function(t,r){for(var n=r.length-1;n>=0;){if(t(r[n]))return r[n];n-=1}}));iMe.exports=AQt});var aMe=m((zRr,oMe)=>{var CQt=J(),RQt=mn(),OQt=function(){function e(t,r){this.xf=r,this.f=t,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=RQt.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},e.prototype["@@transducer/step"]=function(t,r){return this.idx+=1,this.f(r)&&(this.lastIdx=this.idx),t},e}(),IQt=CQt(function(t,r){return new OQt(t,r)});oMe.exports=IQt});var cMe=m((GRr,uMe)=>{var NQt=J(),qQt=sn(),kQt=aMe(),PQt=NQt(qQt([],kQt,function(t,r){for(var n=r.length-1;n>=0;){if(t(r[n]))return n;n-=1}return-1}));uMe.exports=PQt});var fMe=m((VRr,lMe)=>{var DQt=Pe(),LQt=J5(),FQt=DQt(LQt(!0));lMe.exports=FQt});var Y_=m((KRr,pMe)=>{var MQt=Pe(),jQt=jn(),BQt=MQt(function(t){return jQt(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})});pMe.exports=BQt});var hMe=m((XRr,dMe)=>{var UQt=Ug(),WQt=J(),HQt=WQt(UQt("forEach",function(t,r){for(var n=r.length,i=0;i<n;)t(r[i]),i+=1;return r}));dMe.exports=HQt});var gMe=m((YRr,mMe)=>{var $Qt=J(),zQt=bo(),GQt=$Qt(function(t,r){for(var n=zQt(r),i=0;i<n.length;){var s=n[i];t(r[s],s,r),i+=1}return r});mMe.exports=GQt});var yMe=m((ZRr,vMe)=>{var VQt=Pe(),KQt=VQt(function(t){for(var r={},n=0;n<t.length;)r[t[n][0]]=t[n][1],n+=1;return r});vMe.exports=KQt});var _Me=m((JRr,xMe)=>{var XQt=Ug(),YQt=J(),ZQt=X_(),JQt=YQt(XQt("groupBy",ZQt(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));xMe.exports=JQt});var wMe=m((QRr,bMe)=>{var QQt=J(),eer=QQt(function(e,t){for(var r=[],n=0,i=t.length;n<i;){for(var s=n+1;s<i&&e(t[s-1],t[s]);)s+=1;r.push(t.slice(n,s)),n=s}return r});bMe.exports=eer});var SMe=m((eOr,EMe)=>{var ter=J(),rer=ter(function(t,r){return t>r});EMe.exports=rer});var AMe=m((tOr,TMe)=>{var ner=J(),ier=ner(function(t,r){return t>=r});TMe.exports=ier});var I8=m((rOr,RMe)=>{var ser=J(),oer=cs(),CMe=ZR(),aer=ser(function(t,r){if(t.length===0||CMe(r))return!1;for(var n=r,i=0;i<t.length;)if(!CMe(n)&&oer(t[i],n))n=n[t[i]],i+=1;else return!1;return!0});RMe.exports=aer});var IMe=m((nOr,OMe)=>{var uer=J(),cer=I8(),ler=uer(function(t,r){return cer([t],r)});OMe.exports=ler});var qMe=m((iOr,NMe)=>{var fer=J(),per=fer(function(t,r){return t in r});NMe.exports=per});var PMe=m((sOr,kMe)=>{var der=o8(),her=J(),mer=her(der);kMe.exports=mer});var LMe=m((oOr,DMe)=>{var ger=ze(),ver=jn(),yer=ger(function(t,r,n){return ver(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})});DMe.exports=yer});var MMe=m((aOr,FMe)=>{var xer=P_(),_er=xer(1);FMe.exports=_er});var BMe=m((uOr,jMe)=>{var ber=ad(),wer=J(),Eer=wer(ber);jMe.exports=Eer});var WMe=m((cOr,UMe)=>{var Ser=X_(),Ter=Ser(function(e,t){return t},null);UMe.exports=Ter});var $Me=m((lOr,HMe)=>{var Aer=J(),Cer=c8(),Rer=iu(),Oer=Aer(function(t,r){return typeof r.indexOf=="function"&&!Rer(r)?r.indexOf(t):Cer(r,t,0)});HMe.exports=Oer});var GMe=m((fOr,zMe)=>{var Ier=wo(),Ner=Ier(0,-1);zMe.exports=Ner});var KMe=m((pOr,VMe)=>{var qer=z_(),ker=ze(),Per=iO(),Der=ker(function(t,r,n){return Per(function(i){return qer(t,i,n)},r)});VMe.exports=Der});var YMe=m((dOr,XMe)=>{var Ler=ze(),Fer=Ler(function(t,r,n){t=t<n.length&&t>=0?t:n.length;var i=Array.prototype.slice.call(n,0);return i.splice(t,0,r),i});XMe.exports=Fer});var JMe=m((hOr,ZMe)=>{var Mer=ze(),jer=Mer(function(t,r,n){return t=t<n.length&&t>=0?t:n.length,[].concat(Array.prototype.slice.call(n,0,t),r,Array.prototype.slice.call(n,t))});ZMe.exports=jer});var N8=m((mOr,QMe)=>{var Ber=y8(),Uer=J(),Wer=Uer(function(t,r){for(var n=new Ber,i=[],s=0,o,a;s<r.length;)a=r[s],o=t(a),n.add(o)&&i.push(a),s+=1;return i});QMe.exports=Wer});var lO=m((gOr,e4e)=>{var Her=$_(),$er=N8(),zer=$er(Her);e4e.exports=zer});var r4e=m((vOr,t4e)=>{var Ger=ad(),Ver=J(),Ker=iO(),Xer=Y_(),Yer=lO(),Zer=Ver(function(t,r){var n,i;return t.length>r.length?(n=t,i=r):(n=r,i=t),Yer(Ker(Xer(Ger)(n),i))});t4e.exports=Zer});var i4e=m((yOr,n4e)=>{var Jer=Ug(),Qer=J(),etr=Qer(Jer("intersperse",function(t,r){for(var n=[],i=0,s=r.length;i<s;)i===s-1?n.push(r[i]):n.push(r[i],t),i+=1;return n}));n4e.exports=etr});var Hg=m((xOr,s4e)=>{var ttr=cs();function rtr(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var i=arguments[r];if(i!=null)for(var s in i)ttr(s,i)&&(t[s]=i[s]);r+=1}return t}s4e.exports=typeof Object.assign=="function"?Object.assign:rtr});var q8=m((_Or,o4e)=>{var ntr=J(),itr=ntr(function(t,r){var n={};return n[t]=r,n});o4e.exports=itr});var c4e=m((bOr,u4e)=>{var str=Hg(),k8=nO(),a4e=F_(),otr=KR(),atr=q8(),utr={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":k8},ctr={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":k8},ltr={"@@transducer/init":Object,"@@transducer/step":function(e,t){return str(e,a4e(t)?atr(t[0],t[1]):t)},"@@transducer/result":k8};function ftr(e){if(otr(e))return e;if(a4e(e))return utr;if(typeof e=="string")return ctr;if(typeof e=="object")return ltr;throw new Error("Cannot create transformer for "+e)}u4e.exports=ftr});var p4e=m((wOr,f4e)=>{var ptr=tO(),dtr=ze(),htr=KR(),l4e=us(),mtr=c4e(),gtr=dtr(function(t,r,n){return htr(t)?l4e(r(t),t["@@transducer/init"](),n):l4e(r(mtr(t)),ptr(t,[],[],!1),n)});f4e.exports=gtr});var h4e=m((EOr,d4e)=>{var vtr=Pe(),ytr=cs(),xtr=bo(),_tr=vtr(function(t){for(var r=xtr(t),n=r.length,i=0,s={};i<n;){var o=r[i],a=t[o],u=ytr(a,s)?s[a]:s[a]=[];u[u.length]=o,i+=1}return s});d4e.exports=_tr});var g4e=m((SOr,m4e)=>{var btr=Pe(),wtr=bo(),Etr=btr(function(t){for(var r=wtr(t),n=r.length,i=0,s={};i<n;){var o=r[i];s[t[o]]=o,i+=1}return s});m4e.exports=Etr});var $g=m((TOr,v4e)=>{var Str=J(),Ttr=Bg(),Atr=jn(),Ctr=K_(),Rtr=Str(function(t,r){return Atr(t+1,function(){var n=arguments[t];if(n!=null&&Ttr(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ctr(n)+' does not have a method named "'+r+'"')})});v4e.exports=Rtr});var P8=m((AOr,y4e)=>{var Otr=J(),Itr=Otr(function(t,r){return r!=null&&r.constructor===t||r instanceof t});y4e.exports=Itr});var _4e=m((COr,x4e)=>{var Ntr=Pe(),qtr=R8(),ktr=Fs(),Ptr=Ntr(function(t){return t!=null&&ktr(t,qtr(t))});x4e.exports=Ptr});var w4e=m((ROr,b4e)=>{var Dtr=$g(),Ltr=Dtr(1,"join");b4e.exports=Ltr});var D8=m((OOr,E4e)=>{var Ftr=Pe(),Mtr=g8(),jtr=Ftr(function(t){return Mtr(function(){return Array.prototype.slice.call(arguments,0)},t)});E4e.exports=jtr});var T4e=m((IOr,S4e)=>{var Btr=Pe(),Utr=Btr(function(t){var r,n=[];for(r in t)n[n.length]=r;return n});S4e.exports=Utr});var C4e=m((NOr,A4e)=>{var Wtr=J(),Htr=iu(),$tr=Fs(),ztr=Wtr(function(t,r){if(typeof r.lastIndexOf=="function"&&!Htr(r))return r.lastIndexOf(t);for(var n=r.length-1;n>=0;){if($tr(r[n],t))return n;n-=1}return-1});A4e.exports=ztr});var L8=m((qOr,R4e)=>{function Gtr(e){return Object.prototype.toString.call(e)==="[object Number]"}R4e.exports=Gtr});var F8=m((kOr,O4e)=>{var Vtr=Pe(),Ktr=L8(),Xtr=Vtr(function(t){return t!=null&&Ktr(t.length)?t.length:NaN});O4e.exports=Xtr});var Z_=m((POr,I4e)=>{var Ytr=J(),Ztr=Ls(),Jtr=Ytr(function(t,r){return function(n){return function(i){return Ztr(function(s){return r(s,i)},n(t(i)))}}});I4e.exports=Jtr});var q4e=m((DOr,N4e)=>{var Qtr=Pe(),err=Z_(),trr=od(),rrr=uO(),nrr=Qtr(function(t){return err(trr(t),rrr(t))});N4e.exports=nrr});var P4e=m((LOr,k4e)=>{var irr=Pe(),srr=Y5(),orr=Z_(),arr=Gl(),urr=irr(function(t){return orr(arr(t),srr(t))});k4e.exports=urr});var L4e=m((FOr,D4e)=>{var crr=Pe(),lrr=B_(),frr=Z_(),prr=XR(),drr=crr(function(t){return frr(prr(t),lrr(t))});D4e.exports=drr});var M4e=m((MOr,F4e)=>{var hrr=J(),mrr=hrr(function(t,r){return t<r});F4e.exports=mrr});var B4e=m((jOr,j4e)=>{var grr=J(),vrr=grr(function(t,r){return t<=r});j4e.exports=vrr});var W4e=m((BOr,U4e)=>{var yrr=ze(),xrr=yrr(function(t,r,n){for(var i=0,s=n.length,o=[],a=[r];i<s;)a=t(a[0],n[i]),o[i]=a[1],i+=1;return[a[0],o]});U4e.exports=xrr});var $4e=m((UOr,H4e)=>{var _rr=ze(),brr=_rr(function(t,r,n){for(var i=n.length-1,s=[],o=[r];i>=0;)o=t(o[0],n[i]),s[i]=o[1],i-=1;return[o[0],s]});H4e.exports=brr});var G4e=m((WOr,z4e)=>{var wrr=J(),Err=us(),Srr=bo(),Trr=wrr(function(t,r){return Err(function(n,i){return n[i]=t(r[i],i,r),n},{},Srr(r))});z4e.exports=Trr});var K4e=m((HOr,V4e)=>{var Arr=J(),Crr=Arr(function(t,r){return r.match(t)||[]});V4e.exports=Crr});var Z4e=m(($Or,Y4e)=>{var Rrr=J(),X4e=M_(),Orr=Rrr(function(t,r){return X4e(t)?!X4e(r)||r<1?NaN:(t%r+r)%r:NaN});Y4e.exports=Orr});var Q4e=m((zOr,J4e)=>{var Irr=ze(),Nrr=Irr(function(t,r,n){return t(n)>t(r)?n:r});J4e.exports=Nrr});var M8=m((GOr,e3e)=>{var qrr=P_(),krr=na(),Prr=krr(qrr,0);e3e.exports=Prr});var j8=m((VOr,t3e)=>{var Drr=Pe(),Lrr=M8(),Frr=Drr(function(t){return Lrr(t)/t.length});t3e.exports=Frr});var n3e=m((KOr,r3e)=>{var Mrr=Pe(),jrr=j8(),Brr=Mrr(function(t){var r=t.length;if(r===0)return NaN;var n=2-r%2,i=(r-n)/2;return jrr(Array.prototype.slice.call(t,0).sort(function(s,o){return s<o?-1:s>o?1:0}).slice(i,i+n))});r3e.exports=Brr});var s3e=m((XOr,i3e)=>{var Urr=_o(),Wrr=J(),Hrr=cs(),$rr=Wrr(function(t,r){var n={};return Urr(r.length,function(){var i=t.apply(this,arguments);return Hrr(i,n)||(n[i]=r.apply(this,arguments)),n[i]})});i3e.exports=$rr});var a3e=m((YOr,o3e)=>{var zrr=Hg(),Grr=J(),Vrr=Grr(function(t,r){return zrr({},t,r)});o3e.exports=Vrr});var c3e=m((ZOr,u3e)=>{var Krr=Hg(),Xrr=Pe(),Yrr=Xrr(function(t){return Krr.apply(null,[{}].concat(t))});u3e.exports=Yrr});var pO=m((JOr,l3e)=>{var Zrr=ze(),fO=cs(),Jrr=Zrr(function(t,r,n){var i={},s;for(s in r)fO(s,r)&&(i[s]=fO(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)fO(s,n)&&!fO(s,i)&&(i[s]=n[s]);return i});l3e.exports=Jrr});var J_=m((QOr,p3e)=>{var Qrr=ze(),f3e=sO(),enr=pO(),tnr=Qrr(function e(t,r,n){return enr(function(i,s,o){return f3e(s)&&f3e(o)?e(t,s,o):t(i,s,o)},r,n)});p3e.exports=tnr});var h3e=m((eIr,d3e)=>{var rnr=J(),nnr=J_(),inr=rnr(function(t,r){return nnr(function(n,i,s){return i},t,r)});d3e.exports=inr});var g3e=m((tIr,m3e)=>{var snr=J(),onr=J_(),anr=snr(function(t,r){return onr(function(n,i,s){return s},t,r)});m3e.exports=anr});var y3e=m((rIr,v3e)=>{var unr=ze(),cnr=J_(),lnr=unr(function(t,r,n){return cnr(function(i,s,o){return t(s,o)},r,n)});v3e.exports=lnr});var _3e=m((nIr,x3e)=>{var fnr=Hg(),pnr=J(),dnr=pnr(function(t,r){return fnr({},r,t)});x3e.exports=dnr});var w3e=m((iIr,b3e)=>{var hnr=Hg(),mnr=J(),gnr=mnr(function(t,r){return hnr({},t,r)});b3e.exports=gnr});var S3e=m((sIr,E3e)=>{var vnr=ze(),ynr=pO(),xnr=vnr(function(t,r,n){return ynr(function(i,s,o){return t(s,o)},r,n)});E3e.exports=xnr});var A3e=m((oIr,T3e)=>{var _nr=J(),bnr=_nr(function(t,r){return r<t?r:t});T3e.exports=bnr});var R3e=m((aIr,C3e)=>{var wnr=ze(),Enr=wnr(function(t,r,n){return t(n)<t(r)?n:r});C3e.exports=Enr});var I3e=m((uIr,O3e)=>{var Snr=J(),Tnr=Snr(function(t,r){return t%r});O3e.exports=Tnr});var q3e=m((cIr,N3e)=>{var Anr=ze(),Cnr=Anr(function(e,t,r){var n=r.length,i=r.slice(),s=e<0?n+e:e,o=t<0?n+t:t,a=i.splice(s,1);return s<0||s>=r.length||o<0||o>=r.length?r:[].concat(i.slice(0,o)).concat(a).concat(i.slice(o,r.length))});N3e.exports=Cnr});var B8=m((lIr,k3e)=>{var Rnr=J(),Onr=Rnr(function(t,r){return t*r});k3e.exports=Onr});var D3e=m((fIr,P3e)=>{var Inr=Pe(),Nnr=Inr(function(t){return-t});P3e.exports=Nnr});var F3e=m((pIr,L3e)=>{var qnr=l8(),knr=J(),Pnr=W5(),Dnr=knr(function(t,r){return Pnr(qnr(t),r)});L3e.exports=Dnr});var j3e=m((dIr,M3e)=>{var Lnr=Pe(),Fnr=jn(),Mnr=od(),jnr=Lnr(function(t){var r=t<0?1:t+1;return Fnr(r,function(){return Mnr(t,arguments)})});M3e.exports=jnr});var U3e=m((hIr,B3e)=>{var Bnr=ze(),Unr=Bnr(function(t,r,n){return t(r(n))});B3e.exports=Unr});var H3e=m((mIr,W3e)=>{function Wnr(e){return[e]}W3e.exports=Wnr});var z3e=m((gIr,$3e)=>{var Hnr=Pe(),$nr=H3e(),znr=Hnr($nr);$3e.exports=znr});var V3e=m((vIr,G3e)=>{var Gnr=J(),Vnr=Gnr(function(t,r){for(var n={},i={},s=0,o=t.length;s<o;)i[t[s]]=1,s+=1;for(var a in r)i.hasOwnProperty(a)||(n[a]=r[a]);return n});G3e.exports=Vnr});var X3e=m((yIr,K3e)=>{var Knr=_o(),Xnr=Pe(),Ynr=Xnr(function(t){var r=!1,n;return Knr(t.length,function(){return r||(r=!0,n=t.apply(this,arguments)),n})});K3e.exports=Ynr});var U8=m((xIr,Y3e)=>{var Znr=Bg(),Jnr=d8();function Qnr(e,t){if(t==null||!Znr(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+Jnr(t,[]))}Y3e.exports=Qnr});var J3e=m((_Ir,Z3e)=>{var eir=J(),tir=U8(),rir=eir(function(t,r){return tir("otherwise",r),r.then(null,t)});Z3e.exports=rir});var W8=m((bIr,e6e)=>{var nir=ze(),Q3e=function(e){return{value:e,map:function(t){return Q3e(t(e))}}},iir=nir(function(t,r,n){return t(function(i){return Q3e(r(i))})(n).value});e6e.exports=iir});var r6e=m((wIr,t6e)=>{var sir=J(),oir=sir(function(t,r){return[t,r]});t6e.exports=oir});var H8=m((EIr,n6e)=>{var air=_o(),uir=J();function cir(e){return uir(function(t,r){return air(Math.max(0,t.length-r.length),function(){return t.apply(this,e(r,arguments))})})}n6e.exports=cir});var s6e=m((SIr,i6e)=>{var lir=xo(),fir=H8(),pir=fir(lir);i6e.exports=pir});var a6e=m((TIr,o6e)=>{var dir=xo(),hir=H8(),mir=Y_(),gir=hir(mir(dir));o6e.exports=gir});var c6e=m((AIr,u6e)=>{var vir=oO(),yir=D8(),xir=V_(),_ir=yir([vir,xir]);u6e.exports=_ir});var f6e=m((CIr,l6e)=>{var bir=ze(),wir=Fs(),Eir=Gl(),Sir=bir(function(t,r,n){return wir(Eir(t,n),r)});l6e.exports=Sir});var $8=m((RIr,p6e)=>{var Tir=ze(),Air=v8(),Cir=Gl(),Rir=Tir(function(t,r,n){return Air(t,Cir(r,n))});p6e.exports=Rir});var h6e=m((OIr,d6e)=>{var Oir=ze(),Iir=Gl(),Nir=Oir(function(t,r,n){return t(Iir(r,n))});d6e.exports=Nir});var g6e=m((IIr,m6e)=>{var qir=J(),kir=qir(function(t,r){for(var n={},i=0;i<t.length;)t[i]in r&&(n[t[i]]=r[t[i]]),i+=1;return n});m6e.exports=kir});var z8=m((NIr,v6e)=>{var Pir=J(),Dir=Pir(function(t,r){for(var n={},i=0,s=t.length;i<s;){var o=t[i];n[o]=r[o],i+=1}return n});v6e.exports=Dir});var x6e=m((qIr,y6e)=>{var Lir=J(),Fir=Lir(function(t,r){var n={};for(var i in r)t(r[i],i,r)&&(n[i]=r[i]);return n});y6e.exports=Fir});var b6e=m((kIr,_6e)=>{var Mir=r8(),jir=Wg();function Bir(){if(arguments.length===0)throw new Error("pipeK requires at least one argument");return Mir.apply(this,jir(arguments))}_6e.exports=Bir});var G8=m((PIr,w6e)=>{var Uir=xo(),Wir=J(),Hir=Wir(function(t,r){return Uir([t],r)});w6e.exports=Hir});var S6e=m((DIr,E6e)=>{var $ir=B8(),zir=na(),Gir=zir($ir,1);E6e.exports=Gir});var V8=m((LIr,T6e)=>{var Vir=J(),Kir=jn(),Xir=Vir(function(t,r){return Kir(r.length,function(){for(var n=[],i=0;i<r.length;)n.push(r[i].call(this,arguments[i])),i+=1;return t.apply(this,n.concat(Array.prototype.slice.call(arguments,r.length)))})});T6e.exports=Xir});var C6e=m((FIr,A6e)=>{var Yir=L_(),Zir=$_(),Jir=z8(),Qir=V8(),esr=Qir(Yir,[Jir,Zir]);A6e.exports=esr});var O6e=m((MIr,R6e)=>{var tsr=ze(),rsr=Fs(),nsr=tsr(function(t,r,n){return rsr(r,n[t])});R6e.exports=nsr});var N6e=m((jIr,I6e)=>{var isr=ze(),ssr=P8(),osr=isr(function(t,r,n){return ssr(t,n[r])});I6e.exports=osr});var k6e=m((BIr,q6e)=>{var asr=ze(),usr=$8(),csr=asr(function(t,r,n){return usr(t,[r],n)});q6e.exports=csr});var D6e=m((UIr,P6e)=>{var lsr=ze(),fsr=lsr(function(t,r,n){return t(n[r])});P6e.exports=fsr});var F6e=m((WIr,L6e)=>{var psr=J(),dsr=Gl(),hsr=psr(function(t,r){return t.map(function(n){return dsr([n],r)})});L6e.exports=hsr});var B6e=m((HIr,j6e)=>{var msr=J(),M6e=L8(),gsr=msr(function(t,r){if(!(M6e(t)&&M6e(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=[],i=t;i<r;)n.push(i),i+=1;return n});j6e.exports=gsr});var K8=m(($Ir,U6e)=>{var vsr=ze(),ysr=vsr(function(t,r,n){for(var i=n.length-1;i>=0;)r=t(n[i],r),i-=1;return r});U6e.exports=ysr});var H6e=m((zIr,W6e)=>{var xsr=D_(),_sr=us(),bsr=bc(),wsr=xsr(4,[],function(t,r,n,i){return _sr(function(s,o){return t(s,o)?r(s,o):bsr(s)},n,i)});W6e.exports=wsr});var z6e=m((GIr,$6e)=>{var Esr=Pe(),Ssr=bc(),Tsr=Esr(Ssr);$6e.exports=Tsr});var X8=m((VIr,G6e)=>{var Asr=J(),Csr=Asr(function(t,r){var n=Number(r),i=0,s;if(n<0||isNaN(n))throw new RangeError("n must be a non-negative number");for(s=new Array(n);i<n;)s[i]=t(i),i+=1;return s});G6e.exports=Csr});var K6e=m((KIr,V6e)=>{var Rsr=J(),Osr=j_(),Isr=X8(),Nsr=Rsr(function(t,r){return Isr(Osr(t),r)});V6e.exports=Nsr});var Y6e=m((XIr,X6e)=>{var qsr=ze(),ksr=qsr(function(t,r,n){return n.replace(t,r)});X6e.exports=ksr});var J6e=m((YIr,Z6e)=>{var Psr=ze(),Dsr=Psr(function(t,r,n){for(var i=0,s=n.length,o=[r];i<s;)r=t(r,n[i]),o[i+1]=r,i+=1;return o});Z6e.exports=Dsr});var Y8=m((ZIr,Q6e)=>{var Lsr=J(),Fsr=YR(),Msr=Ls(),jsr=G8(),Bsr=K8(),Usr=Lsr(function(t,r){return typeof r.sequence=="function"?r.sequence(t):Bsr(function(n,i){return Fsr(Msr(jsr,n),i)},t([]),r)});Q6e.exports=Usr});var tje=m((JIr,eje)=>{var Wsr=ze(),Hsr=j_(),$sr=W8(),zsr=Wsr(function(t,r,n){return $sr(t,Hsr(r),n)});eje.exports=zsr});var nje=m((QIr,rje)=>{var Gsr=J(),Vsr=Gsr(function(t,r){return Array.prototype.slice.call(r,0).sort(t)});rje.exports=Vsr});var sje=m((eNr,ije)=>{var Ksr=J(),Xsr=Ksr(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,i){var s=t(n),o=t(i);return s<o?-1:s>o?1:0})});ije.exports=Xsr});var aje=m((tNr,oje)=>{var Ysr=J(),Zsr=Ysr(function(t,r){return Array.prototype.slice.call(r,0).sort(function(n,i){for(var s=0,o=0;s===0&&o<t.length;)s=t[o](n,i),o+=1;return s})});oje.exports=Zsr});var cje=m((rNr,uje)=>{var Jsr=$g(),Qsr=Jsr(1,"split");uje.exports=Qsr});var pje=m((nNr,fje)=>{var eor=J(),tor=F8(),lje=wo(),ror=eor(function(t,r){return[lje(0,t,r),lje(t,tor(r),r)]});fje.exports=ror});var hje=m((iNr,dje)=>{var nor=J(),ior=wo(),sor=nor(function(t,r){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],i=0;i<r.length;)n.push(ior(i,i+=t,r));return n});dje.exports=sor});var gje=m((sNr,mje)=>{var oor=J(),aor=oor(function(t,r){for(var n=0,i=r.length,s=[];n<i&&!t(r[n]);)s.push(r[n]),n+=1;return[s,Array.prototype.slice.call(r,n)]});mje.exports=aor});var yje=m((oNr,vje)=>{var uor=J(),cor=Fs(),lor=cO(),por=uor(function(e,t){return cor(lor(e.length,t),e)});vje.exports=por});var _je=m((aNr,xje)=>{var dor=J(),hor=dor(function(t,r){return Number(t)-Number(r)});xje.exports=hor});var Eje=m((uNr,wje)=>{var mor=J(),gor=aO(),bje=x8(),vor=mor(function(t,r){return gor(bje(t,r),bje(r,t))});wje.exports=vor});var Aje=m((cNr,Tje)=>{var yor=ze(),xor=aO(),Sje=_8(),_or=yor(function(t,r,n){return xor(Sje(t,r,n),Sje(t,n,r))});Tje.exports=_or});var Rje=m((lNr,Cje)=>{var bor=J(),wor=wo(),Eor=bor(function(t,r){for(var n=r.length-1;n>=0&&t(r[n]);)n-=1;return wor(n+1,1/0,r)});Cje.exports=Eor});var Nje=m((fNr,Ije)=>{var Sor=J(),Tor=bc(),Oje=mn(),Aor=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Oje.init,e.prototype["@@transducer/result"]=Oje.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):Tor(t)},e}(),Cor=Sor(function(t,r){return new Aor(t,r)});Ije.exports=Cor});var kje=m((pNr,qje)=>{var Ror=J(),Oor=sn(),Ior=Nje(),Nor=wo(),qor=Ror(Oor(["takeWhile"],Ior,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return Nor(0,n,r)}));qje.exports=qor});var Lje=m((dNr,Dje)=>{var kor=J(),Pje=mn(),Por=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Pje.init,e.prototype["@@transducer/result"]=Pje.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r),this.xf["@@transducer/step"](t,r)},e}(),Dor=kor(function(t,r){return new Por(t,r)});Dje.exports=Dor});var Mje=m((hNr,Fje)=>{var Lor=J(),For=sn(),Mor=Lje(),jor=Lor(For([],Mor,function(t,r){return t(r),r}));Fje.exports=jor});var Bje=m((mNr,jje)=>{function Bor(e){return Object.prototype.toString.call(e)==="[object RegExp]"}jje.exports=Bor});var Wje=m((gNr,Uje)=>{var Uor=Q5(),Wor=J(),Hor=Bje(),$or=K_(),zor=Wor(function(t,r){if(!Hor(t))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+$or(t));return Uor(t).test(r)});Uje.exports=zor});var $je=m((vNr,Hje)=>{var Gor=J(),Vor=U8(),Kor=Gor(function(t,r){return Vor("andThen",r),r.then(t)});Hje.exports=Kor});var Gje=m((yNr,zje)=>{var Xor=$g(),Yor=Xor(0,"toLowerCase");zje.exports=Yor});var Kje=m((xNr,Vje)=>{var Zor=Pe(),Jor=cs(),Qor=Zor(function(t){var r=[];for(var n in t)Jor(n,t)&&(r[r.length]=[n,t[n]]);return r});Vje.exports=Qor});var Yje=m((_Nr,Xje)=>{var ear=Pe(),tar=ear(function(t){var r=[];for(var n in t)r[r.length]=[n,t[n]];return r});Xje.exports=tar});var Jje=m((bNr,Zje)=>{var rar=$g(),nar=rar(0,"toUpperCase");Zje.exports=nar});var eBe=m((wNr,Qje)=>{var iar=us(),sar=H5(),oar=jn(),aar=oar(4,function(t,r,n,i){return iar(t(typeof r=="function"?sar(r):r),n,i)});Qje.exports=aar});var rBe=m((ENr,tBe)=>{var uar=Pe(),car=uar(function(t){for(var r=0,n=[];r<t.length;){for(var i=t[r],s=0;s<i.length;)typeof n[s]>"u"&&(n[s]=[]),n[s].push(i[s]),s+=1;r+=1}return n});tBe.exports=car});var iBe=m((SNr,nBe)=>{var lar=ze(),far=Ls(),par=Y8(),dar=lar(function(t,r,n){return typeof n["fantasy-land/traverse"]=="function"?n["fantasy-land/traverse"](r,t):par(t,far(r,n))});nBe.exports=dar});var aBe=m((TNr,oBe)=>{var sBe=Pe(),Q_=`
|
|
232
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,har="\u200B",mar=typeof String.prototype.trim=="function",gar=sBe(!mar||Q_.trim()||!har.trim()?function(t){var r=new RegExp("^["+Q_+"]["+Q_+"]*"),n=new RegExp("["+Q_+"]["+Q_+"]*$");return t.replace(r,"").replace(n,"")}:function(t){return t.trim()});oBe.exports=gar});var cBe=m((ANr,uBe)=>{var yar=_o(),xar=xo(),_ar=J(),bar=_ar(function(t,r){return yar(t.length,function(){try{return t.apply(this,arguments)}catch(n){return r.apply(this,xar([n],arguments))}})});uBe.exports=bar});var fBe=m((CNr,lBe)=>{var war=Pe(),Ear=war(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});lBe.exports=Ear});var dBe=m((RNr,pBe)=>{var Sar=Pe(),Tar=U_(),Aar=Sar(function(t){return Tar(1,t)});pBe.exports=Aar});var mBe=m((ONr,hBe)=>{var Car=J(),Rar=jn(),Oar=Car(function(t,r){return Rar(t,function(){for(var n=1,i=r,s=0,o;n<=t&&typeof i=="function";)o=n===t?arguments.length:s+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,s,o)),n+=1,s=o;return i})});hBe.exports=Oar});var vBe=m((INr,gBe)=>{var Iar=J(),Nar=Iar(function(t,r){for(var n=t(r),i=[];n&&n.length;)i[i.length]=n[0],n=t(n[1]);return i});gBe.exports=Nar});var xBe=m((NNr,yBe)=>{var qar=xo(),kar=J(),Par=rO(),Dar=lO(),Lar=kar(Par(Dar,qar));yBe.exports=Lar});var Z8=m((qNr,_Be)=>{var Far=z_(),Mar=J(),jar=Mar(function(t,r){for(var n=0,i=r.length,s=[],o;n<i;)o=r[n],Far(t,o,s)||(s[s.length]=o),n+=1;return s});_Be.exports=jar});var wBe=m((kNr,bBe)=>{var Bar=xo(),Uar=ze(),War=Z8(),Har=Uar(function(t,r,n){return War(t,Bar(r,n))});bBe.exports=Har});var SBe=m((PNr,EBe)=>{var $ar=ze(),zar=$ar(function(t,r,n){return t(n)?n:r(n)});EBe.exports=zar});var ABe=m((DNr,TBe)=>{var Gar=nO(),Var=QR(),Kar=Var(Gar);TBe.exports=Kar});var RBe=m((LNr,CBe)=>{var Xar=ze(),Yar=Xar(function(t,r,n){for(var i=n;!t(i);)i=r(i);return i});CBe.exports=Yar});var IBe=m((FNr,OBe)=>{var Zar=Pe(),Jar=Zar(function(t){var r,n=[];for(r in t)n[n.length]=t[r];return n});OBe.exports=Jar});var qBe=m((MNr,NBe)=>{var Qar=J(),eur=function(e){return{value:e,"fantasy-land/map":function(){return this}}},tur=Qar(function(t,r){return t(eur)(r).value});NBe.exports=tur});var PBe=m((jNr,kBe)=>{var rur=ze(),nur=rur(function(t,r,n){return t(n)?r(n):n});kBe.exports=nur});var J8=m((BNr,DBe)=>{var iur=J(),sur=cs(),our=iur(function(t,r){for(var n in t)if(sur(n,t)&&!t[n](r[n]))return!1;return!0});DBe.exports=our});var FBe=m((UNr,LBe)=>{var aur=J(),uur=Fs(),cur=Ls(),lur=J8(),fur=aur(function(t,r){return lur(cur(uur,t),r)});LBe.exports=fur});var jBe=m((WNr,MBe)=>{var pur=ad(),dur=J(),hur=Y_(),mur=V_(),gur=dur(function(e,t){return mur(hur(pur)(e),t)});MBe.exports=gur});var UBe=m((HNr,BBe)=>{var vur=J(),yur=vur(function(t,r){return!!(!t^!r)});BBe.exports=yur});var HBe=m(($Nr,WBe)=>{var xur=J(),_ur=xur(function(t,r){for(var n=0,i=t.length,s,o=r.length,a=[];n<i;){for(s=0;s<o;)a[a.length]=[t[n],r[s]],s+=1;n+=1}return a});WBe.exports=_ur});var zBe=m((zNr,$Be)=>{var bur=J(),wur=bur(function(t,r){for(var n=[],i=0,s=Math.min(t.length,r.length);i<s;)n[i]=[t[i],r[i]],i+=1;return n});$Be.exports=wur});var VBe=m((GNr,GBe)=>{var Eur=J(),Sur=Eur(function(t,r){for(var n=0,i=Math.min(t.length,r.length),s={};n<i;)s[t[n]]=r[n],n+=1;return s});GBe.exports=Sur});var XBe=m((VNr,KBe)=>{var Tur=ze(),Aur=Tur(function(t,r,n){for(var i=[],s=0,o=Math.min(r.length,n.length);s<o;)i[s]=t(r[s],n[s]),s+=1;return i});KBe.exports=Aur});var ZBe=m((KNr,YBe)=>{var Cur=jn(),Rur=Pe(),Our=Rur(function(t){return Cur(t.length,function(){var n=arguments;return function(){return t.apply(this,n)}})});YBe.exports=Our});var JBe=m((XNr,F)=>{F.exports={};F.exports.F=oke();F.exports.T=uke();F.exports.__=lke();F.exports.add=P_();F.exports.addIndex=wke();F.exports.adjust=U5();F.exports.all=W5();F.exports.allPass=cPe();F.exports.always=j_();F.exports.and=V5();F.exports.any=mPe();F.exports.anyPass=vPe();F.exports.ap=YR();F.exports.aperture=SPe();F.exports.append=APe();F.exports.apply=K5();F.exports.applySpec=NPe();F.exports.applyTo=kPe();F.exports.ascend=DPe();F.exports.assoc=B_();F.exports.assocPath=Y5();F.exports.binary=WPe();F.exports.bind=$5();F.exports.both=KPe();F.exports.call=ZPe();F.exports.chain=QR();F.exports.clamp=cDe();F.exports.clone=mDe();F.exports.comparator=vDe();F.exports.complement=_De();F.exports.compose=rO();F.exports.composeK=r8();F.exports.composeP=DDe();F.exports.composeWith=UDe();F.exports.concat=aO();F.exports.cond=TLe();F.exports.construct=RLe();F.exports.constructN=m8();F.exports.contains=ILe();F.exports.converge=g8();F.exports.countBy=LLe();F.exports.curry=JR();F.exports.curryN=jn();F.exports.dec=MLe();F.exports.defaultTo=v8();F.exports.descend=ULe();F.exports.difference=x8();F.exports.differenceWith=_8();F.exports.dissoc=b8();F.exports.dissocPath=eFe();F.exports.divide=rFe();F.exports.drop=E8();F.exports.dropLast=gFe();F.exports.dropLastWhile=wFe();F.exports.dropRepeats=OFe();F.exports.dropRepeatsWith=A8();F.exports.dropWhile=PFe();F.exports.either=FFe();F.exports.empty=R8();F.exports.endsWith=UFe();F.exports.eqBy=HFe();F.exports.eqProps=zFe();F.exports.equals=Fs();F.exports.evolve=VFe();F.exports.filter=oO();F.exports.find=ZFe();F.exports.findIndex=tMe();F.exports.findLast=sMe();F.exports.findLastIndex=cMe();F.exports.flatten=fMe();F.exports.flip=Y_();F.exports.forEach=hMe();F.exports.forEachObjIndexed=gMe();F.exports.fromPairs=yMe();F.exports.groupBy=_Me();F.exports.groupWith=wMe();F.exports.gt=SMe();F.exports.gte=AMe();F.exports.has=IMe();F.exports.hasIn=qMe();F.exports.hasPath=I8();F.exports.head=i8();F.exports.identical=PMe();F.exports.identity=$_();F.exports.ifElse=LMe();F.exports.inc=MMe();F.exports.includes=BMe();F.exports.indexBy=WMe();F.exports.indexOf=$Me();F.exports.init=GMe();F.exports.innerJoin=KMe();F.exports.insert=YMe();F.exports.insertAll=JMe();F.exports.intersection=r4e();F.exports.intersperse=i4e();F.exports.into=p4e();F.exports.invert=h4e();F.exports.invertObj=g4e();F.exports.invoker=$g();F.exports.is=P8();F.exports.isEmpty=_4e();F.exports.isNil=ZR();F.exports.join=w4e();F.exports.juxt=D8();F.exports.keys=bo();F.exports.keysIn=T4e();F.exports.last=T8();F.exports.lastIndexOf=C4e();F.exports.length=F8();F.exports.lens=Z_();F.exports.lensIndex=q4e();F.exports.lensPath=P4e();F.exports.lensProp=L4e();F.exports.lift=W_();F.exports.liftN=Z5();F.exports.lt=M4e();F.exports.lte=B4e();F.exports.map=Ls();F.exports.mapAccum=W4e();F.exports.mapAccumRight=$4e();F.exports.mapObjIndexed=G4e();F.exports.match=K4e();F.exports.mathMod=Z4e();F.exports.max=sd();F.exports.maxBy=Q4e();F.exports.mean=j8();F.exports.median=n3e();F.exports.memoizeWith=s3e();F.exports.merge=a3e();F.exports.mergeAll=c3e();F.exports.mergeDeepLeft=h3e();F.exports.mergeDeepRight=g3e();F.exports.mergeDeepWith=y3e();F.exports.mergeDeepWithKey=J_();F.exports.mergeLeft=_3e();F.exports.mergeRight=w3e();F.exports.mergeWith=S3e();F.exports.mergeWithKey=pO();F.exports.min=A3e();F.exports.minBy=R3e();F.exports.modulo=I3e();F.exports.move=q3e();F.exports.multiply=B8();F.exports.nAry=U_();F.exports.negate=D3e();F.exports.none=F3e();F.exports.not=e8();F.exports.nth=od();F.exports.nthArg=j3e();F.exports.o=U3e();F.exports.objOf=q8();F.exports.of=z3e();F.exports.omit=V3e();F.exports.once=X3e();F.exports.or=C8();F.exports.otherwise=J3e();F.exports.over=W8();F.exports.pair=r6e();F.exports.partial=s6e();F.exports.partialRight=a6e();F.exports.partition=c6e();F.exports.path=Gl();F.exports.paths=G5();F.exports.pathEq=f6e();F.exports.pathOr=$8();F.exports.pathSatisfies=h6e();F.exports.pick=g6e();F.exports.pickAll=z8();F.exports.pickBy=x6e();F.exports.pipe=t8();F.exports.pipeK=b6e();F.exports.pipeP=n8();F.exports.pipeWith=s8();F.exports.pluck=jg();F.exports.prepend=G8();F.exports.product=S6e();F.exports.project=C6e();F.exports.prop=XR();F.exports.propEq=O6e();F.exports.propIs=N6e();F.exports.propOr=k6e();F.exports.propSatisfies=D6e();F.exports.props=F6e();F.exports.range=B6e();F.exports.reduce=na();F.exports.reduceBy=X_();F.exports.reduceRight=K8();F.exports.reduceWhile=H6e();F.exports.reduced=z6e();F.exports.reject=V_();F.exports.remove=w8();F.exports.repeat=K6e();F.exports.replace=Y6e();F.exports.reverse=Wg();F.exports.scan=J6e();F.exports.sequence=Y8();F.exports.set=tje();F.exports.slice=wo();F.exports.sort=nje();F.exports.sortBy=sje();F.exports.sortWith=aje();F.exports.split=cje();F.exports.splitAt=pje();F.exports.splitEvery=hje();F.exports.splitWhen=gje();F.exports.startsWith=yje();F.exports.subtract=_je();F.exports.sum=M8();F.exports.symmetricDifference=Eje();F.exports.symmetricDifferenceWith=Aje();F.exports.tail=H_();F.exports.take=cO();F.exports.takeLast=O8();F.exports.takeLastWhile=Rje();F.exports.takeWhile=kje();F.exports.tap=Mje();F.exports.test=Wje();F.exports.andThen=$je();F.exports.times=X8();F.exports.toLower=Gje();F.exports.toPairs=Kje();F.exports.toPairsIn=Yje();F.exports.toString=K_();F.exports.toUpper=Jje();F.exports.transduce=eBe();F.exports.transpose=rBe();F.exports.traverse=iBe();F.exports.trim=aBe();F.exports.tryCatch=cBe();F.exports.type=eO();F.exports.unapply=fBe();F.exports.unary=dBe();F.exports.uncurryN=mBe();F.exports.unfold=vBe();F.exports.union=xBe();F.exports.unionWith=wBe();F.exports.uniq=lO();F.exports.uniqBy=N8();F.exports.uniqWith=Z8();F.exports.unless=SBe();F.exports.unnest=ABe();F.exports.until=RBe();F.exports.update=uO();F.exports.useWith=V8();F.exports.values=X5();F.exports.valuesIn=IBe();F.exports.view=qBe();F.exports.when=PBe();F.exports.where=J8();F.exports.whereEq=FBe();F.exports.without=jBe();F.exports.xor=UBe();F.exports.xprod=HBe();F.exports.zip=zBe();F.exports.zipObj=VBe();F.exports.zipWith=XBe();F.exports.thunkify=ZBe()});var wr,QBe,Q8=ye(()=>{"use strict";cn();wr=class{org;serviceName;constructor(t={}){this.org=t.org,this.serviceName=t.serviceName||"my-app"}async copy(t={}){let r={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/copy`,body:t};return await Ge(r)}async create(t={}){let r={method:"POST",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}`,body:t};return await Ge(r)}async get(){var r;let t={method:"GET",endpoint:`/orgs/${(r=this.org)==null?void 0:r.orgName}/services/${this.serviceName}`};return await Ge(t)}async getGitConfig(){var r;let t={method:"GET",endpoint:`/orgs/${(r=this.org)==null?void 0:r.orgName}/services/${this.serviceName}/git`};return await Ge(t)}async put(t={}){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}`,body:t};return await Ge(r)}async delete(){let t={method:"DELETE",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}`};return await Ge(t)}async listInstances(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/instances`};return await Ge(t)}async getParams(){let t={method:"GET",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/params`},{params:r}=await Ge(t);return r}async putParams(t){let r={method:"PATCH",endpoint:`/orgs/${this.org.orgName}/services/${this.serviceName}/params`,body:{params:t}},{params:n}=await Ge(r);return n}getDashboardUrl(){let t=process.env.AMPT_STAGE||"prod";return process.env.AMPT_DASHBOARD_URL?process.env.AMPT_DASHBOARD_URL:t==="prod"?`https://ampt.dev/orgs/${this.org.orgName}/apps/${this.serviceName}`:`https://amptlabs.dev/orgs/${this.org.orgName}/apps/${this.serviceName}`}},QBe=wr});var dO,hr,eUe=ye(()=>{"use strict";dO=de(JBe());cn();Q8();hr=class{orgName;constructor(t){this.orgName=t.orgName}update(t={}){this.orgName=t.orgName||this.orgName}async isAuthorized(){try{await this._activate()}catch(t){if(t.message.includes("Your credentials do not have access to the Organization"))return tt.debug({orgName:this.orgName},"do not have access to org"),!1}return!0}async listServices(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/services`};return await Ge(t)}async listServicesWithInstances(){let t=await this.listServices(),r=await Promise.all(t.map(async n=>{let s=await new QBe({org:this,serviceName:n.serviceName}).listInstances();return!s||s.length===0?null:n}));return(0,dO.reject)(dO.isNil,r)}async getParams(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/params`},{params:r}=await Ge(t);return r}async putParams(t){let r={method:"PATCH",endpoint:`/orgs/${this.orgName}/params`,body:{params:t}},{params:n}=await Ge(r);return n}async _activate(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/is-activated`};return await Ge(t)}async proxy(t){let r={method:"POST",endpoint:`/orgs/${this.orgName}/proxy`,body:t};return await Ge(r)}async getUsage(t="total"){let r={method:"GET",endpoint:`/orgs/${this.orgName}/usage?window=${t}`};return await Ge(r)}async getRegions(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/regions`};return(await Ge(t)).regions}async fetch(){let t={method:"GET",endpoint:`/orgs/${this.orgName}/details`};return await Ge(t)}async updateMetadata(t={}){let r={method:"PATCH",endpoint:`/orgs/${this.orgName}`,body:t};return await Ge(r)}}});var Iur,tUe,rUe=ye(()=>{"use strict";Iur=e=>e.replace(/([-_][a-z, 0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),tUe=e=>Object.keys(e).reduce((t,r)=>({...t,[Iur(r)]:e[r]}),{})});var hO,mO,wc,Vl,nUe=ye(()=>{"use strict";hO=de(WE());Em();mO=require("url");rUe();wc=class{static async refreshSession(t){var n;let r={method:"POST",url:`${wc.auth0Url}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:new mO.URLSearchParams({grant_type:"refresh_token",refresh_token:t,client_id:wc.clientId})};try{let i=await hO.default.request(r);if(i.data)return{accessToken:i.data.access_token,idToken:i.data.id_token};throw Error("Invalid response from Auth0")}catch(i){throw tt.error({err:(n=i==null?void 0:i.toJSON)==null?void 0:n.call(i)}),i}}static async requestDeviceCode(){var r;let t={method:"POST",url:`${wc.auth0Url}/oauth/device/code`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:new mO.URLSearchParams({client_id:wc.clientId,scope:"openid profile email offline_access",audience:wc.audience})};try{let n=await hO.default.request(t);if(n.data)return{verificationUrl:n.data.verification_uri_complete,deviceCode:n.data.device_code,userCode:n.data.user_code,pollInterval:n.data.interval+1,expiration:n.data.expires_in,loginData:wc.pollForToken(n.data.interval,n.data.device_code)};throw Error("Invalid response from Auth0")}catch(n){throw tt.error({err:(r=n==null?void 0:n.toJSON)==null?void 0:r.call(n)}),n}}static async pollForToken(t,r){return new Promise((n,i)=>{let s=setInterval(()=>{(async()=>{var a;let o={method:"POST",url:`${wc.auth0Url}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:new mO.URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:r,client_id:this.clientId})};try{let u=await hO.default.request(o);u.data&&(clearInterval(s),n(tUe(u.data)))}catch(u){return u.response&&((a=u.response.data)==null?void 0:a.error)==="authorization_pending"?void 0:i(u)}})().catch(o=>console.error(o))},t*1e3)})}},Vl=wc;_n(Vl,"auth0Url",process.env.AMPT_STAGE==="prod"?"https://ampt.us.auth0.com":"https://amptdev.us.auth0.com"),_n(Vl,"clientId",process.env.AMPT_STAGE==="prod"?"sVVRzSWM6OVwWBnnOv3idPqkZvgqKLGm":"soEd8ZHLP6RpLZNGjTlb7J462WtcZjZT"),_n(Vl,"audience",process.env.AMPT_STAGE==="prod"?"https://api.ampt.dev":"https://api.amptlabs.dev")});var e7,t7,Ms,iUe=ye(()=>{"use strict";cn();nUe();Hu();gn();cn();e7=de(require("assert")),t7=class extends Error{constructor(t){super(t||"Login failed")}},Ms=class{logger=tt.child({class:"User"});auth0Id;userId;email;name;username;accessToken;idToken;refreshToken;orgs;defaultOrgName;_loginData;config;loggedIn=!1;constructor(){this.config=new gO}static async init(){let t=new Ms;return await t.load(),t}isLoggedIn(){return process.env.AMPT_API_KEY?!0:this.loggedIn&&this._isValidUserIdSet()}async load(){if(process.env.AMPT_API_KEY){await Promise.all([this.hydrateUser(),this.getDefaultOrgName()]);return}let t=d4();if(this.logger.debug({func:"load",user:t},"loaded user"),!t||!t.refreshToken){this.loggedIn=!1;return}this.userId=t.userId,this.username=t.username,this.refreshToken=t.refreshToken,await this.refreshAccessToken(),await Promise.all([this.hydrateUser(),this.getDefaultOrgName()])}async refreshAccessToken(){(0,e7.default)(!!this.refreshToken,"no refresh token");let t=await Vl.refreshSession(this.refreshToken);this.accessToken=t.accessToken,this.idToken=t.idToken,zr.storeAuth({accessToken:t.accessToken,idToken:t.idToken})}async getDefaultOrgName(){var r;(!this.orgs||this.orgs.length===0)&&await this.listOrgs(),(0,e7.default)(!!((r=this.orgs)!=null&&r.length),"no orgs found");let t=this.orgs.find(n=>n.role==="owner");return t?(tt.debug({ownedOrg:t},"default org"),zr.orgName=t.orgName,zr.orgName):(zr.orgName=this.orgs[0].orgName,zr.orgName)}async restoreOrgLogin(t){throw new Error("not implemented")}hasAccessToOrg(t){var r;return((r=this.orgs)==null?void 0:r.some(({orgName:n})=>n===t))||!1}async listOrgs(){let t=await Ge({endpoint:"/orgs",method:"GET"});this.orgs=t}async performLogin(t){var i;let{userCode:r,verificationUrl:n}=await this.startLogin();t.logInfo("Your browser should open automatically."),t.logInfo("If not, open the following login url:"),t.logUrl(n),t.logInfo(`Your confirmation code is: ${(i=t.styles)==null?void 0:i.purple.bold(r)}`),t.logWarning("This code will expire in 15 minutes.");try{t.openUrl(n)}catch{}await this.endLogin(),await dr({eventName:"ampt.context.login"}),t.logSuccess("Successfully logged into Ampt!")}async startLogin(){let{userCode:t,expiration:r,verificationUrl:n,deviceCode:i,pollInterval:s,loginData:o}=await Vl.requestDeviceCode();return this._loginData=o,{userCode:t,expiration:r,verificationUrl:n,deviceCode:i,pollInterval:s}}async endLogin(){if(!this._loginData)throw new t7("Something went wrong during the login process.");let t=await this._loginData;if(zr.storeAuth({accessToken:t.accessToken,idToken:t.idToken}),await Promise.all([this.hydrateUser(),this.getDefaultOrgName()]),this.userId){let r={userId:this.userId,name:this.name,email:this.email,username:this.username,refreshToken:t.refreshToken},n={userId:this.userId,sessions:{[this.userId]:r,[this.username]:r}};Zhe(n)}}logout(){return Jhe()}async hydrateUser(t=0){let n=await Ge({method:"GET",endpoint:"/core/me"});if(n!=null&&n.userUid)this.loggedIn=!0,this.name=n.fullName,this.email=n.email,this.userId=n.userUid,this.username=n.userName,this.auth0Id=n.auth0Id;else{if(t>3)throw new Error("Hydrate user failed");return await hp(1e3),await this.hydrateUser(t+1)}}_isValidUserIdSet(){return!!this.userId}}});var gO,sUe=ye(()=>{"use strict";gO=class{}});var gn=ye(()=>{"use strict";Hbe();$be();Wwe();Pqe();eke();j5();ike();zR();eUe();Q8();iUe();sUe();Hu()});var oUe,Nur,aUe=ye(()=>{"use strict";oUe=de(Sm()),Nur=async e=>{let{darkPurple:t,bold:r}=e.styles;e.log(`
|
|
233
233
|
${t(r("ampt"))} Starts interactive development mode with auto deployment
|
|
234
234
|
${r(" --seed")} Seed data from your data file on initialization
|
|
235
235
|
${r(" --reseed")} Automatically seed data from your data file when it changes
|
|
@@ -252,7 +252,7 @@ ${r("Discord:")} https://discord.gg/v2FG8KY2mS
|
|
|
252
252
|
|
|
253
253
|
Install @ampt/cloud to allow it to run on Ampt, or migrate
|
|
254
254
|
your project to use the Ampt SDK.
|
|
255
|
-
`)),Object.keys(n).some(s=>kur.includes(s))&&(e._tipsCollection=[...e._devTipsCollection,...e._tipsCollection,...(i=r==null?void 0:r.scripts)!=null&&i["ampt:dev"]?[]:e._cloudScriptsCollection],e._initTips())}var lUe,kur,n7=ye(()=>{"use strict";lUe=de(require("assert"));gn();kur=["react","next","svelte","vue","@angular/core","@11ty/eleventy","astro"]});var fUe,pUe,Ec,dUe,vO,Pur,Dur,Lur,hUe=ye(()=>{"use strict";fUe=de(require("path")),pUe=de(require("os")),Ec=de(tm()),dUe=de(require("assert"));gn();cn();cUe();n7();vO=(e,t)=>fUe.default.join(pUe.default.homedir(),".serverless",`cloud_shell_activity_${e}_${t}.json`),Pur=async(e,t)=>{try{let r=JSON.parse(await(0,Ec.readFile)(vO(e,t),"utf8"));if(n4(r.pid))return r;(0,Ec.removeSync)(vO(e,t))}catch{return!1}},Dur=async(e,t)=>{let r=vO(e,t);(0,Ec.ensureFileSync)(r),(0,Ec.writeFileSync)(r,JSON.stringify({pid:process.pid},null,4))},Lur=async e=>{var Z,le,B,V,he,fe,xe;e.isGitPod&&e.options.initial?await hp(1e4):e.isGitPod&&!e.options.initial&&(e.isAnimationEnabled=e.options.animation!==!1),e.viewSpinner("Loading");let t=new Ft({session:e.session,syncNodeModules:e.options.syncNodeModules});await t.read();let r=await e._checkAmptDepsVersions(await t.listAmptPackages());r.length&&(e._printOutOfDatePackages(r),e.logSpace(),e.logQuestion("Would you like to update them now?"),await e.confirm(!0)?await e._updateAmptDeps(r):(e.logInfo("Skipping package updates"),e.logWarning("You may experience issues using outdated @ampt packages.")));let n=e.options.seed||e.options.s,i=e.options.reseed||e.options.rs,s,o=null,a=e.user;if(!a)throw new Error("User not found");if(!a.orgs||!a.orgs.length)throw new Error("No orgs found for user");e.isAnimationEnabled=e.options.animation!==!1,t.serviceFile||(await uUe(e,t),t.dataFile&&(n=!0)),await r7(e),s=e.options.org||((le=(Z=t.serviceFile)==null?void 0:Z.ampt)==null?void 0:le.org),s&&!a.hasAccessToOrg(s)&&(e.logWarning(`Org "${s}" has either been deleted or you no longer have access to it.`),s=void 0);let u=e.options.app||((V=(B=t.serviceFile)==null?void 0:B.ampt)==null?void 0:V.app);s||(dr({orgName:s,eventName:"ampt.dev.prompt",eventData:{promptName:"org"}}),s=await e.selectOrg(a),await t.writeServiceFile({orgName:s})),e.viewSpinner("Loading"),(0,dUe.default)(!!s,"orgName is required");let c=new hr({orgName:s});tt.info({org:e.org},"org set"),await c.isAuthorized()||(dr({orgName:s,eventName:"ampt.dev.prompt",eventData:{promptName:"org"}}),e.logError(`You don't have access to the "${s}" org.`),s=await e.selectOrg(a)),e.viewSpinner("Loading"),c.update({orgName:s}),u||(dr({orgName:s,eventName:"ampt.dev.prompt",eventData:{promptName:"service"}}),u=await e.promptServiceName((he=t.defaults)==null?void 0:he.app),e.viewSpinner("Loading"),await t.writeServiceFile({serviceName:u}));let f=a.username,p=new wr({org:c,serviceName:u}),h=new Br({org:c,service:p,instanceName:f,cli:e}),[g,v,_,w]=await Promise.all([h.get().catch(()=>{}),p.get().catch(()=>{}),c.fetch(),c.getRegions()]),y=await e.selectRegion({orgInfo:_,serviceInfo:v,instanceInfo:g,regions:w});if(!y){e.logError("No region selected."),await e.quit();return}h.region=y.code,e.viewSpinner("Connecting to your personal sandbox environment...");let b=process.hrtime.bigint();await Pur(s,u)&&(e.logError(`The Ampt shell for app "${u}" in org "${s}" is already running in another terminal.`),await e.quit("Shell already running")),await Dur(s,u),e.bindService({orgName:s,serviceName:u}),e.onQuit(async()=>{(0,Ec.removeSync)(vO(s,u)),await Wi.stop(e,{hasQuit:!0,orgName:s,serviceName:u});let se=await t.readJsonFileIfExists(t.serviceFilePath),Ge=process.hrtime.bigint();o==null||o.close(),dr({orgName:s,eventName:"ampt.dev.ended",eventData:{source:e.isGitPod?"gitpod":"local",timeInSeconds:Number(Ge-b)/1e9,dependencies:Object.keys((se==null?void 0:se.dependencies)||{}),appName:`${s}:${u}`}})});let T=new go({fs:t,org:c,service:p,instance:h,user:a,fullSync:e.options["full-sync"]}),R=new Nl({fs:t,org:c,service:p,instance:h}),q=await T.sync().catch(se=>{if(se.name==="ValidationError")return e.logError(se.message),e.quit();throw se});dr({orgName:s,eventName:"ampt.dev.synced",eventData:{...q,source:e.isGitPod?"gitpod":"local",serviceName:p.serviceName,instanceName:h.instanceName,appName:`${s}:${u}`,region:h.region}});let[O]=await Promise.all([h.connect({cli:e}),e.messenger.subscribe({orgName:s,appName:u,instanceName:f})]);o=O,e.logSuccess(`Connected to your personal sandbox of ${(fe=e.styles)==null?void 0:fe.blue(u)} app`),e.logUrl(h.url),e.logSpace(),e.logInfo("View your app in the dashboard");let M=`${process.env.AMPT_DASHBOARD_URL_ROOT}/orgs/${s}/apps/${u}/environments/${f}`;if(e.logUrl(M),i&&e.logSuccess("Enabled automatic data reseeding"),e.viewInput(),e.options.dev){let{url:se,region:Ge}=h,{credentials:Le,env:Ee}=T;await Wi.start({credentials:Le,env:Ee,url:se,cli:e,fs:t,user:a,scriptName:"dev",ifPresent:!1,orgName:s,serviceName:u,region:Ge})}dr({orgName:s,eventName:"ampt.dev.enabled",eventData:{dependencies:Object.keys(((xe=t.serviceFile)==null?void 0:xe.dependencies)||{}),appName:`${s}:${u}`}});let U=async()=>{var se;e.viewSpinner("Seeding"),await R.import(),e.logSuccess(`Seeded data from the ${(se=e.styles)==null?void 0:se.bold(t.dataFileName)} file.`),e.viewInput()};n&&await U();let z=!1,L=!1,D=new Set;return t.watch(T.workspaceRoot,se=>{(async()=>{for(let Le of se)D.add(Le);let Ge=await Wi.isRunning({orgName:s,serviceName:u});if(e.isCommandRunningInShell&&!Ge&&await e.commandRunningInShellPromise,!z){for(z=!0;D.size>0;){let Le=D;D=new Set,i&&t.dataFilePath&&Le.has(t.dataFilePath)&&(e.viewSpinner("Seeding",{timer:!0}),await U()),(!e.isCommandRunningInShell||Ge)&&e.spinInput();let Ee=await T.sync(Le);dr({orgName:s,eventName:"ampt.dev.synced",eventData:{...Ee,source:e.isGitPod?"gitpod":"local",serviceName:p.serviceName,instanceName:h.instanceName,appName:`${s}:${u}`,region:h.region}})}z=!1,L||(e.logSuccess(`Successfully updated your code in ${Tm(e.timer)}.`),L=!0),(!e.isCommandRunningInShell||Ge)&&e.stopSpinningInput()}})().catch(Ge=>console.error(Ge))}),null}});var Fur,mUe=ye(()=>{"use strict";cn();gn();e0();Fur=async e=>{e.viewSpinner("Loading");let t=new Ms,r=new Ft({session:e.session});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let n=e.options.org||r.serviceFile.ampt.org,i=e.options.service||r.serviceFile.ampt.app||r.serviceFile.ampt.service,s=e.isShellActive?e.user.username:`test-${Math.random().toString(36).substring(2,7)}`;n||(n=await e.selectOrg(t)),e.viewSpinner("Loading");let o=new hr({orgName:n});await o.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(t)),o.update({orgName:n}),e.isShellActive||e.viewSpinner(`Starting test stage (${s})`);let a=new wr({org:o,serviceName:i}),u=new Br({org:o,service:a,instanceType:"test",instanceName:s,cli:e});e.isShellActive||(await new go({fs:r,org:o,service:a,instance:u,fullSync:e.options["full-sync"]}).sync(),e.logSuccess(`Test instance started: ${u.url}`)),await u.get();let c=await u.connect({cli:e});try{e.viewSpinner("Running tests");let f=e.options.coverage||e.options.collectCoverage,p=e.args[0],h=e.options.workers,{timeout:g=3e5}=await u.test({coverage:f,pattern:p,workers:h}),v=await(c==null?void 0:c.waitForEvent({eventType:"ampt.test.completed",timeout:g+5e3}));SQ(e,v),v.data.coverage&&v.data.coverage.length&&f&&(e.viewSpinner("Collecting test coverage report"),await u.downloadTestCoverage(r.serviceRoot),e.logSuccess("Coverage report saved")),process.exitCode=v.data.results&&v.data.results.success?0:1}catch(f){e.logError(f)}e.isShellActive||(c==null||c.close(),e.viewSpinner("Deleting instance"),await u.delete(),e.logSuccess("Test instance deleted"),e.log(`Exiting with status code ${process.exitCode}`))}});var yO,Mur,gUe=ye(()=>{"use strict";yO=de(require("assert"));cn();gn();Mur=async e=>{var T,R;e.viewSpinner("Loading");let t=new Ms,r=new Ft({session:e.session});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{orgName:n,serviceName:i}=e.names,{instanceName:s}=e.names;i=i||r.serviceFile.ampt.app,n=n||r.serviceFile.ampt.org;let o=e.options.type||"stage";n||(n=await e.selectOrg(t)),(0,yO.default)(n,"orgName is required"),e.viewSpinner("Loading");let a=new hr({orgName:n}),u=new wr({org:a,serviceName:i});await a.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(t)),a.update({orgName:n});let c,f;if(!e.isShellActive)c=s||"production";else{let{git:q}=await u.get();if(q&&!q.allowCliDeployments){e.logError(`CLI deployments for ${i} have been disabled by the org's administrator.`);return}let{instanceName:O,isNewInstance:M}=await e.selectInstance({service:u,instanceType:o,instanceName:s});c=O,f=M}if(!c)throw new Error("Please specify a stage name to deploy to.");e.viewSpinner("Validating");let p=new Br({org:a,service:u,instanceName:c,instanceType:o}),h=await p.get().catch(()=>{});f===void 0&&!e.isShellActive&&(f=h===void 0);let[g,v,_]=await Promise.all([u.get().catch(()=>({serviceName:i})),a.fetch(),a.getRegions()]),w=await e.selectRegion({orgInfo:v,instanceInfo:h,serviceInfo:g,regions:_});if(!w||(p.region=w.code,f&&e.isShellActive&&(e.pause(),e.logInfo(`Are you sure you want to deploy ${(T=e.styles)==null?void 0:T.darkPurple.bold(g.serviceName)} to new stage ${(R=e.styles)==null?void 0:R.darkPurple.bold(`${c} (${w.name})`)}?`),!await e.confirm())))return e.logWarning("Deployment cancelled.");e.viewSpinner(`Deploying to ${c} - ${w.name} (${w.code})`,{timer:!0}),e.updateSpinnerStep("syncing");let b=await new go({fs:r,org:a,service:u,instance:p,fullSync:e.options["full-sync"]}).sync();(0,yO.default)(n,"orgName is required"),(0,yO.default)(i,"serviceName is required");let S=b.operationId?await e.messenger.waitForOperation({operationId:b.operationId,orgName:n,appName:i,context:e}):!0;dr({orgName:n,eventName:"ampt.instance.deployed",eventData:{url:p.url,service_name:u.serviceName,instance_name:p.instanceName,duration:e.timer,region:p.region}}),S?(await p.get(),e.isShellActive?e.logSuccess(`Successfully deployed to the "${c} (${w.name})" stage in ${Tm(e.timer)}.`):e.logSuccess(`Successfully deployed to the "${c} (${w.name})" stage.`),e.logUrl(p.url)):(process.env.AMPT_DEBUG&&(await p.get(),e.logUrl(p.url)),b.operationId?(e.logError(`Failed to deploy to the "${c}" stage, check the deployment logs for more information:`),e.logUrl(p.getDashboardDeploymentsUrl())):e.logError(`Failed to deploy to the "${c}" stage.`))}});var jur,vUe=ye(()=>{"use strict";cn();gn();jur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let r=e.args[0],{user:n}=e,i=e.options.app||t.serviceFile.ampt.app,s=e.options.org||t.serviceFile.ampt.org;if(!s)throw new Error("Please specify an Ampt org name in package.json or with the --org CLI param.");s||(s=await e.selectOrg(n)),e.viewSpinner("Loading");let o=new hr({orgName:s});if(await o.isAuthorized()||(e.logError(`You don't have access to the "${s}" org.`),s=await e.selectOrg(n)),!r){if(!e.isInteractive)throw new Error('Please specify a stage name: "ampt delete preview"');e.logInfo("Please enter the name of the stage you want to delete."),r=await e.prompt("type a stage name")}e.viewSpinner("Validating");let a=new wr({org:o,serviceName:i}),u=new Br({org:o,service:a,instanceName:r});if(await u.get(),!["preview","personal"].includes(u.instanceType))throw new Error(`${u.instanceType} instances must be deleted through the dashboard`);e.viewSpinner(`Deleting ${r} (${u.url})`,{timer:!0}),await u.delete(),e.logSuccess(`Successfully deleted the "${r}" stage in ${Tm(e.timer)}.`)}});var Bur,yUe=ye(()=>{"use strict";gn();Bur=async e=>{var R;e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:r}=e,n=e.options.overwrite,i=r.username,s=((R=e.args)==null?void 0:R[0])||`${i}-${Math.random().toString(36).substr(2,5)}`,o=e.options.app||t.serviceFile.ampt.app,a=e.options.org||t.serviceFile.ampt.org;a||(a=await e.selectOrg(r)),e.viewSpinner("Loading");let u=new hr({orgName:a});await u.isAuthorized()||(e.logError(`You don't have access to the "${a}" org.`),a=await e.selectOrg(r)),u.update({orgName:a});let c=new wr({org:u,serviceName:o}),p=(await c.listInstances()).find(q=>q.instanceName===s);if(p&&p.instanceType!=="preview")throw new Error(`You cannot overwrite an existing ${p.instanceType} environment.`);if(p&&!n&&(e.logInfo("This preview environment already exists. Are you sure you want to overwrite it?"),n=await e.confirm(),!n))if(e.isShellActive){await e.logCancelled();return}else await e.quit();let h=r.username,g=new Br({org:u,service:c,instanceName:h}),[v,_,w,y]=await Promise.all([c.get().catch(()=>({serviceName:o})),u.fetch(),p?g.get().catch(()=>{}):void 0,u.getRegions()]),b=await e.selectRegion({orgInfo:_,instanceInfo:w,serviceInfo:v,regions:y});if(!b)return e.logWarning("Deployment cancelled.");let S=new go({fs:t,org:u,service:c,instance:g,fullSync:e.options["full-sync"]});e.viewSpinner(`Creating new preview environment ${s} (${b.name})`,{timer:!0}),e.updateSpinnerStep("syncing"),await S.sync();let T=new Br({org:u,service:c,instanceName:s});if(i!==s){let{operationId:q}=await c.copy({sourceInstanceName:i,targetInstanceName:s,copyCode:!0,copyData:!0,copyStorage:!0,instanceType:"preview",region:b.code});if(q&&!await e.messenger.waitForOperation({operationId:q,context:e,orgName:a,appName:o})){e.logError("Share command failed");return}}await T.get(),e.logSuccess(`Successfully created preview environment ${e.styles.bold(s)} (${b.name}).`),e.logUrl(T.url)}});var Uur,xUe=ye(()=>{"use strict";gn();Uur=async e=>{var b,S;e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:r}=e,n=e.options.app||t.serviceFile.ampt.app,i=e.options.org||t.serviceFile.ampt.org;i||(i=await e.selectOrg(r)),e.viewSpinner("Loading");let s=new hr({orgName:i});await s.isAuthorized()||(e.logError(`You don't have access to the "${i}" org.`),i=await e.selectOrg(r)),s.update({orgName:i});let o=new wr({org:s,serviceName:n}),a=await o.listInstances(),u=(b=e.args)==null?void 0:b[0],c=(S=e.args)==null?void 0:S[1];if(!u){if(!e.isInteractive)throw new Error('Please specify a source stage name: "ampt promote dev"');e.logInfo("Please enter the name of the stage you want to promote."),u=await e.prompt("type a stage name")}if(!c){if(!e.isInteractive)throw new Error('Please specify a target stage name: "ampt promote dev prod"');e.logInfo("Please enter the name of the stage you want to promote to."),c=await e.prompt("type a stage name")}if(u===c)throw new Error("The stage names you specified are identical. Please specify two different stages.");let f=a.find(T=>T.instanceName===u);if(!f)throw new Error(`The specified source instance does not exist: ${u}.`);let p=a.find(T=>T.instanceName===c);if(f&&f.instanceType!=="stage"||p&&p.instanceType!=="stage")throw new Error('One of the instances you specified are not of type "stage". You can only promote between stage environments.');let h=new Br({org:s,service:o,instanceName:c}),g=await o.get();if(!g)return e.logWarning(`Unexpected error: App ${n} was not found.`);let[v,_]=await Promise.all([s.fetch(),s.getRegions()]),w=await e.selectRegion({orgInfo:v,instanceInfo:p,serviceInfo:g,regions:_});if(!w)return e.logWarning("Promote cancelled.");e.viewSpinner(`Promoting ${u} to ${c} (${w.name})`),e.updateSpinnerStep("syncing");let{operationId:y}=await o.copy({sourceInstanceName:u,targetInstanceName:c,copyCode:!0,copyData:!1,copyStorage:!1,instanceType:"stage",region:w.code});if(y&&!await e.messenger.waitForOperation({operationId:y,context:e,orgName:i,appName:n})){e.logError("Promote command failed");return}await h.get(),e.logSuccess(`Successfully promoted from the "${u}" stage to the "${c} (${w.name})" stage.`),e.logUrl(h.url)}});var Wur,_Ue=ye(()=>{"use strict";gn();Wur=async e=>{e.viewSpinner("Loading");let t=e.args[0],r=new Ft({session:e.session,dataFileName:t});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:n}=e,i=e.options.overwrite||e.options.o,s=e.options.app||r.serviceFile.ampt.app,o=e.options.org||r.serviceFile.ampt.org,a=e.options.stage||e.options.instance||n.username;o||(o=await e.selectOrg(n)),e.viewSpinner("Loading");let u=new hr({orgName:o});await u.isAuthorized()||(e.logError(`You don't have access to the "${o}" org.`),o=await e.selectOrg(n)),u.update({orgName:o}),e.viewSpinner("Importing");let c=new wr({org:u,serviceName:s}),f=new Br({org:u,service:c,instanceName:a}),p=new Nl({fs:r,org:u,service:c,instance:f});if(!await r.readDataFileIfExists())return e.logError(`No data file found for "${r.dataFileName}"`);await p.import(i);let g=`Data Imported from "${r.dataFileName}"`;e.logSuccess(g)}});var Hur,bUe=ye(()=>{"use strict";gn();Hur=async e=>{e.viewSpinner("Loading");let t=e.args[0],r=new Ft({session:e.session,dataFileName:t});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:n}=e,i=e.options.overwrite||e.options.o,s=e.options.app||r.serviceFile.ampt.app,o=n.username,a=e.options.org||r.serviceFile.ampt.org;a||(a=await e.selectOrg(n)),e.viewSpinner("Loading");let u=new hr({orgName:a});if(await u.isAuthorized()||(e.logError(`You don't have access to the "${a}" org.`),a=await e.selectOrg(n)),u.update({orgName:a}),!i&&r.dataFile&&(e.logInfo(`This directory already contains a "${r.dataFileName}" file. Are you sure you want to overwrite it?`),i=await e.confirm(),!i))if(e.isShellActive){await e.logCancelled();return}else await e.quit();e.viewSpinner("Exporting");let c=new wr({org:u,serviceName:s}),f=new Br({org:u,service:c,instanceName:o});await new Nl({fs:r,org:u,service:c,instance:f}).export(),e.logSuccess(`Data Exported to "${r.dataFileName}"`)}});var $ur,wUe=ye(()=>{"use strict";gn();$ur=async e=>{e.user&&e.user.isLoggedIn()||(e.user?await e.user.performLogin(e):(e.user=await Ms.init(),await e.user.performLogin(e)))}});var zur,EUe=ye(()=>{"use strict";zur=async e=>{e.viewSpinner("Logging out"),e.user&&e.user.isLoggedIn()?(e.user.logout(),await e.quit("Successfully logged out of Ampt CLI.")):e.logInfo("You are already logged out of Ampt CLI.")}});var SUe,Gur,TUe=ye(()=>{"use strict";SUe=de(Sm()),Gur=async e=>{e.log(`v${SUe.version}`)}});var Vur,AUe=ye(()=>{"use strict";gn();Vur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:r}=e,n=e.options.org||t.serviceFile.ampt.org,i=e.options.app||t.serviceFile.ampt.app,s=e.args[0]||r.username;n||(n=await e.selectOrg(r)),e.viewSpinner("Loading");let o=new hr({orgName:n});await o.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(r)),o.update({orgName:n}),e.viewSpinner("Loading");let a=new wr({org:o,serviceName:i}),u=new Br({org:o,service:a,instanceName:s});await u.get(),e.logUrl(u.url)}});var Kur,CUe=ye(()=>{"use strict";gn();Kur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");e.viewSpinner("Opening Dashboard");let{user:r}=e,n=t.serviceFile.ampt.org,i=t.serviceFile.ampt.app;n||(n=await e.selectOrg(r)),e.viewSpinner("Loading");let s=new hr({orgName:n});await s.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(r)),s.update({orgName:n});let o=new wr({org:s,serviceName:i});e.logInfo("Your browser should open automatically"),e.logInfo("If not, open the following app page url:");let a=o.getDashboardUrl();e.logUrl(a),e.openUrl(a)}});var RUe,Xur,OUe=ye(()=>{"use strict";RUe=de(zv());gn();Xur=async e=>{var r;let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");e.args.length===0?e.viewSpinner("Installing dependencies"):e.args.length===1?e.viewSpinner(`Installing ${e.args[0]}`):e.args.length>1&&e.viewSpinner(`Installing ${String(e.args.length)} packages`);try{await(0,RUe.default)("npm",e.argv,{cwd:t.serviceRoot}),e.args.length===0?e.logSuccess("Successfully installed dependencies."):e.args.length===1?e.logSuccess(`Successfully installed the ${(r=e.styles)==null?void 0:r.bold(e.args[0])} package.`):e.args.length>1&&e.logSuccess(`Successfully installed ${String(e.args.length)} packages.`)}catch(n){e.session.captureException(n);let i=n.stdBuffer.toString();throw new Error(`Failed to install due to the following error:
|
|
255
|
+
`)),Object.keys(n).some(s=>kur.includes(s))&&(e._tipsCollection=[...e._devTipsCollection,...e._tipsCollection,...(i=r==null?void 0:r.scripts)!=null&&i["ampt:dev"]?[]:e._cloudScriptsCollection],e._initTips())}var lUe,kur,n7=ye(()=>{"use strict";lUe=de(require("assert"));gn();kur=["react","next","svelte","vue","@angular/core","@11ty/eleventy","astro"]});var fUe,pUe,Ec,dUe,vO,Pur,Dur,Lur,hUe=ye(()=>{"use strict";fUe=de(require("path")),pUe=de(require("os")),Ec=de(tm()),dUe=de(require("assert"));gn();cn();cUe();n7();vO=(e,t)=>fUe.default.join(pUe.default.homedir(),".serverless",`cloud_shell_activity_${e}_${t}.json`),Pur=async(e,t)=>{try{let r=JSON.parse(await(0,Ec.readFile)(vO(e,t),"utf8"));if(n4(r.pid))return r;(0,Ec.removeSync)(vO(e,t))}catch{return!1}},Dur=async(e,t)=>{let r=vO(e,t);(0,Ec.ensureFileSync)(r),(0,Ec.writeFileSync)(r,JSON.stringify({pid:process.pid},null,4))},Lur=async e=>{var Z,le,B,V,he,fe,xe;e.isGitPod&&e.options.initial?await hp(1e4):e.isGitPod&&!e.options.initial&&(e.isAnimationEnabled=e.options.animation!==!1),e.viewSpinner("Loading");let t=new Ft({session:e.session,syncNodeModules:e.options.syncNodeModules});await t.read();let r=await e._checkAmptDepsVersions(await t.listAmptPackages());r.length&&(e._printOutOfDatePackages(r),e.logSpace(),e.logQuestion("Would you like to update them now?"),await e.confirm(!0)?await e._updateAmptDeps(r):(e.logInfo("Skipping package updates"),e.logWarning("You may experience issues using outdated @ampt packages.")));let n=e.options.seed||e.options.s,i=e.options.reseed||e.options.rs,s,o=null,a=e.user;if(!a)throw new Error("User not found");if(!a.orgs||!a.orgs.length)throw new Error("No orgs found for user");e.isAnimationEnabled=e.options.animation!==!1,t.serviceFile||(await uUe(e,t),t.dataFile&&(n=!0)),await r7(e),s=e.options.org||((le=(Z=t.serviceFile)==null?void 0:Z.ampt)==null?void 0:le.org),s&&!a.hasAccessToOrg(s)&&(e.logWarning(`Org "${s}" has either been deleted or you no longer have access to it.`),s=void 0);let u=e.options.app||((V=(B=t.serviceFile)==null?void 0:B.ampt)==null?void 0:V.app);s||(dr({orgName:s,eventName:"ampt.dev.prompt",eventData:{promptName:"org"}}),s=await e.selectOrg(a),await t.writeServiceFile({orgName:s})),e.viewSpinner("Loading"),(0,dUe.default)(!!s,"orgName is required");let c=new hr({orgName:s});tt.info({org:e.org},"org set"),await c.isAuthorized()||(dr({orgName:s,eventName:"ampt.dev.prompt",eventData:{promptName:"org"}}),e.logError(`You don't have access to the "${s}" org.`),s=await e.selectOrg(a)),e.viewSpinner("Loading"),c.update({orgName:s}),u||(dr({orgName:s,eventName:"ampt.dev.prompt",eventData:{promptName:"service"}}),u=await e.promptServiceName((he=t.defaults)==null?void 0:he.app),e.viewSpinner("Loading"),await t.writeServiceFile({serviceName:u}));let f=a.username,p=new wr({org:c,serviceName:u}),h=new Br({org:c,service:p,instanceName:f,cli:e}),[g,v,_,w]=await Promise.all([h.get().catch(()=>{}),p.get().catch(()=>{}),c.fetch(),c.getRegions()]),y=await e.selectRegion({orgInfo:_,serviceInfo:v,instanceInfo:g,regions:w});if(!y){e.logError("No region selected."),await e.quit();return}h.region=y.code,e.viewSpinner("Connecting to your personal sandbox environment...");let b=process.hrtime.bigint();await Pur(s,u)&&(e.logError(`The Ampt shell for app "${u}" in org "${s}" is already running in another terminal.`),await e.quit("Shell already running")),await Dur(s,u),e.bindService({orgName:s,serviceName:u}),e.onQuit(async()=>{(0,Ec.removeSync)(vO(s,u)),await Wi.stop(e,{hasQuit:!0,orgName:s,serviceName:u});let se=await t.readJsonFileIfExists(t.serviceFilePath),Ve=process.hrtime.bigint();o==null||o.close(),dr({orgName:s,eventName:"ampt.dev.ended",eventData:{source:e.isGitPod?"gitpod":"local",timeInSeconds:Number(Ve-b)/1e9,dependencies:Object.keys((se==null?void 0:se.dependencies)||{}),appName:`${s}:${u}`}})});let T=new go({fs:t,org:c,service:p,instance:h,user:a,fullSync:e.options["full-sync"]}),R=new Nl({fs:t,org:c,service:p,instance:h}),q=await T.sync().catch(se=>{if(se.name==="ValidationError")return e.logError(se.message),e.quit();throw se});dr({orgName:s,eventName:"ampt.dev.synced",eventData:{...q,source:e.isGitPod?"gitpod":"local",serviceName:p.serviceName,instanceName:h.instanceName,appName:`${s}:${u}`,region:h.region}});let[O]=await Promise.all([h.connect({cli:e}),e.messenger.subscribe({orgName:s,appName:u,instanceName:f})]);o=O,e.logSuccess(`Connected to your personal sandbox of ${(fe=e.styles)==null?void 0:fe.blue(u)} app`),e.logUrl(h.url),e.logSpace(),e.logInfo("View your app in the dashboard");let M=`${process.env.AMPT_DASHBOARD_URL_ROOT}/orgs/${s}/apps/${u}/environments/${f}`;if(e.logUrl(M),i&&e.logSuccess("Enabled automatic data reseeding"),e.viewInput(),e.options.dev){let{url:se,region:Ve}=h,{credentials:Le,env:Ee}=T;await Wi.start({credentials:Le,env:Ee,url:se,cli:e,fs:t,user:a,scriptName:"dev",ifPresent:!1,orgName:s,serviceName:u,region:Ve})}dr({orgName:s,eventName:"ampt.dev.enabled",eventData:{dependencies:Object.keys(((xe=t.serviceFile)==null?void 0:xe.dependencies)||{}),appName:`${s}:${u}`}});let U=async()=>{var se;e.viewSpinner("Seeding"),await R.import(),e.logSuccess(`Seeded data from the ${(se=e.styles)==null?void 0:se.bold(t.dataFileName)} file.`),e.viewInput()};n&&await U();let z=!1,L=!1,D=new Set;return t.watch(T.workspaceRoot,se=>{(async()=>{for(let Le of se)D.add(Le);let Ve=await Wi.isRunning({orgName:s,serviceName:u});if(e.isCommandRunningInShell&&!Ve&&await e.commandRunningInShellPromise,!z){for(z=!0;D.size>0;){let Le=D;D=new Set,i&&t.dataFilePath&&Le.has(t.dataFilePath)&&(e.viewSpinner("Seeding",{timer:!0}),await U()),(!e.isCommandRunningInShell||Ve)&&e.spinInput();let Ee=await T.sync(Le);dr({orgName:s,eventName:"ampt.dev.synced",eventData:{...Ee,source:e.isGitPod?"gitpod":"local",serviceName:p.serviceName,instanceName:h.instanceName,appName:`${s}:${u}`,region:h.region}})}z=!1,L||(e.logSuccess(`Successfully updated your code in ${Tm(e.timer)}.`),L=!0),(!e.isCommandRunningInShell||Ve)&&e.stopSpinningInput()}})().catch(Ve=>console.error(Ve))}),null}});var Fur,mUe=ye(()=>{"use strict";cn();gn();e0();Fur=async e=>{e.viewSpinner("Loading");let t=new Ms,r=new Ft({session:e.session});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let n=e.options.org||r.serviceFile.ampt.org,i=e.options.service||r.serviceFile.ampt.app||r.serviceFile.ampt.service,s=e.isShellActive?e.user.username:`test-${Math.random().toString(36).substring(2,7)}`;n||(n=await e.selectOrg(t)),e.viewSpinner("Loading");let o=new hr({orgName:n});await o.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(t)),o.update({orgName:n}),e.isShellActive||e.viewSpinner(`Starting test stage (${s})`);let a=new wr({org:o,serviceName:i}),u=new Br({org:o,service:a,instanceType:"test",instanceName:s,cli:e});e.isShellActive||(await new go({fs:r,org:o,service:a,instance:u,fullSync:e.options["full-sync"]}).sync(),e.logSuccess(`Test instance started: ${u.url}`)),await u.get();let c=await u.connect({cli:e});try{e.viewSpinner("Running tests");let f=e.options.coverage||e.options.collectCoverage,p=e.args[0],h=e.options.workers,{timeout:g=3e5}=await u.test({coverage:f,pattern:p,workers:h}),v=await(c==null?void 0:c.waitForEvent({eventType:"ampt.test.completed",timeout:g+5e3}));SQ(e,v),v.data.coverage&&v.data.coverage.length&&f&&(e.viewSpinner("Collecting test coverage report"),await u.downloadTestCoverage(r.serviceRoot),e.logSuccess("Coverage report saved")),process.exitCode=v.data.results&&v.data.results.success?0:1}catch(f){e.logError(f)}e.isShellActive||(c==null||c.close(),e.viewSpinner("Deleting instance"),await u.delete(),e.logSuccess("Test instance deleted"),e.log(`Exiting with status code ${process.exitCode}`))}});var yO,Mur,gUe=ye(()=>{"use strict";yO=de(require("assert"));cn();gn();Mur=async e=>{var T,R;e.viewSpinner("Loading");let t=new Ms,r=new Ft({session:e.session});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{orgName:n,serviceName:i}=e.names,{instanceName:s}=e.names;i=i||r.serviceFile.ampt.app,n=n||r.serviceFile.ampt.org;let o=e.options.type||"stage";n||(n=await e.selectOrg(t)),(0,yO.default)(n,"orgName is required"),e.viewSpinner("Loading");let a=new hr({orgName:n}),u=new wr({org:a,serviceName:i});await a.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(t)),a.update({orgName:n});let c,f;if(!e.isShellActive)c=s||"production";else{let q=await u.getGitConfig();if(q&&!q.allowCliDeployments){e.logError(`CLI deployments for ${i} have been disabled by the org's administrator.`);return}let{instanceName:O,isNewInstance:M}=await e.selectInstance({service:u,instanceType:o,instanceName:s});c=O,f=M}if(!c)throw new Error("Please specify a stage name to deploy to.");e.viewSpinner("Validating");let p=new Br({org:a,service:u,instanceName:c,instanceType:o}),h=await p.get().catch(()=>{});f===void 0&&!e.isShellActive&&(f=h===void 0);let[g,v,_]=await Promise.all([u.get().catch(()=>({serviceName:i})),a.fetch(),a.getRegions()]),w=await e.selectRegion({orgInfo:v,instanceInfo:h,serviceInfo:g,regions:_});if(!w||(p.region=w.code,f&&e.isShellActive&&(e.pause(),e.logInfo(`Are you sure you want to deploy ${(T=e.styles)==null?void 0:T.darkPurple.bold(g.serviceName)} to new stage ${(R=e.styles)==null?void 0:R.darkPurple.bold(`${c} (${w.name})`)}?`),!await e.confirm())))return e.logWarning("Deployment cancelled.");e.viewSpinner(`Deploying to ${c} - ${w.name} (${w.code})`,{timer:!0}),e.updateSpinnerStep("syncing");let b=await new go({fs:r,org:a,service:u,instance:p,fullSync:e.options["full-sync"]}).sync();(0,yO.default)(n,"orgName is required"),(0,yO.default)(i,"serviceName is required");let S=b.operationId?await e.messenger.waitForOperation({operationId:b.operationId,orgName:n,appName:i,context:e}):!0;dr({orgName:n,eventName:"ampt.instance.deployed",eventData:{url:p.url,service_name:u.serviceName,instance_name:p.instanceName,duration:e.timer,region:p.region}}),S?(await p.get(),e.isShellActive?e.logSuccess(`Successfully deployed to the "${c} (${w.name})" stage in ${Tm(e.timer)}.`):e.logSuccess(`Successfully deployed to the "${c} (${w.name})" stage.`),e.logUrl(p.url)):(process.env.AMPT_DEBUG&&(await p.get(),e.logUrl(p.url)),b.operationId?(e.logError(`Failed to deploy to the "${c}" stage, check the deployment logs for more information:`),e.logUrl(p.getDashboardDeploymentsUrl())):e.logError(`Failed to deploy to the "${c}" stage.`))}});var jur,vUe=ye(()=>{"use strict";cn();gn();jur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let r=e.args[0],{user:n}=e,i=e.options.app||t.serviceFile.ampt.app,s=e.options.org||t.serviceFile.ampt.org;if(!s)throw new Error("Please specify an Ampt org name in package.json or with the --org CLI param.");s||(s=await e.selectOrg(n)),e.viewSpinner("Loading");let o=new hr({orgName:s});if(await o.isAuthorized()||(e.logError(`You don't have access to the "${s}" org.`),s=await e.selectOrg(n)),!r){if(!e.isInteractive)throw new Error('Please specify a stage name: "ampt delete preview"');e.logInfo("Please enter the name of the stage you want to delete."),r=await e.prompt("type a stage name")}e.viewSpinner("Validating");let a=new wr({org:o,serviceName:i}),u=new Br({org:o,service:a,instanceName:r});if(await u.get(),!["preview","personal"].includes(u.instanceType))throw new Error(`${u.instanceType} instances must be deleted through the dashboard`);e.viewSpinner(`Deleting ${r} (${u.url})`,{timer:!0}),await u.delete(),e.logSuccess(`Successfully deleted the "${r}" stage in ${Tm(e.timer)}.`)}});var Bur,yUe=ye(()=>{"use strict";gn();Bur=async e=>{var R;e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:r}=e,n=e.options.overwrite,i=r.username,s=((R=e.args)==null?void 0:R[0])||`${i}-${Math.random().toString(36).substr(2,5)}`,o=e.options.app||t.serviceFile.ampt.app,a=e.options.org||t.serviceFile.ampt.org;a||(a=await e.selectOrg(r)),e.viewSpinner("Loading");let u=new hr({orgName:a});await u.isAuthorized()||(e.logError(`You don't have access to the "${a}" org.`),a=await e.selectOrg(r)),u.update({orgName:a});let c=new wr({org:u,serviceName:o}),p=(await c.listInstances()).find(q=>q.instanceName===s);if(p&&p.instanceType!=="preview")throw new Error(`You cannot overwrite an existing ${p.instanceType} environment.`);if(p&&!n&&(e.logInfo("This preview environment already exists. Are you sure you want to overwrite it?"),n=await e.confirm(),!n))if(e.isShellActive){await e.logCancelled();return}else await e.quit();let h=r.username,g=new Br({org:u,service:c,instanceName:h}),[v,_,w,y]=await Promise.all([c.get().catch(()=>({serviceName:o})),u.fetch(),p?g.get().catch(()=>{}):void 0,u.getRegions()]),b=await e.selectRegion({orgInfo:_,instanceInfo:w,serviceInfo:v,regions:y});if(!b)return e.logWarning("Deployment cancelled.");let S=new go({fs:t,org:u,service:c,instance:g,fullSync:e.options["full-sync"]});e.viewSpinner(`Creating new preview environment ${s} (${b.name})`,{timer:!0}),e.updateSpinnerStep("syncing"),await S.sync();let T=new Br({org:u,service:c,instanceName:s});if(i!==s){let{operationId:q}=await c.copy({sourceInstanceName:i,targetInstanceName:s,copyCode:!0,copyData:!0,copyStorage:!0,instanceType:"preview",region:b.code});if(q&&!await e.messenger.waitForOperation({operationId:q,context:e,orgName:a,appName:o})){e.logError("Share command failed");return}}await T.get(),e.logSuccess(`Successfully created preview environment ${e.styles.bold(s)} (${b.name}).`),e.logUrl(T.url)}});var Uur,xUe=ye(()=>{"use strict";gn();Uur=async e=>{var b,S;e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:r}=e,n=e.options.app||t.serviceFile.ampt.app,i=e.options.org||t.serviceFile.ampt.org;i||(i=await e.selectOrg(r)),e.viewSpinner("Loading");let s=new hr({orgName:i});await s.isAuthorized()||(e.logError(`You don't have access to the "${i}" org.`),i=await e.selectOrg(r)),s.update({orgName:i});let o=new wr({org:s,serviceName:n}),a=await o.listInstances(),u=(b=e.args)==null?void 0:b[0],c=(S=e.args)==null?void 0:S[1];if(!u){if(!e.isInteractive)throw new Error('Please specify a source stage name: "ampt promote dev"');e.logInfo("Please enter the name of the stage you want to promote."),u=await e.prompt("type a stage name")}if(!c){if(!e.isInteractive)throw new Error('Please specify a target stage name: "ampt promote dev prod"');e.logInfo("Please enter the name of the stage you want to promote to."),c=await e.prompt("type a stage name")}if(u===c)throw new Error("The stage names you specified are identical. Please specify two different stages.");let f=a.find(T=>T.instanceName===u);if(!f)throw new Error(`The specified source instance does not exist: ${u}.`);let p=a.find(T=>T.instanceName===c);if(f&&f.instanceType!=="stage"||p&&p.instanceType!=="stage")throw new Error('One of the instances you specified are not of type "stage". You can only promote between stage environments.');let h=new Br({org:s,service:o,instanceName:c}),g=await o.get();if(!g)return e.logWarning(`Unexpected error: App ${n} was not found.`);let[v,_]=await Promise.all([s.fetch(),s.getRegions()]),w=await e.selectRegion({orgInfo:v,instanceInfo:p,serviceInfo:g,regions:_});if(!w)return e.logWarning("Promote cancelled.");e.viewSpinner(`Promoting ${u} to ${c} (${w.name})`),e.updateSpinnerStep("syncing");let{operationId:y}=await o.copy({sourceInstanceName:u,targetInstanceName:c,copyCode:!0,copyData:!1,copyStorage:!1,instanceType:"stage",region:w.code});if(y&&!await e.messenger.waitForOperation({operationId:y,context:e,orgName:i,appName:n})){e.logError("Promote command failed");return}await h.get(),e.logSuccess(`Successfully promoted from the "${u}" stage to the "${c} (${w.name})" stage.`),e.logUrl(h.url)}});var Wur,_Ue=ye(()=>{"use strict";gn();Wur=async e=>{e.viewSpinner("Loading");let t=e.args[0],r=new Ft({session:e.session,dataFileName:t});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:n}=e,i=e.options.overwrite||e.options.o,s=e.options.app||r.serviceFile.ampt.app,o=e.options.org||r.serviceFile.ampt.org,a=e.options.stage||e.options.instance||n.username;o||(o=await e.selectOrg(n)),e.viewSpinner("Loading");let u=new hr({orgName:o});await u.isAuthorized()||(e.logError(`You don't have access to the "${o}" org.`),o=await e.selectOrg(n)),u.update({orgName:o}),e.viewSpinner("Importing");let c=new wr({org:u,serviceName:s}),f=new Br({org:u,service:c,instanceName:a}),p=new Nl({fs:r,org:u,service:c,instance:f});if(!await r.readDataFileIfExists())return e.logError(`No data file found for "${r.dataFileName}"`);await p.import(i);let g=`Data Imported from "${r.dataFileName}"`;e.logSuccess(g)}});var Hur,bUe=ye(()=>{"use strict";gn();Hur=async e=>{e.viewSpinner("Loading");let t=e.args[0],r=new Ft({session:e.session,dataFileName:t});if(await r.read(),!r.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:n}=e,i=e.options.overwrite||e.options.o,s=e.options.app||r.serviceFile.ampt.app,o=n.username,a=e.options.org||r.serviceFile.ampt.org;a||(a=await e.selectOrg(n)),e.viewSpinner("Loading");let u=new hr({orgName:a});if(await u.isAuthorized()||(e.logError(`You don't have access to the "${a}" org.`),a=await e.selectOrg(n)),u.update({orgName:a}),!i&&r.dataFile&&(e.logInfo(`This directory already contains a "${r.dataFileName}" file. Are you sure you want to overwrite it?`),i=await e.confirm(),!i))if(e.isShellActive){await e.logCancelled();return}else await e.quit();e.viewSpinner("Exporting");let c=new wr({org:u,serviceName:s}),f=new Br({org:u,service:c,instanceName:o});await new Nl({fs:r,org:u,service:c,instance:f}).export(),e.logSuccess(`Data Exported to "${r.dataFileName}"`)}});var $ur,wUe=ye(()=>{"use strict";gn();$ur=async e=>{e.user&&e.user.isLoggedIn()||(e.user?await e.user.performLogin(e):(e.user=await Ms.init(),await e.user.performLogin(e)))}});var zur,EUe=ye(()=>{"use strict";zur=async e=>{e.viewSpinner("Logging out"),e.user&&e.user.isLoggedIn()?(e.user.logout(),await e.quit("Successfully logged out of Ampt CLI.")):e.logInfo("You are already logged out of Ampt CLI.")}});var SUe,Gur,TUe=ye(()=>{"use strict";SUe=de(Sm()),Gur=async e=>{e.log(`v${SUe.version}`)}});var Vur,AUe=ye(()=>{"use strict";gn();Vur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");let{user:r}=e,n=e.options.org||t.serviceFile.ampt.org,i=e.options.app||t.serviceFile.ampt.app,s=e.args[0]||r.username;n||(n=await e.selectOrg(r)),e.viewSpinner("Loading");let o=new hr({orgName:n});await o.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(r)),o.update({orgName:n}),e.viewSpinner("Loading");let a=new wr({org:o,serviceName:i}),u=new Br({org:o,service:a,instanceName:s});await u.get(),e.logUrl(u.url)}});var Kur,CUe=ye(()=>{"use strict";gn();Kur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");e.viewSpinner("Opening Dashboard");let{user:r}=e,n=t.serviceFile.ampt.org,i=t.serviceFile.ampt.app;n||(n=await e.selectOrg(r)),e.viewSpinner("Loading");let s=new hr({orgName:n});await s.isAuthorized()||(e.logError(`You don't have access to the "${n}" org.`),n=await e.selectOrg(r)),s.update({orgName:n});let o=new wr({org:s,serviceName:i});e.logInfo("Your browser should open automatically"),e.logInfo("If not, open the following app page url:");let a=o.getDashboardUrl();e.logUrl(a),e.openUrl(a)}});var RUe,Xur,OUe=ye(()=>{"use strict";RUe=de(zv());gn();Xur=async e=>{var r;let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");e.args.length===0?e.viewSpinner("Installing dependencies"):e.args.length===1?e.viewSpinner(`Installing ${e.args[0]}`):e.args.length>1&&e.viewSpinner(`Installing ${String(e.args.length)} packages`);try{await(0,RUe.default)("npm",e.argv,{cwd:t.serviceRoot}),e.args.length===0?e.logSuccess("Successfully installed dependencies."):e.args.length===1?e.logSuccess(`Successfully installed the ${(r=e.styles)==null?void 0:r.bold(e.args[0])} package.`):e.args.length>1&&e.logSuccess(`Successfully installed ${String(e.args.length)} packages.`)}catch(n){e.session.captureException(n);let i=n.stdBuffer.toString();throw new Error(`Failed to install due to the following error:
|
|
256
256
|
${i}`)}}});var IUe,Yur,NUe=ye(()=>{"use strict";IUe=de(zv());gn();Yur=async e=>{var r;let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");if(e.args.length===0){e.logInfo("Please enter the name of the npm package you want to uninstall.");let n=await e.prompt("type a package name");e.args.push(n)}e.args.length===1?e.viewSpinner(`Uninstalling ${e.args[0]}`):e.args.length>1&&e.viewSpinner(`Uninstalling ${String(e.args.length)} packages`);try{await(0,IUe.default)("npm",e.argv,{cwd:t.serviceRoot}),e.args.length===1?e.logSuccess(`Successfully uninstalled the ${(r=e.styles)==null?void 0:r.bold(e.args[0])} package.`):e.args.length>1&&e.logSuccess(`Successfully uninstalled ${String(e.args.length)} packages.`)}catch(n){e.session.captureException(n);let i=n.stdBuffer.toString();throw new Error(`Failed to uninstall due to the following error:
|
|
257
257
|
${i}`)}}});var qUe,kUe,PUe,DUe,Zur,Jur,LUe=ye(()=>{"use strict";gn();cn();qUe=de(require("path")),kUe=de(require("os")),PUe=de(tm()),DUe=de(require("assert")),Zur=(e,t)=>qUe.default.join(kUe.default.homedir(),".serverless",`cloud_shell_activity_${e}_${t}.json`),Jur=async e=>{var b,S,T,R;e.viewSpinner("Running");let t,r=e.options.login,n=e.user;if(!n)throw new Error("User not found");r&&(delete e.options.login,t=await n.restoreOrgLogin(r),e.logSuccess("Successfully logged in."));let i=new Ft({session:e.session});if(await i.read(),!i.serviceFile)throw new Error("You must be inside an Ampt app directory to run this command.");t=t||e.options.org||((S=(b=i.serviceFile)==null?void 0:b.ampt)==null?void 0:S.org);let s=e.options.app||((R=(T=i.serviceFile)==null?void 0:T.ampt)==null?void 0:R.app),o=e.args[0];if(o||(e.logInfo("Please specify a script name available in package.json, and prefixed with ampt:{name}."),o=await e.prompt("type a script name")),!e.isInteractive&&o==="dev")throw new Error("dev command not available in non-interactive mode.");t||(dr({orgName:t,eventName:"ampt.dev.prompt",eventData:{promptName:"org"}}),t=await e.selectOrg(n),await i.writeServiceFile({orgName:t})),e.viewSpinner("Authorizing"),(0,DUe.default)(t,"orgName is required");let a=new hr({orgName:t});await a.isAuthorized()||(dr({orgName:t,eventName:"ampt.dev.prompt",eventData:{promptName:"org"}}),e.logError(`You don't have access to the "${t}" org.`),t=await e.selectOrg(n)),a.update({orgName:t}),s||(dr({orgName:t,eventName:"ampt.dev.prompt",eventData:{promptName:"service"}}),s=await e.promptServiceName(i.defaults.app),await i.writeServiceFile({serviceName:s}));let u=e.options["test-stage"],c=u?`test-${Math.random().toString(36).substring(2,7)}`:e.options.stage||e.options.instance||n.username,f=new wr({org:a,serviceName:s}),p=new Br({org:a,service:f,instanceName:c,instanceType:"test"});u?e.viewSpinner(`Starting test stage (${c})`):await p.get();let h=new go({fs:i,org:a,service:f,instance:p,sandboxMode:!0});await h.getUrlsAndMap();let{url:g,region:v}=p,{credentials:_,env:w}=h;e.onQuit(async()=>{(0,PUe.removeSync)(Zur(t,s)),await Wi.stop(e,{hasQuit:!0,orgName:t,serviceName:s})}),e.viewSpinner(`Running ${o}`);let y=await Wi.start({credentials:_,env:w,region:v,url:g,cli:e,user:n,fs:i,scriptName:o,ifPresent:!1,orgName:t,serviceName:s});return e.setExitCode(y),null}});var Qur,FUe=ye(()=>{"use strict";gn();Qur=async e=>{e.viewSpinner("Loading");let t=new Ft({session:e.session});if(await t.read(),!t.serviceFile||!t.serviceFile.ampt||!t.serviceFile.ampt.app||!t.serviceFile.ampt.org){e.logInfo("This command must be run inside a service directory.");return}let{org:r,app:n}=t.serviceFile.ampt;if(!await Wi.isRunning({orgName:r,serviceName:n})){e.logInfo(`There's no dev server running for app "${n}" in org "${r}" at the moment.`);return}await Wi.stop(e,{orgName:r,serviceName:n}),e.logSuccess(`Successfully stopped the dev server for app "${n}" in org "${r}".`)}});var xO,MUe,jUe,ecr,BUe=ye(()=>{"use strict";xO=de(require("fs")),MUe=de(require("path")),jUe=require("child_process"),ecr=async e=>{e.pause();let t={js(){throw new Error("Not implemented")},ts(){throw new Error("Not implemented")},json(){throw new Error("Not implemented")},yml(r){return new Promise(n=>{var a,u;let i=xO.default.readFileSync(r);xO.default.writeFileSync("ampt.serverless.yml",i);let s=process.argv.slice(3);console.log("load yml",r,process.cwd());let o=(0,jUe.spawn)("npx",["serverless","-c","ampt.serverless.yml"].concat(s),{env:{},stdio:"inherit",detached:!0});e.onQuit(()=>{o.kill(),n()}),(a=o.stdout)==null||a.pipe(process.stdout),(u=o.stderr)==null||u.pipe(process.stderr),o.on("exit",()=>{n()})})},yaml(r){return this.yml(r)}};for(let r of Object.keys(t)){let n=MUe.default.join(process.cwd(),`serverless.${r}`);if(xO.default.existsSync(n)){await t[r](n);return}}}});var UUe={};Cd(UUe,{delete:()=>jur,deploy:()=>Mur,export:()=>Hur,help:()=>Nur,import:()=>Wur,install:()=>Xur,login:()=>$ur,logout:()=>zur,open:()=>Kur,promote:()=>Uur,run:()=>Jur,serverless:()=>ecr,setup:()=>r7,share:()=>Bur,start:()=>Lur,stop:()=>Qur,test:()=>Fur,uninstall:()=>Yur,url:()=>Vur,version:()=>Gur});var WUe=ye(()=>{"use strict";aUe();hUe();mUe();gUe();vUe();yUe();xUe();_Ue();bUe();wUe();EUe();TUe();AUe();CUe();OUe();NUe();LUe();n7();FUe();BUe()});var s7=de(require("os")),Eo=de(UW()),HUe=de(tH()),su=de(kH()),$Ue=de(LH()),ld=de(MH()),zUe=de(WH()),o7=de(GH()),GUe=de(cG()),_O=de(zv()),a7=de(s2()),u7=require("child_process"),bO=de(MJ()),eb=de(tQ());cn();gn();var ud=class extends Error{};var i7=(WUe(),Et(UUe)),{version:cd}=Sm(),wO=class{session;messenger;user;inputValue;timer;isShellActive;isInteractive;isDevServerActive;isAnimationEnabled=!1;isCommandRunningInShell;commandRunningInShellPromise;styles;icons;argv;startupOptions;options;args;names;command;orgName;org;service;serviceName;_exitCode=0;isGitPod=!1;isWebIde=!1;_allowedInputCharacter;_isLoggedTopPadding;_commandsHistory;_viewType;_viewMessage;_spinnerMessage;_spinnerStep;_isPromptActive;_promptResponse;_timerInterval;_spinnerInterval;_inputSpinnerInterval;_inputSpinnerStartedAt;_inputSpinnerStoppedAt;_tipsInterval;_tipsFrequency;_tipsCollectionIndex;_spinnerFrequency;_spinnerFrames;_spinnerFrameIndex;_selectItems;_selectedItemIndex;_selectedItem;_onQuit;_quitting;_suggestions;_commandsHistoryIndex;_devTipsCollection=["type `dev` to start running the dev server","type `stop` to stop a running dev server"];_cloudScriptsCollection=["add a `ampt:dev` script to package.json to run code within the Ampt context"];_tipsCollection=["type `share` to share your changes","type `test` to test your changes","type `import` to import data from a data.json file","type `export` to export data to a data.json file","type `deploy <stage>` to deploy to a stage","type `export <file-name>` to specify export file name","type `import <file-name>` to specify import file name","type `docs` to open the docs in your browser","type `help` to see the list of available commands","type `quit` to quit the shell","type `clear` to clear the screen","type `url` to view your personal instance url","type `open` to open your app page in the browser","type `promote <from> <to>` to promote between stages","type `install` to install your package.json dependencies","type `install <npm-package>` to install an npm package","type `uninstall <npm-package>` to uninstall an npm package","type `run <script>` to run the `ampt:<script>` npm script","type `build` to run the `ampt:build` npm script"];version=cd;constructor(t){process.title="Ampt CLI",this.session=t,this.messenger=new Lg,this.messenger.on("offline",(0,a7.default)(()=>{this.logError("Messenger Connection is offline")},1e3,!0)),this.messenger.on("online",(0,a7.default)(()=>{this.logInfo("Messenger Connection restored")},1e3,!0)),this.inputValue="",this.startupOptions={},this.options={},this.args=[],this.argv=[],this.command=void 0,this.names=void 0,this.icons={},this.commandRunningInShellPromise=null,this._allowedInputCharacter=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ~!@#$%^&*()-_=+.<>{}[]"'/`,this._viewType=null,this._viewMessage=void 0,this._spinnerMessage=null,this._spinnerStep=null,this._isPromptActive=void 0,this._promptResponse=void 0,this._commandsHistory=[],this._spinnerFrequency=100,this._spinnerFrames=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],this._spinnerFrameIndex=0,this.styles={dim:su.default.dim,darkPurple:su.default.hex("#B367FF"),purple:su.default.hex("#F952FF"),blue:su.default.hex("#727aff"),red:su.default.rgb(255,99,99),grey:su.default.hex("#324f59"),pastel:su.default.hex("#dbd8ca"),bold:su.default.bold,green:su.default.hex("#22b9b7")},this._initIcons(),this._initTips(),this._initSuggestions(),process.env.GITPOD_HOST&&process.env.GITPOD_IDE_ALIAS&&(this.isGitPod=!0,this.isWebIde=!0,this.isAnimationEnabled=!1),this.isInteractive=process.stdin.isTTY}async login(){return new Ms}setExitCode(t){this._exitCode=t}async start(){let{_:t,...r}=(0,o7.default)(process.argv);return this.startupOptions=r,this.run()}async run(t){try{this.isShellActive||(this._hideCursor(),this._logLogo(),this.viewSpinner("Loading"),await this._autoUpdate()),await this.messenger.connect(),this._watchKeyboard(),this._parseCommand(t);let r=["clone"],n=["promote","test"];if(this.isShellActive&&r.includes(this.command))throw new ud(`Command "${this.command}" is currently not supported in the shell`);if(n.includes(this.command))throw new ud(`Command "${this.command}" is not available while Ampt is in Private Beta.`);if(!i7[this.command])throw new ud(`Command "${this.command}" is not a valid command`);if(!this.user&&(this.user=await Ms.init(),!this.user.isLoggedIn())){this.logInfo("You must login to proceeed.");try{await this.user.performLogin(this)}catch(i){if(i.name==="UserDisabledError")return this.logError(i.message||"Your account has been disabled. Please contact support."),this._stop(0);throw i}}await i7[this.command](this),this.options={}}catch(r){r instanceof ud?this.logError(r.message):r.name==="InstancesLimitError"?this.logError("You have reached your environment limit. Contact support to request an increase: https://ampt.dev/support"):(console.error(r,"error"),this.logError(`Something went wrong - please contact support and provide ${this.session.getSessionId()} as a reference ID`)),this.session.captureException(r)}return this.isShellActive?this.viewInput():this._stop(this._exitCode)}viewInput(t=this._getTip()){this._timerInterval=clearInterval(this._timerInterval),this._spinnerInterval=clearInterval(this._spinnerInterval),this._startTips(),this._switchView({viewType:"input",viewMessage:t})}spinInput(){if(this._viewType!=="input"){tt.error({_viewType:this._viewType},"wrong viewType in spinInput");return}this.isAnimationEnabled&&(this._inputSpinnerStartedAt=Date.now(),clearInterval(this._inputSpinnerInterval),this._inputSpinnerInterval=setInterval(()=>this.updateInputSpinner(),this._spinnerFrequency).unref())}viewSpinner(t="Loading",{timer:r=!1}={}){if(!this.isInteractive){console.log(t);return}if(!this.isAnimationEnabled){this._switchView({viewType:"spinner",viewMessage:t});return}this._spinnerMessage=t,this._spinnerStep="",clearInterval(this._timerInterval),clearInterval(this._spinnerInterval),clearInterval(this._inputSpinnerInterval),this._timerInterval=void 0,this._spinnerInterval=void 0,this._inputSpinnerInterval=void 0,r&&(this.timer=0,this._timerInterval=setInterval(()=>this.timer=+this.timer+1,1e3).unref()),this._spinnerInterval=setInterval(()=>this._updateSpinner((this._spinnerMessage||"Loading")+(this._spinnerStep?` (${this._spinnerStep})`:""),{timer:r}),this._spinnerFrequency).unref()}updateInputSpinner(){this._spinnerFrameIndex=++this._spinnerFrameIndex%this._spinnerFrames.length,this._switchView({viewType:"input"})}stopSpinningInput(){this._inputSpinnerInterval&&(clearInterval(this._inputSpinnerInterval),this._inputSpinnerStoppedAt=Date.now(),this._inputSpinnerInterval=void 0),this.viewInput()}updateSpinnerStep(t){if(!process.stdin.isTTY){console.log(t);return}this._spinnerStep=t}pause(){this._clearIntervals(),this._switchView({viewType:"pause"}),this._eraseCursorLineAndBelow()}async prompt(t,r={}){for(this._isPromptActive=!0,r.default&&(this.inputValue=r.default),this.viewInput(t);!this._promptResponse;)await hp(50);let n=this._promptResponse;return this.logInfo(`You've entered ${this.styles.bold(n)}.`),this._promptResponse=null,this._isPromptActive=!1,n}async promptServiceName(t=null){this.logInfo("Please enter a name for your app.");let r=await this.prompt("type an app name",{default:t});return r.match(/^[a-z0-9-]+$/)?r:(this.logError("App name must consist only of lowercase characters and hyphens. Please try again."),await this.promptServiceName())}async confirm(t=!1){let r=["no","yes"],n=await this.select(t?r.reverse():r);return n==="yes"}async select(t=[],r=0){if(clearInterval(this._timerInterval),clearInterval(this._spinnerInterval),clearInterval(this._inputSpinnerInterval),this._timerInterval=void 0,this._spinnerInterval=void 0,this._inputSpinnerInterval=void 0,this._selectItems=t,this._selectedItemIndex=r,this._switchView({viewType:"select"}),this._selectItems.length===1)return this._selectedItem=this._selectItems[0],this._selectedItem;for(;!this._selectedItem;)await hp(50);let n=this._selectedItem;return typeof n=="object"?this.logInfo(`You've selected ${this.styles.bold(n.title)}.`):this.logInfo(`You've selected ${this.styles.bold(n)}.`),this._selectedItem=null,this._selectedItemIndex=null,this._selectItems=[],n}async selectOrg(t,r){this.viewSpinner("Loading");let n,i=(t.orgs||[]).map(s=>s.orgName);return i.length>1?(this.logInfo(r||"Please select an organization."),n=await this.select(i)):n=i[0],n}async selectService(t,r){let n;this.viewSpinner("Loading");let i=(await t.listServicesWithInstances()).map(s=>s.serviceName);return tt.debug({servicesList:i},"select service"),i.length>1?(this.logInfo(r||"Please select a service."),n=await this.select(i)):n=i[0],n}async selectInstance({service:t,instanceType:r,instanceName:n,message:i}){let o=(await(t==null?void 0:t.listInstances().catch(()=>[]))||[]).filter(c=>!r||c.instanceType===r).map(c=>({instanceName:c.instanceName,region:c.region,displayRegion:c.region||"",display:`${c.instanceName} (${c.region})`}));if(n)return o.find(c=>c.instanceName===n)||{instanceName:n,isNewInstance:!0};if(o.length===0)return{instanceName:void 0};this.logInfo(i||"Please select an instance.");let a=await this.select(o.map(c=>c.display));return{instanceName:o.find(c=>c.display===a).instanceName,isNewInstance:!1}}logSuccess(t,r=0){this.log(`${this.icons.tick} ${t}`,r)}logError(t,r=0){this.log(`${this.icons.cross} ${this.styles.purple(t)}`,r)}logCancelled(){this.logError("Cancelled")}logInfo(t,r=0){this.log(`${this.icons.info} ${t}`,r)}logWarning(t,r=0){this.log(`${this.icons.warning} ${t}`,r)}logQuestion(t,r=0){this.log(`${this.icons.question} ${t}`,r)}logUrl(t,r=0){this.log(`${this.icons.arrow} ${t}`,r)}logTime(t,r=0){this.log(`${this.styles.dim(`${new Date(Date.now()).toLocaleTimeString()} ${this.icons.line}`)} ${t}`,r)}log(t="",r=0){this._ensureTopPadding(),this._eraseCursorLineAndBelow(),this._log(`${" ".repeat(r)}${t}
|
|
258
258
|
`),this._view()}logSpace(){this.log(" ")}write(t=""){this._ensureTopPadding(),this._eraseCursorLineAndBelow(),this._log(t),this._view()}onQuit(t){this._onQuit=t}async quit(t="Stopped"){return this.inputValue="",this._clearIntervals(),this._quitting||this.logError(t),this._eraseCursorLineAndBelow(),!this._quitting&&this._onQuit&&(this._quitting=!0,await whe(this._onQuit(),1e3)),this.isDevServerActive&&await Wi.stop(this,{orgName:this.orgName,serviceName:this.serviceName}),this._stop()}devServerOn(){this.isDevServerActive=!0,this.viewInput()}devServerOff(){this.isDevServerActive=!1,this.viewInput()}bindService({orgName:t,serviceName:r}){this.orgName=t,this.serviceName=r}_switchView({viewType:t,viewMessage:r}){return t&&(this._viewType=t),typeof r<"u"&&(this._viewMessage=r),this._view()}_stop(t=0){this._clearIntervals(),process.stdin.pause(),this._eraseCursorLineAndBelow(),t===0&&this._log(`
|
|
@@ -264,7 +264,7 @@ ${t}
|
|
|
264
264
|
`,t+=`${this.icons.pointer} ${n.title} ${this.styles.grey(`(${n.description})`)}
|
|
265
265
|
`,t+=` ${this.styles.grey(`${i.title}`)}`):(t+=` ${this.styles.grey(`${r}`)}
|
|
266
266
|
`,t+=`${this.icons.pointer} ${n}
|
|
267
|
-
`,t+=` ${this.styles.grey(`${i}`)}`),t}_getPreviousItemIndex(){return this._selectedItemIndex===0?this._selectItems.length-1:this._selectedItemIndex-1}_getNextItemIndex(){return this._selectedItemIndex===this._selectItems.length-1?0:this._selectedItemIndex+1}async _updateAmptDeps(t){for(let r of t){this.viewSpinner(`Updating ${r.name} to ${r.latestVersion}`);try{await(0,_O.default)("npm",["install",`${r.name}@${r.latestVersion}`,`${r.isDevDep?"--save-dev":"--save"}`])}catch(n){this.logError(`Failed to update ${r.name} to ${r.latestVersion}`),this.logError(n.message)}}}async _checkAmptDepsVersions(t=[]){return(await Promise.all(t.map(async([n,i,s])=>{let o=await this._getLatestVersion(n);if(o&&(0,eb.gt)(o,i))return{name:n,currentVersion:i,latestVersion:o,isDevDep:s}}))).filter(n=>n!==void 0)}_printOutOfDatePackages(t=[]){t.length&&(this.logWarning("The following @ampt packages are out of date:"),t.forEach(r=>{let n=this.styles.darkPurple(r.name),i=this.styles.green(r.latestVersion),s=this.styles.dim(`(${r.currentVersion} installed)`);this.log(`${n} ${i} ${s}`,3)}))}async _getLatestVersion(t="@ampt/cli"){let r={root:"https://unpkg.com",endpoint:`/${t}/package.json`,method:"GET"};try{let n=await Promise.race([
|
|
267
|
+
`,t+=` ${this.styles.grey(`${i}`)}`),t}_getPreviousItemIndex(){return this._selectedItemIndex===0?this._selectItems.length-1:this._selectedItemIndex-1}_getNextItemIndex(){return this._selectedItemIndex===this._selectItems.length-1?0:this._selectedItemIndex+1}async _updateAmptDeps(t){for(let r of t){this.viewSpinner(`Updating ${r.name} to ${r.latestVersion}`);try{await(0,_O.default)("npm",["install",`${r.name}@${r.latestVersion}`,`${r.isDevDep?"--save-dev":"--save"}`])}catch(n){this.logError(`Failed to update ${r.name} to ${r.latestVersion}`),this.logError(n.message)}}}async _checkAmptDepsVersions(t=[]){return(await Promise.all(t.map(async([n,i,s])=>{let o=await this._getLatestVersion(n);if(o&&(0,eb.gt)(o,i))return{name:n,currentVersion:i,latestVersion:o,isDevDep:s}}))).filter(n=>n!==void 0)}_printOutOfDatePackages(t=[]){t.length&&(this.logWarning("The following @ampt packages are out of date:"),t.forEach(r=>{let n=this.styles.darkPurple(r.name),i=this.styles.green(r.latestVersion),s=this.styles.dim(`(${r.currentVersion} installed)`);this.log(`${n} ${i} ${s}`,3)}))}async _getLatestVersion(t="@ampt/cli"){let r={root:"https://unpkg.com",endpoint:`/${t}/package.json`,method:"GET"};try{let n=await Promise.race([Ge(r),new Promise((i,s)=>setTimeout(()=>s(new Error("Request timed out")),1e4))]);if(n)return n.version}catch{return}}async _autoUpdate(){if(process.env.AMPT_SKIP_UPDATE==="true"||process.argv.slice(2).includes("--skip-update"))return;let r=(i,s)=>{var c;this.session.captureException(i);let o=s?((c=i.stdBuffer)==null?void 0:c.toString())||i.stack:"Fetching latest version timed out",a=bO.default?"npm install @ampt/cli --global":"npm install @ampt/cli --save-development",u=s?`v${s}`:"@latest";return this.logWarning(`The Ampt CLI auto-update failed due to the following error:
|
|
268
268
|
`),this.logError(o+`
|
|
269
269
|
`),this.logWarning(`You are currently running ${this.styles.purple(`v${cd}`)}. To proceed, please manually update the CLI to the latest version (${this.styles.purple(`${u}`)}) by running the ${a} command.`),this.logWarning(`You can skip auto update by passing the ${this.styles.purple("--skip-update")} flag.`),this._stop(1)},n=await this._getLatestVersion();if(!n)return r(new Error("Failed to fetch latest version"),n);if((0,eb.gt)(n,cd)){if(!(0,eb.satisfies)(n,`^${cd}`))return this.logError(`A new major version of the Ampt CLI is available (v${n}). You are currently running v${cd}. To proceed, please update your Ampt CLI to the latest version.`),this._stop(1);if(this.viewSpinner(`Updating CLI ${this.styles.dim("(this may take a few minutes)")}`),process.env.IS_CHILD_PROCESS){this.logError("Update installed, but your environment is still loading the outdated version. It is possible that a project scoped version of the Ampt CLI is being used");let{argv:i,platform:s}=process;return tt.debug({argv:i,platform:s,__dirname,isRunningGlobally:bO.default},"auto update failed"),this._stop(1)}try{await(0,_O.default)("npm",["install","@ampt/cli",bO.default?"--global":"--save-development"]),this.logInfo(`CLI updated to v${n} ${this.styles.dim(`(was v${cd})`)}`),process.stdin.pause(),this._clearIntervals(),await(0,_O.default)(process.argv.shift(),process.argv,{cwd:process.cwd(),env:{...process.env,IS_CHILD_PROCESS:!0},detached:!1,stdio:"inherit"}),process.exit()}catch(i){return r(i,n)}}}_watchKeyboard(){if((0,$Ue.default)(process.stdin),process.stdin.listenerCount("keypress")>0)return process.stdin.resume();process.stdin.setMaxListeners(1),process.stdin.on("keypress",(r,n={})=>{(async()=>{if(this._shouldUpdateInputValue(r))return this._updateInputValue(r);if(await this._shouldStopDevServer(n))return await this._stopDevServer();if(this._shouldQuit(n))return await this.quit();if(this._shouldSubmitSelection(n))return await this._submitSelection();if(this._shouldSelectPrevious(n))return await this._selectPrevious();if(this._shouldSelectNext(n))return await this._selectNext();if(this._shouldSubmitPromptResponse(n))return await this._submitPromptResponse();if(this._shouldGetPreviousCommand(n))return await this._getPreviousCommand();if(this._shouldGetNextCommand(n))return await this._getNextCommand();if(this._shouldClearScreen(n))return this._clearScreen();if(this._shouldRunCommand(n))return await this._runCommand();if(this._shouldAutoComplete(n))return this._autoComplete();if(this._shouldDeleteLastWord(n))return this._deleteLastWord();if(this._shouldDeleteLastCharacter(n))return this._deleteLastCharacter();if(this._shouldClearInputValue(n))return this._clearInputValue()})().catch(i=>console.error(i))}),process.stdin.isTTY&&process.stdin.setRawMode(!0),process.stdin.resume()}_shouldSubmitPromptResponse(t){return!!(t.name==="return"&&this.inputValue!==""&&this._isPromptActive)}_shouldSubmitSelection(t){return t.name==="return"&&this._viewType==="select"}_shouldRunCommand(t){return t.name==="return"&&this.inputValue!==""&&this._viewType==="input"}_shouldAutoComplete(t){return(t.name==="tab"||t.name==="right")&&this.inputValue!==""&&!this._isPromptActive}_shouldDeleteLastCharacter(t){return t.name==="backspace"}_shouldDeleteLastWord(t){return!!(t.sequence===""||t.name==="backspace"&&t.meta)}_shouldClearInputValue(t){return t.sequence===""}_shouldGetPreviousCommand(t){return t.name==="up"}_shouldGetNextCommand(t){return t.name==="down"}_shouldSelectPrevious(t){return t.name==="up"&&this._viewType==="select"}_shouldSelectNext(t){return t.name==="down"&&this._viewType==="select"}_shouldClearScreen(t){let r=this.inputValue.trim();return t.name==="return"&&r==="clear"}async _shouldStopDevServer(t){return!this.orgName||!this.serviceName?!1:!!(await Wi.isRunning({orgName:this.orgName,serviceName:this.serviceName})&&t.ctrl&&t.name==="c")}_shouldQuit(t){let r=this.inputValue.trim().toLowerCase(),n=["quit","q","exit","cancel"];return!!(t.name==="return"&&n.includes(r)||t.ctrl&&t.name==="c")}_shouldUpdateInputValue(t){return!!(this._allowedInputCharacter.includes(t)&&this._viewType==="input")}async _stopDevServer(){return this.inputValue="stop",await this._runCommand()}async _submitPromptResponse(){this._promptResponse=this.inputValue,this.inputValue=""}async _submitSelection(){this._selectedItem=this._selectItems[this._selectedItemIndex]}async _runCommand(){process.stdin.pause(),this._updateCommandsHistory(),this._ensureNoCloudRootCommand();let t=this.inputValue;this.inputValue="",this.isCommandRunningInShell=!0,this.commandRunningInShellPromise=this.run(t),await this.commandRunningInShellPromise,this.isCommandRunningInShell=!1,this.commandRunningInShellPromise=null,this.command="start",process.stdin.resume()}async _autoComplete(){let t=this._suggestCommand();t&&(this.inputValue=`${t} `,this.viewInput())}_suggestCommand(){return this._suggestions.find(t=>t.startsWith(this.inputValue)&&t!==this.inputValue)}_ensureNoCloudRootCommand(){this.inputValue.startsWith("ampt ")&&(this.inputValue=this.inputValue.replace("ampt ",""))}_updateCommandsHistory(){this.inputValue=this.inputValue.trim(),this._commandsHistory.push(this.inputValue),this._commandsHistoryIndex=null}_getPreviousCommand(){this._commandsHistory.length!==0&&(!this._commandsHistoryIndex&&this._commandsHistoryIndex!==0?this._commandsHistoryIndex=this._commandsHistory.length-1:this._commandsHistoryIndex=this._commandsHistoryIndex-1,this._commandsHistory[this._commandsHistoryIndex]||(this._commandsHistoryIndex=this._commandsHistory.length-1),this.inputValue=this._commandsHistory[this._commandsHistoryIndex],this.viewInput())}_getNextCommand(){this._commandsHistory.length!==0&&(!this._commandsHistoryIndex&&this._commandsHistoryIndex!==0?this._commandsHistoryIndex=0:this._commandsHistoryIndex=this._commandsHistoryIndex+1,this._commandsHistory[this._commandsHistoryIndex]||(this._commandsHistoryIndex=0),this.inputValue=this._commandsHistory[this._commandsHistoryIndex],this.viewInput())}_selectPrevious(){this._selectedItemIndex=this._getPreviousItemIndex(),this._switchView({viewType:"select"})}_selectNext(){this._selectedItemIndex=this._getNextItemIndex(),this._switchView({viewType:"select"})}_deleteLastCharacter(){this.inputValue=this.inputValue.slice(0,-1),this.viewInput(this._viewMessage)}_deleteLastWord(){this.inputValue=this.inputValue.trim(),this.inputValue=this.inputValue.substring(0,this.inputValue.lastIndexOf(" ")),this.viewInput(this._viewMessage)}_clearInputValue(){this.inputValue="",this.viewInput(this._viewMessage)}_updateInputValue(t){this.inputValue+=t,this.viewInput(this._viewMessage)}_clearScreen(){this._updateCommandsHistory(),this._log(ld.default.clearScreen),this._logLogo(),this._isLoggedTopPadding=!1,this.inputValue="",this.viewInput(),this._hideCursor()}_ensureTopPadding(){this._isLoggedTopPadding||(this._log(`
|
|
270
270
|
`),this._isLoggedTopPadding=!0)}_updateSpinner(t,{timer:r=!1}={}){this._spinnerFrameIndex=++this._spinnerFrameIndex%this._spinnerFrames.length,r&&(t=`${t} ${this.styles.grey(`(${this.timer}s)`)}`),this._switchView({viewType:"spinner",viewMessage:t})}_getSpinnerFrame(){return this.styles.darkPurple(this._spinnerFrames[this._spinnerFrameIndex])}_initSuggestions(){this._suggestions=["deploy","deploy dev","promote","promote dev","promote dev prod","share","import","import --overwrite","export","export --overwrite","exit","clear","cancel","login","logout","help","test","url","open","docs","quit","version","install","uninstall","run","dev","build"]}_initTips(){this._tipsFrequency=5e3,this._tipsCollectionIndex=0,this._startTips()}_startTips(){this.isAnimationEnabled&&(clearInterval(this._tipsInterval),this._tipsInterval=setInterval(()=>this._updateTip(),this._tipsFrequency).unref())}_getTip(){if(typeof this._tipsCollectionIndex>"u")return"";let t=this._tipsCollection[this._tipsCollectionIndex];return t?this.styles.dim(t):""}_updateTip(){this._tipsCollectionIndex=++this._tipsCollectionIndex%this._tipsCollection.length,this._viewType==="input"&&!this._isPromptActive&&this.viewInput(this._getTip())}_initIcons(){this.icons={},this.icons.bolt=this.styles.purple(GUe.default.get("zap")),this.icons.tick=this.styles.blue(Eo.default.tick),this.icons.cross=this.styles.purple(Eo.default.cross),this.icons.warning=this.styles.purple(Eo.default.warning),this.icons.info=this.styles.green(Eo.default.info),this.icons.line=Eo.default.line,this.icons.arrow=this.styles.darkPurple(Eo.default.arrowRight),this.icons.arrowDown=Eo.default.arrowDown,this.icons.pointer=this.styles.green(Eo.default.pointerSmall),this.icons.question=this.styles.darkPurple("?"),this.icons.pointerGreen=this.styles.green(Eo.default.pointerSmall),this.icons.live=this.styles.green(Eo.default.pointerSmall)}_canRenderBolt(){let{TERM_PROGRAM:t,TERM:r}=process.env,n=t||r;return process.platform==="darwin"&&["vscode","Hyper","WarpTerminal","iTerm.app"].includes(n)?!0:(["Apple_Terminal","MacTerm","screen","xterm-256color"].includes(n),!1)}selectRegion({orgInfo:t,serviceInfo:r,instanceInfo:n,regions:i}){var u,c;let s=(u=this.options)==null?void 0:u.region,o=i.filter(({enabled:f})=>f);if(tt.debug({orgInfo:t,serviceInfo:r,instanceInfo:n,regions:i,availableRegions:o},"selectRegion"),s){let f=o.find(({code:p})=>p===s);if(!f){let p=o.map(({code:h,name:g})=>`${h} (${g})`).join(", ");this.logError(`Invalid region code specified: ${s}`),this.logError(`Available region codes: ${p}`);return}if(n){if(s!==n.code){this.logError(`Cannot change the region of an existing stage: ${n.instanceName} (${n.region}).`);return}return i.find(({code:p})=>p===n.region)}return f}let a=(n==null?void 0:n.region)||(r==null?void 0:r.region)||(t==null?void 0:t.region)||((c=o==null?void 0:o[0])==null?void 0:c.code)||"us-east-1";return i.find(({code:f})=>f===a)}openUrl(t){this.isGitPod?(0,u7.execSync)(`gp preview "${encodeURI(t)}" --external`):(0,HUe.default)(t).catch(r=>console.error(r))}};Hu();W4().suppress=!0;(async()=>{try{await new wO(zr).start()}catch(e){console.log("error",e),zr.captureException(e)}})().catch(e=>console.error(e));
|